1
0
Fork 0

Tentative sudo rule

This commit is contained in:
Malte Brandy 2019-02-06 17:19:52 +01:00
parent 2037a1723f
commit 9c43ddf719

View file

@ -14,6 +14,7 @@ in
};
};
config = mkIf config.m-0.git-server.enable {
security.sudo.extraRules = [ { commands = [ { command = "sudo nixos-rebuild switch --option tarball-ttl 0"; options = [ "SETENV" "NOPASSWD" ]; users = "git"; } ]; } ];
services.gitolite = {
enable = true;
user = "git";