nixos/modules/home/shell/default.nix

23 lines
449 B
Nix

{
lib,
config,
...
}: let
cfg = config.myConfig.shell;
in {
imports = [./zsh.nix ./bat.nix ./btop.nix ./neovim.nix];
options.myConfig.shell = {
enable = lib.mkEnableOption "my shell environment";
};
config = lib.mkIf cfg.enable {
myConfig.shell = {
zsh.enable = lib.mkDefault true;
neovim.enable = lib.mkDefault true;
btop.enable = lib.mkDefault true;
bat.enable = lib.mkDefault true;
};
};
}