mirror of
https://github.com/nix-community/home-manager
synced 2024-11-13 22:59:44 +01:00
cc60c22c69
* Git: Make signing key id be optional Thus by default the signing key is selected by commit’s author. * Git: Add tests for config with and without signing key id * Git: Format tests for signing key * Git: Remove default value (null) for signing key * Git: Update description for signing key
22 lines
489 B
Nix
22 lines
489 B
Nix
{ pkgs, ... }: {
|
|
config = {
|
|
programs.git = {
|
|
enable = true;
|
|
userName = "John Doe";
|
|
userEmail = "user@example.org";
|
|
|
|
signing = {
|
|
gpgPath = "path-to-gpg";
|
|
key = "00112233445566778899AABBCCDDEEFF";
|
|
signByDefault = true;
|
|
};
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/git/config
|
|
assertFileContent home-files/.config/git/config ${
|
|
./git-with-signing-key-id-expected.conf
|
|
}
|
|
'';
|
|
};
|
|
}
|