-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit ade34b3. I understand now why redshift wasn't working this time. See [this issue](NixOS/nixpkgs#321121).
- Loading branch information
Showing
7 changed files
with
46 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,7 @@ | |
./pasystray.nix | ||
./picom.nix | ||
./playerctl.nix | ||
./redshift.nix | ||
./ripgrep.nix | ||
./rofi.nix | ||
./ruby.nix | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# User configuration for redshift | ||
|
||
{ pkgs, options, ... }: | ||
|
||
{ | ||
# Install redshift | ||
home.packages = [ options.services.redshift.package.value ]; | ||
|
||
# Use redshift to adapt screen's color temperature depending on the time of day | ||
services.redshift = { | ||
enable = true; | ||
|
||
# Use GeoClue2 as location provider | ||
provider = "geoclue2"; | ||
|
||
# Colour temperature to use at day/night, between 1000 and 25000 K | ||
temperature = { | ||
day = 5500; | ||
night = 3500; | ||
}; | ||
|
||
# Start the redshift-gtk tray applet | ||
tray = true; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# System configuration for redshift | ||
|
||
{ pkgs, ... }: | ||
|
||
{ | ||
# Without this package, redshift-gtk doesn't have an icon. | ||
environment.systemPackages = [ pkgs.hicolor-icon-theme ]; | ||
|
||
# Start GeoClue2 daemon | ||
services.geoclue2.enable = true; | ||
|
||
# Enable location with GeoClue2 | ||
services.geoclue2.appConfig.redshift = { | ||
isAllowed = true; | ||
isSystem = false; | ||
}; | ||
location.provider = "geoclue2"; | ||
} |