summaryrefslogtreecommitdiff
path: root/users/seth/programs/starship/default.nix
blob: fed7fd43dedd7b77cfc586c938b33f6240c3df54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ config, lib, ... }:
let
  cfg = config.seth.programs.starship;
in
{
  options.seth.programs.starship = {
    enable = lib.mkEnableOption "Starship configuration" // {
      default = config.seth.enable;
    };
  };

  config = lib.mkIf cfg.enable {
    programs.starship = {
      enable = true;

      # i do this manually
      catppuccin.enable = false;

      enableBashIntegration = false;
      enableZshIntegration = false;

      settings = {
        format = "$all";
        palette = "catppuccin_mocha";
        command_timeout = 250;
      } // lib.importTOML ./starship.toml;
    };
  };
}