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:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
{pkgs, ...}: {
|
||||||
|
programs.nix-search-tv = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.nix-search-tv;
|
||||||
|
settings.indexes = ["nixpkgs"];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
_: {
|
_: {
|
||||||
nixpkgs.config = {
|
nixpkgs.config = {
|
||||||
allowUnfree = true;
|
allowUnfree = true;
|
||||||
permittedInsecurePackages = [
|
# permittedInsecurePackages = [
|
||||||
"electron-40.10.5"
|
#
|
||||||
];
|
# ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user