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