From f78899b758010d3b4039eba05a4b827e48581a1d Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Fri, 7 Nov 2025 10:57:52 +0100 Subject: [PATCH] ssh agent --- home-manager/hyprland/hyprland-settings.nix | 3 +++ systems/laptop/configuration.nix | 1 + 2 files changed, 4 insertions(+) diff --git a/home-manager/hyprland/hyprland-settings.nix b/home-manager/hyprland/hyprland-settings.nix index 8dad8ae..4b7efd3 100644 --- a/home-manager/hyprland/hyprland-settings.nix +++ b/home-manager/hyprland/hyprland-settings.nix @@ -99,6 +99,9 @@ in "LIBVA_DRIVER_NAME,nvidia" "GBM_BACKEND,nvidia-drm" "__GLX_VENDOR_LIBRARY_NAME,nvidia" + ] + ++ lib.optionals osConfig.programs.ssh.startAgent [ + "SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent" ]; # For all categories, see https://wiki.hyprland.org/Configuring/Variables/ diff --git a/systems/laptop/configuration.nix b/systems/laptop/configuration.nix index ba058b9..514023c 100644 --- a/systems/laptop/configuration.nix +++ b/systems/laptop/configuration.nix @@ -63,6 +63,7 @@ in ;; esac ''; + programs.ssh.startAgent = true; custom = { cli-tools.enable = true;