gammastep: extract config

This commit is contained in:
Leonardo Eugênio 2025-03-27 21:09:14 -03:00
parent 8cae611cd5
commit 0a0b8f9e61
No known key found for this signature in database
GPG key ID: 2F8F21CE8721456B
2 changed files with 21 additions and 4 deletions

View file

@ -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;

19
user/sway/gammastep.nix Normal file
View file

@ -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;
};
};
};
}