Skip to content

Commit

Permalink
fix: only set environment.shells if a shell has been enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
squirmy committed Mar 2, 2024
1 parent ab32ab4 commit f0837ae
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configuration/nix-darwin/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
lib,
config,
pkgs,
...
Expand All @@ -12,5 +13,6 @@
home = config.nix-machine.homeDirectory;
};

environment.shells = [pkgs.bashInteractive];
# Always include bash in /etc/shells if nix-machine is being used to enable shells
environment.shells = lib.mkIf config.nix-machine.shells.zsh [pkgs.bashInteractive];
}

0 comments on commit f0837ae

Please sign in to comment.