Add ion shell module

This commit is contained in:
ulic-youthlic 2025-06-08 10:45:20 +08:00
parent dfe7d58c30
commit e46a086ab3
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
4 changed files with 24 additions and 0 deletions

View file

@ -45,6 +45,7 @@
obs.enable = true;
chromium.enable = true;
espanso.enable = true;
ion.enable = true;
};
};

View file

@ -30,5 +30,6 @@
./zoxide.nix
./fzf.nix
./eza.nix
./ion.nix
];
}

View file

@ -0,0 +1,18 @@
{
lib,
config,
...
}: let
cfg = config.youthlic.programs.ion;
in {
options = {
youthlic.programs.ion = {
enable = lib.mkEnableOption "ion";
};
};
config = lib.mkIf cfg.enable {
programs.ion = {
enable = true;
};
};
}

View file

@ -6,6 +6,7 @@
cfg = config.youthlic.programs.starship;
fish-cfg = config.youthlic.programs.fish;
bash-cfg = config.youthlic.programs.bash;
ion-cfg = config.youthlic.programs.ion;
in {
options = {
youthlic.programs.starship = {
@ -43,5 +44,8 @@ in {
bleopt prompt_rps1_final='$(starship module time)'
'';
})
(lib.mkIf (cfg.enable && ion-cfg.enable) {
programs.starship.enableIonIntegration = true;
})
];
}