ripgrep: don't set env. variable if no config (#4254)
Fixes https://github.com/nix-community/home-manager/issues/4253
This commit is contained in:
parent
7579044149
commit
0841242b94
|
@ -30,13 +30,13 @@ in {
|
|||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
home = {
|
||||
packages = [ cfg.package ];
|
||||
home = mkMerge [
|
||||
{ packages = [ cfg.package ]; }
|
||||
(mkIf (cfg.arguments != [ ]) {
|
||||
file."${configPath}".text = lib.concatLines cfg.arguments;
|
||||
|
||||
file."${configPath}" =
|
||||
mkIf (cfg.arguments != [ ]) { text = lib.concatLines cfg.arguments; };
|
||||
|
||||
sessionVariables = { "RIPGREP_CONFIG_PATH" = configPath; };
|
||||
};
|
||||
sessionVariables."RIPGREP_CONFIG_PATH" = configPath;
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue