refactor(starship): move config to own module
All checks were successful
/ check (push) Successful in 9s
/ check-renovaterc (push) Successful in 2s
/ build-packages (push) Successful in 14s
/ build-vm (push) Successful in 2s
/ report-size (push) Successful in 4s

Should make evaluation faster.
This commit is contained in:
Jalil David Salamé Messina 2025-04-21 21:21:37 +02:00
parent 176fcae9c3
commit 52ce2a852a
Signed by: jalil
GPG key ID: F016B9E770737A0B
4 changed files with 185 additions and 182 deletions

View file

@ -17,6 +17,7 @@ in
./options.nix
./dev.nix
./gui.nix
./starship.nix
./styling.nix
];
@ -34,33 +35,7 @@ in
pkgs.unzip
];
programs = {
# Default shell
fish.enable = true;
# Shell prompt
starship = {
enable = true;
settings = lib.mkMerge [
{
format = "$time$all";
add_newline = false;
cmd_duration.min_time = 500;
cmd_duration.show_milliseconds = true;
time.disabled = false;
status = {
format = "[$signal_name$common_meaning$maybe_int](red)";
symbol = "[](bold red)";
disabled = false;
};
sudo.disabled = false;
}
# Add nerdfont symbols
(lib.mkIf cfg.styling.enable (import ./starship-nerdfont-symbols.nix))
# Remove the `in`s and `on`s from the prompt
(import ./starship-shorter-text.nix)
];
};
};
programs.fish.enable = true;
environment.etc = keysFromGithub;
services = {