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>
97 lines
2.5 KiB
Nix
97 lines
2.5 KiB
Nix
{ lib, ... }:
|
|
let
|
|
inherit (lib.my) net;
|
|
inherit (lib.my.c.colony) domain prefixes;
|
|
in
|
|
{
|
|
nixos.systems.colony-psql = { config, ... }: {
|
|
system = "x86_64-linux";
|
|
# TODO: Migrate PostgreSQL 14 to a supported major release, then return to mine.
|
|
nixpkgs = "mine-stable";
|
|
rendered = config.configuration.config.my.asContainer;
|
|
|
|
assignments = {
|
|
internal = {
|
|
name = "colony-psql-ctr";
|
|
altNames = [ "colony-psql" ];
|
|
inherit domain;
|
|
ipv4.address = net.cidr.host 4 prefixes.ctrs.v4;
|
|
ipv6 = {
|
|
iid = "::4";
|
|
address = net.cidr.host 4 prefixes.ctrs.v6;
|
|
};
|
|
};
|
|
};
|
|
|
|
configuration = { lib, pkgs, config, assignments, ... }:
|
|
let
|
|
inherit (lib) mkMerge mkIf;
|
|
inherit (lib.my) networkdAssignment;
|
|
in
|
|
{
|
|
config = mkMerge [
|
|
{
|
|
my = {
|
|
deploy.enable = false;
|
|
server.enable = true;
|
|
|
|
secrets = {
|
|
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINjxrgtTqLfKzmg14ZajkgViNXaM4cuTMvuJqETvj4Iv";
|
|
};
|
|
|
|
firewall = {
|
|
tcp.allowed = [ 19999 5432 ];
|
|
};
|
|
};
|
|
|
|
systemd = {
|
|
network.networks."80-container-host0" = networkdAssignment "host0" assignments.internal;
|
|
};
|
|
|
|
services = {
|
|
netdata = {
|
|
enable = true;
|
|
python = {
|
|
enable = true;
|
|
extraPackages = ps: with ps; [ psycopg2 ];
|
|
};
|
|
configDir = {
|
|
"python.d/postgres.conf" = pkgs.writeText "netdata-postgres.conf" ''
|
|
local:
|
|
user: postgres
|
|
'';
|
|
};
|
|
};
|
|
|
|
postgresql = {
|
|
package = pkgs.postgresql_14;
|
|
enable = true;
|
|
enableTCPIP = true;
|
|
|
|
authentication = with lib.my.c.colony.prefixes; ''
|
|
local all postgres peer map=local
|
|
|
|
host all all ${all.v4} md5
|
|
host all all ${all.v6} md5
|
|
'';
|
|
identMap = ''
|
|
local postgres postgres
|
|
local root postgres
|
|
local netdata postgres
|
|
local dev postgres
|
|
'';
|
|
};
|
|
};
|
|
}
|
|
(mkIf config.my.build.isDevVM {
|
|
virtualisation = {
|
|
forwardPorts = [
|
|
{ from = "host"; host.port = 55432; guest.port = 5432; }
|
|
];
|
|
};
|
|
})
|
|
];
|
|
};
|
|
};
|
|
}
|