servers/lib/data.nix
2026-02-24 00:00:35 -08:00

7 lines
202 B
Nix

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