summaryrefslogtreecommitdiff
path: root/home-manager/gammastep.nix
blob: f7ea3b34947ecb2c5cfa58378deab82ca9b1d991 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ config, lib, ... }: let
	cfg = config.services._gammastep;
in {
	options.services._gammastep = {
		enable = lib.mkEnableOption "configure gammastep";
	};

	config = lib.mkIf cfg.enable {
		services.gammastep = {
			enable = true;
			provider = lib.mkDefault "geoclue2";
			temperature = {
				day   = lib.mkDefault 6500;  # gammastep default, the hm module defaults to 5500
				night = lib.mkDefault 3600;
			};
		};
	};
}