home: add power-alert
This commit is contained in:
parent
2128286779
commit
2ba551f1b0
|
@ -17,6 +17,7 @@
|
|||
./nm-applet.nix
|
||||
./packages.nix
|
||||
./pager.nix
|
||||
./power-alert.nix
|
||||
./secrets # Home-manager specific secrets
|
||||
./ssh.nix
|
||||
./terminal
|
||||
|
|
15
home/power-alert.nix
Normal file
15
home/power-alert.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
cfg = config.my.home.power-alert;
|
||||
in
|
||||
{
|
||||
options.my.home.power-alert = with lib; {
|
||||
enable = mkEnableOption "power-alert configuration";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.poweralertd = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue