huix the configuration and what runs on it

Workarounds

Things in this repo that exist only because something upstream is broken or missing. Each entry says what to run to find out whether it is still needed, and what makes it removable. Nothing here is a design decision: a permanent choice that differs from the obvious arrangement belongs in DEVIATIONS.md, and a trap that reports a plausible success in PITFALLS.md

Rules for this file: one entry per workaround, and every entry must carry a mechanical removal check (a command whose output decides it), never a date


The pinned Hermes recipe reads a deprecated platform attribute

Where: the package override in nixos/services/ai/hermes/hermes.nix

Symptom it prevents: evaluation emits a stdenv.isLinux warning for Hermes

Why it happens: the pinned Hermes recipe reads stdenv.isLinux, where the supported attribute is stdenv.hostPlatform.isLinux

Why this works: the override supplies its legacy platform lookup from hostPlatform. The adapter is local to the recipe and changes no global package set

Removal check: evaluate the unadapted upstream recipe with warnings treated as errors

nix eval --impure --option abort-on-warn true --expr 'let f = builtins.getFlake (toString ./.); in f.inputs.hermes-agent.packages.x86_64-linux.default.drvPath'

A command that succeeds without the deprecation warning permits removal of the adapter. A different failure needs investigation before removal


Hermes bundled skills keep the Nix store's dates and modes

Where: hermes-backup-zip.service in nixos/services/ai/hermes/backup.nix, the restore steps in nixos/services/ai/hermes/README.md, and the restore subtest of nixos/station/tests/boot.nix

Symptom it prevents: hermes backup reports "ZIP does not support timestamps before 1980" for every bundled skill and exits 1, so the nightly restic backup fails. hermes import over a started state reports "Permission denied" for the same files and exits 1

Why it happens: Hermes copies its bundled skills from the package into ~/.hermes/skills and keeps their metadata. In the Nix store every file has the 1970 timestamp and every directory is read-only. Python's zipfile refuses a date before 1980 unless strict_timestamps=False. The import writes through a temporary file in each directory, and a read-only directory refuses it

Why this works: before the backup, every file older than 1980-01-02 gets that date; only the bundled skills match, and their content does not change. Before an import, chmod -R u+w gives the owner write access to those directories again

Removal check: in a Hermes state whose bundled skills came from the store, run hermes backup --output OUT --keep 0 without the date step, and hermes import --force OUT over a started state without the chmod. Both exit 0 -> remove both steps

Upstream: NousResearch/hermes-agent#101226 tracks the copied metadata. #110270 proposes a fix, and #101300 closed without a merge. #136372 proposes a separate ZIP timestamp fix. The pinned Hermes still needs both local steps


Hindsight's OpenRouter reranker needs an account policy

Where: nixos/services/ai/hindsight/service.nix selects OpenRouter for reranking. The OpenRouter account that owns the Hindsight key enforces the routing policy

Symptom it prevents: the reranker sends candidate texts without a request-level provider policy. Without the account policy, OpenRouter can select a provider outside the intended policy

Why this works: Hindsight does not pass extra request body fields to its OpenRouter reranker. The account policy filters providers before routing. The separate embedding option added in vectorize-io/hindsight#6227 already passes the configured policy to embedding requests. It does not apply to reranking

Removal check: point the packaged reranker at a local HTTP stub with a dummy key. Run recall over synthetic records and require a successful rerank request with provider.data_collection = "deny" in its JSON body. A fallback to RRF does not satisfy the check. Confirm that OpenRouter enforces that field on the rerank endpoint before you remove the account policy

Upstream: vectorize-io/hindsight#7055 requests per-request routing for the OpenRouter reranker


Separate Bambu Studio NVIDIA wrapper

Where: home-manager/desktop/packages/packages.nix in the workstation package group

Symptom it prevents: (bambu-studio.override { withNvidiaGLWorkaround = true; }) changes the monolithic package derivation even though the option only adds four runtime environment variables. The default package from Cachix can no longer substitute it, so Nix recompiles Bambu Studio in 16 parallel jobs and exhausts system memory

Why this works: symlinkJoin takes the cached default package and wraps only its executable with the same zink environment. The resulting local derivation contains a shell wrapper and a symlink rather than another C++ build

Removal check: inspect the current nixpkgs package expression

nix eval --raw .#nixosConfigurations.nixos-pc.pkgs.bambu-studio.meta.position \
  | cut -d: -f1 | xargs grep -c symlinkJoin

