5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
18 lines
397 B
Nix
18 lines
397 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.programs.zsh.zsh-autoenv;
|
|
in {
|
|
options = {
|
|
programs.zsh.zsh-autoenv = {
|
|
enable = lib.mkEnableOption "zsh-autoenv";
|
|
package = lib.mkPackageOption pkgs "zsh-autoenv" { };
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
programs.zsh.interactiveShellInit = ''
|
|
source ${cfg.package}/share/zsh-autoenv/autoenv.zsh
|
|
'';
|
|
};
|
|
}
|