Add nix-index-database and comma.

This commit is contained in:
CronyAkatsuki 2025-02-22 23:35:37 +01:00
parent c49157f889
commit 294ea37058
3 changed files with 40 additions and 1 deletions

21
flake.lock generated
View File

@ -383,6 +383,26 @@
"type": "github" "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": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1739866667, "lastModified": 1739866667,
@ -481,6 +501,7 @@
"auto-cpufreq": "auto-cpufreq", "auto-cpufreq": "auto-cpufreq",
"home-manager": "home-manager", "home-manager": "home-manager",
"nbfc-linux": "nbfc-linux", "nbfc-linux": "nbfc-linux",
"nix-index-database": "nix-index-database",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nvf": "nvf", "nvf": "nvf",
"stylix": "stylix" "stylix": "stylix"

View File

@ -34,6 +34,12 @@
url = "github:cronyakatsuki/nbfc-linux/a715-41g"; url = "github:cronyakatsuki/nbfc-linux/a715-41g";
inputs.nixpkgs.follows = "nixpkgs"; 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 = { outputs = {

View File

@ -3,7 +3,10 @@
inputs, inputs,
... ...
}: { }: {
imports = [inputs.nvf.homeManagerModules.default]; imports = [
inputs.nvf.homeManagerModules.default
inputs.nix-index-database.hmModules.nix-index
];
# Some info # Some info
home.username = "crony"; 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 # Enable git
programs.git = { programs.git = {
enable = true; enable = true;