From df13fd2b5e7e7ae6589c522ef2abac7eb79c6ef8 Mon Sep 17 00:00:00 2001 From: electria Date: Tue, 8 Sep 2026 19:03:40 -0700 Subject: [PATCH] shell: avoid configuring bash if fish is used this saves 1.34 MiB according to dix; why not! --- defaults/shell.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/defaults/shell.nix b/defaults/shell.nix index 2bd324e..8a77ede 100644 --- a/defaults/shell.nix +++ b/defaults/shell.nix @@ -47,7 +47,9 @@ in config = lib.mkIf cfg.enable { # use Fish, the nicest shell :) programs.fish.enable = lib.mkIf config.nixowos.allowAddingPackages true; + users.defaultUserShell = lib.mkIf config.programs.fish.enable config.programs.fish.package; + programs.bash.enable = lib.mkIf config.programs.fish.enable false; environment.shellAliases = { # make nix-shell preserve the user's $SHELL