Fix night-light

This commit is contained in:
SebastianStork 2024-06-25 19:53:52 +02:00
parent 18fa79a0fc
commit 1dca7aa6f4
10 changed files with 43 additions and 31 deletions

View file

@ -14,7 +14,7 @@
./syncthing.nix
./nix-helper.nix
./auto-gc.nix
./night-light.nix
./geoclue.nix
./tailscale.nix
];
}

View file

@ -0,0 +1,20 @@
{ config, lib, ... }:
{
options.myConfig.geoclue.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.geoclue.enable {
sops.secrets.geoclue-location-service = {
owner = "geoclue";
path = "/etc/geoclue/conf.d/location-service.conf";
};
services.geoclue2 = {
enable = true;
appConfig.gammastep = {
isAllowed = true;
isSystem = false;
};
};
};
}

View file

@ -1,24 +0,0 @@
{ 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";
};
}
];
};
}