diff --git a/hosts/d2nix/nixos/configuration.nix b/hosts/d2nix/nixos/configuration.nix index 3aece12..4972111 100644 --- a/hosts/d2nix/nixos/configuration.nix +++ b/hosts/d2nix/nixos/configuration.nix @@ -106,5 +106,10 @@ environment.variables.EDITOR = "nvim"; powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; + location = { + provider = "manual"; + latitude = 47.77; + longitude = -1.164; + }; } diff --git a/hosts/d2nix/nixos/services.nix b/hosts/d2nix/nixos/services.nix index eb85be9..e419786 100644 --- a/hosts/d2nix/nixos/services.nix +++ b/hosts/d2nix/nixos/services.nix @@ -17,6 +17,20 @@ interval = "hourly"; localuser = null; }; + redshift = { + enable = true; + brightness = { + # Note the string values below. + day = "1"; + night = "1"; + }; + temperature = { + day = 5500; + night = 3700; + }; + }; + geoclue2.appConfig.redshift.isAllowed = true; + automatic-timezoned.enable = true; xserver = { enable = true; autorun = true;