mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
23 lines
462 B
Nix
23 lines
462 B
Nix
{ pkgs, ... }: {
|
|
config = {
|
|
programs.git = {
|
|
enable = true;
|
|
userName = "John Doe";
|
|
userEmail = "user@example.org";
|
|
|
|
signing = {
|
|
gpgPath = "path-to-gpg";
|
|
key = null;
|
|
signByDefault = true;
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/git/config
|
|
assertFileContent home-files/.config/git/config ${
|
|
./git-without-signing-key-id-expected.conf
|
|
}
|
|
'';
|
|
};
|
|
}
|