added starship prompt

This commit is contained in:
Schrottkatze 2023-11-13 14:07:25 +01:00
parent a6dbb351ef
commit ca61775d84
6 changed files with 139 additions and 7 deletions

View file

@ -61,11 +61,14 @@ in with lib; {
enable = mkEnableOption "Enable the i3 setup";
};
config = mkIf cfg.enable {
fonts.fonts = with pkgs; [
fonts.packages = with pkgs; [
(nerdfonts.override { fonts = [ "FiraCode" ]; })
montserrat
noto-fonts
atkinson-hyperlegible
arkpandora_ttf
liberation_ttf
ocr-a
];
fonts.fontDir.enable = true;
@ -167,10 +170,47 @@ in with lib; {
enable = true;
package = config.users.defaultUserShell;
configFile.source = ../../other/config.nu;
# envFile.text = ''
# use ~/.cache/starship/init.nu
# '';
envFile.source = ../../other/env.nu;
extraConfig = ''
source ${pkgs.nu_scripts}/share/nu_scripts/modules/nix/nix.nu;
'';
};
programs.starship = {
enable = true;
enableNushellIntegration = true;
settings = {
format = "$all$directory$character";
character = {
success_symbol = "[\\$](green)";
error_symbol = "[X](red)";
};
git_branch = {
format = "\\[[$symbol$branch]($style)\\]";
symbol = " ";
};
git_status = {
format = "([\\[$all_status$ahead_behind\\]]($style))";
};
haskell = {
format = "\\[[$symbol($version)]($style)\\]";
symbol = " ";
};
cmd_duration = {
format = "\\[[ $duration]($style)\\]";
};
nix_shell = {
format = "\\[[$symbol$state( \\($name\\))]($style)\\]";
symbol = " ";
};
rust = {
format = "\\[[$symbol($version)]($style)\\]";
symbol = " ";
};
};
};
services.dunst = {
enable = true;
settings = {