add qemu & battery notifs
This commit is contained in:
15
modules/nixos/hardware/battery/upower/default.nix
Normal file
15
modules/nixos/hardware/battery/upower/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user