diff options
author | tv <tv@krebsco.de> | 2018-12-07 13:20:49 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-12-07 13:20:49 +0100 |
commit | 1d3a3c8104eac3e9a4ee7cdd961fcd61f706d173 (patch) | |
tree | 53ad5d4d3ecc88eeabba682fd1741bf3d1d96aa8 /lib | |
parent | bfcf6ad0adaedf0d069850824fbbb55e4af20c5e (diff) | |
parent | 43be8e6bb38ea99ed489a8b6633ebb33b96b6282 (diff) |
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'lib')
-rw-r--r-- | lib/default.nix | 5 | ||||
-rw-r--r-- | lib/types.nix | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/default.nix b/lib/default.nix index 4cb0332ca..348d47e85 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 016853300..41e75154e 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; |