2025-01-27 23:30:24 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (config.local.systemVars) username;
|
|
|
|
toTOML = (pkgs.formats.toml {}).generate;
|
|
|
|
in {
|
2025-02-06 18:40:30 +01:00
|
|
|
config = lib.mkIf (config.local.systemVars.desktop != "none") {
|
2025-01-27 23:30:24 +01:00
|
|
|
hjem.users.${username} = {
|
|
|
|
packages = [pkgs.starship];
|
|
|
|
files = {
|
|
|
|
".config/starship/config.toml".source = toTOML "starship config" {
|
|
|
|
add_newline = true;
|
|
|
|
directory = {
|
|
|
|
style = "bold yellow";
|
|
|
|
};
|
|
|
|
character = {
|
|
|
|
format = "$symbol ";
|
|
|
|
success_symbol = "[➜](bold green)";
|
|
|
|
error_symbol = "[✗](bold red)";
|
|
|
|
};
|
|
|
|
cmd_duration = {
|
|
|
|
style = "yellow";
|
|
|
|
format = "[ $duration]($style)";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|