refactor(dotfiles): inline MAC octet helper

This commit was merged in pull request #119.
This commit is contained in:
2026-09-30 11:22:38 -04:00
parent 14c9a418b6
commit 17597526c5

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