From e8b785be3eb60095269555ed4cb8294f488f67f3 Mon Sep 17 00:00:00 2001 From: Leonhard Kost Date: Sun, 8 Jun 2025 16:01:42 +0200 Subject: [PATCH] Modularize git config --- home-manager/home.nix | 2 +- modules/home-manager/default.nix | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/home-manager/home.nix b/home-manager/home.nix index 886d4d2..79b2c5b 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -17,7 +17,7 @@ # You can also split up your configuration and import pieces of it here: # ./nvim.nix - ./programs/git.nix + ../modules/home-manager ]; nixpkgs = { diff --git a/modules/home-manager/default.nix b/modules/home-manager/default.nix index 45aae31..0ea69c2 100644 --- a/modules/home-manager/default.nix +++ b/modules/home-manager/default.nix @@ -1,6 +1,5 @@ -# Add your reusable home-manager modules to this directory, on their own file (https://nixos.wiki/wiki/Module). -# These should be stuff you would like to share with others, not your personal configurations. -{ - # List your module files here - # my-module = import ./my-module.nix; +{ ... }: { + imports = [ + ./git.nix + ]; }