summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-04-27 01:33:39 +0200
committertv <tv@krebsco.de>2016-04-27 01:45:47 +0200
commit87dabec64d9dbe35f1fcc35b7b4c8ab00a02cf84 (patch)
tree84e693a0ce0851d633f672274603fd9645340174
parent6121befdb64cccf9ff9a562b42217289c43c67f4 (diff)
krebs types.group: init
-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 {