home-profile: update starship, update code editor

This commit is contained in:
Mateusz Słodkowicz 2023-05-23 17:26:52 +02:00
parent 313ddf3406
commit 624d7f96d1
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
2 changed files with 48 additions and 4 deletions

View File

@ -8,7 +8,18 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
programs.vscode = { programs.vscode = {
enable = lib.mkDefault true; enable = lib.mkDefault true;
package = lib.mkDefault (pkgs.vscodium.fhsWithPackages (ps: with ps; [ gcc clang llvm lld lldb gdb rnix-hashes rnix-lsp nixfmt])); package = lib.mkDefault (pkgs.vscodium.fhsWithPackages (ps: with ps; [
gcc
clang
llvm
lld
lldb
gdb
rnix-hashes
rnix-lsp
nixfmt
(python311.withPackages (ps: with ps; [ urllib3 ]))
]));
mutableExtensionsDir = lib.mkDefault true; mutableExtensionsDir = lib.mkDefault true;
}; };
materus.profile.fonts.enable = lib.mkDefault true; materus.profile.fonts.enable = lib.mkDefault true;

View File

@ -9,7 +9,40 @@ in
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
programs.starship.enable = lib.mkDefault cfg.enable; programs.starship.enable = lib.mkDefault cfg.enable;
programs.starship.settings = lib.mkDefault { }; programs.starship.settings = {
python = {
symbol = " ";
};
format = "$username@$hostname$all";
right_format = "$cmd_duration $time";
time = {
disabled = false;
style = "bold bright-black";
format = "[$time]($style)";
};
line_break = { disabled = true; };
shell = {
disabled = false;
fish_indicator = "fish";
bash_indicator= "bash";
zsh_indicator= "zsh";
style = "blue bold";
};
hostname = {
ssh_only = false;
};
username = {
disabled = false;
show_always = true;
format = "[$user]($style)";
style_user = "white bold";
style_root = "black bold";
};
};
}; };
} }