mirror of
https://github.com/nix-community/home-manager
synced 2024-11-01 00:39:45 +01:00
23 lines
489 B
Nix
23 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
|
||
|
}
|
||
|
'';
|
||
|
};
|
||
|
}
|