Add ion shell module
This commit is contained in:
parent
dfe7d58c30
commit
e46a086ab3
4 changed files with 24 additions and 0 deletions
|
|
@ -45,6 +45,7 @@
|
||||||
obs.enable = true;
|
obs.enable = true;
|
||||||
chromium.enable = true;
|
chromium.enable = true;
|
||||||
espanso.enable = true;
|
espanso.enable = true;
|
||||||
|
ion.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,5 +30,6 @@
|
||||||
./zoxide.nix
|
./zoxide.nix
|
||||||
./fzf.nix
|
./fzf.nix
|
||||||
./eza.nix
|
./eza.nix
|
||||||
|
./ion.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
18
home/modules/programs/ion.nix
Normal file
18
home/modules/programs/ion.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
cfg = config.youthlic.programs.starship;
|
cfg = config.youthlic.programs.starship;
|
||||||
fish-cfg = config.youthlic.programs.fish;
|
fish-cfg = config.youthlic.programs.fish;
|
||||||
bash-cfg = config.youthlic.programs.bash;
|
bash-cfg = config.youthlic.programs.bash;
|
||||||
|
ion-cfg = config.youthlic.programs.ion;
|
||||||
in {
|
in {
|
||||||
options = {
|
options = {
|
||||||
youthlic.programs.starship = {
|
youthlic.programs.starship = {
|
||||||
|
|
@ -43,5 +44,8 @@ in {
|
||||||
bleopt prompt_rps1_final='$(starship module time)'
|
bleopt prompt_rps1_final='$(starship module time)'
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
(lib.mkIf (cfg.enable && ion-cfg.enable) {
|
||||||
|
programs.starship.enableIonIntegration = true;
|
||||||
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue