This commit is contained in:
2025-07-05 10:15:23 +02:00
parent 2a23f575b2
commit 2ca846d0a3
6 changed files with 62 additions and 62 deletions

View File

@@ -6,7 +6,7 @@
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.home.programs.waybar;
uwsm = lib.getExe pkgs.uwsm;
# uwsm = lib.getExe pkgs.uwsm;
waybar = lib.getExe pkgs.waybar;
waybarAssets = pkgs.runCommand "waybar-config-assets" {} ''
@@ -22,15 +22,14 @@ in {
config = mkIf cfg.enable {
systemd.user.services.waybar = {
Unit = {
Description = "Highly customizable Wayland bar for Sway and Wlroots based compositors.";
After = ["graphical-session.target"];
ConditionEnvironment = "WAYLAND_DISPLAY";
Description = "waybar";
};
Service = {
ExecStart = "${uwsm} app -- ${waybar} -c ${waybarAssets}/config.jsonc -s ${waybarAssets}/style.css";
Type = "exec";
ExecStart = "${waybar} -c ${waybarAssets}/config.jsonc -s ${waybarAssets}/style.css";
Restart = "on-failure";
Slice = "app-graphical.slice";
Restart = "always";
RestartSec = 30;
};
Install = {
WantedBy = ["graphical-session.target"];