From c068b5cb7b2b47cbc2773b92b01156eae4c9cb49 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Sat, 11 Jun 2022 18:52:41 +0200 Subject: only activate GnuGP agent when on desktop --- common/ssh.nix | 5 ----- usecases/desktop/default.nix | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/ssh.nix b/common/ssh.nix index 8bdabc2..f0a0676 100644 --- a/common/ssh.nix +++ b/common/ssh.nix @@ -3,11 +3,6 @@ inputs: { config, pkgs, modulesPath, lib, ... }: { - programs.gnupg.agent = { - enable = true; - enableSSHSupport = true; - }; - services.openssh = { enable = true; passwordAuthentication = false; diff --git a/usecases/desktop/default.nix b/usecases/desktop/default.nix index ea87de2..f44c725 100644 --- a/usecases/desktop/default.nix +++ b/usecases/desktop/default.nix @@ -10,4 +10,9 @@ inputs: (import ./pipewire.nix inputs) (import ../common/dnscrypt.nix inputs) ]; + + programs.gnupg.agent = { + enable = true; + enableSSHSupport = true; + }; } -- cgit v1.2.3