1
0
Fork 0
nix-configuration/modules/services/apcupsd.nix

23 lines
336 B
Nix
Raw Normal View History

{
pkgs,
config,
lib,
...
}:
2024-02-29 09:53:34 -05:00
let
cfg = config.host.services.apcupsd;
2024-02-29 09:53:34 -05:00
in
with lib;
{
options = {
host.services.apcupsd.enable = mkEnableOption (mdDoc "Enables apcupsd");
};
2024-02-29 09:53:34 -05:00
config = mkIf cfg.enable {
services.apcupsd = {
enable = true;
configText = builtins.readFile ./etc/apcupsd.conf;
};
};
}