From 6a5d318cb7ed5fbaa17f51690b88cc8fbb4691cb Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Thu, 20 Oct 2022 10:28:48 +0300 Subject: [PATCH] move gnupg agent and pass store to machine module --- machines/modules/gnupg.nix | 3 +++ users/modules/pass.nix | 7 ------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/machines/modules/gnupg.nix b/machines/modules/gnupg.nix index e0f6a02..38e2396 100644 --- a/machines/modules/gnupg.nix +++ b/machines/modules/gnupg.nix @@ -4,5 +4,8 @@ programs.gnupg.agent = { enable = true; enableSSHSupport = config.services.openssh.enable; + pinentryFlavor = "gtk2"; }; + + services.passSecretService.enable = true; } diff --git a/users/modules/pass.nix b/users/modules/pass.nix index a9c9af7..be27ddd 100644 --- a/users/modules/pass.nix +++ b/users/modules/pass.nix @@ -15,11 +15,4 @@ in PASSWORD_STORE_DIR = "${passDataDir}/store"; }; }; - services.pass-secret-service.enable = true; - - programs.gpg.enable = true; - services.gpg-agent = { - enable = true; - pinentryFlavor = "gtk2"; - }; }