Zero -> keep the separate wrapper. Non-zero -> verify that the upstream withNvidiaGLWorkaround branch wraps a shared base derivation, replace this wrapper with the upstream override, and confirm with nix build --dry-run that Bambu Studio itself will be fetched rather than built

Upstream: NixOS/nixpkgs#498311 introduced the opt-in NVIDIA workaround


smartd keeps notifications.wall.enable = true

Where: nixos/services/system/monitoring/smartd.nix, shared by every host; it matters on the workstations, the hosts with systembus-notify on

Symptom it prevents: with systembus-notify as the only notification channel, a failing disk sends no desktop alert. smartd writes the problem to the journal and nothing more

Why it happens: the nixpkgs smartd module passes -M exec <notify script> to smartd only when mail, wall or x11 is on. The condition omits systembus-notify, so its dbus-send line is in the script, but smartd never runs the script. With wall on, smartd runs the script, and the script sends both the wall message and the D-Bus alert

Removal check: read the condition in the pinned nixpkgs module

grep -A1 'notifyOpts =' "$(nix eval --raw .#nixosConfigurations.nixos-pc.pkgs.path)/nixos/modules/services/monitoring/smartd.nix"

No ns.enable in the condition -> keep wall. ns.enable is in it -> wall becomes a free choice

Upstream: NixOS/nixpkgs#569022 (the same change with a NixOS test, open)


wayland.windowManager.hyprland.systemd.enable = false

Where: home-manager/desktop/hyprland/hyprland.nix — a shared HM module, so it covers both workstations, and both need it since withUWSM = true lives in the shared nixos/desktop/core-options.nix

Symptom it prevents: logging into the Hyprland (uwsm) session shows the cursor on a black screen for ~2 seconds, then drops back to SDDM, forever. The plain Hyprland session entry is unaffected

Why it happens: HM's hyprland module appends systemctl --user stop hyprland-session.target to the exec-once it generates. That target declares:

BindsTo=graphical-session.target
PropagatesStopTo=graphical-session.target

uwsm's wayland-session@.target in turn declares BindsTo=graphical-session.target, and the compositor unit wayland-wm@hyprland.desktop.service declares BindsTo=wayland-session@%i.target. So the stop cascades all the way into the compositor. In the journal this looks like a clean stop job — Stopped Main service for Hyprland plus Triggering OnSuccess=, no Main process exited, and the Hyprland log in /run/user/1000/hypr/<sig>/hyprland.log just ends mid-render with no backtrace. Easy to misread as a GPU or driver fault; it is neither. Plain Hyprland survives because there the compositor is a bare process, not a systemd unit, so nothing is bound to the target

Why this works: turning the integration off costs nothing, because Hyprland does the same work natively — it links libsystemd and on startup runs

systemctl --user import-environment DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP QT_QPA_PLATFORMTHEME PATH XDG_DATA_DIRS
  && dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP HYPRLAND_INSTANCE_SIGNATURE …

and sends sd_notify(READY=1) unless HYPRLAND_NO_SD_NOTIFY is set. That is exactly what uwsm needs: its waitenv waits for WAYLAND_DISPLAY + HYPRLAND_INSTANCE_SIGNATURE, and the Type=notify compositor unit needs the readiness signal. So no uwsm finalize line in exec-once is needed — an earlier attempt added one, it was a duplicate, it was removed

Rejected alternative: systemd.extraCommands = [ ] disables only the destructive half and keeps HM's env export. It works, but leaves a hyprland-session.target nothing ever starts, an exec-shutdown that stops it, and a second copy of an export Hyprland already does

Removal check:

# the conflict stands as long as HM's module has no idea uwsm exists
grep -ric uwsm "$(nix eval --raw '.#nixosConfigurations.nixos-pc.config.home-manager.extraSpecialArgs.inputs.home-manager.outPath' 2>/dev/null)/modules/services/window-managers/hyprland/"

Zero hits → keep the line. Once it is non-zero, read what HM does now, then drop the option and test a real Hyprland (uwsm) login. If that login loops again:

journalctl -b 0 | grep uwsm_waitenv   # shows which variable never arrived

Note Hyprland's own flake does not change any of this: its homeManagerModules.default only sets package and defers to HM's module for everything else

Upstream: the NixOS UWSM wiki recommends that you disable the Home Manager integration. hyprwm/Hyprland#9265 closed after a change to KDE Connect unit order. It does not fix the target conflict above


