feat: add git

This commit is contained in:
Katharina Heidenreich 2026-04-10 22:22:12 +02:00
parent 62d230adf6
commit 506ff311b5
2 changed files with 19 additions and 3 deletions

View file

@ -1,3 +1,3 @@
{ ... }:
{
{...}: {
imports = [./git.nix];
}

16
programs/git.nix Normal file
View file

@ -0,0 +1,16 @@
{ config, pkgs, lib, ... }:
{
programs.git = {
enable = true;
config = {
user = {
name = "Katharina Heidenreich";
email = "katharina.heidenreich02@gmail.com";
};
init.defaultBranch = "main";
pull.rebase = false;
core.editor = "nano";
safe.directory = ["/etc/nixos"];
};
};
}