24 lines
368 B
Nix
24 lines
368 B
Nix
{ 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; }
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|