waybar: configurable systemd WantedBy target (#2524)
Before this commit, a user needed to override the systemd target that would start Waybar with `mkForce`, this is no longer necessary.
This commit is contained in:
parent
3b9c625b64
commit
f15b151ca1
3 changed files with 17 additions and 2 deletions
|
|
@ -10,6 +10,7 @@ with lib;
|
|||
package = config.lib.test.mkStubPackage { outPath = "@waybar@"; };
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
systemd.target = "sway-session.target";
|
||||
};
|
||||
|
||||
nmt.script = ''
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
[Install]
|
||||
WantedBy=graphical-session.target
|
||||
WantedBy=sway-session.target
|
||||
|
||||
[Service]
|
||||
ExecReload=kill -SIGUSR2 $MAINPID
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue