1 { config, lib, pkgs, ... }:
4 cfg = config.programs.zsh.zsh-autoenv;
7 programs.zsh.zsh-autoenv = {
8 enable = lib.mkEnableOption "zsh-autoenv";
9 package = lib.mkPackageOption pkgs "zsh-autoenv" { };
13 config = lib.mkIf cfg.enable {
14 programs.zsh.interactiveShellInit = ''
15 source ${cfg.package}/share/zsh-autoenv/autoenv.zsh