krebs types.uint: init

This commit is contained in:
tv 2016-06-07 22:36:40 +02:00
parent b5bdd9aed4
commit 6fcc35afb0

View File

@ -154,6 +154,12 @@ types // rec {
merge = mergeOneOption;
};
uint = mkOptionType {
name = "unsigned integer";
check = x: isInt x && x >= 0;
merge = mergeOneOption;
};
secret-file = submodule ({ config, ... }: {
options = {
path = mkOption { type = str; };