diff options
author | tv <tv@krebsco.de> | 2016-04-27 01:33:39 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-04-27 01:45:47 +0200 |
commit | 87dabec64d9dbe35f1fcc35b7b4c8ab00a02cf84 (patch) | |
tree | 84e693a0ce0851d633f672274603fd9645340174 /krebs/4lib | |
parent | 6121befdb64cccf9ff9a562b42217289c43c67f4 (diff) |
krebs types.group: init
Diffstat (limited to 'krebs/4lib')
-rw-r--r-- | krebs/4lib/types.nix | 12 |
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 { |