home: Import niri variables into environment

This commit is contained in:
Mikael 2024-09-04 18:36:17 +02:00
parent e8b9c619e0
commit 2f43dbb660
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -3,6 +3,7 @@ let
osConfig = args.osConfig or { }; osConfig = args.osConfig or { };
brightnessctl = lib.getExe pkgs.brightnessctl; brightnessctl = lib.getExe pkgs.brightnessctl;
dbus-update = pkgs.dbus + /bin/dbus-update-activation-environment;
fish = lib.getExe osConfig.programs.fish.package; fish = lib.getExe osConfig.programs.fish.package;
fuzzel = lib.getExe config.programs.fuzzel.package; fuzzel = lib.getExe config.programs.fuzzel.package;
kitty = lib.getExe config.programs.kitty.package; kitty = lib.getExe config.programs.kitty.package;
@ -282,6 +283,12 @@ in lib.mkIf (osConfig.hardware.graphics.enable or false) {
}; };
spawn-at-startup = [ 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" "swayidle.service" ]; }
{ command = [ systemctl "--user" "start" "waybar.service" ]; } { command = [ systemctl "--user" "start" "waybar.service" ]; }
]; ];