diff options
author | Franck Cuny <franck@fcuny.net> | 2024-03-04 15:10:15 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2024-03-04 15:10:15 -0800 |
commit | a2def2bfcc9d9777934cfc192a13fbc12773924f (patch) | |
tree | e1d2b5d7c9d4ee9fda41823ecb06e20e0ce4e09a /nix | |
parent | move all home-manager settings under the profiles (diff) | |
download | world-a2def2bfcc9d9777934cfc192a13fbc12773924f.tar.gz |
don't sign git commits
Simplify the configuration as this is not something I currently use.
Diffstat (limited to 'nix')
-rw-r--r-- | nix/profiles/home-manager/git.nix | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/nix/profiles/home-manager/git.nix b/nix/profiles/home-manager/git.nix index ce9c0a9..d7b07c3 100644 --- a/nix/profiles/home-manager/git.nix +++ b/nix/profiles/home-manager/git.nix @@ -1,22 +1,10 @@ -{ lib, pkgs, config, ... }: -let - sshPub = builtins.fromTOML ( - builtins.readFile ../../../configs/ssh-pubkeys.toml - ); -in +{ pkgs, config, ... }: { - home.file.".ssh/allowed_signers".text = lib.concatMapStrings (x: "franck@fcuny.net ${x}\n") (with sshPub; [ aptos work git ykey-laptop op ]); - programs.git = { enable = true; userName = "Franck Cuny"; userEmail = "franck@fcuny.net"; - signing = { - key = "key::${sshPub.op}"; - signByDefault = true; - }; - aliases = { amend = "commit --amend"; ll = "log --pretty=\"format:%h %G? %aN %s\""; @@ -26,10 +14,6 @@ in core.whitespace = "trailing-space,space-before-tab"; color.ui = "true"; - gpg.format = "ssh"; - gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers"; - gpg.ssh.program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"; - # abort if the remote branch does not match the local one push.default = "simple"; |