diff --git a/hosts/desktop/default.nix b/hosts/desktop/default.nix index 8cc4ed1..26d45c8 100644 --- a/hosts/desktop/default.nix +++ b/hosts/desktop/default.nix @@ -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 = { - checkReversePath = "loose"; - trustedInterfaces = [ "tailscale0" ]; - allowedUDPPorts = [ config.services.tailscale.port ]; - }; + 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; diff --git a/hosts/laptop/default.nix b/hosts/laptop/default.nix index bce5c99..256c224 100644 --- a/hosts/laptop/default.nix +++ b/hosts/laptop/default.nix @@ -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"; }; diff --git a/modules/xrdp.nix b/modules/xrdp.nix new file mode 100644 index 0000000..ddea657 --- /dev/null +++ b/modules/xrdp.nix @@ -0,0 +1,13 @@ +{config, lib, pkgs, ...}: + +{ + environment.systemPackages = [ + pkgs.freerdp + ]; + + services.xrdp = { + enable = true; + defaultWindowManager = "startplasma-x11"; + openFirewall = true; + }; +}