From 2f43dbb660f135945145df74a749ce99e75fb7ad Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Wed, 4 Sep 2024 18:36:17 +0200 Subject: [PATCH] home: Import niri variables into environment --- home/config/nil/desktop.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/home/config/nil/desktop.nix b/home/config/nil/desktop.nix index e38cd0b..4b7724b 100644 --- a/home/config/nil/desktop.nix +++ b/home/config/nil/desktop.nix @@ -3,6 +3,7 @@ let osConfig = args.osConfig or { }; brightnessctl = lib.getExe pkgs.brightnessctl; + dbus-update = pkgs.dbus + /bin/dbus-update-activation-environment; fish = lib.getExe osConfig.programs.fish.package; fuzzel = lib.getExe config.programs.fuzzel.package; kitty = lib.getExe config.programs.kitty.package; @@ -282,6 +283,12 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) { }; spawn-at-startup = [ + { command = [ dbus-update "--systemd" + "NIRI_SOCKET" + "WAYLAND_DISPLAY" + "XDG_CURRENT_DESKTOP" + "XDG_SESSION_TYPE" + ]; } { command = [ systemctl "--user" "start" "swayidle.service" ]; } { command = [ systemctl "--user" "start" "waybar.service" ]; } ];