10

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.

| improve this question | | | | |
18

In your configuration.nix,

{ pkgs, ... }:

{
  ...

  programs.fish.enable = true;

  users.extraUsers.<myusername> = {   
    ...  
    shell = pkgs.fish;
    ...
  };
}

Followed by nixos-rebuild switch.

| improve this answer | | | | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.