treewide: use attrs instead of list for types.loaOf options
This commit is contained in:
@@ -104,16 +104,16 @@ in
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
users.users = if cfg.user != "git" then {} else singleton
|
||||
{ name = "git";
|
||||
users.users = optionalAttrs (cfg.user != "git") {
|
||||
git = {
|
||||
uid = config.ids.uids.git;
|
||||
description = "Git daemon user";
|
||||
};
|
||||
};
|
||||
|
||||
users.groups = if cfg.group != "git" then {} else singleton
|
||||
{ name = "git";
|
||||
gid = config.ids.gids.git;
|
||||
};
|
||||
users.groups = optionalAttrs (cfg.group != "git") {
|
||||
git.gid = config.ids.gids.git;
|
||||
};
|
||||
|
||||
systemd.services.git-daemon = {
|
||||
after = [ "network.target" ];
|
||||
|
||||
Reference in New Issue
Block a user