From 2bae059f010744d5933764348f12955761a1c0d9 Mon Sep 17 00:00:00 2001 From: Alexandre LUCAZEAU Date: Mon, 11 Apr 2022 18:38:24 +0200 Subject: [PATCH] ADD : redshift --- DELL/nixpkgs/home.nix | 1 + DELL/nixpkgs/redshift.nix | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 DELL/nixpkgs/redshift.nix diff --git a/DELL/nixpkgs/home.nix b/DELL/nixpkgs/home.nix index 25692c1..2151555 100644 --- a/DELL/nixpkgs/home.nix +++ b/DELL/nixpkgs/home.nix @@ -9,6 +9,7 @@ ./emacs.nix ./mails.nix ./dunst.nix + ./redshift.nix ]; home.keyboard = { layout = "fr"; diff --git a/DELL/nixpkgs/redshift.nix b/DELL/nixpkgs/redshift.nix new file mode 100644 index 0000000..8511000 --- /dev/null +++ b/DELL/nixpkgs/redshift.nix @@ -0,0 +1,20 @@ +{ config, pkgs, callPackage, ... }: + +{ + # Does not work well imho. + services.redshift = { + enable = true; + temperature = { + day = 5500; + night = 4500; + }; + brightness = { + day = "1.0"; + night = "0.9"; + }; + + latitude = "45.7715988159"; + longitude = "-1.13960003853"; + }; + +}