i dont want to compile my own index

This commit is contained in:
Osman Faruk Bayram 2025-04-15 00:38:32 +03:00
parent e8653bf178
commit 2d5222587d
2 changed files with 6 additions and 0 deletions

View file

@ -49,6 +49,8 @@
url = "github:serokell/deploy-rs"; url = "github:serokell/deploy-rs";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nix-index-database.url = "github:nix-community/nix-index-database";
nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
}; };
outputs = { outputs = {

View file

@ -3,6 +3,10 @@
lib, lib,
... ...
}: { }: {
imports = [
inputs.nix-index-database.nixosModules.nix-index
];
programs.nix-index-database.comma.enable = true;
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfreePredicate = pkg: nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [ builtins.elem (lib.getName pkg) [