diff --git a/hosts/vm/default.nix b/hosts/vm/default.nix index 6446709..d396d2a 100644 --- a/hosts/vm/default.nix +++ b/hosts/vm/default.nix @@ -23,7 +23,7 @@ modules.displayManager.displayManager = "gdm"; modules.zsh.enable = true; - modules.shell.defaultShell = "bash"; + modules.shell.defaultShell = "zsh"; modules.pipewire.enable = true; } \ No newline at end of file diff --git a/modules/options/shell.nix b/modules/options/shell.nix index 9db5ad1..ebb199f 100644 --- a/modules/options/shell.nix +++ b/modules/options/shell.nix @@ -6,6 +6,7 @@ with lib; let cfg = config.modules.shell; + zshCfg = config.modules.zsh; in { options.modules.shell = { @@ -20,4 +21,12 @@ in ''; }; }; + + config.assertions = [] + ++ (if cfg.defaultShell == "zsh" + then [{ + assertion = zshCfg.enable; + message = "You have selected zsh as the default shell, but you haven't enabled it in your configuration.\n\nPlease enable it by adding `modules.zsh.enable = true`."; + }] + else []); } \ No newline at end of file