Add nix-search-tv support, enable fish completions

Include nix-search-tv module and add it to home imports
Add `nsf` alias for interactive package search with nix-search-tv
Enable fish completions generation
Comment out the previously allowed insecure packages list
This commit is contained in:
2026-07-21 23:20:13 +02:00
parent 55d2de10cd
commit 32c6c1fada
5 changed files with 13 additions and 4 deletions
+1
View File
@@ -28,6 +28,7 @@ _: {
./lutris.nix ./lutris.nix
./mangohud.nix ./mangohud.nix
./nextcloud.nix ./nextcloud.nix
./nix-search-tv.nix
./nixpkgs.nix ./nixpkgs.nix
./obs-studio.nix ./obs-studio.nix
./ollama.nix ./ollama.nix
+1
View File
@@ -18,6 +18,7 @@
upg-bd = "nh os build -H ${host} -d always"; upg-bd = "nh os build -H ${host} -d always";
tui = "garandos-tui"; tui = "garandos-tui";
ncg = "nh clean all --optimise"; ncg = "nh clean all --optimise";
nsf = "nix-search-tv print | fzf --multi --preview 'nix-search-tv preview {}' --scheme history --bind='enter:accept' | cut -d' ' -f2 | awk '{printf \"nixpkgs#%s \", $0}' | xargs -ro nix shell";
# Development aliases # Development aliases
## Django ## Django
+1 -1
View File
@@ -10,7 +10,7 @@
then true then true
else false; else false;
package = pkgs.fish; package = pkgs.fish;
generateCompletions = false; generateCompletions = true;
interactiveShellInit = '' interactiveShellInit = ''
set fish_greeting set fish_greeting
# fastfetch # fastfetch
+7
View File
@@ -0,0 +1,7 @@
{pkgs, ...}: {
programs.nix-search-tv = {
enable = true;
package = pkgs.nix-search-tv;
settings.indexes = ["nixpkgs"];
};
}
+3 -3
View File
@@ -1,8 +1,8 @@
_: { _: {
nixpkgs.config = { nixpkgs.config = {
allowUnfree = true; allowUnfree = true;
permittedInsecurePackages = [ # permittedInsecurePackages = [
"electron-40.10.5" #
]; # ];
}; };
} }