# Night light — a scheduled blue-light filter via hyprsunset (Hyprland's own # gamma/temperature tool). Warm at night, identity (no shift) by day; # hyprsunset's time-based `profile` entries handle the schedule and pick the # right state on session start. Opt-in via nomarchy.nightlight.enable. # # The hyprsunset HM service module is provided by home-manager; this only # configures it. Override anything with plain services.hyprsunset.* options. { config, lib, ... }: let cfg = config.nomarchy.nightlight; in { config = lib.mkIf cfg.enable { services.hyprsunset = { enable = true; settings.profile = [ # Daytime: identity = no colour change. { time = cfg.sunrise; identity = true; } # Night: shift to the warm temperature. { time = cfg.sunset; temperature = cfg.temperature; } ]; }; }; }