extract ssh idle sleep/shutdown configuration
1 file changed, 1 insertion(+), 8 deletions(-)
changed files
M system/roles/desktop.nix → system/roles/desktop.nix
@@ -1,15 +1,8 @@ -{ pkgs, ... }: { imports = [ ./base.nix + ../settings/configuration/ssh-inhibit-idle.nix ]; - - services.openssh.startWhenNeeded = true; - systemd.services."ssh-no-sleep@" = { - bindsTo = [ "sshd@%i.service" ]; - wantedBy = [ "sshd@.service" ]; - serviceConfig.ExecStart = "${pkgs.systemd}/bin/systemd-inhibit --mode block --what sleep --who 'ssh session '%I --why 'session still active' ${pkgs.coreutils}/bin/sleep infinity"; - }; services.syncthing = { systemService = false;