1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-03-07 10:59:55 +01:00
config/modules/common/git.nix
2025-05-29 19:53:10 +02:00

33 lines
710 B
Nix

{ lib, pkgs, config, ... }: let
inherit (lib) optionalAttrs getExe;
in {
environment.systemPackages = with pkgs; [
gnupg
];
home-manager.sharedModules = [{
programs = {
gpg.enable = true;
gh.enable = true;
gh-dash.enable = true;
git = {
enable = true;
userName = "TheGeneralist";
userEmail = "180094941+thegeneralist01@users.noreply.github.com";
lfs = {
enable = true;
};
extraConfig = {
commit.gpgSign = true;
tag.gpgSign = true;
gpg.format = "ssh";
gpg.program = getExe pkgs.gnupg;
user.signingKey = "~/.ssh/id_ed25519";
};
};
};
}];
}