aboutsummaryrefslogtreecommitdiffstats
path: root/modules/home/git.nix
diff options
context:
space:
mode:
authorCopilot <198982749+Copilot@users.noreply.github.com>2026-03-21 12:03:43 +0100
committerGitHub <noreply@github.com>2026-03-21 12:03:43 +0100
commitecfe68dbe12dfdd58125e0f0bcd047832189b04a (patch)
treef725d2ce55b0d8c634499142169856e6f1cd24d6 /modules/home/git.nix
parent011486787f639f2d2474bbaf5a6ef3d77fb45a43 (diff)
downloaddotfiles-ecfe68dbe12dfdd58125e0f0bcd047832189b04a.tar.gz
dotfiles-ecfe68dbe12dfdd58125e0f0bcd047832189b04a.zip
Extend dotfiles to support Linux via standalone home-manager (#6)
Diffstat (limited to 'modules/home/git.nix')
-rw-r--r--modules/home/git.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/home/git.nix b/modules/home/git.nix
index b42161e..e79a760 100644
--- a/modules/home/git.nix
+++ b/modules/home/git.nix
@@ -1,4 +1,4 @@
-{ ... }:
+{ pkgs, ... }:
{
programs.git = {
@@ -40,7 +40,10 @@
merge.log = true;
push.autoSetupRemote = true;
gpg.format = "ssh";
- "gpg \"ssh\"".program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign";
+ "gpg \"ssh\"".program =
+ if pkgs.stdenv.isDarwin
+ then "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
+ else "/opt/1Password/op-ssh-sign";
github.user = "simenandre";
pull.rebase = true;
"url \"ssh://git@github.com/\"".insteadOf = "https://github.com/";