nixos/locate: remove nixpkgs.config usage

This commit is contained in:
K900
2023-09-26 17:54:22 +03:00
parent ce87196a00
commit 38461ff27a
3 changed files with 4 additions and 10 deletions

View File

@@ -230,9 +230,7 @@ in
plocate = (mkIf isPLocate (mkMerge [ common plocate ]));
};
nixpkgs.config = { locate.dbfile = cfg.output; };
environment.systemPackages = [ cfg.locate ];
environment.systemPackages = [ (cfg.locate.override { dbfile = cfg.output; }) ];
environment.variables = mkIf (!isMorPLocate) { LOCATE_PATH = cfg.output; };