From f2a3cbdbf656dca2927e2592fdd4f5293c543fd1 Mon Sep 17 00:00:00 2001 From: Toast Date: Thu, 5 Oct 2023 12:47:23 +0200 Subject: [PATCH] Common: enable and configure Git --- roles/common/programs/default.nix | 1 + roles/common/programs/git.nix | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 roles/common/programs/git.nix diff --git a/roles/common/programs/default.nix b/roles/common/programs/default.nix index 1aa9c89..4d89ef0 100755 --- a/roles/common/programs/default.nix +++ b/roles/common/programs/default.nix @@ -9,6 +9,7 @@ ./command-not-found.nix ./comma.nix ./bash.nix + ./git.nix ]; # Some programs dont have a programs.*.enable option, so I install their package here environment.systemPackages = with pkgs; [ diff --git a/roles/common/programs/git.nix b/roles/common/programs/git.nix new file mode 100644 index 0000000..7a3e2bd --- /dev/null +++ b/roles/common/programs/git.nix @@ -0,0 +1,15 @@ +{ config, pkgs, ... }: + +{ + home-manager.users.toast = { + programs.git = { + enable = true; + delta.enable = true; + extraConfig = { + init.defaultBranch = "main"; + pull.rebase = "interactive"; + }; + }; + }; +} +