Split off starship configuration to it's own module
This commit is contained in:
parent
180448b5b6
commit
957e5081c1
4 changed files with 49 additions and 35 deletions
|
@ -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 = {
|
programs.fzf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
|
|
46
home-manager/modules/starship/default.nix
Normal file
46
home-manager/modules/starship/default.nix
Normal 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) ";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -108,6 +108,7 @@ in
|
||||||
vscode.enable = true;
|
vscode.enable = true;
|
||||||
solvespace.enable = true;
|
solvespace.enable = true;
|
||||||
ssh.enable = true;
|
ssh.enable = true;
|
||||||
|
starship.enable = true;
|
||||||
sway.enable = true;
|
sway.enable = true;
|
||||||
swaynotificationcenter.enable = true;
|
swaynotificationcenter.enable = true;
|
||||||
tea = {
|
tea = {
|
||||||
|
|
|
@ -55,6 +55,7 @@ in
|
||||||
gpg.enable = true;
|
gpg.enable = true;
|
||||||
i3.enable = true;
|
i3.enable = true;
|
||||||
mpd.enable = true;
|
mpd.enable = true;
|
||||||
|
nushell.enable = true;
|
||||||
picom.enable = true;
|
picom.enable = true;
|
||||||
polybar.enable = true;
|
polybar.enable = true;
|
||||||
neovim.enable = true;
|
neovim.enable = true;
|
||||||
|
@ -75,6 +76,7 @@ in
|
||||||
};
|
};
|
||||||
rofi.enable = true;
|
rofi.enable = true;
|
||||||
ssh.enable = true;
|
ssh.enable = true;
|
||||||
|
starship.enable = true;
|
||||||
zellij = {
|
zellij = {
|
||||||
enable = true;
|
enable = true;
|
||||||
copyCommand = "${pkgs.xsel}/bin/xsel --clipboard";
|
copyCommand = "${pkgs.xsel}/bin/xsel --clipboard";
|
||||||
|
|
Loading…
Reference in a new issue