nix-config/modules/home/power-alert/default.nix
Bruno BELANYI 65a8f7c481 home: create 'modules/home' folder
Consolidating all modules under the same path, to clear out the
top-level directory.
2023-11-11 18:12:05 +00:00

16 lines
271 B
Nix

{ 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;
};
};
}