Minor module refactors

This commit is contained in:
SebastianStork 2025-04-06 20:25:14 +02:00
parent 89144e5b7a
commit 1a8333829e
4 changed files with 28 additions and 26 deletions

View file

@ -1,8 +1,19 @@
{ config, lib, ... }:
{ config, lib, ... }@moduleArgs:
{
options.myConfig.deUtils.gammastep.enable = lib.mkEnableOption "";
config = lib.mkIf config.myConfig.deUtils.gammastep.enable {
assertions = [
{
assertion =
let
inherit (moduleArgs.osConfig.services) geoclue2;
in
geoclue2.enable or true && geoclue2.appConfig.gammastep.isAllowed or true;
message = "gammastep requires geoclue";
}
];
services.gammastep = {
enable = true;
provider = "geoclue2";