summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Fufezan <fufexan@protonmail.com>2022-11-02 21:36:07 +0200
committerMihai Fufezan <fufexan@protonmail.com>2022-11-02 21:36:07 +0200
commit0d7176792b6ceed2ade337278f54e1112cdc957e (patch)
tree5ee68a244a8d70adf6356cdd84697f2fcb7549e5
parentc1542da18ab3d10c3aac6cca7cd55374dd4b779a (diff)
Nix HM: prevent race condition between dbus and systemd
Fixes #940
-rw-r--r--nix/hm-module.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nix/hm-module.nix b/nix/hm-module.nix
index 6809e012..7b2af275 100644
--- a/nix/hm-module.nix
+++ b/nix/hm-module.nix
@@ -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;