This commit is contained in:
2026-05-30 19:03:33 +09:00
parent f5ecef894d
commit 5f1cfc5275
155 changed files with 4168 additions and 300 deletions
+33
View File
@@ -0,0 +1,33 @@
{
lib,
config,
...
}:
let
cfg = config.my.applications.git;
in
{
imports = [
./system.nix
./home.nix
];
options.my.applications.git = {
enable = lib.mkEnableOption "git version control";
userName = lib.mkOption {
type = lib.types.str;
default = "moons-14";
description = "Git user name";
};
userEmail = lib.mkOption {
type = lib.types.str;
default = "moons@moons14.com";
description = "Git user email";
};
};
config = lib.mkIf cfg.enable {
my.applications.git.system.enable = lib.mkDefault true;
my.applications.git.homeManager.enable = lib.mkDefault true;
};
}