krebs types.uint: init
This commit is contained in:
parent
b5bdd9aed4
commit
6fcc35afb0
|
@ -154,6 +154,12 @@ types // rec {
|
||||||
merge = mergeOneOption;
|
merge = mergeOneOption;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
uint = mkOptionType {
|
||||||
|
name = "unsigned integer";
|
||||||
|
check = x: isInt x && x >= 0;
|
||||||
|
merge = mergeOneOption;
|
||||||
|
};
|
||||||
|
|
||||||
secret-file = submodule ({ config, ... }: {
|
secret-file = submodule ({ config, ... }: {
|
||||||
options = {
|
options = {
|
||||||
path = mkOption { type = str; };
|
path = mkOption { type = str; };
|
||||||
|
|
Loading…
Reference in a new issue