blueman connects a device on row-activated

Where: patches/blueman-row-activated.patch, applied by overlays/blueman.nix on the laptop, the host with services.blueman.enable

Symptom it prevents: in blueman-manager a double tap on a device only selects it; connecting needs a mouse. The device list connects on button-press-event and acts only when the event is _2BUTTON_PRESS (ManagerDeviceList.py, _on_event_clicked). GDK emulates a pointer press from each touch, but never a double press, so that branch does not run for a finger, however the taps land: measured with a GTK3 tree view under WAYLAND_DEBUG, every tap arrived as a single button-press and the double tap arrived only as row-activated

Why this works: row-activated is the tree view's own activation, emitted by its press gesture for a mouse double-click and a double tap alike, and for Enter. The patch moves the connect and disconnect there and leaves the raw handler the right-click menu only. The double tap counts within gtk-double-click-distance, which is why home-manager/desktop/theme/theme.nix widens it from the stock 5 px to 24

Removal check: look at the device list as nixpkgs ships it; the source is a tarball

tar -xOf "$(nix eval --raw .#nixosConfigurations.nixos-laptop.pkgs.blueman.src)" --wildcards '*/blueman/gui/manager/ManagerDeviceList.py' | grep -c 'row-activated'

0 -> keep the patch. Anything else -> blueman activates rows itself; drop the patch and the overlay, then check that a double tap still connects

Upstream: blueman-project/blueman#3378 (the same change, open)


yazi takes a langmap

Where: patches/yazi-langmap.patch, applied by overlays/yazi.nix to yazi-unwrapped on every host, for the keymap.langmap that home-manager/programs/yazi/keymap.nix builds from lib/ru-layout.nix

Symptom it prevents: with the Russian layout on, no binding answers: yazi matches a key by the character it types, so j arrives as о. That holds for plugin menus too, such as the drive list of mount.yazi

Why this works: the patch adds a [langmap] table to keymap.toml, the way vim's langmap option works. A key an input field did not take is moved through the table before any keymap, the which popup or a plugin menu sees it. Shift follows the character, so Й becomes Q and Ж becomes :. The cost: yazi is built from source whenever nixpkgs moves it, because a patched package is in no binary cache

Removal check: look for the table in yazi as nixpkgs ships it

grep -c 'langmap' "$(nix eval --raw .#nixosConfigurations.nixos-laptop.pkgs.yazi-unwrapped.srcs.code_src)/yazi-config/src/keymap/keymap.rs"

0 -> keep the patch. Anything else -> yazi carries a langmap itself; drop the patch and the overlay line, match the option's shape against keymap.nix, then press о and Space ф in the Russian layout

Upstream: sxyazi/yazi#4411, the code on branch langmap of the yazi clone


git.yazi's status column is switched from outside

Where: the wrapper around Linemode.children_add at the top of home-manager/programs/yazi/init.lua, the git-column plugin in home-manager/programs/yazi/plugins/, and its Space u g bind in home-manager/programs/yazi/keymap.nix, on every host

Symptom it prevents: the git column takes space in every file list, and nothing can hide it for a while

Why it happens: git.yazi's setup takes only order, and the plugin has no entry, so neither an option nor a key reaches the column

Why this works: while setup runs, init.lua swaps Linemode.children_add for a version that wraps the column function in a check of the global GIT_COLUMN, then puts the original back. The git-column plugin flips that global and redraws. The cost: the wrapper depends on how setup adds its column, so a change there drops the switch silently

Removal check: look for the option in git.yazi as nixpkgs ships it

grep -c 'hidden' "$(nix build --no-link --print-out-paths .#nixosConfigurations.nixos-laptop.pkgs.yaziPlugins.git)/main.lua"

0 -> keep the wrapper. Anything else -> git.yazi switches its column itself; drop the wrapper, the git-column plugin and its name in keymap.nix, point Space u g at the plugin's own entry, then press it in a repository. The check looks for the name proposed in yazi-rs/plugins#248; when that issue closes with another name for the option, rewrite the check to look for it

Upstream: yazi-rs/plugins#248, where git.yazi resides; the first report, sxyazi/yazi#4409, was closed on 2026-10-08 as not Yazi itself


yazi builds chords from Lua tables

Where: patches/yazi-chord-tables.patch, applied by overlays/yazi.nix to yazi-unwrapped on every host after the langmap patch, for the which-delay and which-fold plugins in home-manager/programs/yazi/plugins/

