nix index things

This commit is contained in:
Osman Faruk Bayram 2025-09-09 11:41:32 +03:00
parent 7aee282c36
commit 86c6c706a5
3 changed files with 9 additions and 7 deletions

View file

@ -12,6 +12,7 @@
./home.nix
./i18n.nix
# ./minegrub.nix
./nix-index.nix
./nix-settings.nix
./remote-builds.nix
./secrets.nix

8
modules/nix-index.nix Normal file
View file

@ -0,0 +1,8 @@
{}: {
imports = [
inputs.nix-index-database.nixosModules.nix-index
];
programs.nix-index-database.comma.enable = true;
programs.command-not-found.enable = false; # TODO fix ts
}

View file

@ -4,10 +4,6 @@
...
}:
{
imports = [
inputs.nix-index-database.nixosModules.nix-index
];
programs.nix-index-database.comma.enable = true;
# Allow unfree packages
nixpkgs.config.allowUnfreePredicate =
pkg:
@ -77,8 +73,5 @@
# nix.nixPath = ["nixpkgs=${pkgs.path}"];
# disable the database error TODO add nix-index search
# programs.command-not-found.enable = false; # TODO fix ts
system.configurationRevision = inputs.self.rev or "dirty";
}