nixos-config/home-manager/stvnliu/programs/git.nix
Zhongheng Liu 7d88765f5d
feat(home-manager): service defs and fmt
fmt: reformatted using nixpkgs-fmt prettifier
mpd: created configuration
hypr: add window rules
commons: add usingMusicPlayerDaemon variable
2025-01-08 14:12:29 +02:00

21 lines
538 B
Nix

{ pkgs
, config
, lib
, ...
}: {
programs.git = {
enable = true;
package = pkgs.gitFull;
userName = config.myDisplayName;
userEmail = config.myEmail;
extraConfig = {
push.autoSetupRemote = true;
commit.gpgsign = true;
#gpg.format = "ssh";
#gpg.ssh.allowedSignersFile = "/home/${config.myUserName}/.ssh/allowed_signers";
#user.signingkey = "/home/${config.myUserName}/.ssh/id_ed25519.pub";
user.signingkey = "DC8F48E7B4C40905";
credential.helper = "libsecret";
};
};
}