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>
117 lines
3.2 KiB
Nix
117 lines
3.2 KiB
Nix
{ lib, ... }:
|
|
let
|
|
inherit (lib) mkForce mkMerge;
|
|
inherit (lib.my) net;
|
|
inherit (lib.my.c.kelder) domain prefixes;
|
|
in
|
|
{
|
|
nixos.systems.kelder-spoder = { config, ... }: {
|
|
system = "x86_64-linux";
|
|
# TODO: Verify the deployed Nextcloud version, migrate to a supported major, and return to mine.
|
|
nixpkgs = "mine-stable";
|
|
rendered = config.configuration.config.my.asContainer;
|
|
|
|
assignments = {
|
|
internal = {
|
|
name = "spoder-ctr";
|
|
inherit domain;
|
|
ipv4.address = net.cidr.host 3 prefixes.ctrs.v4;
|
|
};
|
|
};
|
|
|
|
configuration = { lib, pkgs, config, assignments, ... }:
|
|
let
|
|
inherit (lib.my) networkdAssignment;
|
|
in
|
|
{
|
|
imports = [ ./nginx.nix ];
|
|
|
|
config = {
|
|
my = {
|
|
deploy.enable = false;
|
|
server.enable = true;
|
|
user.config.name = "kontent";
|
|
|
|
secrets = {
|
|
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBdYyebQv/bBLbat1Csnr1/VMPKsi99PiLOXyKeQb7oX";
|
|
files = {
|
|
"kelder/cloudflare-credentials.conf" = {
|
|
owner = "acme";
|
|
group = "acme";
|
|
};
|
|
"kelder/nextcloud-root.txt" = {
|
|
owner = "nextcloud";
|
|
group = "nextcloud";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
security.acme = {
|
|
acceptTerms = true;
|
|
defaults = {
|
|
email = "dev@nul.ie";
|
|
server = "https://acme-v02.api.letsencrypt.org/directory";
|
|
reloadServices = [ "nginx" ];
|
|
dnsResolver = "8.8.8.8";
|
|
};
|
|
certs = {
|
|
"${domain}" = {
|
|
extraDomainNames = [
|
|
"*.${domain}"
|
|
];
|
|
dnsProvider = "cloudflare";
|
|
environmentFile = config.age.secrets."kelder/cloudflare-credentials.conf".path;
|
|
};
|
|
};
|
|
};
|
|
|
|
users = {
|
|
groups.storage.gid = lib.my.c.kelder.groups.storage;
|
|
users = {
|
|
nginx.extraGroups = [ "acme" ];
|
|
|
|
"${config.my.user.config.name}".extraGroups = [ "storage" ];
|
|
};
|
|
};
|
|
|
|
systemd = {
|
|
network.networks."80-container-host0" = mkMerge [
|
|
(networkdAssignment "host0" assignments.internal)
|
|
{
|
|
linkConfig.MTUBytes = "1420";
|
|
}
|
|
];
|
|
services = {
|
|
radarr.serviceConfig.UMask = "0002";
|
|
sonarr.serviceConfig.UMask = "0002";
|
|
};
|
|
};
|
|
|
|
nixpkgs.config.permittedInsecurePackages = [ "nextcloud-32.0.15" ];
|
|
|
|
services = {
|
|
resolved.settings.Resolve = mkForce { };
|
|
|
|
nextcloud = {
|
|
enable = true;
|
|
package = pkgs.nextcloud32;
|
|
datadir = "/mnt/storage/nextcloud";
|
|
hostName = "cloud.${domain}";
|
|
https = true;
|
|
config = {
|
|
adminpassFile = config.age.secrets."kelder/nextcloud-root.txt".path;
|
|
dbtype = "sqlite";
|
|
};
|
|
settings = {
|
|
updatechecker = false;
|
|
trusted_domains = [ "cloud-local.${domain}" ];
|
|
default_phone_region = "IE";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|