Symptom it prevents: on 26.9.1 neither plugin works. which-delay hides the popup and cannot show it again, because ya.emit() refuses the chords of cx.which.cands (unsupported value included). which-fold returns its group rows as tables, the core refuses them, and the leader key is lost

Why this works: the patch carries sxyazi/yazi#4391, merged after 26.9.1, and the three commits of branch chord-from-lua of the yazi clone. A chord now comes from a Lua table whose keys are strings or Key tables, through ya.emit() too, and reusing a chord or an action in Lua no longer destroys it. The patch is git diff between the langmap commit and the head of branch huix-26.9.1, which stacks the same commits on the release

Removal check: look for the conversion in yazi as nixpkgs ships it

grep -c 'seq_from_lua' "$(nix eval --raw .#nixosConfigurations.nixos-laptop.pkgs.yazi-unwrapped.srcs.code_src)/yazi-config/src/keymap/key.rs"

0 -> keep the patch. Anything else -> yazi converts tables itself; drop the patch and the overlay line, then press Space, wait for the popup and open a group. When the conversion lands under another name, rewrite the check to look for it

Upstream: sxyazi/yazi#4442, open; the design comes from sxyazi/yazi#3774


which-delay and which-fold live here

Where: home-manager/programs/yazi/plugins/which-delay and home-manager/programs/yazi/plugins/which-fold, set up in home-manager/programs/yazi/keymap.nix, which also holds the group names

Symptom it prevents: Space opens a popup at once, with every leader chord in one flat list, where nixvim's which-key waits and shows one row a group. The maintainer keeps both out of the core and asked for plugins in sxyazi/yazi#3774

Why this works: which-delay hides the popup through the ind-which-activate event and shows it after a timeout, unless a newer key press owns it. which-fold puts one row for each group in the popup, and the key of that row opens the group as a new popup. The two share the event table: which-fold opens a group hidden while which-delay still hides its parent. which-delay is a byte copy of branch which-delay of the yazi-rs/plugins clone. The cost: keys that arrive in one burst, as from a paste, can reach the file list before a group opens; typed keys 10 ms apart do not

Removal check: look for each plugin in nixpkgs

nix eval --raw .#nixosConfigurations.nixos-laptop.pkgs.yaziPlugins.which-delay.version
nix eval --raw .#nixosConfigurations.nixos-laptop.pkgs.yaziPlugins.which-fold.version

An error -> keep the local copy. A version -> take the package in keymap.nix in place of ownPlugin, delete the directory, and check that the setup options did not change

Upstream: which-delay is in open PR yazi-rs/plugins#249; which-fold follows once the core change above is released


which-key reads keys through 'langmap'

Where: the which-key-nvim input in flake.nix, which overlays/which-key.nix builds as vimPlugins.which-key-nvim on every host. home-manager/programs/nixvim/plugins/editor/which-key.nix takes the plugin from the global pkgs, because nixvim builds plugins from its own nixpkgs, which no overlay here reaches

Symptom it prevents: in the Russian layout, <leader>ф opens an empty or half-empty popup instead of the <leader>a group. which-key reads every key after a prefix itself through getcharstr(), and Neovim applies langmap only to keys it reads itself. So ф walks into langmapper's Cyrillic twins, which the filter in which-key.nix hides

Why this works: the branch of the pull request parses vim.o.langmap, the value langmapper.nix builds from lib/ru-layout.nix, and moves a typed key through it in normal, visual, select and operator-pending mode, the modes where Neovim applies the option. The translated key wins only where the tree has it, so a twin such as пс (gc) still answers where no Latin child exists. The source is that branch rather than a patch, so the code lives in one place and review changes arrive with nix flake update which-key-nvim

Removal check: look for langmap support in which-key as nixpkgs ships it, without the overlay

