Redshift: Difference between revisions

Layer-09 (talk | contribs)
Changed the layout, added more information
Layer-09 (talk | contribs)
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:


== Installation ==
== Installation ==
==== Using nix-shell ====
<syntaxhighlight lang="bash" start="3">
nix-shell -p redshift
</syntaxhighlight>


==== Using Global Configuration ====
<syntaxhighlight lang="text">
environment.systemPackages = [
  pkgs.redshift
];
</syntaxhighlight>After modifying your configuration, apply the changes by running:<syntaxhighlight lang="bash">
sudo nixos-rebuild switch
</syntaxhighlight>
==== Using Home Configuration ====
<syntaxhighlight lang="text">
home.packages = [
  pkgs.redshift
];
</syntaxhighlight>After updating your configuration, apply the changes by running:<syntaxhighlight lang="bash">
home-manager switch
</syntaxhighlight>
== Configuration ==
==== Basic ====
==== Basic ====
<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>
# location.provider = "geoclue2"
# All values except 'enable' are optional.
services.redshift = {
services.redshift = {
   enable = true;
   enable = true;
Line 18: Line 39:
   };
   };
};
};
services.geoclue2.enable = true;
location.provider = "geoclue2";
</syntaxHighlight>
</syntaxHighlight>