nix/nixos/containers/rdesktop.nix

31 lines
764 B
Nix
Raw Normal View History

2024-03-20 06:20:57 +01:00
{ username, stateVersion, desktop, ... }: {
2024-03-20 04:00:50 +01:00
networking.firewall.allowedTCPPorts = [ 3390 ];
2024-03-20 06:16:31 +01:00
containers.rdesktop = {
2024-03-20 03:44:14 +01:00
autoStart = true;
privateNetwork = false;
2024-03-20 06:20:57 +01:00
specialArgs = { inherit username stateVersion desktop; };
2024-03-20 06:25:21 +01:00
config = { config, pkgs, lib, username, stateVersion, desktop, ... }: {
2024-03-20 03:44:14 +01:00
networking.hostName = "nixos-rdesktop";
2024-03-20 04:00:50 +01:00
system.stateVersion = stateVersion;
2024-03-20 03:44:14 +01:00
imports = [
2024-03-20 06:20:57 +01:00
../common/desktops/${desktop}
2024-03-20 06:30:57 +01:00
# ../users/${username}
2024-03-20 03:44:14 +01:00
];
networking.firewall = {
enable = true;
allowedTCPPorts = [ 3390 ];
2024-03-20 06:16:31 +01:00
};
2024-03-20 03:44:14 +01:00
services.xrdp = {
enable = true;
openFirewall = true;
port = 3390;
defaultWindowManager = "xfce4-session";
};
};
};
}