mirror of
https://github.com/nix-community/home-manager.git
synced 2026-06-05 21:02:51 +00:00
git-credential-keepassxc: fix misplaced parentheses
This commit is contained in:
committed by
Matthieu Coudron
parent
26aaab785b
commit
bcb774cfc3
@@ -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);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -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"'
|
||||
'';
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user