From 21f936af7b3a480250f6cda921d297181934e5bf Mon Sep 17 00:00:00 2001 From: iFargle Date: Sun, 27 Aug 2023 20:51:24 +0900 Subject: [PATCH] Test GNUPG --- nixos/common/services/gnupg-agent.nix | 8 ++++++++ nixos/common/services/openssh.nix | 3 --- nixos/default.nix | 1 + 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 nixos/common/services/gnupg-agent.nix diff --git a/nixos/common/services/gnupg-agent.nix b/nixos/common/services/gnupg-agent.nix new file mode 100644 index 00000000..68fcbb6a --- /dev/null +++ b/nixos/common/services/gnupg-agent.nix @@ -0,0 +1,8 @@ +{pkgs, cfg, ... }: { + programs.gnupg.agent = { + enable = true; + enableSSHSupport = true; + enableBrowserSocket = true; + pinEntryFlavor = "emacs"; + }; +} \ No newline at end of file diff --git a/nixos/common/services/openssh.nix b/nixos/common/services/openssh.nix index baf97dd5..8455e856 100644 --- a/nixos/common/services/openssh.nix +++ b/nixos/common/services/openssh.nix @@ -49,7 +49,4 @@ -- ''; }; - - # Enable GPG Agent support: - programs.gnupg.agent.enableSSHSupport = true; } \ No newline at end of file diff --git a/nixos/default.nix b/nixos/default.nix index e69dd62c..f0a5b228 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -7,6 +7,7 @@ ./common/services/telegraf.nix ./common/services/tailscale.nix ./common/services/fwupd.nix + ./common/services/gnupg-agent.nix # NixOS Modules ./common/modules/fonts.nix # Font Configs