Skip to content

Commit

Permalink
Add nixos.users.users.<name>.name
Browse files Browse the repository at this point in the history
Signed-off-by: magic_rb <[email protected]>
  • Loading branch information
MagicRB committed Jan 1, 2025
1 parent 9b34078 commit 0a4cc55
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions modules/nixos/users.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
options = {
nixos.users.users = lib.mkOption {
type = lib.types.attrsOf (
lib.types.submodule {
lib.types.submodule ({name, ...}: {
options = {
description = lib.mkOption { type = lib.types.str; };
createHome = lib.mkOption { type = lib.types.bool; };
Expand All @@ -22,8 +22,13 @@
type = lib.types.bool;
default = false;
};
name = lib.mkOption {
type = lib.types.str;
default = name;
readOnly = true;
};
};
}
})
);
default = { };
};
Expand Down

0 comments on commit 0a4cc55

Please sign in to comment.