mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 02:18:12 +09:00
36 lines
693 B
Nix
36 lines
693 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.my.applications.git;
|
|
in
|
|
{
|
|
imports = [
|
|
./home.nix
|
|
./system.nix
|
|
];
|
|
|
|
options.my.applications.git = {
|
|
enable = lib.mkEnableOption "git version control";
|
|
|
|
userName = lib.mkOption {
|
|
type = lib.types.singleLineStr;
|
|
default = "moons";
|
|
description = "Default Git user.name.";
|
|
};
|
|
|
|
userEmail = lib.mkOption {
|
|
type = lib.types.singleLineStr;
|
|
default = "[email protected]";
|
|
description = "Default Git user.email.";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
my.applications.git.system.enable = lib.mkDefault true;
|
|
my.applications.git.homeManager.enable = lib.mkDefault true;
|
|
};
|
|
}
|