{ config, lib, pkgs, ... }: let cfg = config.sydnix.upower; in { options.sydnix.upower = { enable = lib.mkEnableOption "UPower"; }; config = lib.mkIf cfg.enable { services.upower.enable = true; }; }