shell: avoid configuring bash if fish is used
this saves 1.34 MiB according to dix; why not!
This commit is contained in:
parent
3af37fd7f5
commit
df13fd2b5e
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue