Redshift: Difference between revisions

Phobos (talk | contribs)
No edit summary
Phobos (talk | contribs)
Updated
Line 40: Line 40:
location.provider = "geoclue2";|name=/etc/nixos/configuration.nix|lang=nix}}
location.provider = "geoclue2";|name=/etc/nixos/configuration.nix|lang=nix}}


==== Advanced ====
==== Advanced (Home Manager) ====
{{File|3=services.redshift = {
{{File|3=services.redshift = {
   enable = true;
   enable = true;
Line 55: Line 55:
    
    
   # Schedule settings
   # Schedule settings
   settings = {
   dawnTime = "6:00-7:45";
    dawn-time = "6:00-7:45";
  duskTime = "18:35-20:15";
    dusk-time = "18:35-20:15";
  };
    
    
   # General settings
   # General settings
Line 78: Line 76:
# Or like this, which can also be set in services.redshift
# Or like this, which can also be set in services.redshift
location.latitude = "27.9880614";
location.latitude = "27.9880614";
location.longitude = "86.92521";|name=/etc/nixos/configuration.nix|lang=nix}}
location.longitude = "86.92521";|name=/etc/nixos/home.nix|lang=nix}}


== Tips and Tricks ==
== Tips and Tricks ==
==== Location of Options ====
==== Location of Options ====
The home manager options are defined in the following [https://nix-community.github.io/home-manager/options.xhtml#opt-services.gammastep.enable Home Manager Options Manual].
The Home Manager options are defined in the [https://nix-community.github.io/home-manager/options.xhtml#opt-services.gammastep.enable Home Manager Options Manual].  


The global options are listed here [https://search.nixos.org/options?query=redshift search.nixos.org].
The global options are listed in [https://search.nixos.org/options?query=redshift search.nixos.org].


==== Usage ====
==== Usage ====