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" = { xdg.configFile."hypr/hyprland.conf" = {
text = text =
(lib.optionalString cfg.systemdIntegration '' (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=${pkgs.dbus}/bin/dbus-update-activation-environment --systemd \
exec-once=systemctl --user start hyprland-session.target DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP && \
systemctl --user start hyprland-session.target
'') '')
+ cfg.extraConfig; + cfg.extraConfig;