diff --git a/flake.lock b/flake.lock index 90b3231..7d7348c 100644 --- a/flake.lock +++ b/flake.lock @@ -383,6 +383,26 @@ "type": "github" } }, + "nix-index-database": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1739676768, + "narHash": "sha256-U1HQ7nzhJyVVXUgjU028UCkbLQLEIkg42+G7iIiBmlU=", + "owner": "nix-community", + "repo": "nix-index-database", + "rev": "ae15068e79e22b76c344f0d7f8aed1bb1c5b0b63", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "nix-index-database", + "type": "github" + } + }, "nixpkgs": { "locked": { "lastModified": 1739866667, @@ -481,6 +501,7 @@ "auto-cpufreq": "auto-cpufreq", "home-manager": "home-manager", "nbfc-linux": "nbfc-linux", + "nix-index-database": "nix-index-database", "nixpkgs": "nixpkgs", "nvf": "nvf", "stylix": "stylix" diff --git a/flake.nix b/flake.nix index 4c0e202..c5c7357 100644 --- a/flake.nix +++ b/flake.nix @@ -34,6 +34,12 @@ url = "github:cronyakatsuki/nbfc-linux/a715-41g"; inputs.nixpkgs.follows = "nixpkgs"; }; + + # use prebuild nix-index ( crashes on me cause little ram ) + nix-index-database = { + url = "github:nix-community/nix-index-database"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = { diff --git a/hosts/nixos/home.nix b/hosts/nixos/home.nix index 8a05262..20e568f 100644 --- a/hosts/nixos/home.nix +++ b/hosts/nixos/home.nix @@ -3,7 +3,10 @@ inputs, ... }: { - imports = [inputs.nvf.homeManagerModules.default]; + imports = [ + inputs.nvf.homeManagerModules.default + inputs.nix-index-database.hmModules.nix-index + ]; # Some info home.username = "crony"; @@ -87,6 +90,15 @@ ]; }; + # Enable nix-index + programs.nix-index = { + enable = true; + enableZshIntegration = true; + }; + + # Enable comma + programs.nix-index-database.comma.enable = true; + # Enable git programs.git = { enable = true;