mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 12:49:32 -08:00
added rdp servers and clients to both devices
This commit is contained in:
parent
d5de5c9ad9
commit
ae5c5d1d2b
3 changed files with 28 additions and 10 deletions
|
@ -3,19 +3,24 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
(import ./../../modules/xrdp.nix)
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
networking.hosts = {
|
||||
"10.0.0.183" = [ "headscale.nickiel.net" ];
|
||||
"100.64.0.1" = ["files.nickiel.net" "git.nickiel.net" "nickiel.net" "jellyfin.nickiel.net" ];
|
||||
};
|
||||
networking.firewall = {
|
||||
networking = {
|
||||
firewall = {
|
||||
checkReversePath = "loose";
|
||||
trustedInterfaces = [ "tailscale0" ];
|
||||
allowedUDPPorts = [ config.services.tailscale.port ];
|
||||
};
|
||||
|
||||
nameservers = ["10.0.0.183" "1.1.1.1"];
|
||||
|
||||
hosts = {
|
||||
# "10.0.0.183" = [ "headscale.nickiel.net" ];
|
||||
"100.64.0.1" = ["files.nickiel.net" "git.nickiel.net" "nickiel.net" "jellyfin.nickiel.net" ];
|
||||
};
|
||||
};
|
||||
services = {
|
||||
tailscale.enable = true;
|
||||
sshd.enable = true;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
{ config, ... }:
|
||||
|
||||
{ imports = [
|
||||
(import ./../../modules/xrdp.nix)
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
|
@ -18,7 +19,6 @@
|
|||
};
|
||||
time.hardwareClockInLocalTime = true;
|
||||
|
||||
|
||||
boot.loader = { efi = {
|
||||
canTouchEfiVariables = true; efiSysMountPoint = "/boot";
|
||||
};
|
||||
|
|
13
modules/xrdp.nix
Normal file
13
modules/xrdp.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{config, lib, pkgs, ...}:
|
||||
|
||||
{
|
||||
environment.systemPackages = [
|
||||
pkgs.freerdp
|
||||
];
|
||||
|
||||
services.xrdp = {
|
||||
enable = true;
|
||||
defaultWindowManager = "startplasma-x11";
|
||||
openFirewall = true;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue