Refactor ssh-keys location.

This commit is contained in:
Lorenzo Good 2025-06-10 00:09:26 -05:00
parent 01353b87ac
commit 407928712c
Signed by: lorenzo
GPG key ID: 7FCD64BD81180ED0
5 changed files with 10 additions and 28 deletions

6
lib/data.nix Normal file
View 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}";
}