qol(git@modules): git is now a module

This commit is contained in:
2025-10-21 09:58:23 +01:00
parent 2903440a12
commit 9f65a9f4c1
4 changed files with 39 additions and 12 deletions

28
nix/modules/git/home.nix Normal file
View File

@@ -0,0 +1,28 @@
{ config, lib, ... }:
let
cfg = config.modules.git;
in
{
options.modules.git = {
enable = lib.mkEnableOption "git";
};
config.programs = lib.mkIf cfg.enable {
git = {
enable = true;
settings = {
user = {
name = "Doloro1978";
email = "doloroo@proton.me";
signingKey = "089B373588540877";
};
commit = {
gpgSign = true;
};
};
};
gpg = {
enable = true;
};
};
}