mirror of
https://github.com/nix-community/home-manager.git
synced 2026-06-05 21:02:51 +00:00
@@ -454,7 +454,7 @@ in
|
||||
(mkIf (cfg.signing != { }) {
|
||||
programs.git = {
|
||||
signing = {
|
||||
format = mkOptionDefault signingFormatStateVersionDefault.default;
|
||||
format = mkOptionDefault signingFormatStateVersionDefault.effectiveDefault;
|
||||
signer =
|
||||
let
|
||||
defaultSigners = {
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
git-without-signing-key-id = ./git-without-signing-key-id.nix;
|
||||
git-without-signing-key-id-current = ./git-without-signing-key-id-current.nix;
|
||||
git-without-signing = ./git-without-signing.nix;
|
||||
git-without-signing-legacy = ./git-without-signing-legacy.nix;
|
||||
git-with-hooks = ./git-with-hooks.nix;
|
||||
git-with-lfs = ./git-with-lfs.nix;
|
||||
git-with-maintenance = ./git-with-maintenance.nix;
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
[gpg]
|
||||
format = "openpgp"
|
||||
|
||||
[gpg "openpgp"]
|
||||
program = "@gnupg@/bin/gpg"
|
||||
|
||||
[user]
|
||||
email = "user@example.org"
|
||||
name = "John Doe"
|
||||
20
tests/modules/programs/git/git-without-signing-legacy.nix
Normal file
20
tests/modules/programs/git/git-without-signing-legacy.nix
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user = {
|
||||
name = "John Doe";
|
||||
email = "user@example.org";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
home.stateVersion = "24.05";
|
||||
|
||||
test.asserts.evalWarnings.expected = [ ];
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/git/config
|
||||
assertFileContent home-files/.config/git/config ${./git-without-signing-legacy.conf}
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user