nixpkgs: Refresh pins and flake inputs
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>
This commit is contained in:
1 parent
a3d4918095
commit
31b5e3b608
18 files changed
+274
-194
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{ lib, pkgsFlake, pkgs, pkgs', self, inputs, config, ... }:
|
||||
let
|
||||
inherit (lib) mkIf mkDefault mkMerge;
|
||||
inherit (lib) mkIf mkDefault mkMerge optionalAttrs versionOlder;
|
||||
inherit (lib.my) mkDefault';
|
||||
in
|
||||
{
|
||||
@@ -91,24 +91,6 @@ in
|
||||
preBuild = (old.preBuild or "") + "\nnpm run postinstall\n";
|
||||
});
|
||||
})
|
||||
(final: prev:
|
||||
let
|
||||
# Bump nginx to a release with the NGINX2Root fixes until every pin ships one.
|
||||
# TODO: Drop once all channels are past these versions.
|
||||
bump = pkg: version: hash:
|
||||
if prev.lib.versionOlder pkg.version version then
|
||||
pkg.overrideAttrs {
|
||||
inherit version;
|
||||
src = final.fetchurl {
|
||||
url = "https://nginx.org/download/nginx-${version}.tar.gz";
|
||||
inherit hash;
|
||||
};
|
||||
} else pkg;
|
||||
in
|
||||
{
|
||||
nginxStable = bump prev.nginxStable "1.30.7" "sha256-JWW1yDcFDpWPcPsPc8SOK8pFQq00n9NW9G+wxyYQvG4=";
|
||||
nginxMainline = bump prev.nginxMainline "1.31.9" "sha256-oRxe7uLiV/RHjw5kn4SwBAeH0nfS0+UjOVKqa23LgK0=";
|
||||
})
|
||||
];
|
||||
config = {
|
||||
allowUnfree = true;
|
||||
@@ -131,6 +113,9 @@ in
|
||||
kernelPackages = mkDefault (lib.my.c.kernel.lts pkgs);
|
||||
|
||||
# Containers share the host kernel. Block SCTP on the system that owns it.
|
||||
# TODO: Lift once every kernel in use carries the NGINX2Root SCTP use-after-free fix,
|
||||
# upstream f2540da93a11 ("sctp: do not free a new asoc peeled off while sendmsg slept").
|
||||
# Not in 6.18.64 or 7.3.5 or their stable queues (checked 2026-11-22).
|
||||
extraModprobeConfig = mkIf (!config.boot.isContainer) ''
|
||||
install sctp ${pkgs.coreutils}/bin/false
|
||||
'';
|
||||
@@ -162,8 +147,10 @@ in
|
||||
|
||||
initrd = {
|
||||
systemd = {
|
||||
enable = mkDefault true;
|
||||
emergencyAccess = mkDefault true;
|
||||
} // optionalAttrs (versionOlder pkgsFlake.lib.trivial.release "26.11") {
|
||||
# TODO: Remove when 26.11 is stable. Newer NixOS always uses systemd stage 1.
|
||||
enable = mkDefault true;
|
||||
};
|
||||
services.lvm.enable = mkDefault true;
|
||||
};
|
||||
@@ -202,7 +189,7 @@ in
|
||||
|
||||
services = {
|
||||
# TODO: Remove if-else when 26.11 releases
|
||||
kmscon = if (config.system.nixos.release == "26.08:u-26.11") then {
|
||||
kmscon = if (pkgsFlake.lib.trivial.release == "26.11") then {
|
||||
enable = mkDefault false;
|
||||
config = {
|
||||
hwaccel = config.hardware.graphics.enable;
|
||||
|
||||
@@ -62,7 +62,7 @@ in
|
||||
jack.enable = true;
|
||||
};
|
||||
dbus = {
|
||||
packages = with pkgs; [ gcr ];
|
||||
packages = [ (pkgs.gcr_3 or pkgs.gcr) ];
|
||||
};
|
||||
gnome = {
|
||||
gnome-keyring.enable = true;
|
||||
|
||||
+32
-29
@@ -1,8 +1,8 @@
|
||||
{ lib, pkgs, options, config, ... }:
|
||||
{ lib, pkgs, pkgsFlake, options, config, ... }:
|
||||
let
|
||||
inherit (lib)
|
||||
optionalString concatStringsSep concatMap concatMapStringsSep mkIf mkDefault mkMerge mkForce mkVMOverride
|
||||
mkAliasDefinitions mapAttrsToList filterAttrs;
|
||||
mkAliasDefinitions mapAttrsToList filterAttrs optionalAttrs versionOlder;
|
||||
inherit (lib.my) mkOpt' mkBoolOpt' mkVMOverride';
|
||||
|
||||
cfg = config.my.tmproot;
|
||||
@@ -232,33 +232,36 @@ in
|
||||
}
|
||||
];
|
||||
|
||||
# Catch non-existent source directories that are needed for boot (see `pathsNeededForBoot` in
|
||||
# nixos/lib/util.nix). We do this by monkey-patching the `waitDevice` function that would otherwise hang.
|
||||
# Seems like systemd initrd doesn't care because it uses the systemd.mount units
|
||||
# ("If this mount is a bind mount and the specified path does not exist yet it is created as directory.")
|
||||
boot.initrd.postDeviceCommands = mkIf (!config.boot.initrd.systemd.enable) ''
|
||||
ensurePersistSource() {
|
||||
[ -e "/mnt-root$1" ] && return
|
||||
echo "Persistent source directory $1 does not exist, creating..."
|
||||
install -dm "$2" "/mnt-root$1" || fail
|
||||
}
|
||||
# TODO: Remove when 26.11 is stable. Newer NixOS has no scripted initrd.
|
||||
boot = optionalAttrs (versionOlder pkgsFlake.lib.trivial.release "26.11") {
|
||||
# Catch non-existent source directories that are needed for boot (see `pathsNeededForBoot` in
|
||||
# nixos/lib/util.nix). We do this by monkey-patching the `waitDevice` function that would otherwise hang.
|
||||
# Seems like systemd initrd doesn't care because it uses the systemd.mount units
|
||||
# ("If this mount is a bind mount and the specified path does not exist yet it is created as directory.")
|
||||
initrd.postDeviceCommands = mkIf (!config.boot.initrd.systemd.enable) ''
|
||||
ensurePersistSource() {
|
||||
[ -e "/mnt-root$1" ] && return
|
||||
echo "Persistent source directory $1 does not exist, creating..."
|
||||
install -dm "$2" "/mnt-root$1" || fail
|
||||
}
|
||||
|
||||
_waitDevice() {
|
||||
local device="$1"
|
||||
_waitDevice() {
|
||||
local device="$1"
|
||||
|
||||
${concatMapStringsSep " || \\\n " (d:
|
||||
let
|
||||
sourceDir = "${d.persistentStoragePath}${d.directory}";
|
||||
in
|
||||
''([ "$device" = "/mnt-root${sourceDir}" ] && ensurePersistSource "${sourceDir}" "${d.mode}")'')
|
||||
cfg.persistence.config.directories}
|
||||
${concatMapStringsSep " || \\\n " (d:
|
||||
let
|
||||
sourceDir = "${d.persistentStoragePath}${d.directory}";
|
||||
in
|
||||
''([ "$device" = "/mnt-root${sourceDir}" ] && ensurePersistSource "${sourceDir}" "${d.mode}")'')
|
||||
cfg.persistence.config.directories}
|
||||
|
||||
waitDevice "$@"
|
||||
}
|
||||
waitDevice "$@"
|
||||
}
|
||||
|
||||
type waitDevice > /dev/null || (echo "waitDevice is missing!"; fail)
|
||||
alias waitDevice=_waitDevice
|
||||
'';
|
||||
type waitDevice > /dev/null || (echo "waitDevice is missing!"; fail)
|
||||
alias waitDevice=_waitDevice
|
||||
'';
|
||||
};
|
||||
|
||||
environment.persistence."${cfg.persistence.dir}" = mkAliasDefinitions options.my.tmproot.persistence.config;
|
||||
|
||||
@@ -347,7 +350,7 @@ in
|
||||
}
|
||||
];
|
||||
})
|
||||
(mkIf config.services.minio.enable {
|
||||
(mkIf (((options.services.minio or { }) ? enable) && config.services.minio.enable) {
|
||||
my.tmproot.persistence.config.directories = [
|
||||
{
|
||||
directory = config.services.minio.configDir;
|
||||
@@ -546,9 +549,9 @@ in
|
||||
|
||||
services.borgbackup.package = pkgs.borgbackup.overrideAttrs (o: {
|
||||
makeWrapperArgs = o.makeWrapperArgs ++ [
|
||||
"--set-default BORG_BASE_DIR /var/lib/borgbackup"
|
||||
"--set-default BORG_CONFIG_DIR /var/lib/borgbackup/config"
|
||||
"--set-default BORG_CACHE_DIR /var/cache/borgbackup"
|
||||
"--set-default" "BORG_BASE_DIR" "/var/lib/borgbackup"
|
||||
"--set-default" "BORG_CONFIG_DIR" "/var/lib/borgbackup/config"
|
||||
"--set-default" "BORG_CACHE_DIR" "/var/cache/borgbackup"
|
||||
];
|
||||
});
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user