(modules/nixos) change standard shell to nushell

This commit is contained in:
Jo 2025-01-31 01:08:17 +01:00
parent 18337ad778
commit a9726ee734

View file

@ -4,8 +4,9 @@
config,
pkgs,
...
}: with lib; with lib.${namespace};
}:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.${namespace}.common.shell;
in {
options.${namespace}.common.shell = {
@ -13,8 +14,8 @@ in {
};
config = mkIf cfg.enable {
environment.shells = with pkgs; [ fish ];
users.defaultUserShell = pkgs.fish;
environment.shells = with pkgs; [ nushell fish ];
users.defaultUserShell = pkgs.nushell;
programs.fish.enable = true;
};
}