mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
24 lines
514 B
Nix
24 lines
514 B
Nix
{ config, lib, ... }:
|
|
{
|
|
options.myConfig.night-light.enable = lib.mkEnableOption "";
|
|
|
|
config = lib.mkIf config.myConfig.night-light.enable {
|
|
services.geoclue2 = {
|
|
enable = true;
|
|
appConfig.gammastep = {
|
|
isAllowed = true;
|
|
isSystem = false;
|
|
};
|
|
};
|
|
|
|
home-manager.sharedModules = [
|
|
{
|
|
services.gammastep = {
|
|
enable = true;
|
|
provider = "geoclue2";
|
|
settings.general.adjustment-method = "wayland";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
}
|