gpg: add it

This commit is contained in:
Sam W 2022-04-03 23:00:27 +01:00
parent 55e75c2314
commit b20949e133
2 changed files with 21 additions and 0 deletions

20
home/gpg.nix Normal file
View File

@ -0,0 +1,20 @@
{ pkgs, ... }: {
programs.gpg = {
enable = true;
mutableKeys = false;
mutableTrust = false;
publicKeys = [
{
source = ./wlcx_gpg_public.asc;
trust = "ultimate";
}
{
source = ./yubikey_pgp_public.asc;
trust = "ultimate";
}
];
# make yubikey work on macos? lolgpg
# https://github.com/NixOS/nixpkgs/issues/155629
scdaemonSettings = { disable-ccid = true; };
};
}

View File

@ -11,6 +11,7 @@
./vim.nix ./vim.nix
./vim-dev.nix ./vim-dev.nix
./passwords.nix ./passwords.nix
./gpg.nix
]; ];
}; };
server = { ... }: { imports = [ ./default.nix ./git.nix ./vim.nix ]; }; server = { ... }: { imports = [ ./default.nix ./git.nix ./vim.nix ]; };