Make git user lingering for stability
This commit is contained in:
parent
a272991332
commit
664f422c2b
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@ in
|
|||
upgrade-command = "${pkgs.systemd}/bin/systemctl start nixos-upgrade.service";
|
||||
in
|
||||
mkIf config.m-0.git-server.enable {
|
||||
users.users.git.linger = true; # Frequent restarting of the systemd-user-unit leads to errors
|
||||
security.sudo.extraRules = [ { commands = [ { command = upgrade-command; options = [ "NOPASSWD" ]; } ]; users = [ "git" ]; } ];
|
||||
services.gitolite = {
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in a new issue