Bruno BELANYI
65a8f7c481
Consolidating all modules under the same path, to clear out the top-level directory.
16 lines
271 B
Nix
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;
|
|
};
|
|
};
|
|
}
|