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>
247 lines
6.9 KiB
Nix
247 lines
6.9 KiB
Nix
{ lib, ... }:
|
|
let
|
|
inherit (lib.my) net;
|
|
inherit (lib.my.c) pubDomain;
|
|
inherit (lib.my.c.home) domain prefixes vips vlanDns hiMTU;
|
|
in
|
|
{
|
|
nixos.systems.hass = { config, ... }: {
|
|
system = "x86_64-linux";
|
|
nixpkgs = "mine";
|
|
rendered = config.configuration.config.my.asContainer;
|
|
|
|
assignments = {
|
|
hi = {
|
|
name = "hass-ctr";
|
|
altNames = [ "frigate" ];
|
|
inherit domain;
|
|
mtu = hiMTU;
|
|
ipv4 = {
|
|
address = net.cidr.host 103 prefixes.hi.v4;
|
|
mask = 22;
|
|
gateway = vips.hi.v4;
|
|
};
|
|
ipv6 = {
|
|
iid = "::5:3";
|
|
address = net.cidr.host (65536*5+3) prefixes.hi.v6;
|
|
};
|
|
};
|
|
lo = {
|
|
name = "hass-ctr-lo";
|
|
inherit domain;
|
|
mtu = 1500;
|
|
ipv4 = {
|
|
address = net.cidr.host 103 prefixes.lo.v4;
|
|
mask = 21;
|
|
gateway = null;
|
|
};
|
|
ipv6 = {
|
|
iid = "::5:3";
|
|
address = net.cidr.host (65536*5+3) prefixes.lo.v6;
|
|
};
|
|
};
|
|
};
|
|
|
|
configuration = { lib, config, pkgs, assignments, allAssignments, ... }:
|
|
let
|
|
inherit (lib) mkMerge mkIf mkForce;
|
|
inherit (lib.my) networkdAssignment;
|
|
|
|
hassPort = 8123;
|
|
hassCli = pkgs.writeShellScriptBin "hass-cli" ''
|
|
export HASS_SERVER="http://localhost:${toString hassPort}"
|
|
export HASS_TOKEN="$(< ${config.age.secrets."hass/cli-token.txt".path})"
|
|
exec ${pkgs.home-assistant-cli}/bin/hass-cli "$@"
|
|
'';
|
|
in
|
|
{
|
|
config = {
|
|
my = {
|
|
deploy.enable = false;
|
|
server.enable = true;
|
|
|
|
secrets = {
|
|
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGpYX2WbYwUqHp8bFFf0eHFrqrR8xp8IheguA054F8V4";
|
|
files = {
|
|
"hass/cli-token.txt" = {
|
|
owner = config.my.user.config.name;
|
|
};
|
|
};
|
|
};
|
|
|
|
firewall = {
|
|
tcp.allowed = [ "http" hassPort 1883 ];
|
|
};
|
|
};
|
|
|
|
environment = {
|
|
systemPackages = with pkgs; [
|
|
usbutils
|
|
hassCli
|
|
];
|
|
};
|
|
|
|
systemd = {
|
|
network.networks = {
|
|
"80-container-host0" = mkMerge [
|
|
(networkdAssignment "host0" assignments.hi)
|
|
{ networkConfig = vlanDns "hi"; }
|
|
];
|
|
"80-container-lan-lo" = networkdAssignment "lan-lo" assignments.lo;
|
|
};
|
|
};
|
|
|
|
services = {
|
|
mosquitto = {
|
|
enable = true;
|
|
listeners = [
|
|
{
|
|
omitPasswordAuth = true;
|
|
settings = {
|
|
allow_anonymous = true;
|
|
};
|
|
}
|
|
];
|
|
};
|
|
|
|
go2rtc = {
|
|
enable = true;
|
|
settings = {
|
|
streams = {
|
|
reolink_living_room = [
|
|
# "http://reolink-living-room.${domain}/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin#video=copy#audio=copy#audio=opus"
|
|
"rtsp://admin:@reolink-living-room:554/h264Preview_01_main"
|
|
];
|
|
webcam_office = [
|
|
"ffmpeg:device?video=/dev/hass-webcam/video0&video_size=1024x576#video=h264"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
|
|
frigate = {
|
|
enable = true;
|
|
hostname = "frigate.${domain}";
|
|
settings = {
|
|
mqtt = {
|
|
enabled = true;
|
|
host = "localhost";
|
|
topic_prefix = "frigate";
|
|
};
|
|
|
|
cameras = {
|
|
reolink_living_room = {
|
|
ffmpeg.inputs = [
|
|
{
|
|
path = "rtsp://127.0.0.1:8554/reolink_living_room";
|
|
input_args = "preset-rtsp-restream";
|
|
roles = [ "record" "detect" ];
|
|
}
|
|
];
|
|
detect = {
|
|
enabled = false;
|
|
};
|
|
record = {
|
|
enabled = true;
|
|
continuous.days = 1;
|
|
motion.days = 0;
|
|
};
|
|
};
|
|
|
|
webcam_office = {
|
|
ffmpeg.inputs = [
|
|
{
|
|
path = "rtsp://127.0.0.1:8554/webcam_office";
|
|
input_args = "preset-rtsp-restream";
|
|
roles = [ "record" "detect" ];
|
|
}
|
|
];
|
|
detect.enabled = false;
|
|
record = {
|
|
enabled = true;
|
|
continuous.days = 1;
|
|
motion.days = 0;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
home-assistant = {
|
|
enable = true;
|
|
|
|
extraComponents = [
|
|
"default_config"
|
|
"esphome"
|
|
"google_translate"
|
|
|
|
"met"
|
|
"zha"
|
|
"denonavr"
|
|
"webostv"
|
|
"androidtv_remote"
|
|
"heos"
|
|
"mqtt"
|
|
"wled"
|
|
];
|
|
extraPackages = python3Packages: with python3Packages; [
|
|
zlib-ng
|
|
isal
|
|
|
|
gtts
|
|
];
|
|
customComponents = with pkgs.home-assistant-custom-components; [
|
|
alarmo
|
|
frigate
|
|
west_wood_club
|
|
];
|
|
|
|
configWritable = false;
|
|
config = {
|
|
default_config = {};
|
|
homeassistant = {
|
|
name = "Home";
|
|
unit_system = "metric";
|
|
currency = "EUR";
|
|
country = "IE";
|
|
time_zone = "Europe/Dublin";
|
|
external_url = "https://hass.${pubDomain}";
|
|
internal_url = "http://hass-ctr.${domain}:${toString hassPort}";
|
|
};
|
|
http = {
|
|
server_port = hassPort;
|
|
use_x_forwarded_for = true;
|
|
trusted_proxies = with allAssignments.middleman.internal; [
|
|
ipv4.address
|
|
ipv6.address
|
|
];
|
|
ip_ban_enabled = false;
|
|
};
|
|
automation = "!include automations.yaml";
|
|
script = "!include scripts.yaml";
|
|
scene = "!include scenes.yaml";
|
|
|
|
sensor = [
|
|
{
|
|
platform = "irish_rail_transport";
|
|
name = "To Work from Home";
|
|
station = "Glenageary";
|
|
stops_at = "Dublin Connolly";
|
|
direction = "Northbound";
|
|
}
|
|
{
|
|
platform = "irish_rail_transport";
|
|
name = "To Home from Work";
|
|
station = "Dublin Connolly";
|
|
stops_at = "Glenageary";
|
|
direction = "Southbound";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|