broke out starship
This commit is contained in:
@@ -0,0 +1,54 @@
|
|||||||
|
{ self, inputs, ... }: {
|
||||||
|
perSystem = { system, pkgs, lib, ... }: {
|
||||||
|
packages.starship = (inputs.wrappers.wrapperModules.starship.apply {
|
||||||
|
inherit pkgs;
|
||||||
|
settings = lib.recursiveUpdate (lib.importTOML (pkgs.fetchurl {
|
||||||
|
url = https://starship.rs/presets/toml/catppuccin-powerline.toml;
|
||||||
|
sha256 = "0bd8zx0bpri63rnb9dva0rav75d3i2wrzw44h63m75hq5220r26g";
|
||||||
|
})) {
|
||||||
|
palette = "catppuccin_mocha";
|
||||||
|
add_newline = true;
|
||||||
|
line_break.disabled = false;
|
||||||
|
git_status.diverged = "⇕⇡\${ahead_count}⇣\${behind_count}";
|
||||||
|
cmd_duration.format = " $duration";
|
||||||
|
cmd_duration.show_notifications = false;
|
||||||
|
hostname = {
|
||||||
|
disabled = false;
|
||||||
|
ssh_symbol = "🌐";
|
||||||
|
format = "[$ssh_symbol$hostname]($style)";
|
||||||
|
style = "bg:red fg:crust";
|
||||||
|
};
|
||||||
|
os.symbols.NixOS = " ";
|
||||||
|
format = lib.replaceStrings ["\n"] [""] ''
|
||||||
|
[](red)
|
||||||
|
$os
|
||||||
|
$username
|
||||||
|
$hostname
|
||||||
|
[](bg:peach fg:red)
|
||||||
|
$directory
|
||||||
|
[](bg:yellow fg:peach)
|
||||||
|
$git_branch
|
||||||
|
$git_status
|
||||||
|
[](fg:yellow bg:green)
|
||||||
|
$c
|
||||||
|
$rust
|
||||||
|
$golang
|
||||||
|
$nodejs
|
||||||
|
$php
|
||||||
|
$java
|
||||||
|
$kotlin
|
||||||
|
$haskell
|
||||||
|
$python
|
||||||
|
[](fg:green bg:sapphire)
|
||||||
|
$conda
|
||||||
|
[](fg:sapphire bg:lavender)
|
||||||
|
$time
|
||||||
|
[ ](fg:lavender)
|
||||||
|
$cmd_duration
|
||||||
|
$line_break
|
||||||
|
$character
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
}).wrapper;
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -139,55 +139,5 @@ in
|
|||||||
self'.packages.shell-tools
|
self'.packages.shell-tools
|
||||||
];
|
];
|
||||||
}).wrapper;
|
}).wrapper;
|
||||||
|
|
||||||
packages.starship = (inputs.wrappers.wrapperModules.starship.apply {
|
|
||||||
inherit pkgs;
|
|
||||||
settings = lib.recursiveUpdate (lib.importTOML (pkgs.fetchurl {
|
|
||||||
url = https://starship.rs/presets/toml/catppuccin-powerline.toml;
|
|
||||||
sha256 = "0bd8zx0bpri63rnb9dva0rav75d3i2wrzw44h63m75hq5220r26g";
|
|
||||||
})) {
|
|
||||||
palette = "catppuccin_mocha";
|
|
||||||
add_newline = true;
|
|
||||||
line_break.disabled = false;
|
|
||||||
git_status.diverged = "⇕⇡\${ahead_count}⇣\${behind_count}";
|
|
||||||
cmd_duration.format = " $duration";
|
|
||||||
hostname = {
|
|
||||||
disabled = false;
|
|
||||||
ssh_symbol = "🌐";
|
|
||||||
format = "[$ssh_symbol$hostname]($style)";
|
|
||||||
style = "bg:red fg:crust";
|
|
||||||
};
|
|
||||||
os.symbols.NixOS = " ";
|
|
||||||
format = lib.replaceStrings ["\n"] [""] ''
|
|
||||||
[](red)
|
|
||||||
$os
|
|
||||||
$username
|
|
||||||
$hostname
|
|
||||||
[](bg:peach fg:red)
|
|
||||||
$directory
|
|
||||||
[](bg:yellow fg:peach)
|
|
||||||
$git_branch
|
|
||||||
$git_status
|
|
||||||
[](fg:yellow bg:green)
|
|
||||||
$c
|
|
||||||
$rust
|
|
||||||
$golang
|
|
||||||
$nodejs
|
|
||||||
$php
|
|
||||||
$java
|
|
||||||
$kotlin
|
|
||||||
$haskell
|
|
||||||
$python
|
|
||||||
[](fg:green bg:sapphire)
|
|
||||||
$conda
|
|
||||||
[](fg:sapphire bg:lavender)
|
|
||||||
$time
|
|
||||||
[ ](fg:lavender)
|
|
||||||
$cmd_duration
|
|
||||||
$line_break
|
|
||||||
$character
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
}).wrapper;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user