summaryrefslogtreecommitdiff
path: root/secrets/secrets.nix
blob: 57cce8777ffed48955dab0b1f76dad0e79892163 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
let
  inherit (builtins) attrValues readFile;
  user-key = readFile ./user-ssh-key.pub;
  keys = [ user-key ] ++ (attrValues (import ./host-pub-keys.nix));
in
{
  "user-ssh-key.age".publicKeys = keys;
  "personal-mail.age".publicKeys = keys;
  "work-mail.age".publicKeys = keys;
  "university-mail.age".publicKeys = keys;
  "authinfo.age".publicKeys = keys;
  "user-pass.age".publicKeys = keys;
}