home: add power-alert

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

View file

@ -17,6 +17,7 @@
./nm-applet.nix ./nm-applet.nix
./packages.nix ./packages.nix
./pager.nix ./pager.nix
./power-alert.nix
./secrets # Home-manager specific secrets ./secrets # Home-manager specific secrets
./ssh.nix ./ssh.nix
./terminal ./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;
};
};
}