2024-03-20 11:11:50 +01:00
|
|
|
{ pkgs, username, stateVersion, desktop, ... }: {
|
2024-03-20 09:23:30 +01:00
|
|
|
imports = [
|
2024-03-20 14:59:42 +01:00
|
|
|
# ../../common/desktops/${desktop}
|
2024-03-20 09:23:30 +01:00
|
|
|
../../users/${username}
|
2024-03-20 14:59:42 +01:00
|
|
|
../../common/modules/nixos.nix
|
|
|
|
../../common/modules/networking.nix
|
2024-03-21 00:45:09 +01:00
|
|
|
../../common/services/tailscale-autoconnect.nix
|
2024-03-20 09:23:30 +01:00
|
|
|
];
|
|
|
|
|
2024-03-20 14:59:42 +01:00
|
|
|
networking.firewall.allowedTCPPorts = [ 3389 ];
|
|
|
|
|
|
|
|
services.xserver = {
|
2024-03-20 09:23:30 +01:00
|
|
|
enable = true;
|
2024-03-20 14:59:42 +01:00
|
|
|
desktopManager = {
|
|
|
|
xterm.enable = false;
|
|
|
|
xfce.enable = true;
|
|
|
|
};
|
|
|
|
displayManager.defaultSession = "xfce";
|
|
|
|
};
|
2024-03-20 09:23:30 +01:00
|
|
|
|
|
|
|
services.xrdp = {
|
|
|
|
enable = true;
|
|
|
|
openFirewall = true;
|
2024-03-20 14:59:42 +01:00
|
|
|
defaultWindowManager = "xfce4-session";
|
2024-03-20 09:23:30 +01:00
|
|
|
};
|
|
|
|
}
|