initial commit
This commit is contained in:
commit
ebc1be5217
143 changed files with 7721 additions and 0 deletions
63
modules/top/inventory/users.nix
Normal file
63
modules/top/inventory/users.nix
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
{lib, ...}: {
|
||||
options.dendritic.users = lib.mkOption {
|
||||
type = lib.types.attrsOf (
|
||||
lib.types.submodule ({name, ...}: {
|
||||
options = {
|
||||
name = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = name;
|
||||
};
|
||||
|
||||
username = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = name;
|
||||
};
|
||||
|
||||
nixosModules = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.deferredModule;
|
||||
default = [];
|
||||
};
|
||||
|
||||
homeModules = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.deferredModule;
|
||||
default = [];
|
||||
};
|
||||
|
||||
homes = lib.mkOption {
|
||||
type = lib.types.attrsOf (
|
||||
lib.types.submodule ({name, ...}: {
|
||||
options = {
|
||||
host = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = name;
|
||||
};
|
||||
|
||||
system = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
};
|
||||
|
||||
stateVersion = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "25.05";
|
||||
};
|
||||
|
||||
roles = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = [];
|
||||
};
|
||||
|
||||
extraModules = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.deferredModule;
|
||||
default = [];
|
||||
};
|
||||
};
|
||||
})
|
||||
);
|
||||
default = {};
|
||||
};
|
||||
};
|
||||
})
|
||||
);
|
||||
default = {};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue