configure RDP

This commit is contained in:
Andreas Schaafsma 2024-10-08 08:25:50 +02:00
parent 252d9b5e2f
commit d551c553e7

View File

@ -58,12 +58,14 @@
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [
59010 #SoundWireServer
];
networking.firewall.allowedUDPPorts = [
59010 #SoundWireServer
];
networking.firewall.allowedTCPPorts = [
59010 #SoundWireServer
3389 #RDP
];
networking.firewall.allowedUDPPorts = [
59010 #SoundWireServer
3389 #RDP
];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
@ -89,6 +91,16 @@
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
'';
};
services.xrdp.enable = true;
services.xrdp.defaultWindowManager = "${pkgs.gnome-session}/bin/gnome-session";
# services.xrdp.openFirewall = true;
# Disable the GNOME3/GDM auto-suspend feature that cannot be disabled in GUI!
# If no user is logged in, the machine will power down after 20 minutes.
systemd.targets.sleep.enable = false;
systemd.targets.suspend.enable = false;
systemd.targets.hibernate.enable = false;
systemd.targets.hybrid-sleep.enable = false;
}
];
specialArgs = { inherit inputs; };