Add general home configuration function and starship configuration

Signed-off-by: George Kaklamanos <gkaklas@gkaklas.gr>
This commit is contained in:
George Kaklamanos 2024-04-28 22:52:41 +03:00
parent 11d2280c7c
commit 190435b507
No known key found for this signature in database
GPG key ID: C0CAB8A6BDC9399D
3 changed files with 46 additions and 0 deletions

3
home-manager/config.nix Normal file
View file

@ -0,0 +1,3 @@
{pkgs, ...}: {
imports = [./starship.nix];
}

View file

@ -32,6 +32,7 @@
inherit pkgs;
modules = [
./home.nix
./config.nix
./packages.nix
./flatpak.nix
./plasma/plasma.nix

42
home-manager/starship.nix Normal file
View 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
:> ";
};
}