grep -c 'langmap' "$(nix build --no-link --print-out-paths --inputs-from . nixpkgs#vimPlugins.which-key-nvim.src)"/lua/which-key/*.lua

0 on every file -> keep the input. Anything else -> which-key handles langmap itself; drop the input, the overlay and the package line, then press <leader>ф in the Russian layout

Upstream: folke/which-key.nvim#1068, from branch langmap of rokokol/which-key.nvim; the feature request #846 was closed as stale


wl-copy offers several MIME types

Where: the wl-clipboard-rs input in flake.nix, which overlays/wl-clipboard-rs.nix builds as wl-clipboard-rs on both workstations. The yazi plugin clipboard-sync, set up in home-manager/programs/yazi/keymap.nix, calls this wl-copy by its store path; the wl-copy on the PATH stays the one from wl-clipboard

Symptom it prevents: files copied in yazi paste into Telegram but not into Thunar, or the other way round. A file manager has to offer text/uri-list, which most programs read, and x-special/gnome-copied-files, which Thunar reads alone and which alone says the files were cut. The two hold different text, and every wl-copy offers one content under one type

Why this works: the wl-clipboard-rs library already serves several types (prepare_copy_multi); the branch of the pull request adds --offer MIME FILE, repeatable, to its wl-copy. The source is that branch rather than a patch over the nixpkgs release, because upstream master rewrote the same lines after 0.9.3, and a patch made for one release does not apply to the next. The lock pins the commit, so a nixpkgs update cannot break the build; nix flake update wl-clipboard-rs takes in review changes. cargoDeps comes from the branch's own Cargo.lock, so no vendor hash goes stale on that update. The overlay also sets cargoTestFlags to the packages it builds, because a bare cargo test skips the tools package, where the branch's tests live

Removal check: look for the option in wl-copy as nixpkgs ships it, without the overlay

grep -c 'offer' "$(nix build --no-link --print-out-paths --inputs-from . nixpkgs#wl-clipboard-rs.src)"/wl-clipboard-rs-tools/src/wl_copy.rs

0 -> keep the input. Anything else -> wl-copy has its own way; drop the input and the overlay, match the plugin's call to it, then press y on a file in yazi and paste it into Thunar

Upstream: YaLTeR/wl-clipboard-rs#88, from branch wl-copy-multi-types of rokokol/wl-clipboard-rs


compress.yazi from its main branch

Where: the compress-yazi input in flake.nix, swapped into yaziPlugins.compress by overlays/yazi.nix on every host, for the archive keys in home-manager/programs/yazi/keymap.nix

Symptom it prevents: packing anything fails at once, and yazi's task list shows attempt to call a nil value (field 'unique_name'). The plugin's last tag, the one nixpkgs packages, still calls fs.unique_name(), which yazi 26 replaced with fs.unique()

Why this works: the plugin's main branch already calls fs.unique(); the input brings that source, pinned by the lock, under the package nixpkgs builds

Removal check: look at the plugin as nixpkgs ships it

grep -c 'fs.unique_name' "$(nix build --no-link --print-out-paths --inputs-from . nixpkgs#yaziPlugins.compress)/main.lua"

Anything but 0 -> keep the input. 0 -> nixpkgs ships the fix; drop the input and its line in overlays/yazi.nix, then pack a zip from yazi

Upstream: fixed on KKV9/compress.yazi main, no tag carries it yet


relative-motions.yazi calls ya.emit

Where: patches/relative-motions-ya-emit.patch, applied by overlays/yazi.nix to yaziPlugins.relative-motions on every host, for the counts and line numbers in home-manager/programs/yazi/

Symptom it prevents: a count shows in the status bar (5j) and the cursor stays where it was. The plugin moves the cursor through ya.mgr_emit(), which yazi 26 no longer has

Why this works: the patch is the upstream pull request below, unchanged: every ya.mgr_emit becomes ya.emit, and nothing else moves

Removal check: look at the plugin as nixpkgs ships it

grep -c 'ya.mgr_emit' "$(nix build --no-link --print-out-paths --inputs-from . nixpkgs#yaziPlugins.relative-motions)/main.lua"

Anything but 0 -> keep the patch. 0 -> drop the patch and its line in overlays/yazi.nix, then try 5j in yazi

Upstream: dedukun/relative-motions.yazi#32 (open)


Hermes' Hindsight memory provider is not in nixpkgs

Where: flake.nix (the hindsight input), nixos/services/ai/hermes/hindsight-plugin.nix, nixos/services/ai/hermes/hermes.nix

Symptom it prevents: Hermes cannot use its native Hindsight memory provider. Upstream ships the provider as a catalog plugin (hermes plugins install hindsight) that Hermes installs into $HERMES_HOME/plugins and whose Python client it resolves at runtime; nixpkgs packages only the hindsight-api-slim server

Why it happens: the provider and its generated hindsight-client live in the Vectorize monorepo, and neither is a nixpkgs package. Installing them through Hermes' own plugin manager would write into the immutable Home Manager generation and depend on an impure network fetch at runtime

Why this works: the pinned upstream checkout is a non-flake input, so flake.lock owns the commit; hindsight-plugin.nix builds the provider as a hermes_agent.memory_providers entry-point package and the client from that one checkout, and the Hermes module hands them to extraPythonPackages

Removal check: nix eval --json .#nixosConfigurations.nixos-station.pkgs --apply 'p: (p ? hermes-plugin-hindsight) && (p.python3Packages ? hindsight-client)' | grep -qx true — if both are packaged in nixpkgs, drop the input, the package file, and the extraPythonPackages entries

Upstream: vectorize-io/hindsight#6245 closed as not planned. Upstream recommends a downstream package. The release branch still lacks the provider and client


Linux 6.18.58 stops the lid switch and the power button

Where: boot.kernelPackages in nixos/configuration-laptop.nix and nixos/configuration-pc.nix, on nixos-laptop and nixos-pc. Every other host keeps the kernel that nixpkgs chooses by default

Symptom it prevents: on the laptop, closing the lid does nothing. systemd-logind never logs Lid closed., so the machine does not suspend. Hyprland's switch:on:Lid Switch bind never fires either, so the lid-mode blanking is dead as well. SUPER+SHIFT+A still starts and stops huix-lid-inhibit, which makes the failure read as a stuck inhibitor. On the PC, the power button does nothing at all: the power menu never opens and the machine neither suspends nor powers off. The kernel never sees the press, so no userspace remedy exists; a hold of several seconds is expected to still power the machine off through the firmware, and that path was not measured

Why it happens: from 6.18.58 the acpi-button driver registers on the platform bus instead of the ACPI bus, and that conversion loses the fixed-event buttons. A machine whose FADT declares the power button as a fixed event — this PC does — gets a synthetic LNXPWRBN:00 device from acpi_bus_scan_fixed(), which the old driver bound on the ACPI bus and which a platform driver cannot bind: /sys/bus/acpi/devices/LNXPWRBN:00/driver stays empty. The driver binds the namespace device PNP0C0C:00 instead, whose device_type is ACPI_BUS_TYPE_DEVICE, so acpi_button_probe() installs a notify handler where a fixed event needs acpi_install_fixed_event_handler(). The event is never enabled: /sys/firmware/acpi/interrupts/ff_pwr_btn reads 0 STS invalid unmasked, invalid being the kernel's word for "no handler installed", and the sci counter stays at 0 through a press. A press therefore reaches neither the kernel nor userspace: /dev/input/event8 emits nothing and a bind on XF86PowerOff never fires. The lid fails for a different reason: the strings, the DMI quirks, lid_init_state and lid_report_interval are identical between the two versions and both install a notify handler, yet on this Fujitsu LIFEBOOK T939 the platform-driver version never emits SW_LID. /proc/acpi/button/lid/LID/state still turns closed on a real lid close, the input device still advertises SW_LID, and no process holds an EVIOCGRAB on it

Why this works: 6.12 is LTS and its acpi-button is still the ACPI driver — __acpi_bus_register_driver and acpi_button_add, the shape 6.18.55 had — so acpi_bus_scan_fixed()'s device_attach() reaches it and the fixed event gets its handler. Everything above the kernel stays as designed: logind suspends on the lid, the lid-mode bind blanks the internal panel, and the power key reaches Hyprland as XF86PowerOff

Rejected alternative: a userspace poller over /proc/acpi/button/lid/*/state that suspends or blanks by itself. The firmware state does flip, so it would work. It copies logind, however, and it has to take over the lid-mode blanking too, because Hyprland's switch binds receive nothing either. It would also outlive the defect in the tree. For the power button there is nothing to poll. Backporting the upstream fix as a boot.kernelPatches entry would spare the kernel downgrade, but it is a patch to carry across every 6.18 bump, and the laptop's pin already exists, so one pin on two hosts is the smaller arrangement

