Refactor ssh-keys location.
This commit is contained in:
parent
01353b87ac
commit
407928712c
5 changed files with 10 additions and 28 deletions
6
lib/data.nix
Normal file
6
lib/data.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
rec {
|
||||
getSSHKeys = let
|
||||
sshKeys = builtins.fromTOML (builtins.readFile ../data/ssh-keys.toml);
|
||||
in
|
||||
name: (builtins.mapAttrs (_: value: builtins.attrValues value) sshKeys)."${name}";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue