Split off starship configuration to it's own module

This commit is contained in:
Erwin Boskma 2023-04-07 11:19:58 +02:00
parent 180448b5b6
commit 957e5081c1
Signed by: erwin
SSH key fingerprint: SHA256:Vw4O4qA0i5x65Y7yyjDpWDCSMSXAhqT4X7cJ3frdnLY
4 changed files with 49 additions and 35 deletions

View file

@ -40,41 +40,6 @@ in
'';
};
programs.starship = {
enable = true;
enableFishIntegration = true;
settings = {
aws.disabled = true;
character = {
success_symbol = "[λ](bold #f8f8f2)";
error_symbol = "[λ](bold #ff5555)";
};
cmd_duration.style = "bold #f1fa8c";
directory.read_only = " ";
directory.style = "bold #50fa7b";
docker_context.symbol = " ";
elixir.symbol = " ";
git_branch.symbol = " ";
git_branch.style = "bold #ff79c6";
git_status.style = "bold #ff5555";
hostname.style = "bold #ff5555";
nix_shell.symbol = " ";
memory_usage.symbol = " ";
package.symbol = " ";
python.symbol = " ";
rust.symbol = " ";
time.disabled = false;
username = {
format = "[$user]($style) on ";
style_user = "bold #bd93f9";
};
status = {
disabled = false;
format = "[$symbol $status]($style) ";
};
};
};
programs.fzf = {
enable = true;
enableFishIntegration = true;

View file

@ -0,0 +1,46 @@
{ config, lib, ... }:
with lib;
let
cfg = config.eboskma.programs.starship;
in
{
options.eboskma.programs.starship = { enable = mkEnableOption "starship"; };
config = mkIf cfg.enable {
programs.starship = {
enable = true;
enableFishIntegration = true;
enableNushellIntegration = false; # TODO: Remove when starship has been updated to the new nu config syntax
settings = {
aws.disabled = true;
character = {
success_symbol = "[λ](bold #f8f8f2)";
error_symbol = "[λ](bold #ff5555)";
};
cmd_duration.style = "bold #f1fa8c";
directory.read_only = " ";
directory.style = "bold #50fa7b";
docker_context.symbol = " ";
elixir.symbol = " ";
git_branch.symbol = " ";
git_branch.style = "bold #ff79c6";
git_status.style = "bold #ff5555";
hostname.style = "bold #ff5555";
nix_shell.symbol = " ";
memory_usage.symbol = " ";
package.symbol = " ";
python.symbol = " ";
rust.symbol = " ";
time.disabled = false;
username = {
format = "[$user]($style) on ";
style_user = "bold #bd93f9";
};
status = {
disabled = false;
format = "[$symbol $status]($style) ";
};
};
};
};
}

View file

@ -108,6 +108,7 @@ in
vscode.enable = true;
solvespace.enable = true;
ssh.enable = true;
starship.enable = true;
sway.enable = true;
swaynotificationcenter.enable = true;
tea = {

View file

@ -55,6 +55,7 @@ in
gpg.enable = true;
i3.enable = true;
mpd.enable = true;
nushell.enable = true;
picom.enable = true;
polybar.enable = true;
neovim.enable = true;
@ -75,6 +76,7 @@ in
};
rofi.enable = true;
ssh.enable = true;
starship.enable = true;
zellij = {
enable = true;
copyCommand = "${pkgs.xsel}/bin/xsel --clipboard";