Move all four channels and both home-manager inputs to the rebased fork and current channels, and refresh the other moving inputs. Bump the latest kernel to 7.3 and the release metadata to 26.11. Follow upstream removals: pin `colony-psql` (PostgreSQL 14) to `mine-stable` until the PostgreSQL 18 migration that follows, and `spoder` (Nextcloud 32) until its own migration, and take MinIO for `object` from `mine-stable` through a compatibility import. Replace Gitea's removed `DOMAIN` with `SSH_DOMAIN`, let `determinate-nix` pick its own nixpkgs, and drop the nginx bump now that every pin ships fixed releases. Move Frigate's recording retention to the `record.continuous` layout, since 0.18 rejects `record.retain`. Pass the borgbackup wrapper flags as separate arguments now that the package uses structured attributes. Stop `britway`'s mesh link gating `network-online.target`: systemd 262 holds it in configuring until `tailscale0` exists for its policy rule, and tailscaled only starts once the network is online. Keep the SCTP module block: no kernel in use carries the NGINX2Root SCTP fix yet. Record the checks `kelder` missed while out of service on its page. Notable upgrades: - Kernels: 6.18.64 LTS and 7.3.5 latest. - Gitea 1.27.2 -> 28.3.0, with schema migrations. - Home Assistant 2026.8.2 -> 2026.11.2 and Frigate 0.17.2 -> 0.18.3. - Jellyfin 10.11.11 -> 12.4, Radarr 6.1 -> 7.0.3 and Sonarr 4.0.17 -> 5.0.0 (a prerelease), each migrating its database. - HedgeDoc 1.11.1 -> 1.12.0, mautrix-whatsapp 26.08 -> 26.11, Vaultwarden 1.37.1 -> 1.37.5, Seerr 3.3.0 -> 3.5.2. - Headscale 0.29.3 -> 0.29.7, BIRD 2.19.2 -> 2.20.0 and Tuwunel 1.8.3 -> 1.9.4. - nginx 1.30.7 and 1.31.9 from the channels, with the NGINX2Root fixes. - `determinate-nix` 3.22.2 -> 3.24.3, `harmonia` 3.2.0 -> 3.3.0, `deploy-rs` 1.0.0, `copyparty` 1.20.21 -> 1.20.26, and `llm-agents` with Codex 0.170.0 and Claude Code 2.1.330. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
178 lines
5.5 KiB
Nix
178 lines
5.5 KiB
Nix
{ lib, ... }:
|
|
let
|
|
inherit (lib.my) net;
|
|
inherit (lib.my.c) pubDomain;
|
|
inherit (lib.my.c.britway) prefixes domain pubV4 assignedV6;
|
|
in
|
|
{
|
|
nixos.systems.britway = {
|
|
system = "x86_64-linux";
|
|
nixpkgs = "mine";
|
|
|
|
assignments = {
|
|
vultr = {
|
|
inherit domain;
|
|
ipv4 = {
|
|
address = pubV4;
|
|
mask = 23;
|
|
gateway = "45.76.140.1";
|
|
};
|
|
ipv6 = {
|
|
iid = "::1";
|
|
address = "2001:19f0:7402:128b::1";
|
|
};
|
|
};
|
|
as211024 = {
|
|
ipv4 = {
|
|
address = net.cidr.host 5 prefixes.as211024.v4;
|
|
gateway = null;
|
|
};
|
|
ipv6.address = net.cidr.host ((2*65536*65536*65536) + 1) prefixes.as211024.v6;
|
|
};
|
|
};
|
|
|
|
configuration = { lib, pkgs, modulesPath, config, assignments, allAssignments, ... }:
|
|
let
|
|
inherit (lib) mkMerge mkForce;
|
|
inherit (lib.my) networkdAssignment;
|
|
in
|
|
{
|
|
imports = [
|
|
"${modulesPath}/profiles/qemu-guest.nix"
|
|
./bgp.nix
|
|
./nginx.nix
|
|
./tailscale.nix
|
|
];
|
|
|
|
config = mkMerge [
|
|
{
|
|
boot = {
|
|
initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "sr_mod" ];
|
|
loader = {
|
|
systemd-boot.enable = false;
|
|
grub = {
|
|
enable = true;
|
|
device = "/dev/vda";
|
|
};
|
|
};
|
|
};
|
|
|
|
fileSystems = {
|
|
"/boot" = {
|
|
device = "/dev/disk/by-partuuid/c557ef12-da44-41d1-84f5-d32a711feefd";
|
|
fsType = "ext4";
|
|
};
|
|
"/nix" = {
|
|
device = "/dev/disk/by-partuuid/d42d0853-b054-4104-8afd-6d36287c7ca3";
|
|
fsType = "ext4";
|
|
};
|
|
"/persist" = {
|
|
device = "/dev/disk/by-partuuid/f14fbcf4-5242-456b-a4db-ef15d053d62e";
|
|
fsType = "ext4";
|
|
neededForBoot = true;
|
|
};
|
|
};
|
|
|
|
services = {
|
|
iperf3 = {
|
|
enable = true;
|
|
openFirewall = true;
|
|
};
|
|
};
|
|
|
|
networking = { inherit domain; };
|
|
|
|
systemd.network = {
|
|
config = {
|
|
routeTables.ts-extra = 1337;
|
|
};
|
|
|
|
links = {
|
|
"10-veth0" = {
|
|
matchConfig.PermanentMACAddress = "56:00:04:ac:6e:06";
|
|
linkConfig.Name = "veth0";
|
|
};
|
|
};
|
|
|
|
networks = {
|
|
"20-veth0" = mkMerge [
|
|
(networkdAssignment "veth0" assignments.vultr)
|
|
{
|
|
address = [ "${assignedV6}/64" ];
|
|
}
|
|
];
|
|
"90-l2mesh-as211024" = mkMerge [
|
|
(networkdAssignment "as211024" assignments.as211024)
|
|
{
|
|
matchConfig.Name = "as211024";
|
|
# The routing policy rule below holds this link in "configuring" until
|
|
# tailscale0 exists, and tailscaled only starts once the network is online
|
|
linkConfig.RequiredForOnline = "no";
|
|
networkConfig.IPv6AcceptRA = mkForce false;
|
|
routes = [
|
|
{
|
|
Destination = lib.my.c.colony.prefixes.all.v4;
|
|
Gateway = allAssignments.estuary.as211024.ipv4.address;
|
|
}
|
|
{
|
|
Destination = lib.my.c.home.prefixes.all.v4;
|
|
Gateway = lib.my.c.home.vips.as211024.v4;
|
|
}
|
|
|
|
{
|
|
# Just when routing traffic from Tailscale nodes, otherwise use WAN
|
|
Destination = lib.my.c.colony.prefixes.all.v6;
|
|
Gateway = allAssignments.estuary.as211024.ipv6.address;
|
|
Table = "ts-extra";
|
|
}
|
|
];
|
|
routingPolicyRules = [
|
|
{
|
|
IncomingInterface = "tailscale0";
|
|
To = lib.my.c.colony.prefixes.all.v6;
|
|
Table = "ts-extra";
|
|
}
|
|
];
|
|
}
|
|
];
|
|
};
|
|
};
|
|
|
|
my = {
|
|
server.enable = true;
|
|
secrets = {
|
|
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAmXC9egI46Qtaiifhq2I+rv2s1yPyzTlO4BHzUb+3Su";
|
|
files = {
|
|
"l2mesh/as211024.key" = {};
|
|
};
|
|
};
|
|
vpns = {
|
|
l2.pskFiles = {
|
|
as211024 = config.age.secrets."l2mesh/as211024.key".path;
|
|
};
|
|
};
|
|
|
|
firewall = {
|
|
trustedInterfaces = [ "tailscale0" ];
|
|
extraRules = ''
|
|
table inet filter {
|
|
chain forward {
|
|
${lib.my.c.as211024.nftTrust}
|
|
oifname as211024 accept
|
|
}
|
|
}
|
|
table inet nat {
|
|
chain postrouting {
|
|
iifname tailscale0 oifname veth0 snat ip to ${assignments.vultr.ipv4.address}
|
|
iifname tailscale0 oifname veth0 snat ip6 to ${assignments.as211024.ipv6.address}
|
|
}
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|