summaryrefslogtreecommitdiffstats
path: root/krebs/4lib
diff options
context:
space:
mode:
authorlassulus <lass@aidsballs.de>2016-04-27 12:47:13 +0200
committerlassulus <lass@aidsballs.de>2016-04-27 12:47:13 +0200
commit94fa4005d601ed07be8e23f2c9126573a07bf270 (patch)
tree47a67f455cabddfc14f1dc27a8393e2f4750ca3c /krebs/4lib
parent64f493ccbf31f824d0c60821546644d6e0b3d842 (diff)
parent1241c61b8867b46a572605a69dd9b1fead65aa2b (diff)
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'krebs/4lib')
-rw-r--r--krebs/4lib/types.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/krebs/4lib/types.nix b/krebs/4lib/types.nix
index 405a91e45..56d1d55c3 100644
--- a/krebs/4lib/types.nix
+++ b/krebs/4lib/types.nix
@@ -213,6 +213,18 @@ types // rec {
};
};
});
+ group = submodule ({ config, ... }: {
+ options = {
+ name = mkOption {
+ type = username;
+ default = config._module.args.name;
+ };
+ gid = mkOption {
+ type = int;
+ default = genid config.name;
+ };
+ };
+ });
addr = either addr4 addr6;
addr4 = mkOptionType {