sombrero: Add git module

This commit is contained in:
Alexander Heldt committed 2023-11-02 09:46:35 +01:00
1 parent e1c73d9a54
commit b2a8e45127
3 files changed
+30 -1

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
{ pkgs, lib, config, ... }:
let
enabled = config.mod.git.enable;
in
{
options = {
mod.git = {
enable = lib.mkEnableOption "enable git module";
};
};
config = lib.mkIf enabled {
home-manager.users.alex = {
programs.git = {
enable = true;
includes = [
{ path = ./gitconfig; }
];
};
};
};
}