refactor(starship): move config to own module
Should make evaluation faster.
This commit is contained in:
parent
176fcae9c3
commit
52ce2a852a
4 changed files with 185 additions and 182 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue