From 52530b729e21fc60830bb0d67d513a911d1726fe Mon Sep 17 00:00:00 2001 From: Katherina Walshe-Grey Date: Mon, 5 Aug 2024 04:12:16 +0100 Subject: [PATCH] shaw: init, install syncthing --- hosts/shaw/home.nix | 11 +++++++++++ hosts/yevaud/configuration.nix | 30 ++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 hosts/shaw/home.nix diff --git a/hosts/shaw/home.nix b/hosts/shaw/home.nix new file mode 100644 index 0000000..67c36e0 --- /dev/null +++ b/hosts/shaw/home.nix @@ -0,0 +1,11 @@ +{ config, lib, pkgs, ... }: + +{ + services.syncthing = { + enable = true; + extraOptions = [ + "--gui-address=:8385" + "--home=/home/qenya/state/syncthing" + ]; + }; +} diff --git a/hosts/yevaud/configuration.nix b/hosts/yevaud/configuration.nix index 0c21462..a0747c4 100644 --- a/hosts/yevaud/configuration.nix +++ b/hosts/yevaud/configuration.nix @@ -15,6 +15,36 @@ privateKeyFile = config.age.secrets.wireguard-peer-yevaud.path; }; + services.bind = { + enable = true; + cacheNetworks = [ "10.127.0.0/16" "fd70:81ca:0f8f::/48" ]; + forwarders = [ ]; + listenOn = [ config.birdsong.hosts.yevaud.ipv4 ]; + listenOnIpv6 = [ config.birdsong.hosts.yevaud.ipv6 ]; + zones = { + "birdsong.internal" = { + master = true; + # TODO: pick better email address for SOA record + file = pkgs.writeText "birdsong.internal.zone" '' + $TTL 60 + $ORIGIN birdsong.internal. + + birdsong.internal. IN SOA ns.birdsong.internal. accounts.katherina.rocks. ( 2024080401 7200 3600 1209600 3600 ) + birdsong.internal. IN NS ns.birdsong.internal. + + yevaud.c.birdsong.internal. IN A 10.127.1.1 + yevaud.c.birdsong.internal. IN AAAA fd70:81ca:0f8f:1::1 + + ns.birdsong.internal. IN A 10.127.1.1 + ns.birdsong.internal. IN AAAA fd70:81ca:0f8f:1::1 + ''; + }; + }; + }; + networking.resolvconf.useLocalResolver = false; + networking.firewall.allowedTCPPorts = [ 53 ]; + networking.firewall.allowedUDPPorts = [ 53 ]; + qenya.services.forgejo = { enable = true; domain = "git.qenya.tel";