qol(git@modules): git is now a module
This commit is contained in:
28
nix/modules/git/home.nix
Normal file
28
nix/modules/git/home.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user