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";
};
};
}

View File

@@ -53,6 +53,10 @@
copyq = {
enable = true;
};
gpg = {
enable = true;
};
mako = {
enable = true;
};

View File

@@ -83,10 +83,6 @@ in {
ZSH_THEME_VIRTUALENV_SUFFIX=$ZSH_THEME_VIRTUAL_ENV_PROMPT_SUFFIX
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=241'
${lib.optionalString config.services.gpg-agent.enable ''
gnupg_path=$(ls $XDG_RUNTIME_DIR/gnupg)
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gnupg/$gnupg_path/S.gpg-agent.ssh"
''}
microfetch
'';
};