nix/nixos/containers/rdesktop.nix
2024-03-20 12:00:50 +09:00

29 lines
649 B
Nix

{ username, stateVersion, ... }: {
networking.firewall.allowedTCPPorts = [ 3390 ];
containers.desktop = {
autoStart = true;
privateNetwork = false;
config = { config, pkgs, lib, ... }: {
networking.hostName = "nixos-rdesktop";
system.stateVersion = stateVersion;
imports = [
../common/desktops/xfce
../users/${username}
];
networking.firewall = {
enable = true;
allowedTCPPorts = [ 3390 ];
};
services.xrdp = {
enable = true;
openFirewall = true;
port = 3390;
defaultWindowManager = "xfce4-session";
};
};
};
}