command-not-found: Add explicit fish shell integration

Fish completely separate of nixos will look for command-not-found
provided by nixos, this was surprising so lets make it explicit.
This commit is contained in:
Jessie Ross
2025-06-13 23:32:03 +07:00
parent be5b0ef699
commit ce0a482872

View File

@@ -65,6 +65,13 @@ in
}
'';
# NOTE: Fish by itself checks for nixos command-not-found, let's instead makes it explicit.
programs.fish.interactiveShellInit = ''
function fish_command_not_found
"${commandNotFound}/bin/command-not-found" $argv
end
'';
environment.systemPackages = [ commandNotFound ];
};