21 lines
505 B
Nix
21 lines
505 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
cfg = config.myOptions.programs.starship;
|
|
inherit (config.myOptions.other.system) username;
|
|
|
|
inherit (lib) mkEnableOption mkIf;
|
|
in {
|
|
options.myOptions.programs.zoxide.enable = mkEnableOption "zoxide";
|
|
|
|
config = mkIf cfg.enable {
|
|
home-manager.users.${username} = {
|
|
programs.zoxide = {
|
|
enable = true;
|
|
enableZshIntegration = config.myOptions.programs.zsh.enable;
|
|
};
|
|
};
|
|
};
|
|
}
|