Daniel Kahlenberg

Results 102 comments of Daniel Kahlenberg

> So CI is currently failing because of `Waiting for Building activation package` https://github.com/nix-community/nix-on-droid/actions/runs/12915672764/job/36018274935?pr=432 What is the propable cause? related: https://github.com/nix-community/nix-on-droid/blob/5d88ff2519e4952f8d22472b52c531bb5f1635fc/flake.nix#L7

When following https://github.com/nix-community/NixOS-WSL/issues/292#issue-1904936552 for recovery it fails at step `nix-channel --update`: > unpacking channels... error: … while setting up the build environment > > error: getting attributes of path '/run/binfmt':...

Recovery also not possible: > error: file 'nixos-wsl/modules' was not found in the Nix search path (add it using $NIX_PATH or -I) at «none»:0: (source not available) [All found here](https://github.com/search?q=repo%3Anix-community%2FNixOS-WSL%20nix_path&type=code)...

Workaroud hack: `sudo mkdir /run/binfmt` and after that I repeated the original, my regular `nixos-rebuild` command, with the offending `boot.binfmt.emulatedSystems = [ "aarch64-linux" ];` line factored out from my configuration.nix....

~-Also, `sudo systemctl status wsl-binfmt` still has~ ~...~ EDIT: `nixos-rebuild switch` mitigates last comment's issue.

`wsl.interop.register = true;` and `boot.binfmt.registrations` probably only the default - did not set (only `boot.binfmt.emulatedSystems = [ "aarch64-linux" ];`). This is what I have now (workaround as stated), not clear...

With >nix-repl> :p nixosConfigurations.DANIELKNB1.config.boot.binfmt.emulatedSystems [ "aarch64-linux" ] > >nix-repl> :p nixosConfigurations.DANIELKNB1.config.boot.binfmt.registrations { WSLInterop = { fixBinary = true; interpreter = "/init"; interpreterSandboxPath = null; magicOrExtension = "MZ"; mask = null;...

>building the system configuration... activating the configuration... setting up /run/booted-system... setting up /etc... setting up /bin... setting up /bin/login... setting up /sbin/init shim... reloading user units for nixos... restarting sysinit-reactivation.target...