summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2022-06-11 18:52:41 +0200
committerMinijackson <minijackson@riseup.net>2022-06-11 18:52:41 +0200
commitc068b5cb7b2b47cbc2773b92b01156eae4c9cb49 (patch)
treee25c0b2430b851c1e0a3e49b2ac37cce0c38d0a6
parent6eb1d2d8ab6676b42503b4c4fa9642ef51eb2009 (diff)
downloadnixos-config-reborn-c068b5cb7b2b47cbc2773b92b01156eae4c9cb49.tar.gz
nixos-config-reborn-c068b5cb7b2b47cbc2773b92b01156eae4c9cb49.zip
only activate GnuGP agent when on desktop
-rw-r--r--common/ssh.nix5
-rw-r--r--usecases/desktop/default.nix5
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:
3{ config, pkgs, modulesPath, lib, ... }: 3{ config, pkgs, modulesPath, lib, ... }:
4 4
5{ 5{
6 programs.gnupg.agent = {
7 enable = true;
8 enableSSHSupport = true;
9 };
10
11 services.openssh = { 6 services.openssh = {
12 enable = true; 7 enable = true;
13 passwordAuthentication = false; 8 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:
10 (import ./pipewire.nix inputs) 10 (import ./pipewire.nix inputs)
11 (import ../common/dnscrypt.nix inputs) 11 (import ../common/dnscrypt.nix inputs)
12 ]; 12 ];
13
14 programs.gnupg.agent = {
15 enable = true;
16 enableSSHSupport = true;
17 };
13} 18}