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