chore(nixos): guard the nix and xdg-desktop-portal-wlr pins at eval time

WA-023 warns once nixVersions.stable reaches 2.35; WA-046 fails the build
once nixpkgs' xdg-desktop-portal-wlr is no longer the broken 0.8.4, so both
pins get revisited instead of lingering.

Assisted-by: Claude Code (claude-opus-5-5)
This commit is contained in:
Ryan Yin authored and ryan4yin | 二花 committed 2026-11-01 11:55:14 -06:00
1 parent eaa53004e5
commit 3789a2a282
3 files changed
+9 -2

No files matched your search

+1
View File
@@ -4,6 +4,7 @@
# the latest released version until stable catches up.
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/tools/package-management/nix/default.nix
nix.package = pkgs.nixVersions.latest;
warnings = lib.optional (lib.versionAtLeast pkgs.nixVersions.stable.version "2.35") "nixVersions.stable is 2.35+: drop the nixVersions.latest override (WA-023)";
# https://lix.systems/add-to-config/
# nix.package = pkgs.lix;
+6
View File
@@ -62,6 +62,12 @@
pkgs-stable.xdg-desktop-portal-wlr
];
};
assertions = [
{
assertion = pkgs.xdg-desktop-portal-wlr.version == "0.8.4";
message = "nixpkgs moved xdg-desktop-portal-wlr past 0.8.4: retest Zoom with it and drop the 0.8.2 pin (WA-046)";
}
];
# The xdg-autostart-generator starts every autostart app (including nixpak
# sandboxes like firefox/telegram) right at graphical-session.target, while