modules/home/programs/shell/oh-my-posh.nix: lil gup

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-04-07 12:41:24 +03:00
parent 7814204ae6
commit ab17c1ce64

View File

@ -2,8 +2,8 @@
config,
lib,
...
}:
with lib; let
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.shell.oh-my-posh;
in {
options = {
@ -69,7 +69,7 @@ in {
style = "plain";
foreground = "white";
background = "transparent";
template = "{{ if .SSHSession }} {{ .UserName }}@{{ .HostName }} {{ end }}";
template = "{{ if .SSHSession }} {{ .UserName }}@{{ .HostName }}{{ end }}";
}
{
style = "plain";
@ -80,7 +80,7 @@ in {
charging_icon = "󱟡";
discharging_icon = "󱟟";
};
template = "{{ if not .Error }} {{ .Icon }} {{ .Percentage }}%{{ end }}";
template = "{{ if not .Error }} {{ .Icon }} {{ .Percentage }}%{{ end }}";
type = "battery";
}
];