Redshift: Difference between revisions
Changed the layout, added more information |
Phanirithvij (talk | contribs) m amend |
||
| (3 intermediate revisions by 2 users 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> | ||
services.redshift = { | services.redshift = { | ||
enable = true; | enable = true; | ||
| Line 18: | Line 39: | ||
}; | }; | ||
}; | }; | ||
services.geoclue2.enable = true; | |||
location.provider = "geoclue2"; | |||
</syntaxHighlight> | </syntaxHighlight> | ||
| Line 66: | Line 90: | ||
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 following [https://nix-community.github.io/home-manager/options.xhtml#opt-services.gammastep.enable Home Manager Options Manual]. | ||
The global options are listed | The global options are listed here [https://search.nixos.org/options?query=redshift search.nixos.org]. | ||
==== Usage ==== | ==== Usage ==== | ||
| Line 88: | Line 112: | ||
* https://github.com/jonls/redshift | * https://github.com/jonls/redshift | ||
* https://nix-community.github.io/home-manager/options.xhtml#opt-services.gammastep.enable | * https://nix-community.github.io/home-manager/options.xhtml#opt-services.gammastep.enable | ||
* https:// | * https://search.nixos.org/options?query=redshift | ||
[[Category:Applications]] | [[Category:Applications]] | ||