home: Correct bar systemd service
This commit is contained in:
parent
e448f90b66
commit
7d5746482e
1 changed files with 4 additions and 18 deletions
|
@ -14,6 +14,8 @@ let
|
||||||
in lib.mkIf (osConfig.hardware.graphics.enable or false) {
|
in lib.mkIf (osConfig.hardware.graphics.enable or false) {
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
systemd.enable = true;
|
||||||
|
|
||||||
package = pkgs.waybar.override {
|
package = pkgs.waybar.override {
|
||||||
cavaSupport = false;
|
cavaSupport = false;
|
||||||
hyprlandSupport = false;
|
hyprlandSupport = false;
|
||||||
|
@ -280,27 +282,11 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd.user.services = {
|
|
||||||
waybar = {
|
|
||||||
Unit = {
|
|
||||||
PartOf = [ "graphical-session.target" ];
|
|
||||||
After = [ "graphical-session.target" ];
|
|
||||||
BindsTo = [ "tray.target" ];
|
|
||||||
Before = [ "tray.target" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
Service = {
|
|
||||||
Type = "exec";
|
|
||||||
ExecStart = lib.getExe config.programs.waybar.package;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
systemd.user.targets = {
|
systemd.user.targets = {
|
||||||
tray = {
|
tray = {
|
||||||
Unit = {
|
Unit = {
|
||||||
PartOf = [ "graphical-session.target" ];
|
BindsTo = [ "waybar.service" ];
|
||||||
After = [ "graphical-session.target" ];
|
After = [ "waybar.service" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue