{ config, lib, ... }: let cfg = config.reborn.swaync; in { options.reborn.swaync = { enable = lib.mkEnableOption "Reborn swaync config"; }; config = lib.mkIf cfg.enable { home-manager.users.minijackson.services.swaync = { enable = true; settings = { widgets = [ "buttons-grid" "mpris" "volume" "backlight" "inhibitors" "title" "dnd" "notifications" ]; widget-config = { buttons-grid.actions = [ { label = "󰜉"; command = "systemctl reboot"; } { label = "󰐥"; command = "systemctl poweroff"; } ]; volume = { label = "󰕾"; show-per-app = true; show-per-app-label = true; }; }; }; style = ./swaync.css; }; }; }