Removal check: test each host separately. Boot the default kernel without its pin. Press the power button on the PC or close the lid on the laptop

cat /sys/firmware/acpi/interrupts/ff_pwr_btn
journalctl -b -u systemd-logind --no-pager | grep -F 'Lid closed.'

A counter above zero in ff_pwr_btn together with the power menu opening means the default kernel handles the button; a Lid closed. line after a real lid close means it reports the lid. Remove a pin only after its own hardware check passes

Upstream: the lid was reported to both lists on 2 Nov 2026 — linux-acpi, linux-input, message-id 010601a19ca3de07-739bccf6-3a29-486f-b31e-1c928fe27e10-000000@ap-northeast-1.amazonses.com. Linux 6.18.65 includes the fixed-event button backport. It registers platform devices for fixed-event buttons. Check the PC power button on the intended kernel before you remove its pin. This backport does not address the laptop lid event


Forgejo's dump directory lives on a filesystem that mounts after tmpfiles

Where: nixos/services/tools/forgejo.nix — the forgejo-dump-dir unit, and the ordering it puts on forgejo.service and forgejo-dump.service

Symptom it prevents: forgejo.service never starts, with Failed to set up mount namespacing: /srv/backup/forgejo-dump: No such file or directory, and forgejo-dump.service dies at Changing to the requested working directory failed

