{ lib, config, pkgs, ... }: { options = { zsh.enable = lib.mkEnableOption "use zsh as default shell"; }; config = lib.mkIf config.zsh.enable { programs.zsh.enable = true; users.defaultUserShell = pkgs.zsh; }; }