diff options
| author | Kleidi Bujari <mail@4kb.net> | 2025-08-31 19:10:53 -0700 |
|---|---|---|
| committer | Kleidi Bujari <mail@4kb.net> | 2025-08-31 19:10:53 -0700 |
| commit | b64035d6f6228323c2e2be7d5adfb1c4e3b498cc (patch) | |
| tree | 86014842a492c236f704a7606f693e487c4f842d | |
| parent | 51a17428296b93d35334be671b6a48bc81f72a0a (diff) | |
| download | depot-b64035d6f6228323c2e2be7d5adfb1c4e3b498cc.tar.gz depot-b64035d6f6228323c2e2be7d5adfb1c4e3b498cc.tar.bz2 depot-b64035d6f6228323c2e2be7d5adfb1c4e3b498cc.zip | |
more specific waybar service
| -rw-r--r-- | modules/desktop.nix | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/modules/desktop.nix b/modules/desktop.nix index ff63cf9..f992fc2 100644 --- a/modules/desktop.nix +++ b/modules/desktop.nix @@ -66,7 +66,6 @@ in in { mako = afterGraphical "${pkgs.mako}/bin/mako"; - waybar = afterGraphical "${pkgs.waybar}/bin/waybar"; udiskie = afterGraphical "${pkgs.udiskie}/bin/udiskie"; xwayland = afterGraphical "${pkgs.xwayland-satellite}/bin/xwayland-satellite"; swayidle = @@ -86,6 +85,23 @@ in before-sleep '${swaylock}' '' ); + + waybar = { + partOf = [ "graphical-session.target" ]; + wantedBy = [ "graphical-session.target" ]; + after = [ "graphical-session.target" ]; + + path = with pkgs; [ + pwvucontrol + ]; + + serviceConfig = { + Type = "exec"; + ExecStart = "${pkgs.waybar}/bin/waybar"; + ExecReload = "kill -SIGUSR2 $MAINPID"; + Restart = "on-failure"; + }; + }; }; qt = { |
