1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00

nextcloud-client: add stop and restart settings to the service

The service fails on Home Manager switch every now and then. This
commit add explicit stop and restart settings to it.

This also adds some additional parameters used in the upstream service
definition.
This commit is contained in:
mcnesium 2025-09-14 14:24:32 +02:00 committed by Robert Helgesson
parent be9c10d4a7
commit bf7056c6a2

View file

@ -40,6 +40,12 @@ in
Environment = [ "PATH=${config.home.profileDirectory}/bin" ];
ExecStart =
"${cfg.package}/bin/nextcloud" + (lib.optionalString cfg.startInBackground " --background");
ExecStop = "${cfg.package}/bin/nextcloud --quit";
KillMode = "process";
Restart = "on-failure";
RestartSec = "5s";
NoNewPrivileges = true;
RestrictRealtime = true;
};
Install = {