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

17 lines
312 B
Nix
Raw Normal View History

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