add qemu & battery notifs

This commit is contained in:
2025-09-29 20:37:53 -04:00
parent 2a40dc791d
commit eb0c28d2f0
5 changed files with 99 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
{ config, lib, namespace, ... }:
let
inherit (lib) mkIf;
cfg = config.${namespace}.hardware.battery.upower;
in
{
options.${namespace}.hardware.battery.upower = {
enable = lib.mkEnableOption "enable upower";
};
config = mkIf cfg.enable {
services.upower.enable = true;
};
}