nixos/tuptime: change group/user to match upstream
This commit is contained in:
parent
1dca47c19a
commit
73a90b0154
|
@ -32,7 +32,10 @@ in {
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.tuptime ];
|
environment.systemPackages = [ pkgs.tuptime ];
|
||||||
|
|
||||||
users.users.tuptime.description = "tuptime database owner";
|
users = {
|
||||||
|
groups._tuptime.members = [ "_tuptime" ];
|
||||||
|
users._tuptime.description = "tuptime database owner";
|
||||||
|
};
|
||||||
|
|
||||||
systemd = {
|
systemd = {
|
||||||
services = {
|
services = {
|
||||||
|
@ -45,7 +48,7 @@ in {
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
StateDirectory = "tuptime";
|
StateDirectory = "tuptime";
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
User = "tuptime";
|
User = "_tuptime";
|
||||||
RemainAfterExit = true;
|
RemainAfterExit = true;
|
||||||
ExecStart = "${pkgs.tuptime}/bin/tuptime -x";
|
ExecStart = "${pkgs.tuptime}/bin/tuptime -x";
|
||||||
ExecStop = "${pkgs.tuptime}/bin/tuptime -xg";
|
ExecStop = "${pkgs.tuptime}/bin/tuptime -xg";
|
||||||
|
@ -57,7 +60,7 @@ in {
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
StateDirectory = "tuptime";
|
StateDirectory = "tuptime";
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
User = "tuptime";
|
User = "_tuptime";
|
||||||
ExecStart = "${pkgs.tuptime}/bin/tuptime -x";
|
ExecStart = "${pkgs.tuptime}/bin/tuptime -x";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue