nix-config/home/power-alert/default.nix

16 lines
271 B
Nix
Raw Normal View History

2021-05-10 17:49:37 +02:00
{ 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;
};
};
}