Add general home configuration function and starship configuration
Signed-off-by: George Kaklamanos <gkaklas@gkaklas.gr>
This commit is contained in:
parent
11d2280c7c
commit
190435b507
3 changed files with 46 additions and 0 deletions
3
home-manager/config.nix
Normal file
3
home-manager/config.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
imports = [./starship.nix];
|
||||||
|
}
|
|
@ -32,6 +32,7 @@
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
modules = [
|
modules = [
|
||||||
./home.nix
|
./home.nix
|
||||||
|
./config.nix
|
||||||
./packages.nix
|
./packages.nix
|
||||||
./flatpak.nix
|
./flatpak.nix
|
||||||
./plasma/plasma.nix
|
./plasma/plasma.nix
|
||||||
|
|
42
home-manager/starship.nix
Normal file
42
home-manager/starship.nix
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
programs.starship.enable = true;
|
||||||
|
programs.starship.enableFishIntegration = true;
|
||||||
|
|
||||||
|
programs.starship.settings = {
|
||||||
|
battery.disabled = false;
|
||||||
|
battery.charging_symbol = "⚡️ ";
|
||||||
|
|
||||||
|
time = {
|
||||||
|
disabled = false;
|
||||||
|
format = "🕙[$time ]($style)";
|
||||||
|
style = "bold #C51E3A"; # Cardinal red
|
||||||
|
};
|
||||||
|
|
||||||
|
hostname = {
|
||||||
|
format = "[$hostname ]($style)";
|
||||||
|
style = "bold #4CBB17"; # Kelly green
|
||||||
|
ssh_only = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
username = {
|
||||||
|
format = "[$user@]($style)";
|
||||||
|
style_user = "bold #AFDBF5"; # Uranian blue
|
||||||
|
show_always = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
git_branch = {
|
||||||
|
symbol = "";
|
||||||
|
};
|
||||||
|
|
||||||
|
cmd_duration = {
|
||||||
|
format = "[$duration ]($style)";
|
||||||
|
show_notifications = true;
|
||||||
|
style = "bold #E0115F"; # Ruby
|
||||||
|
};
|
||||||
|
|
||||||
|
python.format = "[$symbol$pyenv_prefix($version)(($virtualenv)) ]($style)";
|
||||||
|
rust.format = "[$symbol($version) ]($style)";
|
||||||
|
format = "$username$hostname$battery$time$jobs$git_branch$python$rust$cmd_duration$directory
|
||||||
|
:> ";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue