nixos/modules: users.(extraUsers|extraGroup->users|group)
This commit is contained in:
@@ -104,13 +104,13 @@ in
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
users.extraUsers = if cfg.user != "git" then {} else singleton
|
||||
users.users = if cfg.user != "git" then {} else singleton
|
||||
{ name = "git";
|
||||
uid = config.ids.uids.git;
|
||||
description = "Git daemon user";
|
||||
};
|
||||
|
||||
users.extraGroups = if cfg.group != "git" then {} else singleton
|
||||
users.groups = if cfg.group != "git" then {} else singleton
|
||||
{ name = "git";
|
||||
gid = config.ids.gids.git;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user