Redshift: Difference between revisions
imported>Andriokha It looks like you don't need to explicitly install packages needed for a service. |
imported>Andriokha No edit summary |
||
Line 9: | Line 9: | ||
== Installation == | == Installation == | ||
Enable <syntaxhighlight lang="nix" inline>services.redshift</syntaxhighlight>. | |||
Example snippet of <code>configuration.nix</code>: | Example snippet of <code>configuration.nix</code>: | ||
<syntaxHighlight lang=nix> | <syntaxHighlight lang=nix> |
Revision as of 15:38, 23 April 2020
Prerequisites
You can either manually configure a location or specify a location provider such as geoclue2 with the following options:
location.provider
location.latitude
(Used by themanual
provider.)location.longitude
(Used by themanual
provider.)
Installation
Enable services.redshift
.
Example snippet of configuration.nix
:
{ config, pkgs, callPackage, ... }: {
...
# All values except 'enable' are optional.
services.redshift = {
enable = true;
brightness = {
# Note the string values below.
day = "1";
night = "1";
};
temperature = {
day = 5500;
night = 3700;
};
};
};