refactor(dotfiles): inline MAC octet helper #119
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user