home/fish: fix nix gotchas

This commit is contained in:
Primrose 2026-02-01 20:37:39 +01:00
parent cb4bf969bc
commit a2817fef0d
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -5,13 +5,11 @@
}: }:
{ {
programs.fish = { programs.fish = {
shellAbbrs = lib.mkMerge [ shellAbbrs = lib.mkIf pkgs.stdenv.isLinux {
(lib.mkIf pkgs.stdenv.isLinux { "," = "nix-shell --command $SHELL -p";
"," = "nix-shell --command $SHELL -p"; };
})
];
shellAliases = lib.mergeAttrsList [ shellAliases = lib.mkMerge [
{ {
rm = "rm -I"; # idiot protection rm = "rm -I"; # idiot protection
tree = "tree -Cph"; tree = "tree -Cph";