From bd95ff2d6d2e7d1b0949b369037ddc4b8a3b02b6 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Fri, 29 Nov 2019 22:29:32 +0100 Subject: [PATCH] Fix substringing in lib/yggdrasil-hq.nix --- lib/yggdrasil-hq.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/yggdrasil-hq.nix b/lib/yggdrasil-hq.nix index ce92f017..21d026b3 100644 --- a/lib/yggdrasil-hq.nix +++ b/lib/yggdrasil-hq.nix @@ -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; {