Remote Desktop: Difference between revisions

Fschn90 (talk | contribs)
m tiny fix of syntax in nginx reverse proxy config
Sandro (talk | contribs)
Remove default setting for gnome
Line 254: Line 254:
To fix this we need to enable and start the systemd unit at boot using <code>wantedBy = [ "graphical.target" ];</code> as shown below:
To fix this we need to enable and start the systemd unit at boot using <code>wantedBy = [ "graphical.target" ];</code> as shown below:


<syntaxhighlight lang="nix">services.gnome.gnome-remote-desktop.enable = true; # 'true' does not make the unit start automatically at boot
<syntaxhighlight lang="nix">services.gnome.gnome-remote-desktop.enable = true;
systemd.services.gnome-remote-desktop = {  
systemd.services.gnome-remote-desktop = {  
   wantedBy = [ "graphical.target" ]; # for starting the unit automatically at boot
   wantedBy = [ "graphical.target" ]; # for starting the unit automatically at boot
};
};
services.displayManager.autoLogin.enable = false;
services.displayManager.autoLogin.enable = false;
services.getty.autologinUser = null;
networking.firewall.allowedTCPPorts = [ 3389 ];</syntaxhighlight>
networking.firewall.allowedTCPPorts = [ 3389 ];</syntaxhighlight>