Compare commits

...

2 Commits

Author SHA1 Message Date
coolneng 27ece0ea89
Replace command-not-found with nix-index 2023-02-11 15:18:44 +01:00
coolneng 3b535a6d4d flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/fab09085df1b60d6a0870c8a89ce26d5a4a708c2' (2023-02-07)
  → 'github:NixOS/nixpkgs/724bfc0892363087709bd3a5a1666296759154b1' (2023-02-09)
2023-02-10 22:31:11 +01:00
3 changed files with 20 additions and 5 deletions

View File

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

View File

@ -61,11 +61,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1675763311,
"narHash": "sha256-bz0Q2H3mxsF1CUfk26Sl9Uzi8/HFjGFD/moZHz1HebU=",
"lastModified": 1675942811,
"narHash": "sha256-/v4Z9mJmADTpXrdIlAjFa1e+gkpIIROR670UVDQFwIw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "fab09085df1b60d6a0870c8a89ce26d5a4a708c2",
"rev": "724bfc0892363087709bd3a5a1666296759154b1",
"type": "github"
},
"original": {

View File

@ -23,9 +23,13 @@
url = "github:robn/sasl2-oauth";
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
system = "x86_64-linux";
@ -36,7 +40,11 @@
in {
nixosConfigurations.panacea = lib.nixosSystem {
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; };
};