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 =
name:
let
octet = i: builtins.substring (i * 2) 2 hash;
hash = builtins.hashString "sha256" name;
in
lib.concatStringsSep ":" (
[ "02" ]
++ map octet [
++ map (i: builtins.substring (i * 2) 2 hash) [
0
1
2