Files
dotfiles/home/services/ironbar/default.nix
servius 5cecce74e8
Some checks failed
Flake checker / Build Nix targets (push) Has been cancelled
chore(config): reduce ironbar favorites, disable cadvisor, update pihole hostname for the extractor
2026-02-02 01:07:00 +05:30

106 lines
2.6 KiB
Nix

{
inputs,
pkgs,
device,
...
}: {
imports = [inputs.ironbar.homeManagerModules.default];
programs.ironbar = {
enable = device.is "ryu";
package = inputs.ironbar.packages.${pkgs.system}.ironbar;
systemd = true;
config.monitors = {
"${device.monitors.secondary}" = {
position = "bottom";
start = [
{type = "tray";}
# {
# type = "launcher";
# favourites = ["firefox" "discord"];
# show_names = false;
# show_icons = true;
# }
# {type = "focused";}
];
end = [
{
type = "clipboard";
max_items = 3;
truncate.length = 50;
truncate.mode = "end";
}
{
type = "music";
player_type = "mpris";
}
{type = "clock";}
];
};
"${device.monitors.primary}" = {
position = "bottom";
icon_theme = "Papirus-Dark";
end = [
{
type = "sys_info";
format = [
" CPU {cpu_percent}% | {temp_c:coretemp-Package-id-0}°C"
" RAM {memory_used}GB/{memory_total}GB"
];
interval = {
cpu = 1;
temps = 5;
memory = 30;
# disks= 300;
# networks= 3;
};
}
];
start = [
{
type = "workspaces";
name_map = {
"1" = "icon:kitty";
"2" = "icon:code";
"3" = "icon:firefox";
"4" = "icon:slack";
# "5" = "icon:steam";
# "6" = "icon:foot";
# "7" = "icon:foot";
# "8" = "icon:firefox";
# "9" = "icon:discord";
# "10" = "icon:spotify";
};
favorites = ["1" "2" "3" "4"];
all_monitors = false;
}
];
};
"${device.monitors.tertiary}" = {
position = "bottom";
icon_theme = "Papirus-Dark";
start = [
{
type = "launcher";
show_names = false;
show_icons = true;
}
{type = "focused";}
];
end = [
{type = "clock";}
];
};
};
style = let
catppuccin = pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "waybar";
rev = "v1.0";
sha256 = "sha256-vfwfBE3iqIN1cGoItSssR7h0z6tuJAhNarkziGFlNBw";
};
mocha = builtins.readFile "${catppuccin}/mocha.css";
in
mocha + builtins.readFile ./ironbar.css;
};
}