nixos-config/home-manager/stvnliu/shells/starship/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

24 lines
533 B
Nix

{
lib,
pkgs,
config,
...
}: let
cfg = config.myShells.prompts.starship;
in
with lib; {
options = {
myShells.prompts.starship.enable = mkEnableOption "Enables starship prompts.";
myShells.prompts.starship.confPath = mkOption {
type = types.path;
default = ./presets/default.toml;
};
};
config = {
programs.starship = {
enable = true;
enableZshIntegration = true;
settings = builtins.fromTOML (builtins.readFile cfg.confPath);
};
};
}