mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 07:04:17 +00:00
fix: correct usage of mkIf in policies test
This commit is contained in:
parent
b6ce3e27ef
commit
77606037e4
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ in {
|
|||
package = pkgs.${cfg.wrappedPackageName}.override {
|
||||
extraPolicies = { DownloadDirectory = "/foo"; };
|
||||
};
|
||||
}) // {
|
||||
} // {
|
||||
nmt.script = ''
|
||||
jq=${lib.getExe pkgs.jq}
|
||||
config_file="${cfg.finalPackage}/lib/${cfg.wrappedPackageName}/distribution/policies.json"
|
||||
|
@ -39,5 +39,5 @@ in {
|
|||
fail "Expected '$config_file' to set 'policies.DownloadDirectory' to \"/foo\""
|
||||
fi
|
||||
'';
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue