Remote Desktop: Difference between revisions

Crazivik (talk | contribs)
mNo edit summary
Crazivik (talk | contribs)
mNo edit summary
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 by default at boot
<syntaxhighlight lang="nix">services.gnome.gnome-remote-desktop.enable = true; # 'true' does not make the unit start automatically at boot
systemd.services.gnome-remote-desktop = {  
systemd.services.gnome-remote-desktop = {  
   wantedBy = [ "graphical.target" ]; # for starting the unit by default at boot
   wantedBy = [ "graphical.target" ]; # for starting the unit automatically at boot
};
};
services.displayManager.autoLogin.enable = false;
services.displayManager.autoLogin.enable = false;