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