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 =
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