diff --git a/hardware-configuration.nix b/hardware-configuration.nix index 8588700..92736c7 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -15,6 +15,11 @@ systemd.services.heat-room = { description = "Morning room heating"; + after = [ "graphical-session.target" ]; + environment = { + WAYLAND_DISPLAY = "wayland-1"; + XDG_RUNTIME_DIR = "/run/user/1000"; + }; serviceConfig = { Type = "oneshot"; User = "jeremy"; @@ -22,7 +27,7 @@ script = '' ${pkgs.furmark}/bin/furmark --demo furmark-gl & sleep 1s - hyprctl dispatch dpms off + ${pkgs.hyprland}/bin/hyprctl dispatch dpms off sleep 2h pkill furmark '';