mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
added git user
This commit is contained in:
parent
40c509731e
commit
8b001768eb
1 changed files with 7 additions and 0 deletions
|
|
@ -14,6 +14,13 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
users.groups.git = {};
|
||||||
|
users.users.git = {
|
||||||
|
isSystemUser = true;
|
||||||
|
group = "git";
|
||||||
|
home = "/var/lib/forgejo";
|
||||||
|
shell = "${pkgs.git}/bin/git-shell";
|
||||||
|
};
|
||||||
users.users.nginx = mkIf nginx.enable {
|
users.users.nginx = mkIf nginx.enable {
|
||||||
extraGroups = [ "git" ];
|
extraGroups = [ "git" ];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue