17 lines
662 B
Nix
17 lines
662 B
Nix
let
|
|
pkgs = import <nixpkgs> { };
|
|
publicKeysURL =
|
|
"https://git.kun.is/pim.keys"; # https://github.com/pizzapim.keys
|
|
publicKeysFile = builtins.fetchurl { url = publicKeysURL; };
|
|
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;
|
|
"syncthing-key.pem.age".publicKeys = publicKeys;
|
|
"syncthing-cert.pem.age".publicKeys = publicKeys;
|
|
"keepassxc.ini.age".publicKeys =
|
|
publicKeys; # Secret agent causes private keys in config file.
|
|
"sops-keys.txt.age".publicKeys = publicKeys;
|
|
}
|