mirror of
https://github.com/nix-community/home-manager.git
synced 2024-12-15 17:50:53 +00:00
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
1 changed files with 7 additions and 7 deletions
|
@ -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