From df61f41c79ff842d80d7db12adfa732fd667bef8 Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Fri, 25 Aug 2023 19:23:53 +0200 Subject: [PATCH] pinwheel: Extract `git` to module --- hosts/pinwheel/configuration.nix | 1 + hosts/pinwheel/home.nix | 7 ------- hosts/pinwheel/modules/git/default.nix | 12 ++++++++++++ .../{configs/.gitconfig => modules/git/gitconfig} | 0 4 files changed, 13 insertions(+), 7 deletions(-) create mode 100644 hosts/pinwheel/modules/git/default.nix rename hosts/pinwheel/{configs/.gitconfig => modules/git/gitconfig} (100%) diff --git a/hosts/pinwheel/configuration.nix b/hosts/pinwheel/configuration.nix index 8627944..b5bc620 100644 --- a/hosts/pinwheel/configuration.nix +++ b/hosts/pinwheel/configuration.nix @@ -12,6 +12,7 @@ ./modules/sound ./modules/age ./modules/ssh + ./modules/git ./modules/syncthing ./modules/firefox ./modules/calibre diff --git a/hosts/pinwheel/home.nix b/hosts/pinwheel/home.nix index cd2aa2c..49b4747 100644 --- a/hosts/pinwheel/home.nix +++ b/hosts/pinwheel/home.nix @@ -13,13 +13,6 @@ bemenu ]; - programs.git = { - enable = true; - includes = [ - { path = ./configs/.gitconfig; } - ]; - }; - programs.foot = { enable = true; diff --git a/hosts/pinwheel/modules/git/default.nix b/hosts/pinwheel/modules/git/default.nix new file mode 100644 index 0000000..b642f8a --- /dev/null +++ b/hosts/pinwheel/modules/git/default.nix @@ -0,0 +1,12 @@ +{ home-manager, ... }: +{ + home-manager.users.alex = { + programs.git = { + enable = true; + + includes = [ + { path = ./gitconfig; } + ]; + }; + }; +} diff --git a/hosts/pinwheel/configs/.gitconfig b/hosts/pinwheel/modules/git/gitconfig similarity index 100% rename from hosts/pinwheel/configs/.gitconfig rename to hosts/pinwheel/modules/git/gitconfig