Remote Desktop: Difference between revisions
m tiny fix of syntax in nginx reverse proxy config |
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; | <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; | ||
networking.firewall.allowedTCPPorts = [ 3389 ];</syntaxhighlight> | networking.firewall.allowedTCPPorts = [ 3389 ];</syntaxhighlight> | ||