feat: remove tailscale, setup ddclient for namecheap

This commit is contained in:
Jacob Bachmann 2024-09-08 23:48:28 +02:00
parent 0819f48d04
commit b08fb0c4b3
No known key found for this signature in database
GPG key ID: 7753026D577922A6
8 changed files with 40 additions and 7 deletions

View file

@ -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";

View file

@ -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";

View 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";
};
}

View file

@ -2,6 +2,7 @@
imports = [
./adguard-home.nix
./anki.nix
./ddclient.nix
./gitea.nix
./homepage-dashboard.nix
./nginx.nix

View file

@ -5,7 +5,9 @@
...
}:
{
networking.networkmanager.enable = true;
networking = {
networkmanager.enable = true;
};
systemd.services = {
NetworkManager-wait-online.enable = false;
};
@ -15,5 +17,4 @@
pkgs.wireguard-tools # tools for the wireguard secure network tunnel
];
services.mullvad-vpn.enable = config.bchmnn.collections.vpn.enable;
services.tailscale.enable = config.bchmnn.collections.vpn.enable;
}

View file

@ -133,7 +133,6 @@ in
"modules-right": [
"tray",
"network",
"custom/tailscale",
"custom/separator",
"pulseaudio",
"custom/separator",

View file

@ -0,0 +1,9 @@
age-encryption.org/v1
-> ssh-ed25519 OFTJeQ /4VkgBRfkeDWGyydiC0UWnRldkkweIS3kQWiyazW30w
FogoQsMtbjc0gUTGeMdoFTV0CZPv051x3qhRxYvGp+Q
-> ssh-ed25519 lfMVeg tYYo7I8FawLwBrdTWtjDV/4hzhrUFlGZTAM5Hp8mtRE
JEcLpEKgppWVrlUEvL+arvWBL7/6sVhW/ErXZRkzfIA
-> ssh-ed25519 ueRyzQ wTI3u3XtBoTKargoSn+HWl9HQTZzXjCEnLGQRSCmVUE
+9ovukCRRZ3FO+uuPjdWWvUQBfTyW2NfDpEFkaTVBZE
--- VpOsD2Mzrb/jWQVu9wLlTSiUZNbpBmD9ISDLtbivuO0
b<Ý+YŸûh<68>•('3[“KN3:ˆ]Ö¦Uklÿ9¯êGà]”ÐR•ÂÃö,çêt}4)œ%Ñî=«Í

View file

@ -21,4 +21,5 @@ in
{
"passwords/gitea/db.age".publicKeys = users ++ [ APPA ];
"passwords/anki/admin.age".publicKeys = users ++ [ APPA ];
"passwords/ddclient/namecheap.age".publicKeys = users ++ [ APPA ];
}