nix/nixos/containers/rdesktop/default.nix
2024-03-20 19:11:50 +09:00

18 lines
384 B
Nix

{ pkgs, username, stateVersion, desktop, ... }: {
imports = [
../../common/desktops/${desktop}
../../users/${username}
];
networking.firewall = {
enable = true;
allowedTCPPorts = [ 3390 ];
};
services.xrdp = {
enable = true;
openFirewall = true;
port = 3390;
defaultWindowManager = "${pkgs.xfce.xfce4-session}/bin/xfce4-session";
};
}