2022-07-15 13:11:54 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.my.services.redshift;
|
|
|
|
in
|
|
|
|
{
|
2022-10-15 20:00:09 +02:00
|
|
|
options.my.services.redshift.enable = mkEnableOption "redshift";
|
2022-07-15 13:11:54 +02:00
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
services.redshift.enable = true;
|
|
|
|
location = {
|
|
|
|
latitude = 52.3;
|
|
|
|
longitude = 12.4;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|