Last active
August 25, 2024 19:49
-
-
Save hermannolafs/c1379a090350d2dc369aeabd3c0d8de3 to your computer and use it in GitHub Desktop.
Nixos Gnome RDP Remote Desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
# minimized for clarity. | |
# Some of these might not be needed. After some trial and error | |
# I got this working with these configs. | |
# I do not have the patience to rn an elimination test. | |
services.gnome.gnome-remote-desktop.enable = true; | |
# Enable the X11 windowing system. | |
services.xserver.enable = true; | |
services.xserver.displayManager.gdm.enable = true; | |
services.xserver.desktopManager.gnome.enable = true; | |
services.xrdp.enable = true; | |
services.xrdp.defaultWindowManager = "${pkgs.gnome3.gnome-session}/bin/gnome-session"; | |
services.xrdp.openFirewall = true; | |
environment.systemPackages = with pkgs; [ | |
gnome3.gnome-session | |
]; | |
# Open ports in the firewall. | |
networking.firewall = { | |
enable = true; | |
allowedTCPPorts = [ 3389 ]; | |
allowedUDPPorts = [ 3389 ]; | |
}; | |
} |
Wow thank you so much for this! idk why i had so much trouble with this initially but this worked. I would add thing, if you have just a single user make sure you disable autologin, otherwise it gets angry at least with gnome/gdm
services.displayManager.autoLogin.enable = false;
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this! It helped get me going with gnome xrdp in nix!