summaryrefslogtreecommitdiff
path: root/users/seth/module/programs/starship/default.nix
blob: ca3a99bd587f2d084b7dd5600fed5b3f95d4b684 (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
{
  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;

      enableBashIntegration = false;
      enableZshIntegration = false;

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