Nix-index: module improved

This commit is contained in:
Filippo Berto 2023-04-14 11:49:37 +02:00
parent 5e2fbc31cb
commit ea507cd753
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056

View file

@ -1,6 +1,7 @@
{ pkgs, ... }: {
{ config, ... }: {
programs.nix-index = {
enable = true;
# package = pkgs.unstable_pkgs.nix-index;
enableBashIntegration = true;
enableZshIntegration = true;
};
@ -13,7 +14,7 @@
};
Service = {
Type = "oneshot";
ExecStart = "${pkgs.nix-index}/bin/nix-index";
ExecStart = "${config.programs.nix-index.package}/bin/nix-index";
};
};