Testing SSH signing

This commit is contained in:
cnst
2024-09-23 19:00:26 +02:00
parent 49dda26a01
commit 1582871c32
6 changed files with 25 additions and 5 deletions

View File

@@ -16,6 +16,7 @@
"${userModules}/userd/copyq"
"${userModules}/userd/mako"
"${userModules}/userd/udiskie"
"${userModules}/userd/gpg"
"${userModules}/utils/anyrun"
"${userModules}/utils/misc"
"${userModules}/utils/rofi"

View File

@@ -0,0 +1,18 @@
{
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.modules.userd.gpg;
in {
options = {
modules.userd.gpg.enable = mkEnableOption "Enables gpg";
};
config = mkIf cfg.enable {
services.gpg-agent = {
enable = true;
enableSshSupport = true;
};
};
}

View File

@@ -12,6 +12,7 @@ in {
config = mkIf cfg.enable {
programs.ssh = {
enable = true;
userKnownHostsFile = "~/.ssh/known_hosts";
};
};
}