blob: cb55ea7660000d1cb1a7fb9396bd4d4f2b31fee1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
{ appConfig, lib, ... }: {
description = "static-users";
endOfLife = null;
options.users = lib.mkOption {
type = lib.types.attrsOf (lib.types.submodule ({ name, ... }: {
options.passwordFile = lib.mkOption {
type = lib.types.nullOr lib.types.str;
default = "system-secrets/${appConfig.appId}/${appConfig.users.${name}.username}.password";
};
options.publicKeyFile = lib.mkOption {
type = lib.types.nullOr lib.types.path;
default = null;
};
options.username = lib.mkOption {
type = lib.types.str;
default = name;
};
}));
default = { };
};
}
|