Compare commits
No commits in common. "32b291be200ad9ecc6e9e89fa04f149f5f44c7f7" and "cd802ab3a63d56834b1202f0a56f3575a2b9f8f9" have entirely different histories.
32b291be20
...
cd802ab3a6
4 changed files with 2 additions and 47 deletions
|
|
@ -1,41 +0,0 @@
|
|||
{lib, ...}: let
|
||||
domain = "adguard.everest.tailscale";
|
||||
port = 3001;
|
||||
in {
|
||||
services = {
|
||||
adguardhome = {
|
||||
enable = true;
|
||||
host = "127.0.0.1";
|
||||
port = port;
|
||||
settings = {
|
||||
dns = {
|
||||
bind_hosts = [
|
||||
"192.168.0.160"
|
||||
"100.100.0.1"
|
||||
];
|
||||
bootstrap_dns = ["9.9.9.9"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
headscale.settings.dns_config = {
|
||||
nameservers = lib.mkForce ["100.100.0.1"];
|
||||
extra_records = [
|
||||
{
|
||||
name = domain;
|
||||
type = "A";
|
||||
value = "100.100.0.1";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
caddy.virtualHosts.adguardhome = {
|
||||
hostName = domain;
|
||||
extraConfig = ''
|
||||
import tailscale
|
||||
reverse_proxy 127.0.0.1:${builtins.toString port}
|
||||
'';
|
||||
};
|
||||
};
|
||||
programs.rust-motd.settings.service_status."AdGuard Home" = "adguardhome";
|
||||
}
|
||||
|
|
@ -15,6 +15,5 @@
|
|||
./caddy.nix
|
||||
./rust_motd.nix
|
||||
./minecraft.nix
|
||||
./adguard.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,5 +21,4 @@
|
|||
'';
|
||||
};
|
||||
};
|
||||
programs.rust-motd.settings.service_status.Headscale = "headscale";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
enable = true;
|
||||
key = config.age.secrets.syncthingKey.path;
|
||||
cert = config.age.secrets.syncthingCert.path;
|
||||
guiAddress = "127.0.0.1:8384";
|
||||
guiAddress = "0.0.0.0:8384";
|
||||
settings.folders = {
|
||||
"passwords" = {
|
||||
path = "${config.services.syncthing.dataDir}/passwords";
|
||||
|
|
@ -53,9 +53,7 @@
|
|||
hostName = "sync.everest.tailscale";
|
||||
extraConfig = ''
|
||||
import tailscale
|
||||
reverse_proxy localhost:8384 {
|
||||
header_up Host {upstream_hostport}
|
||||
}
|
||||
reverse_proxy localhost:8384
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue