From 13259838c3db43800a0b1d7e71b63e5c92940cee Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Fri, 7 Jun 2024 20:54:28 +0200 Subject: [PATCH] add nightlight --- modules/graphical/default.nix | 1 + modules/graphical/nightlight.nix | 13 +++++++++++++ systems/pc/configuration.nix | 1 + 3 files changed, 15 insertions(+) create mode 100644 modules/graphical/nightlight.nix diff --git a/modules/graphical/default.nix b/modules/graphical/default.nix index 1207615..8a1ea94 100644 --- a/modules/graphical/default.nix +++ b/modules/graphical/default.nix @@ -22,5 +22,6 @@ #./stylix.nix #./cosmic.nix ./shared.nix + ./nightlight.nix ]; } diff --git a/modules/graphical/nightlight.nix b/modules/graphical/nightlight.nix new file mode 100644 index 0000000..a462a2b --- /dev/null +++ b/modules/graphical/nightlight.nix @@ -0,0 +1,13 @@ +{ config, lib, pkgs, ... }: +let cfg = config.custom.graphical.nightlight; +in { + options.custom.graphical.nightlight = { + enable = lib.mkEnableOption "Enables nightlight"; + }; + + config = lib.mkIf cfg.enable { + location.latitude = 48.2082; + location.longitude = 16.3738; + services.redshift.enable = true; + }; +} diff --git a/systems/pc/configuration.nix b/systems/pc/configuration.nix index 950a72f..8821325 100644 --- a/systems/pc/configuration.nix +++ b/systems/pc/configuration.nix @@ -58,6 +58,7 @@ noise-supression.enable = true; obs.enable = true; openrgb.enable = true; + nightlight.enable = true; #plasma.enable = true; i3.enable = true; #gnome.enable = true;