home: add power-alert

This commit is contained in:
Bruno BELANYI 2021-05-10 17:49:37 +02:00
parent 2128286779
commit 2ba551f1b0
2 changed files with 16 additions and 0 deletions

View File

@ -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
View 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;
};
};
}