diff --git a/nixos/containers/rdesktop.nix b/nixos/containers/rdesktop.nix index ad32b8ab..81caacf1 100644 --- a/nixos/containers/rdesktop.nix +++ b/nixos/containers/rdesktop.nix @@ -1,15 +1,16 @@ -{ username, stateVersion, ... }: { +{ username, stateVersion, desktop, ... }: { networking.firewall.allowedTCPPorts = [ 3390 ]; containers.rdesktop = { autoStart = true; privateNetwork = false; + specialArgs = { inherit username stateVersion desktop; }; config = { config, pkgs, lib, username, stateVersion, ... }: { networking.hostName = "nixos-rdesktop"; system.stateVersion = stateVersion; imports = [ - ../common/desktops/xfce + ../common/desktops/${desktop} ../users/${username} ]; diff --git a/nixos/hosts/framework-server/default.nix b/nixos/hosts/framework-server/default.nix index 9dc89d08..537d8909 100644 --- a/nixos/hosts/framework-server/default.nix +++ b/nixos/hosts/framework-server/default.nix @@ -8,7 +8,7 @@ ../../common/modules/ssh-luks.nix ../../common/services/docker.nix ../../common/services/tailscale-autoconnect.nix - ../../containers/rdesktop.nix + ../../containers/rdesktop.nix {desktop = "xfce";} ./disks.nix ./builder.nix ./wireguard.nix