feat(nixos): add AdGuard to Homepage

This commit is contained in:
2026-10-21 17:55:10 -04:00
parent bf99d30934
commit a1b7897efd

View File

@@ -13,6 +13,22 @@ in
}; };
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
assertions = [
{
assertion = cfg.address != null;
message = "guests.adguard.address must identify the AdGuard Home guest.";
}
];
registry.homepage.${config.networking.hostName}.adguard = {
tab = "System";
section = "Network";
name = "AdGuard Home";
description = "Blocks advertisements and trackers.";
icon = "adguard-home.svg";
href = "http://${cfg.address}";
};
guests.adguard = { guests.adguard = {
interior.modules.services.adguardhome = { interior.modules.services.adguardhome = {
enable = true; enable = true;