summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2018-12-07 13:20:49 +0100
committertv <tv@krebsco.de>2018-12-07 13:20:49 +0100
commit438089810a9fbc9b4fe06bfd36813e686021a213 (patch)
tree4e618194c6cdf1220f19cae2990f609d41766eeb
parent8a425161078af36d4bbc3af7a866af05cdfdcb29 (diff)
parent66bcaa6e1bcaa34cc29776fb41f343e696e09fd6 (diff)
Merge remote-tracking branch 'prism/master'
-rw-r--r--lib/default.nix5
-rw-r--r--lib/types.nix2
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/default.nix b/lib/default.nix
index 4cb0332..348d47e 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -13,8 +13,9 @@ let
ne = x: y: x != y;
mod = x: y: x - y * (x / y);
- genid = import ./genid.nix { inherit lib; };
- genid_uint31 = x: ((lib.genid x) + 16777216) / 2;
+ genid = lib.genid_uint32; # TODO remove
+ genid_uint31 = x: ((lib.genid_uint32 x) + 16777216) / 2;
+ genid_uint32 = import ./genid.nix { inherit lib; };
lpad = n: c: s:
if lib.stringLength s < n
diff --git a/lib/types.nix b/lib/types.nix
index 0168533..41e7515 100644
--- a/lib/types.nix
+++ b/lib/types.nix
@@ -19,7 +19,7 @@ rec {
default = config._module.args.name;
};
cores = mkOption {
- type = positive;
+ type = uint;
};
nets = mkOption {
type = attrsOf net;