blob: 6b6b518c7d21412f4288cc46b856d7d2e1c8a017 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{
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 = { };
};
};
}
|