diff options
author | Evils <evils.devils@protonmail.com> | 2020-05-31 04:11:56 +0200 |
---|---|---|
committer | Evils <evils.devils@protonmail.com> | 2020-06-20 05:34:37 +0200 |
commit | 73a90b015433e68a95a4ecdd14bfa3c175d7f7f6 (patch) | |
tree | 0f22d17805e09494ac28ab4e329f83238813b5c9 /nixos | |
parent | 1dca47c19a9cc3aa2d481a35cacf49eb2daa1843 (diff) |
nixos/tuptime: change group/user to match upstream
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/monitoring/tuptime.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/nixos/modules/services/monitoring/tuptime.nix b/nixos/modules/services/monitoring/tuptime.nix index 731260a5c20af..8f79d91659901 100644 --- a/nixos/modules/services/monitoring/tuptime.nix +++ b/nixos/modules/services/monitoring/tuptime.nix @@ -32,7 +32,10 @@ in { environment.systemPackages = [ pkgs.tuptime ]; - users.users.tuptime.description = "tuptime database owner"; + users = { + groups._tuptime.members = [ "_tuptime" ]; + users._tuptime.description = "tuptime database owner"; + }; systemd = { services = { @@ -45,7 +48,7 @@ in { serviceConfig = { StateDirectory = "tuptime"; Type = "oneshot"; - User = "tuptime"; + User = "_tuptime"; RemainAfterExit = true; ExecStart = "${pkgs.tuptime}/bin/tuptime -x"; ExecStop = "${pkgs.tuptime}/bin/tuptime -xg"; @@ -57,7 +60,7 @@ in { serviceConfig = { StateDirectory = "tuptime"; Type = "oneshot"; - User = "tuptime"; + User = "_tuptime"; ExecStart = "${pkgs.tuptime}/bin/tuptime -x"; }; }; |