aboutsummaryrefslogtreecommitdiffstats
path: root/hm/soispha/conf/gpg/default.nix
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-10 14:47:51 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-05-10 14:47:51 +0200
commite8aca66e743d59c884b1cf89a19a51a56b311dda (patch)
tree0298105da378e153c97d541e91a9d5919936774b /hm/soispha/conf/gpg/default.nix
parentfix(hm/conf/gpg): Remove `onlykey` specific configuration (diff)
downloadnixos-config-e8aca66e743d59c884b1cf89a19a51a56b311dda.zip
fix(hm/conf/gpg): Allow mutable keys and thus remove old keys
Diffstat (limited to 'hm/soispha/conf/gpg/default.nix')
-rw-r--r--hm/soispha/conf/gpg/default.nix32
1 files changed, 9 insertions, 23 deletions
diff --git a/hm/soispha/conf/gpg/default.nix b/hm/soispha/conf/gpg/default.nix
index ffc90ffe..15be872b 100644
--- a/hm/soispha/conf/gpg/default.nix
+++ b/hm/soispha/conf/gpg/default.nix
@@ -2,19 +2,12 @@
config,
pkgs,
...
-}: let
- gpg-agent = {
- enable = true;
- enableZshIntegration = true;
- enableScDaemon = true; # smartcards and such things
- pinentryPackage = pkgs.pinentry-tty;
- };
-in {
+}: {
programs.gpg = {
enable = true;
homedir = "${config.xdg.dataHome}/gnupg/onlykey";
- mutableKeys = false;
- mutableTrust = false;
+ mutableKeys = true;
+ mutableTrust = true;
settings = {
default-key = "Benedikt Peetz <benedikt.peetz@b-peetz.de>";
@@ -23,24 +16,17 @@ in {
publicKeys = [
{
- source = ./keys/key_1;
- trust = "ultimate";
- }
- {
source = ./keys/key_2;
- trust = "ultimate";
- }
- {
- source = ./keys/key_3;
- trust = "full";
- }
- {
- source = ./keys/key_4;
trust = "full";
}
];
};
services = {
- inherit gpg-agent;
+ gpg-agent = {
+ enable = true;
+ enableZshIntegration = true;
+ enableScDaemon = true; # smartcards and such things
+ pinentryPackage = pkgs.pinentry-tty;
+ };
};
}