504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
20 lines
408 B
Nix
20 lines
408 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.programs.zsh.zsh-autoenv;
|
|
in {
|
|
options = {
|
|
programs.zsh.zsh-autoenv = {
|
|
enable = mkEnableOption (lib.mdDoc "zsh-autoenv");
|
|
package = mkPackageOption pkgs "zsh-autoenv" { };
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.zsh.interactiveShellInit = ''
|
|
source ${cfg.package}/share/zsh-autoenv/autoenv.zsh
|
|
'';
|
|
};
|
|
}
|