feat(services,adguard,hosts,battleship): adguard home dns

This commit is contained in:
Guz
2026-05-21 17:01:00 -03:00
parent 6bee13bf9a
commit 6def457464
3 changed files with 8 additions and 6 deletions

View File

@@ -230,6 +230,7 @@
neovim = inputs.neovim.nixosModules.default;
playit = ./modules/playit.nix;
services = {
adguard = ./services/adguard.nix;
capytal-gitea = ./services/capytal/gitea.nix;
cloudflared = ./services/cloudflared.nix;
minecraft-servers = ./services/minecraft-servers.nix;

View File

@@ -1,5 +1,6 @@
{self, ...}: {
imports = with self.nixosModules.services; [
adguard
capytal-gitea
cloudflared
minecraft-servers

View File

@@ -14,7 +14,7 @@ in {
settings = {
http = {address = "127.0.0.1:${toString port}";};
users = mapAttrsToList (name: password: {inherit name password;}) {
"admin" = "$2y$10$8KrO4gmaUUNsJ8q92A0GsOhLgkP2CyAhC4Tc6KSLAxk.S5BLhKGlm";
"admin" = "aUUNsJ8q92A0GsOhLgkP2CyAhC4Tc6KSLAxk.S5BLhKGlm";
};
theme = "dark";
dns = {
@@ -37,11 +37,11 @@ in {
filtering = {
rewrites = mkIf config.services.caddy.enable (pipe config.services.caddy.virtualHosts [
(filterAttrs (n: v: hasSuffix ".local" n))
# (mapAttrsToList (domain: _: {
# domain = removePrefix "https://" (removePrefix "http://" domain);
# answer = "100.86.139.22";
# enabled = true;
# }))
(mapAttrsToList (domain: _: {
domain = removePrefix "https://" (removePrefix "http://" domain);
answer = "100.98.115.36";
enabled = true;
}))
]);
parental_enabled = false;
protection_enabled = true;