diff options
author | lassulus <lass@aidsballs.de> | 2015-07-23 02:26:42 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2015-07-23 02:26:42 +0200 |
commit | 0db3f4ee695148b60238861384b86f0fdc880459 (patch) | |
tree | 8249b4e2713aeabdf4a9d1aeee4c38e1a527e487 /Zpkgs/tv | |
parent | b590d9e21d8c99a91fd419c3e0bea949a9ac6849 (diff) | |
parent | 791a7e79977de76908ab9e33eb64cbd2b02da3ed (diff) |
Merge branch 'tv' into master
Diffstat (limited to 'Zpkgs/tv')
-rw-r--r-- | Zpkgs/tv/genid.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zpkgs/tv/genid.nix b/Zpkgs/tv/genid.nix index 22ef6d29b..c75bec317 100644 --- a/Zpkgs/tv/genid.nix +++ b/Zpkgs/tv/genid.nix @@ -13,7 +13,8 @@ pkgs.writeScriptBin "genid" '' name=$1 hash=$(printf %s "$name" | sha1sum | cut -d\ -f1 | tr a-f A-F) echo " - min=2^16 # bigger than nobody and nogroup, see <nixos/modules/misc/ids.nix> + min=2^24 # bigger than nobody and nogroup, see <nixos/modules/misc/ids.nix> + # and some spare for stuff like lxd. max=2^32 # see 2^(8*sizeof(uid_t)) ibase=16 ($hash + min) % max |