nixos/tuptime: change group/user to match upstream

This commit is contained in:
Evils 2020-05-31 04:11:56 +02:00
parent 1dca47c19a
commit 73a90b0154
1 changed files with 6 additions and 3 deletions

View File

@ -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";
}; };
}; };