batsignal->poweralertd
This commit is contained in:
parent
c3d63eea99
commit
b99f2544a5
5 changed files with 20 additions and 25 deletions
15
modules/desktop/poweralertd.nix
Normal file
15
modules/desktop/poweralertd.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.desktop.poweralertd;
|
||||
in {
|
||||
options.modules.desktop.poweralertd = {
|
||||
enable = mkEnableOption "Enable poweralertd, a battery notification service";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
services.upower.enable = true;
|
||||
hm.services.poweralertd.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue