From 553566ac19475858c3332dbf0ebf4f2fa275a034 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 5 Apr 2025 09:00:00 +0100 Subject: [PATCH] Remove redshift --- hosts/t480/configuration.nix | 4 ---- hosts/t480/services/default.nix | 1 - hosts/t480/services/redshift.nix | 31 ------------------------------- 3 files changed, 36 deletions(-) delete mode 100644 hosts/t480/services/redshift.nix diff --git a/hosts/t480/configuration.nix b/hosts/t480/configuration.nix index 943f9768..adf25eb7 100644 --- a/hosts/t480/configuration.nix +++ b/hosts/t480/configuration.nix @@ -18,10 +18,6 @@ ../../users/opdavies ]; - nixosModules = { - redshift.enable = true; - }; - nix.nixPath = [ "nixpkgs=${inputs.nixpkgs}" ]; boot = { diff --git a/hosts/t480/services/default.nix b/hosts/t480/services/default.nix index 53c2e88a..3fb03cf0 100644 --- a/hosts/t480/services/default.nix +++ b/hosts/t480/services/default.nix @@ -2,7 +2,6 @@ imports = [ ./cron.nix ./interception-tools.nix - ./redshift.nix ./sound.nix ./udev.nix ./xserver.nix diff --git a/hosts/t480/services/redshift.nix b/hosts/t480/services/redshift.nix deleted file mode 100644 index 3fcfdf4f..00000000 --- a/hosts/t480/services/redshift.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ config, lib, ... }: - -with lib; - -let - cfg = config.nixosModules.redshift; -in -{ - options.nixosModules.redshift.enable = mkEnableOption "Enable redshift"; - - config = mkIf cfg.enable { - location = { - latitude = 51.48; - longitude = -3.17; - }; - - services.redshift = { - enable = true; - - brightness = { - day = "1"; - night = "1"; - }; - - temperature = { - day = 5500; - night = 3700; - }; - }; - }; -}