nixos-config/home-manager/stvnliu/shells/starship/default.nix
Zhongheng Liu 4a7e9cafd9
feat: AGS config update and stylix config update
AGS: add additional indicator customisations

Stylix: specify fonts used for each font style
2024-08-24 13:15:54 +08:00

25 lines
632 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 = mkIf cfg.enable {
programs.starship = {
enable = true;
enableZshIntegration = config.myShells.zsh.enable;
enableFishIntegration = config.myShells.fish.enable;
settings = builtins.fromTOML (builtins.readFile cfg.confPath);
};
};
}