From 98b32cb9e6338d9f4e3b5617d25679b3aab70c58 Mon Sep 17 00:00:00 2001 From: "Reid \"reidlab" Date: Fri, 24 May 2024 17:46:11 -0700 Subject: [PATCH] the authentication update --- README.md | 2 -- modules/software/dev/git.nix | 10 ++++++++++ modules/software/tools/gpg.nix | 2 ++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b904ffc..5ffc1f2 100755 --- a/README.md +++ b/README.md @@ -21,6 +21,4 @@ each host should have these files: - divide steam and gamemode? - cursor size theme option - sddm x11 support, too. or maybe just remove x11 - - gnome-keyring basic libsecret support works, add ssh too plz :heart: - - git gpg signing - hyprcursor \ No newline at end of file diff --git a/modules/software/dev/git.nix b/modules/software/dev/git.nix index 0ff90a9..7e3a132 100644 --- a/modules/software/dev/git.nix +++ b/modules/software/dev/git.nix @@ -16,6 +16,11 @@ in { userName = ''Reid "reidlab"''; userEmail = "reidlab325@gmail.com"; + signing = { + signByDefault = true; + key = "DAF5EAF6665839FD"; + }; + ignores = [ # General "*.direnv" @@ -37,8 +42,13 @@ in { }; extraConfig = { + # password caching w libsecret, use gnome-keyring or kwallet + credential.helper = "${pkgs.gitFull}/bin/git-credential-libsecret"; + push.autoSetupRemote = true; + push.gpgSign = "if-asked"; pull.rebase = true; + init.defaultBranch = "main"; }; }; diff --git a/modules/software/tools/gpg.nix b/modules/software/tools/gpg.nix index 2761cba..a36baaf 100644 --- a/modules/software/tools/gpg.nix +++ b/modules/software/tools/gpg.nix @@ -12,6 +12,8 @@ in { hm.programs.gpg.enable = true; hm.services.gpg-agent = { enable = true; + enableExtraSocket = true; + enableSshSupport = true; pinentryPackage = pkgs.pinentry-gnome3; };