Modularize the shell config

This commit is contained in:
SebastianStork 2024-04-17 09:42:55 +02:00
parent cbebff390c
commit 30faa1f2bf
10 changed files with 104 additions and 74 deletions

View file

@ -0,0 +1,25 @@
{
config,
lib,
...
}: let
cfg = config.myConfig.shell;
in {
imports = [
./starship.nix
./direnv.nix
./enhancedCommands.nix
./nixAliases.nix
];
options.myConfig.shell = {
bash.enable = lib.mkEnableOption "";
zsh.enable = lib.mkEnableOption "";
};
config = {
programs.bash.enable = cfg.bash.enable;
programs.zsh.enable = cfg.zsh.enable;
};
}