1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

feat: create starship configuration

This commit is contained in:
oddlama 2022-12-16 18:21:41 +01:00
parent ffb1d41d8c
commit 79129d60ea
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
5 changed files with 71 additions and 5 deletions

View file

@ -34,7 +34,7 @@
console = { console = {
font = "ter-v28n"; font = "ter-v28n";
keyMap = "de-latin1-nodeadkeys"; keyMap = "de-latin1-nodeadkeys";
packages = pkgs.terminus_font; packages = with pkgs; [terminus_font];
}; };
environment.systemPackages = with pkgs; [wireguard-tools powertop]; environment.systemPackages = with pkgs; [wireguard-tools powertop];

View file

@ -69,7 +69,7 @@ in {
system = { system = {
extraSystemBuilderCmds = '' extraSystemBuilderCmds = ''
ln -sv ${pkgs.path} $out/nixpkgs ln -sv ${pkgs.path} $out/nixpkgs
ln -sv ${../nix/overlays} $out/overlays ln -sv ${../../nix/overlays} $out/overlays
''; '';
stateVersion = "22.11"; stateVersion = "22.11";

View file

@ -2,6 +2,7 @@ let
issue_text = '' issue_text = ''
\d \t \d \t
This is \e{cyan}\n\e{reset} [\e{lightblue}\l\e{reset}] (\s \m \r) This is \e{cyan}\n\e{reset} [\e{lightblue}\l\e{reset}] (\s \m \r)
''; '';
in { in {
environment.etc."issue".text = issue_text; environment.etc."issue".text = issue_text;

View file

@ -3,11 +3,13 @@
enable = true; enable = true;
settings = settings =
{ {
tree_view = 1;
highlight_base_name = 1; highlight_base_name = 1;
show_cpu_frequency = 1; show_cpu_frequency = 1;
show_cpu_temperature = 1; show_cpu_temperature = 1;
hide_kernel_threads = 1; hide_kernel_threads = 1;
hide_userland_threads = 1; hide_userland_threads = 1;
sort_key = 46; # Sort by %CPU if not in tree mode
} }
// (with config.lib.htop; // (with config.lib.htop;
leftMeters [ leftMeters [

View file

@ -15,15 +15,78 @@
"$character" "$character"
]; ];
right_format = lib.concatStrings [ right_format = lib.concatStrings [
"$status"
"$cmd_duration" "$cmd_duration"
"$jobs"
"$package" "$package"
"$haskell"
"$python" "$python"
"$rust" "$rust"
"$nix_shell" "$nix_shell"
"$line_break" "$time"
"$jobs"
]; ];
username = {
format = "[$user]($style) ";
style_root = "red";
style_user = "cyan";
};
hostname = {
format = "[$ssh_symbol$hostname]($style) ";
ssh_only = false;
ssh_symbol = "🌐";
style = "cyan";
};
directory = {
fish_style_pwd_dir_length = 1;
style = "bold blue";
};
character = {
success_symbol = "\\$";
error_symbol = "\\$";
vimcmd_symbol = "[](bold green)";
vimcmd_replace_one_symbol = "[](bold purple)";
vimcmd_replace_symbol = "[](bold purple)";
vimcmd_visual_symbol = "[](bold yellow)";
};
git_branch = {
format = "[$symbol$branch]($style) ";
symbol = " ";
style = "green";
};
git_commit = {
commit_hash_length = 8;
format = "[$hash$tag]($style) ";
style = "green";
};
git_status = {
conflicted = "$count ";
ahead = "$count ";
behind = "$count ";
diverged = "$ahead_count$behind_count ";
untracked = "?$count ";
stashed = "\\$$count ";
modified = "!$count ";
staged = "+$count ";
renamed = "$count ";
deleted = "-$count ";
format = "[$conflicted](red)[$stashed](magenta)[$staged](green)[$deleted](red)[$renamed](blue)[$modified](yellow)[$untracked](yellow)[$ahead_behind](green)";
};
status = {
pipestatus = true;
disabled = false;
pipestatus_format = "$pipestatus => [$symbol$common_meaning$signal_name$maybe_int]($style)";
pipestatus_segment_format = "[$symbol$status]($style)";
format = "[$symbol$status$signal_name]($style)";
};
cmd_duration = {
format = "[ $duration]($style) ";
style = "yellow";
};
time = {
format = "[ $time]($style) ";
style = "cyan";
disabled = false;
};
}; };
}; };
} }