From 679f5bea9df0d2d4cc4aed0a6d8ff4318f9078ed Mon Sep 17 00:00:00 2001 From: js0ny Date: Mon, 20 Oct 2025 05:19:24 +0100 Subject: [PATCH] nix: gnome-keyring ssh integration --- nixcfgs/modules/nixos/configuration.nix | 5 ++--- nixcfgs/modules/nixos/gnome-keyring.nix | 6 ++++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/nixcfgs/modules/nixos/configuration.nix b/nixcfgs/modules/nixos/configuration.nix index 044460a..140cb44 100644 --- a/nixcfgs/modules/nixos/configuration.nix +++ b/nixcfgs/modules/nixos/configuration.nix @@ -2,8 +2,7 @@ config, pkgs, ... -}: -{ +}: { security.pam.services.login.enableGnomeKeyring = true; # Use latest kernel. @@ -66,7 +65,7 @@ # programs.mtr.enable = true; programs.gnupg.agent = { enable = true; - enableSSHSupport = true; + # enableSSHSupport = true; }; # List services that you want to enable: diff --git a/nixcfgs/modules/nixos/gnome-keyring.nix b/nixcfgs/modules/nixos/gnome-keyring.nix index 45e1cbd..f4c7ab6 100644 --- a/nixcfgs/modules/nixos/gnome-keyring.nix +++ b/nixcfgs/modules/nixos/gnome-keyring.nix @@ -1,7 +1,13 @@ {pkgs, ...}: { + programs.gnupg.agent.enableSSHSupport = false; services.gnome.gnome-keyring.enable = true; services.gnome.gcr-ssh-agent.enable = true; + programs.seahorse.enable = true; programs.ssh = { enableAskPassword = true; + askPassword = "${pkgs.seahorse}/libexec/seahorse/askpass"; }; + environment.systemPackages = with pkgs; [ + seahorse + ]; }