nix/nixos/containers/rdesktop.nix

30 lines
674 B
Nix
Raw Normal View History

2024-03-20 06:18:00 +01:00
{ username, stateVersion... }: {
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:16:31 +01:00
config = { config, pkgs, lib, username, stateVersion, ... }: {
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:17:09 +01:00
../common/desktops/xfce
2024-03-20 06:18:00 +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";
};
};
};
}