Add nix-index-database and comma

This commit is contained in:
2026-03-12 07:33:46 +01:00
parent 7d013c83bc
commit d56605e37a
4 changed files with 13 additions and 7 deletions

View File

@@ -19,6 +19,10 @@
url = "github:nix-community/home-manager/release-25.11"; url = "github:nix-community/home-manager/release-25.11";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
sops-nix = { sops-nix = {
url = "github:Mic92/sops-nix"; url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
@@ -94,7 +98,9 @@
nixosConfigurations = { nixosConfigurations = {
# Main laptop # Main laptop
aspi = lib.nixosSystem { aspi = lib.nixosSystem {
modules = [./hosts/aspi]; modules = [
./hosts/aspi
];
specialArgs = { specialArgs = {
inherit inputs outputs; inherit inputs outputs;
}; };

View File

@@ -19,7 +19,6 @@
links2 # Tui web-browser links2 # Tui web-browser
lnav # log analyzing tool lnav # log analyzing tool
mc # Tui file browser mc # Tui file browser
# nix-index
nmap nmap
p7zip # unzip 7zip archives p7zip # unzip 7zip archives
parted parted

View File

@@ -2,6 +2,7 @@
lib, lib,
pkgs, pkgs,
config, config,
inputs,
outputs, outputs,
... ...
}: { }: {
@@ -9,6 +10,7 @@
[ [
../features/fonts ../features/fonts
../features/nix-helper ../features/nix-helper
inputs.nix-index-database.homeModules.default # nix-locate
] ]
++ (builtins.attrValues outputs.homeManagerModules); ++ (builtins.attrValues outputs.homeManagerModules);
@@ -36,6 +38,9 @@
programs = { programs = {
home-manager.enable = true; home-manager.enable = true;
git.enable = true; git.enable = true;
nix-index.enable = true; # allows command-not-found
nix-index-database.comma.enable = true;
}; };
home = { home = {

View File

@@ -1,8 +1,4 @@
{ {outputs, ...}: {
lib,
outputs,
...
}: {
# Apply overlays # Apply overlays
nixpkgs = { nixpkgs = {
# TODO: apply this to hm and nixos without duplicate code # TODO: apply this to hm and nixos without duplicate code