Why it happens: the upstream module declares the dump directory as a systemd.tmpfiles rule, and /srv/backup is a filesystem of its own that mounts later: on the station tmpfiles runs at 3 s and the volume mounts at 16 s, so the rule makes the directory on the root filesystem and the mount then hides it. The upstream dump unit also sets WorkingDirectory= to that directory, and systemd changes into it before it runs any command of the unit, so an ExecStartPre= cannot create it. A boot that mounts the volume early hides the defect, which is why the station kept working while a fresh volume does not

Why this works: forgejo-dump-dir waits for the volume with RequiresMountsFor=, makes the directory, and stands before both units that need it, each of which wants it. forgejo.service requires the same mount, so it waits for the volume instead of failing on its namespace, and the unit condition skips the work when the volume is absent rather than making the directory on the root filesystem

Removal check: delete the unit and its RequiresMountsFor, wants and before lines, then build the test that boots a fresh volume

nix build .#station-boot-test -L

The run passes only when the upstream module creates the dump directory itself, and then the workaround is gone. A failure naming forgejo-dump.service or the mount namespace means it is still needed

Upstream: NixOS/nixpkgs#582601 makes services.forgejo.dump create its own directory


The Home Manager activation mounts a dead $HOME/.gvfs

Where: lib/mk-host.nix, on the home-manager-<user>.service of every host — both desktop homes and the station's agent home

Symptom it prevents: after every boot ~/.gvfs is a FUSE mount with no daemon behind it. Reading, copying or removing it answers Transport endpoint is not connected, rm -rf ~/.gvfs cannot remove the mountpoint, and coredumpctl collects one .gvfsd-fuse-wrapped SIGSEGV per boot

Why it happens: the activation's dconfSettings step runs dconf load inside a private D-Bus session, and the unit carries no XDG_RUNTIME_DIR because systemd sets that only for user units. GLib then reports the cache directory as the runtime directory, and gvfsd reads that equality as "no runtime directory" and spawns gvfsd-fuse "$HOME/.gvfs" -f — daemon/main.c names it the old location kept as a fallback. The daemon mounts, the private bus goes away, it dies in g_mount_tracker_set_property, and the kernel keeps the mount with nothing serving it. That fallback is deliberate compatibility code, byte-identical in the stable branch's gvfs 1.60.3 and in upstream master, so neither a downgrade nor a release bump retires it

Why this works: the activation writes files and dconf and needs no gvfs at all, so GIO_USE_VFS=local keeps GIO on its local VFS and the daemon is never started. dconf write and dconf read return the same value with and without the variable, and the database is byte-identical

Rejected alternative: handing the unit XDG_RUNTIME_DIR=/run/user/1000. gvfsd would then mount the directory the session really uses for trash and removable devices, and the same crash would leave that one dead instead

Removal check: reproduce the mount in a scratch home with no runtime directory

home=$(mktemp -d)
env -u XDG_RUNTIME_DIR -u DBUS_SESSION_BUS_ADDRESS HOME="$home" XDG_CONFIG_HOME="$home/.config" \
  dbus-run-session -- dconf write /huix/gvfs-check 1
ls -d "$home/.gvfs"

$home/.gvfs appears -> gvfs still falls back to the home directory, keep the variable and clean up with fusermount3 -uz "$home/.gvfs" && rm -rf "$home". No such file -> gvfs no longer picks that path and the variable can go

Upstream: not reported yet. The mount path is gvfs' own fallback; the crash that leaves the mount dead is a separate defect