From 2793aa4e599c85f4cc18aa613aeae0ab13e3826b Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Mon, 17 Nov 2025 19:15:09 +0100 Subject: [PATCH] Add gitconfig and gitignore to git home module --- home/hosts/astyanax/default.nix | 2 +- home/modules/git.nix | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/home/hosts/astyanax/default.nix b/home/hosts/astyanax/default.nix index a97d23d..b8e49cd 100644 --- a/home/hosts/astyanax/default.nix +++ b/home/hosts/astyanax/default.nix @@ -8,6 +8,7 @@ { imports = [ ../../modules/dconf.nix # TODO: Only enable when on Gnome? + ../../modules/git.nix ]; home.stateVersion = "25.05"; @@ -41,7 +42,6 @@ enable = true; enableBashIntegration = true; }; - git = import ../../modules/git.nix; home-manager.enable = true; keepassxc = import ../../modules/keepassxc.nix; }; diff --git a/home/modules/git.nix b/home/modules/git.nix index 7dc2601..7f1c33b 100644 --- a/home/modules/git.nix +++ b/home/modules/git.nix @@ -1,3 +1,7 @@ { - enable = true; + programs.git.enable = true; + home.file = { + ".gitconfig".source = ../../dots/.gitconfig; + ".gitignore".source = ../../dots/.gitignore; + }; }