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