home: add power-alert
This commit is contained in:
parent
7d48b0edab
commit
0fc3bf3096
|
@ -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