From 0a0b8f9e610867fdac84722befd9b13f35f0104e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Thu, 27 Mar 2025 21:09:14 -0300 Subject: [PATCH] gammastep: extract config --- user/sway/default.nix | 6 ++---- user/sway/gammastep.nix | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 user/sway/gammastep.nix diff --git a/user/sway/default.nix b/user/sway/default.nix index 04193aa..046ae07 100644 --- a/user/sway/default.nix +++ b/user/sway/default.nix @@ -20,6 +20,7 @@ in ./swayidle.nix ./swaylock.nix ./theme.nix + ./gammastep.nix ]; options.my.sway.enable = lib.mkEnableOption { }; @@ -32,6 +33,7 @@ in my.mpd.enable = true; my.zathura.enable = true; my.waybar.enable = true; + my.gammastep.enable = true; wayland.windowManager.sway = { enable = true; @@ -115,10 +117,6 @@ in exec_always systemctl --user restart waybar.service ''; }; - services.gammastep = { - enable = true; - provider = "geoclue2"; - }; services.kdeconnect = { enable = true; diff --git a/user/sway/gammastep.nix b/user/sway/gammastep.nix new file mode 100644 index 0000000..a5b6917 --- /dev/null +++ b/user/sway/gammastep.nix @@ -0,0 +1,19 @@ +{ config, lib, ... }: +let + cfg = config.my.gammastep; +in +{ + options.my.gammastep.enable = lib.mkEnableOption { }; + + config = lib.mkIf cfg.enable { + services.gammastep = { + enable = true; + dawnTime = "6:00-7:45"; + duskTime = "18:35-20:15"; + temperature = { + day = 6500; + night = 4500; + }; + }; + }; +}