nix/nixos/containers/rdesktop.nix

27 lines
569 B
Nix
Raw Normal View History

2024-03-20 03:44:14 +01:00
{ 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";
};
};
};
}