Replace command-not-found with nix-index

This commit is contained in:
coolneng 2023-02-11 15:18:44 +01:00
parent 3b535a6d4d
commit 27ece0ea89
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 17 additions and 2 deletions

View File

@ -156,6 +156,13 @@ with pkgs;
# Enable fish package completion # Enable fish package completion
programs.fish.enable = true; programs.fish.enable = true;
# Enable nix-index
programs.command-not-found.enable = false;
programs.nix-index = {
enable = true;
enableFishIntegration = true;
};
# Import other configuration modules # Import other configuration modules
imports = [ imports = [
./modules/hardware-configuration.nix ./modules/hardware-configuration.nix

View File

@ -23,9 +23,13 @@
url = "github:robn/sasl2-oauth"; url = "github:robn/sasl2-oauth";
flake = false; flake = false;
}; };
nix-index-database = {
url = "github:Mic92/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { self, nixpkgs, agenix, ... }@inputs: outputs = { self, nixpkgs, agenix, nix-index-database, ... }@inputs:
let let
system = "x86_64-linux"; system = "x86_64-linux";
@ -36,7 +40,11 @@
in { in {
nixosConfigurations.panacea = lib.nixosSystem { nixosConfigurations.panacea = lib.nixosSystem {
inherit system; inherit system;
modules = [ (import ./configuration.nix) agenix.nixosModules.age ]; modules = [
(import ./configuration.nix)
agenix.nixosModules.age
nix-index-database.nixosModules.nix-index
];
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs; };
}; };