41 lines
797 B
Nix
41 lines
797 B
Nix
{
|
|
config,
|
|
lib,
|
|
osConfig,
|
|
...
|
|
}:
|
|
{
|
|
config = lib.mkMerge [
|
|
(lib.mkIf (osConfig.desktop.status-bar == "waybar") {
|
|
home.sessionVariables.STATUS_BAR = "waybar";
|
|
programs.waybar = {
|
|
enable = true;
|
|
settings = [
|
|
{
|
|
layer = "top";
|
|
modules-right = [
|
|
"battery"
|
|
"clock"
|
|
];
|
|
"clock" = {
|
|
interval = 1;
|
|
format = "{:%F %T}";
|
|
};
|
|
}
|
|
];
|
|
style = # css
|
|
''
|
|
window#waybar {
|
|
background-color: rgba(0, 0, 0, 0);
|
|
}
|
|
|
|
#clock {
|
|
padding-top: 5px;
|
|
padding-right: 5px;
|
|
color: #ffffff;
|
|
}
|
|
'';
|
|
};
|
|
})
|
|
];
|
|
}
|