{ lib, config, pkgs, ... }: let inherit (lib) mkIf mkOption types; in { options.smayzy.zsh.enable = mkOption { type = types.bool; default = false; description = "zsh"; }; config = mkIf config.smayzy.zsh.enable { programs.zsh.enable = true; users.defaultUserShell = pkgs.zsh; }; }