From 57998eb3430528bc7927d6dee81861b9f12cdc75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kov=C3=A1cs=20B=C3=A1lint=20Hunor?= Date: Sat, 10 Oct 2026 18:32:27 +0300 Subject: [PATCH] Point Nix package at alpha4 Co-Authored-By: Claude Sonnet 5.5 --- .github/README.md | 2 +- docs/linux-port/packaging.md | 6 +++--- flake.nix | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/README.md b/.github/README.md index 1c9b7ef574e9..6cd757f71e10 100644 --- a/.github/README.md +++ b/.github/README.md @@ -49,7 +49,7 @@ programs.linuxfiles = { }; ``` -This installs a patched helper, a matching polkit action and trusted deployment manifest, and enables the pkexec wrapper. A session authentication agent is required. The flake pins alpha3, which supports this opt-in. A runtime-capability assertion rejects incompatible or unmarked package overrides. See [Nix packaging details](../docs/linux-port/packaging.md#nix-flake). +This installs a patched helper, a matching polkit action and trusted deployment manifest, and enables the pkexec wrapper. A session authentication agent is required. The flake pins alpha4, which supports this opt-in. A runtime-capability assertion rejects incompatible or unmarked package overrides. See [Nix packaging details](../docs/linux-port/packaging.md#nix-flake). ### AppImage diff --git a/docs/linux-port/packaging.md b/docs/linux-port/packaging.md index e1df23af43d2..49a914f1e8e4 100644 --- a/docs/linux-port/packaging.md +++ b/docs/linux-port/packaging.md @@ -151,7 +151,7 @@ First used for `linux-v0.1.0-alpha1` (prerelease; install instructions are in `. `flake.nix` (with `flake.lock`, pinned to `nixos-unstable`) exposes `packages.x86_64-linux.{linuxfiles,default}`, `apps.x86_64-linux.default`, `overlays.default` (adds `pkgs.linuxfiles`), and `nixosModules.default`. The package repackages the pinned release tarballs, patches all ELF files with `autoPatchelfHook` (including the retained Native AOT helper), and installs the app under `$out/lib/linuxfiles`. Runtime dlopen libraries are added to ELF runpaths rather than the launch environment, so child programs do not inherit Nix libraries. The unused CoreCLR LTTng tracing provider remains exempt from dependency checking. -Plain `nix run` and `nix profile install` retain `.root-actions-disabled`: all root actions remain off. Installing a profile cannot activate host polkit. NixOS administrators may opt in through their configuration flake with the compatible alpha3 runtime: +Plain `nix run` and `nix profile install` retain `.root-actions-disabled`: all root actions remain off. Installing a profile cannot activate host polkit. NixOS administrators may opt in through their configuration flake with the compatible alpha4 runtime: ```nix # inputs.linuxfiles.url = "github:MemerGamer/LinuxFiles"; @@ -166,7 +166,7 @@ The module selects the package's `enableRootActions` variant, removes its disabl `pkexec` uses `/run/wrappers/bin` before the system profile and `/usr/bin`/`/bin`. The module enables `security.polkit.enablePkexecWrapper` when present; older nixpkgs uses `security.wrappers.pkexec`. Only pkexec is setuid, never the LinuxFiles helper. A session authentication agent and an administrator identity are still required. The narrow store exception accepts a root-owned sticky `/nix/store` with group write (1775), but rejects other write there, non-root ownership, and any writable entries beneath it. Native `/usr` helper/policy checks retain their existing restrictions. -**Release integration:** the current pin is `0.1.0-alpha3`, which includes deployment-manifest and Nix elevation-wrapper discovery. Its `passthru.supportsNixRootActions` marker is true, so the module accepts `rootActions = true`. Overrides with a false or missing marker are still rejected by the runtime-capability assertion. For future releases, verify that both runtime changes are present before retaining the compatible-runtime marker. +**Release integration:** the current pin is `0.1.0-alpha4`, which includes deployment-manifest and Nix elevation-wrapper discovery. Its `passthru.supportsNixRootActions` marker is true, so the module accepts `rootActions = true`. Overrides with a false or missing marker are still rejected by the runtime-capability assertion. For future releases, verify that both runtime changes are present before retaining the compatible-runtime marker. Per release (after CI has attached `SHA256SUMS`; the flake's tag is `linux-v`): @@ -177,7 +177,7 @@ scripts/linux/update-nix-flake.sh X.Y.Z[-pre] SHA256SUMS # rewrites version + Commit `flake.nix` in a PR. It is deliberately not a CI step: the hashes only exist after the release job has uploaded the assets, and `main` takes changes through PRs. Run `nix flake update` separately to bump nixpkgs. -The earlier plain package passed `nix flake check --no-build` and `nix build` with nix-portable. The `checks.x86_64-linux.root-actions-module` check covers rejection of packages with a false or missing capability marker, opt-out defaults, and compatible-runtime module wiring using the pinned alpha3 package. When built, it also checks helper presence, marker state, and the generated policy path. Re-run `nix flake check` against the locked revision after the release bump; sandboxed DNS failures cannot establish NixOS evaluation or packaged loader startup. See the headless checklist below. +The earlier plain package passed `nix flake check --no-build` and `nix build` with nix-portable. The `checks.x86_64-linux.root-actions-module` check covers rejection of packages with a false or missing capability marker, opt-out defaults, and compatible-runtime module wiring using the pinned alpha4 package. When built, it also checks helper presence, marker state, and the generated policy path. Re-run `nix flake check` against the locked revision after the release bump; sandboxed DNS failures cannot establish NixOS evaluation or packaged loader startup. See the headless checklist below. ## Nightly builds diff --git a/flake.nix b/flake.nix index ec1abbc3d038..071fceec00f1 100644 --- a/flake.nix +++ b/flake.nix @@ -17,15 +17,15 @@ , icu, openssl, zlib, krb5, glib, enableRootActions ? false }: let # version and both hashes are rewritten by scripts/linux/update-nix-flake.sh - version = "0.1.0-alpha3"; + version = "0.1.0-alpha4"; base = "https://github.com/MemerGamer/LinuxFiles/releases/download/linux-v${version}"; app = fetchurl { url = "${base}/files-linux-x64.tar.gz"; - hash = "sha256-4AsvaWZC4Mg/11XnG5ggRCz/pNFzvJzfSwjl/s2IG5A="; + hash = "sha256-9xbWW/eMsntdPL9oLc+Y08PoTcPo2X8F2FtNarL3Q8E="; }; packaging = fetchurl { url = "${base}/files-packaging.tar.gz"; - hash = "sha256-POB/aZzXxXhs5GGuHAfGwPQ+OLLMz/6VEOKs8se/kUE="; + hash = "sha256-9sT8ClqulxECpVzEEdtph+StyP3i4gl74Y66EW+MmPg="; }; # Opened with dlopen at runtime, so autoPatchelf cannot discover them; added to every ELF file's runpath. runtimeLibs = [