add program db for command-not-found

This commit is contained in:
caandt 2024-10-22 20:40:59 -05:00
parent 3d4464837f
commit 00960faecb
4 changed files with 47 additions and 2 deletions

View file

@ -1,5 +1,26 @@
{ {
"nodes": { "nodes": {
"flake-programs-sqlite": {
"inputs": {
"nixpkgs": [
"nixpkgs"
],
"utils": "utils"
},
"locked": {
"lastModified": 1729631745,
"narHash": "sha256-Q+H6s8c9e0zkTgetge1zjeVDS0wgRDB3hD+/u417xrg=",
"owner": "wamserma",
"repo": "flake-programs-sqlite",
"rev": "7bf5486776f4993d8159fa96af2f7de1181c770a",
"type": "github"
},
"original": {
"owner": "wamserma",
"repo": "flake-programs-sqlite",
"type": "github"
}
},
"home-manager": { "home-manager": {
"inputs": { "inputs": {
"nixpkgs": [ "nixpkgs": [
@ -54,10 +75,26 @@
}, },
"root": { "root": {
"inputs": { "inputs": {
"flake-programs-sqlite": "flake-programs-sqlite",
"home-manager": "home-manager", "home-manager": "home-manager",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
} }
},
"utils": {
"locked": {
"lastModified": 1678901627,
"narHash": "sha256-U02riOqrKKzwjsxc/400XnElV+UtPUQWpANPlyazjH0=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "93a2b84fc4b70d9e089d029deacc3583435c2ed6",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View file

@ -8,9 +8,13 @@
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
flake-programs-sqlite = {
url = "github:wamserma/flake-programs-sqlite";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { nixpkgs, nixpkgs-stable, home-manager, ... }@inputs: outputs = { nixpkgs, nixpkgs-stable, home-manager, flake-programs-sqlite, ... }@inputs:
let let
system = "x86_64-linux"; system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
@ -20,6 +24,7 @@
inherit system; inherit system;
specialArgs = { specialArgs = {
inherit pkgs-stable; inherit pkgs-stable;
inherit flake-programs-sqlite;
}; };
modules = [ ./system ]; modules = [ ./system ];
}; };

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, flake-programs-sqlite, ... }:
{ {
nix.settings = { nix.settings = {
@ -35,6 +35,8 @@
settings.default = [ "Alacritty.desktop" ]; settings.default = [ "Alacritty.desktop" ];
}; };
programs.command-not-found.dbPath = flake-programs-sqlite.packages.${pkgs.system}.programs-sqlite;
system.stateVersion = "24.05"; system.stateVersion = "24.05";
} }

View file

@ -49,6 +49,7 @@
starship starship
killall killall
file file
nix-tree
(python312.withPackages (python-pkgs: [ (python312.withPackages (python-pkgs: [
python-pkgs.pwntools python-pkgs.pwntools