diff options
author | Frankie B. <git@diskfloppy.me> | 2024-02-18 01:09:22 +0000 |
---|---|---|
committer | Frankie B. <git@diskfloppy.me> | 2024-02-18 01:09:22 +0000 |
commit | 241347b92602165fe3a781818db6ea58c03b499d (patch) | |
tree | e92c3e7ef8cda74a986adc95e4b375780a226fe0 /homes/floppydisk/git.nix | |
parent | 782f76ba113f47d53af95e991eddb28cd4ea9e3e (diff) |
Janky "fix" to make 1pass git/ssh work
Diffstat (limited to 'homes/floppydisk/git.nix')
-rw-r--r-- | homes/floppydisk/git.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/homes/floppydisk/git.nix b/homes/floppydisk/git.nix new file mode 100644 index 0000000..d6558fd --- /dev/null +++ b/homes/floppydisk/git.nix @@ -0,0 +1,17 @@ +{ + nixosConfig, + lib, + pkgs, + ... +}: { + programs.git = { + extraConfig = { + init.defaultBranch = "master"; + gpg.format = "ssh"; + gpg."ssh".program = "${pkgs._1password-gui}/bin/op-ssh-sign"; + commit.gpgsign = true; + user.signingkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDcwriIE5K8SVewvVdgNvmhtAVvJPtMnNkkS4ETi5YgJ"; + push.autoSetupRemote = true; + }; + }; +} |