nix/nixos/containers/rdesktop/default.nix
2024-03-21 08:45:09 +09:00

26 lines
606 B
Nix

{ pkgs, username, stateVersion, desktop, ... }: {
imports = [
# ../../common/desktops/${desktop}
../../users/${username}
../../common/modules/nixos.nix
../../common/modules/networking.nix
../../common/services/tailscale-autoconnect.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";
};
}