nix/nixos/containers/rdesktop/default.nix
2024-03-20 22:59:42 +09:00

25 lines
554 B
Nix

{ pkgs, username, stateVersion, desktop, ... }: {
imports = [
# ../../common/desktops/${desktop}
../../users/${username}
../../common/modules/nixos.nix
../../common/modules/networking.nix
];
networking.firewall.allowedTCPPorts = [ 3389 ];
services.xserver = {
enable = true;
desktopManager = {
xterm.enable = false;
xfce.enable = true;
};
displayManager.defaultSession = "xfce";
};
services.xrdp = {
enable = true;
openFirewall = true;
defaultWindowManager = "xfce4-session";
};
}