nixos-configs/secrets/secrets.nix
2023-10-16 12:11:29 +02:00

13 lines
533 B
Nix

let
pkgs = import <nixpkgs> {};
publicKeysFile = builtins.fetchurl { url = "https://github.com/pizzapim.keys"; };
publicKeys = pkgs.lib.strings.splitString "\n" (pkgs.lib.strings.fileContents publicKeysFile);
in
{
"wg-quick-home-privkey.age".publicKeys = publicKeys;
"wg-quick-home-preshared-key.age".publicKeys = publicKeys;
"sue_ed25519.age".publicKeys = publicKeys;
"sue_azure_rsa.age".publicKeys = publicKeys;
"syncthing-key.pem.age".publicKeys = publicKeys;
"syncthing-cert.pem.age".publicKeys = publicKeys;
}