14 lines
301 B
Nix
14 lines
301 B
Nix
{ lib, config, ... }:
|
|
let
|
|
cfg = config.my.servers.adguardhome;
|
|
in
|
|
{
|
|
options.my.servers.adguardhome.enable = lib.mkEnableOption "enable";
|
|
config = lib.mkIf (cfg.enable && config.my.secureHost) {
|
|
services.adguardhome = {
|
|
inherit (cfg) enable;
|
|
mutableSettings = true;
|
|
};
|
|
};
|
|
}
|