nixos-config/home-manager/stvnliu/shells/default.nix
Zhongheng Liu 4fe4ebefc8 feat: decent shell configuration with starship and zsh
direnv and devenv integrated support
experimental nginx test configuration
sway and foot configuration updated
created initial sddm configuration for login manager
2024-08-01 18:05:58 +08:00

28 lines
491 B
Nix

{
pkgs,
lib,
config,
...
}: let
cfg = config.myShells;
in
with lib; {
imports = [
./zsh.nix
./direnv.nix
./starship
];
options.myShells = {
enable = mkEnableOption "Enables the shell customisation module.";
useZsh = mkOption {
type = types.bool;
default = true;
};
};
config = mkIf cfg.enable {
myShells = {
zsh.enable = cfg.useZsh;
prompts.starship.enable = true;
};
};
}