shell: use config.programs.fish.package over pkgs.fish
also sets the defaultUserShell independantly of allowAddingPackages, since if programs.fish is already enabled it wouldn't be adding anything
This commit is contained in:
parent
652550ab41
commit
3af37fd7f5
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ 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.nixowos.allowAddingPackages pkgs.fish;
|
users.defaultUserShell = lib.mkIf config.programs.fish.enable config.programs.fish.package;
|
||||||
|
|
||||||
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