git-credential-keepassxc: fix misplaced parentheses

This commit is contained in:
Tom van Dijk
2026-05-16 15:53:58 +02:00
committed by Matthieu Coudron
parent 26aaab785b
commit bcb774cfc3
3 changed files with 15 additions and 1 deletions

View File

@@ -52,7 +52,7 @@ in
if cfg.hosts == [ ] then
helperConfig
else
lib.listToAttrs (map (host: lib.nameValuePair host helperConfig)) cfg.hosts;
lib.listToAttrs (map (host: lib.nameValuePair host helperConfig) cfg.hosts);
};
}

View File

@@ -0,0 +1,13 @@
{
programs.git.enable = true;
programs.git-credential-keepassxc = {
enable = true;
hosts = [ "https://codeberg.org" ];
};
nmt.script = ''
assertFileExists home-files/.config/git/config
assertFileContains home-files/.config/git/config '[credential "https://codeberg.org"]'
assertFileRegex home-files/.config/git/config 'helper = "\S*/bin/git-credential-keepassxc --git-groups"'
'';
}

View File

@@ -1,4 +1,5 @@
{
git-credential-keepassxc-default-config = ./default-config.nix;
git-credential-keepassxc-custom-groups = ./custom-groups.nix;
git-credential-keepassxc-custom-hosts = ./custom-hosts.nix;
}