At the moment I need to set the fish shell to be my default shell on NixOS and there is no official documentation on how to do that declaratively (not by running chsh
) in NixOS.
1 Answer
In your configuration.nix
,
{ pkgs, ... }:
{
...
programs.fish.enable = true;
users.users.<myusername> = {
...
shell = pkgs.fish;
...
};
}
Followed by nixos-rebuild switch
.
More info in NixOS Wiki.
-
1
-
1
-
Is there a way to do this in the
home-server
user configuration using flakes? Commented Jul 18, 2023 at 7:32