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:
Nicolas Berbiche 2021-12-23 17:00:31 -05:00 committed by GitHub
parent 3b9c625b64
commit f15b151ca1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 2 deletions

View file

@ -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 = ''

View file

@ -1,5 +1,5 @@
[Install]
WantedBy=graphical-session.target
WantedBy=sway-session.target
[Service]
ExecReload=kill -SIGUSR2 $MAINPID