aboutsummaryrefslogtreecommitdiff
path: root/nix/profiles
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-03-04 15:10:15 -0800
committerFranck Cuny <franck@fcuny.net>2024-03-04 15:10:15 -0800
commita2def2bfcc9d9777934cfc192a13fbc12773924f (patch)
treee1d2b5d7c9d4ee9fda41823ecb06e20e0ce4e09a /nix/profiles
parentmove all home-manager settings under the profiles (diff)
downloadinfra-a2def2bfcc9d9777934cfc192a13fbc12773924f.tar.gz
don't sign git commits
Simplify the configuration as this is not something I currently use.
Diffstat (limited to 'nix/profiles')
-rw-r--r--nix/profiles/home-manager/git.nix18
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";