tidying home/terminal

This commit is contained in:
serenity-F 2026-03-02 17:24:10 +10:00
parent 0bed4de1f8
commit f5eb6251a6
No known key found for this signature in database
3 changed files with 12 additions and 17 deletions

38
home/terminal/git.nix Executable file
View file

@ -0,0 +1,38 @@
{ pkgs, config, ... }:
{
programs.git = {
# Enable git with home-manager
enable = true;
settings = {
user = {
# User details
name = "serenity-F";
email = "serenity-F@noreply.codeberg.org";
# Path to user signing key
signingKey = "/home/serenity/.ssh/id_ed25519.pub";
};
# Use SSH keys for auth
gpg.format = "ssh";
commit.gpgSign = true;
# Use "main" as default branch
init.defaultBranch = "main";
# Automatically track remote branch
push.autoSetupRemote = true;
};
## OLD SETTINGS
#userName = "serenity-F";
#userEmail = "serenity-F@noreply.codeberg.org";
#extraConfig = {
#init.defaultBranch = "main";
#gpg.format = "ssh";
#commit.gpgSign = true;
#user.signingKey = "/home/serenity/.ssh/id_ed25519.pub";
#push.autoSetupRemote = true;
#};
};
}