feat: remove tailscale, setup ddclient for namecheap
This commit is contained in:
parent
0819f48d04
commit
b08fb0c4b3
8 changed files with 40 additions and 7 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{ ... }:
|
||||
{
|
||||
networking = {
|
||||
firewall.enable = true;
|
||||
hostName = "APPA";
|
||||
useDHCP = false;
|
||||
interfaces.enp0s25 = {
|
||||
|
|
@ -20,6 +20,7 @@
|
|||
};
|
||||
defaultGateway = {
|
||||
address = "192.168.2.1";
|
||||
interface = "enp0s25";
|
||||
};
|
||||
defaultGateway6 = {
|
||||
address = "fdd2:59e7:4ee1:0001::1";
|
||||
|
|
|
|||
|
|
@ -22,6 +22,10 @@
|
|||
domain = "dryb.org";
|
||||
answer = "192.168.2.40";
|
||||
}
|
||||
{
|
||||
domain = "speedport.ip";
|
||||
answer = "192.168.2.1";
|
||||
}
|
||||
{
|
||||
domain = "speedport.dryb.org";
|
||||
answer = "192.168.2.1";
|
||||
|
|
|
|||
17
hosts/APPA/services/ddclient.nix
Normal file
17
hosts/APPA/services/ddclient.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
age.secrets.passwords-ddclient-namecheap = {
|
||||
file = ../../../secrets/passwords/ddclient/namecheap.age;
|
||||
};
|
||||
|
||||
services.ddclient = {
|
||||
enable = true;
|
||||
use = "web, web=ifconfig.me/";
|
||||
protocol = "namecheap";
|
||||
server = "dynamicdns.park-your-domain.com";
|
||||
username = "dryb.org";
|
||||
passwordFile = config.age.secrets.passwords-ddclient-namecheap.path;
|
||||
domains = [ "vpn" ];
|
||||
interval = "10min";
|
||||
};
|
||||
}
|
||||
|
|
@ -2,6 +2,7 @@
|
|||
imports = [
|
||||
./adguard-home.nix
|
||||
./anki.nix
|
||||
./ddclient.nix
|
||||
./gitea.nix
|
||||
./homepage-dashboard.nix
|
||||
./nginx.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue