2024-05-18 20:00:18 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
2024-05-20 21:15:16 +02:00
|
|
|
cfg = config.myConfig.shell;
|
2024-05-18 20:00:18 +02:00
|
|
|
in {
|
|
|
|
imports = [./zsh.nix ./bat.nix ./btop.nix ./neovim.nix];
|
|
|
|
|
2024-05-20 21:15:16 +02:00
|
|
|
options.myConfig.shell = {
|
|
|
|
enable = lib.mkEnableOption "my shell environment";
|
2024-05-18 20:00:18 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
2024-05-20 21:15:16 +02:00
|
|
|
myConfig.shell = {
|
|
|
|
zsh.enable = lib.mkDefault true;
|
|
|
|
neovim.enable = lib.mkDefault true;
|
|
|
|
btop.enable = lib.mkDefault true;
|
|
|
|
bat.enable = lib.mkDefault true;
|
|
|
|
};
|
2024-05-18 20:00:18 +02:00
|
|
|
};
|
2024-05-18 13:45:54 +02:00
|
|
|
}
|