Nix HM: prevent race condition between dbus and systemd

Fixes #940
This commit is contained in:
Mihai Fufezan 2022-11-02 21:36:07 +02:00
parent c1542da18a
commit 0d7176792b
No known key found for this signature in database
GPG Key ID: 5899325F2F120900

View File

@ -102,8 +102,9 @@ in {
xdg.configFile."hypr/hyprland.conf" = {
text =
(lib.optionalString cfg.systemdIntegration ''
exec-once=${pkgs.dbus}/bin/dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP
exec-once=systemctl --user start hyprland-session.target
exec-once=${pkgs.dbus}/bin/dbus-update-activation-environment --systemd \
DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP && \
systemctl --user start hyprland-session.target
'')
+ cfg.extraConfig;