From 4f28266501697d0d11a816854e85a1f9f7ee3706 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Fri, 2 Aug 2024 06:23:39 +0800 Subject: [PATCH] dust: libsecret, pam, polkit, ssh, gpg extremely confusing... it wont auto open keyring for some reason --- home/applications/git/default.nix | 6 ++++-- hosts/dust/default.nix | 4 ++++ hosts/dust/home/default.nix | 1 - 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/home/applications/git/default.nix b/home/applications/git/default.nix index 3c18c28..9122656 100644 --- a/home/applications/git/default.nix +++ b/home/applications/git/default.nix @@ -1,6 +1,7 @@ -{ - programs.git = { +{pkgs, ...}: { + programs.git = rec { enable = true; + package = pkgs.gitFull; # overriding takes forever to compile delta.enable = true; userName = "Guanran Wang"; @@ -12,6 +13,7 @@ init.defaultBranch = "master"; pull.rebase = true; push.autoSetupRemote = true; + credential.helper = "${package}/bin/git-credential-libsecret"; }; }; diff --git a/hosts/dust/default.nix b/hosts/dust/default.nix index 48f7fc2..4041299 100644 --- a/hosts/dust/default.nix +++ b/hosts/dust/default.nix @@ -35,6 +35,10 @@ programs.adb.enable = true; programs.localsend.enable = true; programs.seahorse.enable = true; + programs.ssh = { + startAgent = true; + enableAskPassword = true; + }; services.power-profiles-daemon.enable = true; services.gvfs.enable = true; diff --git a/hosts/dust/home/default.nix b/hosts/dust/home/default.nix index f9aa3e6..2f90df5 100644 --- a/hosts/dust/home/default.nix +++ b/hosts/dust/home/default.nix @@ -42,5 +42,4 @@ ]; programs.obs-studio.enable = true; - services.ssh-agent.enable = true; }