Move redshift configuration

This commit is contained in:
Oliver Davies 2025-07-27 23:27:36 +01:00
parent e86ee0fce1
commit 96b431de55
4 changed files with 8 additions and 51 deletions

View file

@ -1,31 +0,0 @@
{ config, lib, ... }:
with lib;
let
cfg = config.redshift;
in
{
options.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;
};
};
};
}

View file

@ -8,7 +8,6 @@
./gtk.nix
./media/handbrake.nix
./node.nix
./redshift.nix
./starship.nix
./zsh
];

View file

@ -1,19 +0,0 @@
{ config, lib, ... }:
let
cfg = config.features.desktop.redshift;
inherit (lib) mkEnableOption mkIf;
in
{
options.features.desktop.redshift = {
enable = mkEnableOption "Enable redshift";
};
config = mkIf cfg.enable {
services.redshift.enable = true;
services.redshift.latitude = "51.58";
services.redshift.longitude = "-2.99";
};
}

8
modules2/redshift.nix Normal file
View file

@ -0,0 +1,8 @@
{
flake.modules.homeManager.gui.services.redshift = {
enable = true;
latitude = "51.58";
longitude = "-2.99";
};
}