mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
git: extraConfig -> settings
Remove string support and convert to rfc42 settings option Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
85cd07b8b0
commit
ac7c05a90c
10 changed files with 17 additions and 65 deletions
|
|
@ -2,7 +2,6 @@
|
|||
git-with-email = ./git-with-email.nix;
|
||||
git-with-most-options = ./git.nix;
|
||||
git-with-msmtp = ./git-with-msmtp.nix;
|
||||
git-with-str-extra-config = ./git-with-str-extra-config.nix;
|
||||
git-with-signing-key-id-legacy = ./git-with-signing-key-id-legacy.nix;
|
||||
git-with-signing-key-id = ./git-with-signing-key-id.nix;
|
||||
git-without-signing-key-id = ./git-without-signing-key-id.nix;
|
||||
|
|
|
|||
|
|
@ -1,11 +0,0 @@
|
|||
This can be anything.
|
||||
|
||||
[gpg]
|
||||
format = "openpgp"
|
||||
|
||||
[gpg "openpgp"]
|
||||
program = "path-to-gpg"
|
||||
|
||||
[user]
|
||||
email = "user@example.org"
|
||||
name = "John Doe"
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
signing.signer = "path-to-gpg";
|
||||
extraConfig = ''
|
||||
This can be anything.
|
||||
'';
|
||||
userEmail = "user@example.org";
|
||||
userName = "John Doe";
|
||||
};
|
||||
|
||||
test.asserts.warnings.expected = [
|
||||
''
|
||||
Using programs.git.extraConfig as a string option is
|
||||
deprecated and will be removed in the future. Please
|
||||
change to using it as an attribute set instead.
|
||||
''
|
||||
];
|
||||
|
||||
nmt.script = ''
|
||||
assertFileExists home-files/.config/git/config
|
||||
assertFileContent home-files/.config/git/config \
|
||||
${./git-with-str-extra-config-expected.conf}
|
||||
'';
|
||||
}
|
||||
|
|
@ -73,11 +73,12 @@ in
|
|||
|
||||
{
|
||||
aliases.a2 = lib.mkForce "baz";
|
||||
extraConfig."extra \"backcompat.with.dots\"".previously = "worked";
|
||||
extraConfig.extra.boolean = true;
|
||||
extraConfig.extra.integer = 38;
|
||||
extraConfig.extra.multiple = [ 2 ];
|
||||
extraConfig.extra.subsection.value = "test";
|
||||
settings.alias.a2 = lib.mkForce "baz";
|
||||
settings."extra \"backcompat.with.dots\"".previously = "worked";
|
||||
settings.extra.boolean = true;
|
||||
settings.extra.integer = 38;
|
||||
settings.extra.multiple = [ 2 ];
|
||||
settings.extra.subsection.value = "test";
|
||||
}
|
||||
];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue