From 52f2f7eb05857a67e85acd501c6adcd4d38a5e20 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Wed, 15 May 2024 15:29:49 +0300 Subject: [PATCH] Don't need ssh auth for vpses --- modules/git.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/git.nix b/modules/git.nix index 70605b6..c7b990a 100644 --- a/modules/git.nix +++ b/modules/git.nix @@ -125,13 +125,14 @@ in homeConfiguration { # https://bernsteinbear.com/git alias.recent = "! git branch --sort=-committerdate --format=\"%(committerdate:relative)%09%(refname:short)\" | head -10"; - + } (mkIf isDesktop { core.sshCommand = "ssh -i ~/.ssh/id"; url."ssh://git@github.com/".insteadOf = "https://github.com/"; url."ssh://forgejo@${gitDomain}:${toString (head self.cube.services.openssh.ports)}/".insteadOf = gitUrl; - } (mkIf isDesktop { + commit.gpgSign = true; tag.gpgSign = true; + gpg.format = "ssh"; user.signingKey = "~/.ssh/id"; });