mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 23:11:34 +01:00
23 lines
416 B
Nix
23 lines
416 B
Nix
{
|
|
config,
|
|
lib,
|
|
...
|
|
}: let
|
|
cfg = config.myConfig.shell;
|
|
in {
|
|
imports = [
|
|
./starship.nix
|
|
./direnv.nix
|
|
./enhancement.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;
|
|
};
|
|
}
|