git-credential-keepassxc: fix misplaced parentheses
This commit is contained in:
parent
26aaab785b
commit
bcb774cfc3
3 changed files with 15 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue