refactor(dotfiles): inline MAC octet helper #119

Merged
alexion merged 1 commits from refactor/inline-mac-octet into main 2026-09-30 11:24:03 -04:00

View File

@@ -30,12 +30,11 @@ in
deriveMac = deriveMac =
name: name:
let let
octet = i: builtins.substring (i * 2) 2 hash;
hash = builtins.hashString "sha256" name; hash = builtins.hashString "sha256" name;
in in
lib.concatStringsSep ":" ( lib.concatStringsSep ":" (
[ "02" ] [ "02" ]
++ map octet [ ++ map (i: builtins.substring (i * 2) 2 hash) [
0 0
1 1
2 2