Skip to content

Commit

Permalink
home.nix-index: remove dependency to stable nix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerschtli committed Sep 1, 2024
1 parent ab5aecc commit f0db7bb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions home/programs/nix-index.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ config, lib, pkgs, inputs, ... }:
{ config, lib, pkgs, inputs, ... }@configArgs:

let
inherit (lib)
Expand All @@ -7,6 +7,8 @@ let
;

cfg = config.custom.programs.nix-index;

commonConfig = config.lib.custom.commonConfig configArgs;
in

{
Expand All @@ -27,7 +29,13 @@ in
home.file.".cache/nix-index/files".source =
inputs.nix-index-database.packages.${pkgs.system}.nix-index-database;

programs.nix-index.enable = true;
programs.nix-index = {
enable = true;

package = pkgs.nix-index.override {
nix = commonConfig.nix.package;
};
};

};

Expand Down

0 comments on commit f0db7bb

Please sign in to comment.