feat: add signinkey + remove paynovate id

Signed-off-by: Lander Van den Bulcke <landervandenbulcke@gmail.com>
This commit is contained in:
Lander Van den Bulcke 2025-01-29 15:23:10 +01:00
parent e58e79888a
commit 5091ea94df
Signed by: lander
GPG key ID: 0142722B4B0C536F
2 changed files with 12 additions and 9 deletions

View file

@ -1,12 +1,15 @@
# adapted from https://pickard.cc/posts/git-identity-home-manager/ # adapted from https://pickard.cc/posts/git-identity-home-manager/
{ config, lib, pkgs, ...}: {
pkgs,
...
}:
let let
# put a shell script into the nix store # put a shell script into the nix store
gitIdentity = gitIdentity = pkgs.writeShellScriptBin "git-identity" (builtins.readFile ./git-identity);
pkgs.writeShellScriptBin "git-identity" (builtins.readFile ./git-identity); in
in { {
# we will use the excellent fzf in our `git-identity` script, so let's make sure it's available # we will use the excellent fzf in our `git-identity` script, so let's make sure it's available
# let's add the gitIdentity script to the path as well # let's add the gitIdentity script to the path as well
home.packages = with pkgs; [ home.packages = with pkgs; [
@ -25,21 +28,20 @@ in {
# the `inuits` identity # the `inuits` identity
user.inuits.name = "Lander Van den Bulcke"; user.inuits.name = "Lander Van den Bulcke";
user.inuits.email = "landervdb@inuits.eu"; user.inuits.email = "landervdb@inuits.eu";
user.inuits.signingKey = "CA5B1C34E649BF92";
# the `olly` identity # the `olly` identity
user.olly.name = "Lander Van den Bulcke"; user.olly.name = "Lander Van den Bulcke";
user.olly.email = "landervdb@o11y.eu"; user.olly.email = "landervdb@o11y.eu";
user.olly.signingKey = "CA5B1C34E649BF92";
# the `paynovate` identity
user.paynovate.name = "Lander Van den Bulcke";
user.paynovate.email = "lander.vandenbulcke@paynovate.com";
# the `personal` identity # the `personal` identity
user.personal.name = "Lander Van den Bulcke"; user.personal.name = "Lander Van den Bulcke";
user.personal.email = "landervandenbulcke@gmail.com"; user.personal.email = "landervandenbulcke@gmail.com";
user.personal.signingKey = "CA5B1C34E649BF92";
# editor # editor
core.editor = "vim"; core.editor = "nvim";
# line up default branch with github/codeberg/forgejo # line up default branch with github/codeberg/forgejo
init.defaultBranch = "main"; init.defaultBranch = "main";

View file

@ -14,3 +14,4 @@ fi
# set the id locally in each repo (eg in the repo's .git/config) # set the id locally in each repo (eg in the repo's .git/config)
git config user.name "$(git config user.${ID}.name)" git config user.name "$(git config user.${ID}.name)"
git config user.email "$(git config user.${ID}.email)" git config user.email "$(git config user.${ID}.email)"
git config user.signingKey "$(git config user.${ID}.signingKey)"