Wlsunset home-manager module not working on Hyprland

I can’t share any logs or stuff, since there are none. This is what I got:

I am on a flakes based system with nixos-24.11 stable. No unstable packages. The service is neither in the nix store nor is there any symlink of it in the systemd user dir.

There is no service. You can just have hyprland start it with passing the geo coordinates..

I personally don’t use hyprland but use it like this with river.

1 Like

I got back to using this:

{ pkgs, lib, ... }: {
  systemd.user.services = lib.mkForce {
    wlsunset = {
      Install = {
        WantedBy = ["graphical-session.target"];
      };

      Unit = {
        Description = "Day/night gamma adjustments for Wayland";
        Documentation = ["man:wlsunset(1)"];
        After = ["graphical-session.target"];
      };

      Service = {
        Type = "exec";
        ExecStart = "${pkgs.wlsunset}/bin/wlsunset -t 5000 -T 7000 -s 18:00 -S 06:30";
        ExecCondition = "${pkgs.systemd}/lib/systemd/systemd-xdg-autostart-condition \"Hyprland\" \"\" ";
        Restart = "on-failure";
        Slice = "background-graphical.slice";
      };
    };
  };
}