blob: 6b6b518c7d21412f4288cc46b856d7d2e1c8a017 (
plain) (
tree)
|
|
{
userProfiles,
lib,
...
}:
let
inherit (lib) mkOption;
inherit (lib.types)
submodule
listOf
attrsOf
str
;
in
{
options = {
home = mkOption {
type = attrsOf (
submodule (
{ name, ... }:
{
options = {
name = mkOption {
type = str;
default = name;
};
profiles = mkOption {
type = listOf str;
apply = map (v: userProfiles.${v});
};
};
}
)
);
default = { };
};
};
}
|