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
43 lines
760 B
Nix
43 lines
760 B
Nix
{
|
|
pkgs,
|
|
shell,
|
|
...
|
|
}: {
|
|
programs = {
|
|
fish = {
|
|
enable =
|
|
if shell == "fish"
|
|
then true
|
|
else false;
|
|
package = pkgs.fish;
|
|
generateCompletions = true;
|
|
interactiveShellInit = ''
|
|
set fish_greeting
|
|
# fastfetch
|
|
'';
|
|
shellInit = ''
|
|
set -gx LD_LIBRARY_PATH /etc/sane-libs $LD_LIBRARY_PATH
|
|
'';
|
|
};
|
|
|
|
nix-your-shell = {
|
|
enable = true;
|
|
package = pkgs.nix-your-shell;
|
|
enableFishIntegration =
|
|
if shell == "fish"
|
|
then true
|
|
else false;
|
|
nix-output-monitor = {
|
|
enable = true;
|
|
package = pkgs.nix-output-monitor;
|
|
};
|
|
};
|
|
};
|
|
|
|
imports = [
|
|
./aliases.nix
|
|
./functions.nix
|
|
./plugins.nix
|
|
];
|
|
}
|