Use nix-index as package-not-found, install comma

This commit is contained in:
Leonardo Eugênio 2023-01-19 09:20:27 -03:00
parent c9802da2da
commit 0bd1312cfe
4 changed files with 31 additions and 1 deletions

View file

@ -212,6 +212,26 @@
"type": "github" "type": "github"
} }
}, },
"nix-index-database": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1673752441,
"narHash": "sha256-/g4ImZWV05CrXRWTSJsda6ztIp7LAPxs2L6RCrbQ66U=",
"owner": "Mic92",
"repo": "nix-index-database",
"rev": "391180f77505c1c8cdd45fe1a59dc89d3e40300a",
"type": "github"
},
"original": {
"owner": "Mic92",
"repo": "nix-index-database",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1665732960, "lastModified": 1665732960,
@ -331,6 +351,7 @@
"hyprland": "hyprland", "hyprland": "hyprland",
"material-wifi-icons": "material-wifi-icons", "material-wifi-icons": "material-wifi-icons",
"nil-lsp": "nil-lsp", "nil-lsp": "nil-lsp",
"nix-index-database": "nix-index-database",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"nixpkgs-unstable": "nixpkgs-unstable", "nixpkgs-unstable": "nixpkgs-unstable",
"nur": "nur", "nur": "nur",

View file

@ -7,6 +7,11 @@
home-manager.inputs.nixpkgs.follows = "nixpkgs"; home-manager.inputs.nixpkgs.follows = "nixpkgs";
nur.url = "github:nix-community/NUR"; nur.url = "github:nix-community/NUR";
nix-index-database = {
url = "github:Mic92/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
# mpvpaper # mpvpaper
wegank = { wegank = {
url = "github:wegank/nur-packages"; url = "github:wegank/nur-packages";

View file

@ -66,7 +66,8 @@ in {
home.file = { home.file = {
".config/fish/conf.d/prompt.fish".source = ./fish_prompt.fish; ".config/fish/conf.d/prompt.fish".source = ./fish_prompt.fish;
}; };
programs.command-not-found.enable = true; # programs.command-not-found.enable = true;
programs.nix-index.enable = true;
home.packages = with pkgs; [ trash-cli ]; home.packages = with pkgs; [ trash-cli ];
}; };
} }

View file

@ -29,6 +29,7 @@ in {
./man.nix ./man.nix
./mpd.nix ./mpd.nix
inputs.hyprland.homeManagerModules.default inputs.hyprland.homeManagerModules.default
inputs.nix-index-database.hmModules.nix-index
] ++ lib.optional (desktop == "sway") ./sway.nix; ] ++ lib.optional (desktop == "sway") ./sway.nix;
# Home Manager needs a bit of information about you and the # Home Manager needs a bit of information about you and the
@ -56,6 +57,8 @@ in {
_diffr _diffr
br # bulk rename br # bulk rename
comma
## text manipulation ## text manipulation
sd sd
ripgrep ripgrep