feat: setup nix-index-database

This commit is contained in:
tux
2025-02-24 00:21:13 +05:30
parent 85e519ea49
commit 923d7de4e6
4 changed files with 27 additions and 5 deletions

21
flake.lock generated
View File

@ -386,6 +386,26 @@
"type": "github"
}
},
"nix-index-database": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1740281615,
"narHash": "sha256-dZWcbAQ1sF8oVv+zjSKkPVY0ebwENQEkz5vc6muXbKY=",
"owner": "nix-community",
"repo": "nix-index-database",
"rev": "465792533d03e6bb9dc849d58ab9d5e31fac9023",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nix-index-database",
"type": "github"
}
},
"nix-on-droid": {
"inputs": {
"home-manager": [
@ -841,6 +861,7 @@
"ghostty": "ghostty",
"home-manager": "home-manager",
"impermanence": "impermanence",
"nix-index-database": "nix-index-database",
"nix-on-droid": "nix-on-droid",
"nix-secrets": "nix-secrets",
"nix-vscode-extensions": "nix-vscode-extensions",

View File

@ -133,6 +133,10 @@
url = "git+ssh://git@github.com/tuxdotrs/cyber-tux.git";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
ghostty.url = "github:ghostty-org/ghostty";
nixos-hardware.url = "github:nixos/nixos-hardware";
nixpkgs-f2k.url = "github:moni-dz/nixpkgs-f2k";

View File

@ -8,6 +8,7 @@
imports = [
inputs.impermanence.nixosModules.impermanence
inputs.home-manager.nixosModules.home-manager
inputs.nix-index-database.nixosModules.nix-index
../../modules/base
../../modules/nixos/fail2ban.nix

View File

@ -6,6 +6,7 @@
}: {
imports = [
inputs.impermanence.nixosModules.home-manager.impermanence
inputs.nix-index-database.hmModules.nix-index
../../modules/home/shell
../../modules/home/git
@ -32,11 +33,6 @@
};
};
programs.nix-index = {
enable = true;
enableZshIntegration = true;
};
home = {
username = "${username}";
homeDirectory = "/home/${username}";