Files
azos/modules/home-manager/git.nix
T
2025-03-30 12:07:54 +03:00

41 lines
781 B
Nix

[commit]
gpgsign = true
[user]
name = Aner Zakobar
email = aner@zakobar.com
signingkey = 6D17E295C70E2674
[credential]
helper = !pass-git-helper $@
{ lib, config, pkgs, ... }:
let
isEnabled =
config.azos.git.enable;
in {
optionns.azos.git.enable = lib.mkOption {
default = true;
example = true;
type = lib.types.bool;
};
config = lib.mkIf isEnabled {
home.packages = with pkgs; [ pass-git-helper ];
programs.git = {
enable = true;
userName = "Aner Zakobar";
userEmail = "aner@zakobar.com";
signing = {
key = "6D17E295C70E2674";
signByDefault = true;
};
extraConfig = {
credential.helper = "!pass-git-helper $@";
};
};
};
}