shell: avoid configuring bash if fish is used

this saves 1.34 MiB according to dix; why not!
This commit is contained in:
electria 2026-09-08 19:03:40 -07:00
commit df13fd2b5e
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -47,7 +47,9 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
# use Fish, the nicest shell :) # use Fish, the nicest shell :)
programs.fish.enable = lib.mkIf config.nixowos.allowAddingPackages true; programs.fish.enable = lib.mkIf config.nixowos.allowAddingPackages true;
users.defaultUserShell = lib.mkIf config.programs.fish.enable config.programs.fish.package; users.defaultUserShell = lib.mkIf config.programs.fish.enable config.programs.fish.package;
programs.bash.enable = lib.mkIf config.programs.fish.enable false;
environment.shellAliases = { environment.shellAliases = {
# make nix-shell preserve the user's $SHELL # make nix-shell preserve the user's $SHELL