Fix substringing in lib/yggdrasil-hq.nix

This commit is contained in:
Ehmry - 2019-11-29 22:29:32 +01:00
parent 5c204eec4d
commit bd95ff2d6d
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ with lib;
let
cfg = config.hq.yggdrasil;
hostNameHash = builtins.hashString "sha256" config.networking.hostName;
hextets = map (i: substring (4 * i) (4 * (i + 1)) hostNameHash) [ 0 1 2 3 ];
hextets = map (i: substring (4 * i) 4 hostNameHash) [ 0 1 2 3 ];
hostAddr = concatStringsSep ":" hextets;
in {
options = with types; {