1
0
Fork 0

Make git user lingering for stability

This commit is contained in:
Malte Brandy 2019-04-26 19:22:47 +02:00
parent a272991332
commit 664f422c2b

View file

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