Move redshift configuration
This commit is contained in:
parent
e86ee0fce1
commit
96b431de55
4 changed files with 8 additions and 51 deletions
|
@ -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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -8,7 +8,6 @@
|
||||||
./gtk.nix
|
./gtk.nix
|
||||||
./media/handbrake.nix
|
./media/handbrake.nix
|
||||||
./node.nix
|
./node.nix
|
||||||
./redshift.nix
|
|
||||||
./starship.nix
|
./starship.nix
|
||||||
./zsh
|
./zsh
|
||||||
];
|
];
|
||||||
|
|
|
@ -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
8
modules2/redshift.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
flake.modules.homeManager.gui.services.redshift = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
latitude = "51.58";
|
||||||
|
longitude = "-2.99";
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue