diff options
author | lassulus <lass@aidsballs.de> | 2015-10-15 15:18:20 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-10-15 15:18:20 +0200 |
commit | a8816bcfe351c1fe9e1a00b27707b56eb544d390 (patch) | |
tree | b6aadaa1cde000d791699925dd67bde38046b411 /krebs/4lib/types.nix | |
parent | 96f13eb838f9bee37a980170f281d3839deb2719 (diff) | |
parent | 2c65fed39714164ff4b28e3352440538ae262c79 (diff) |
Merge remote-tracking branch 'pnp/master'
Diffstat (limited to 'krebs/4lib/types.nix')
-rw-r--r-- | krebs/4lib/types.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/krebs/4lib/types.nix b/krebs/4lib/types.nix index 039f803ef..b3d2c8b70 100644 --- a/krebs/4lib/types.nix +++ b/krebs/4lib/types.nix @@ -147,6 +147,13 @@ types // rec { merge = mergeOneOption; }; + suffixed-str = suffs: + mkOptionType { + name = "string suffixed by ${concatStringsSep ", " suffs}"; + check = x: isString x && any (flip hasSuffix x) suffs; + merge = mergeOneOption; + }; + user = submodule { options = { mail = mkOption { |