servers/lib/data.nix

7 lines
194 B
Nix
Raw Permalink Normal View History

2025-06-10 00:09:26 -05:00
rec {
getSSHKeys = let
sshKeys = builtins.fromTOML (builtins.readFile ../data/ssh-keys.toml);
in
name: (builtins.mapAttrs (_: value: builtins.attrValues value) sshKeys)."${name}";
}