home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

zsh.nix (381B)


      1 { config, lib, pkgs, ... }:
      2 let
      3   inherit (lib) mkOption mkIf types;
      4   cfg = config.modules.shell.zsh;
      5 in
      6 {
      7   options.modules.shell.zsh = {
      8     enable = mkOption {
      9       default = true;
     10       description = "Enable zsh profile";
     11       type = types.bool;
     12     };
     13   };
     14   config = mkIf cfg.enable {
     15     programs.zsh = {
     16       enable = true;
     17       enableCompletion = true;
     18     };
     19   };
     20 }