Jump to content

Wlsunset

From Official NixOS Wiki
Revision as of 20:15, 3 December 2025 by Phobos (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

wlsunset is a service that adjusts screen temperature and gamma adjustments depending on time of day. It works specifically with Wayland compositors supporting wlr-gamma-control-unstable-v1.

Installation

wlsunset can be installed simply as a package:

❄︎ /etc/nixos/configuration.nix
environment.systemPackages = [
  pkgs.wlsunset
];

Home Manager Configuration

Configuration options may be found in Home Manager - services.wlsunset. An example configuration:

❄︎ /etc/nixos/home.nix
services.wlsunset = {
  enable = true;

  temperature = {
    day = 6500;
    night = 3000;
  };

  sunrise = "06:00";
  sunset = "18:00";

  #gamma = 1.0;
  
  #For location based sunrise/sunset
  #
  #latitude = 23.5;
  #longitude = 91.7;
};