Redshift: Difference between revisions

Phobos (talk | contribs)
mNo edit summary
Phobos (talk | contribs)
mNo edit summary
Line 10: Line 10:


== Installation ==
== Installation ==
==== Using nix-shell ====
<syntaxhighlight lang="console">
$ nix-shell -p redshift
</syntaxhighlight>
==== Using Global Configuration ====
==== Using Global Configuration ====
{{File|3=environment.systemPackages = [
{{File|3=environment.systemPackages = [
  pkgs.redshift
  pkgs.redshift
];|name=/etc/nixos/configuration.nix|lang=nix}}
];|name=/etc/nixos/configuration.nix|lang=nix}}
After modifying your configuration, apply the changes by running:<syntaxhighlight lang="console">
$ sudo nixos-rebuild switch
</syntaxhighlight>
==== Using Home Configuration ====
==== Using Home Configuration ====
{{File|3=home.packages = [  
{{File|3=home.packages = [  
   pkgs.redshift  
   pkgs.redshift  
];|name=/etc/nixos/home.nix|lang=nix}}
];|name=/etc/nixos/home.nix|lang=nix}}
After updating your configuration, apply the changes by running:<syntaxhighlight lang="console">
$ home-manager switch
</syntaxhighlight>
== Configuration ==
== Configuration ==
==== Using Global Configuration: ====
==== Using Global Configuration: ====
Options may be found under [https://search.nixos.org/options?query=services.redshift services.redshift].{{File|3=services.redshift = {
Options may be found under [https://search.nixos.org/options?query=services.redshift services.redshift]. For more options for configuring Geoclue, check the [[Geoclue|Geoclue page]].{{File|3=services.redshift = {
   enable = true;
   enable = true;
   temperature = {
   temperature = {