Apparently multiple of us are interested in seeing if we could get nix running on a Z. Maybe we should co-ordinate efforts somehow? I guess we would all perf one bigger VM, rather than multiple smaller ones? … I’m just excited to get logged into the Z!
As far as Nix goes, I received a couple other requests for VMs from members of the Nix community, so I think there are some folks chipping away at it. I'm trying to put them in touch with each other but I need their permission first. Would you like me to loop you in if I get these discussions going?
Enjoy!
Elizabeth K. Joseph
Global Head, Open Source Program Office for IBM Z and LinuxONE
I’m not even sure I can confidently say there are dozens of us as a joke The venn diagram of people who use IBM Z hardware and people who aren’t vendor locked into Z/OS is already practically two circles that don’t touch.
linux1@z:~$ uname -a
Linux z 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 14:53:36 UTC 2026 s390x s390x s390x GNU/Linux
linux1@z:~$ date
Fri Mar 27 05:04:28 PM UTC 2026
linux1@z:~$ nix --version <---- woot woot
nix (Nix) 2.35.0
Making a lot of progress. Had to get a bigger VM due to OOM kills, so it’s going a lot faster now. This is with nix compiled with z15 architecture. Fancy
Looks like Nix crashes on out of disk space? I guess it doesn’t matter much, cos what are you going to do anyway? Whatever, I’m going to just get a bigger disk. Didn’t realize how much the binary cache helps.
FAILED: [code=1] CMakeFiles/install.util
cd /nix/var/nix/builds/nix-3751946-2480156649/clang-src-21.1.8/clang/build && /nix/store/ylkv8n1d5j30gihdjx65g9bw7q3yk2x7-cmake-4.1.2/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.
error (ignored): write of 65536 bytes: No space left on device
Nix crashed. This is a bug. Please report this at https://github.com/NixOS/nix/issues with the following information included:
A number of Linux distros are available for Z (s390x), including Debian, Fedora, OpenSuse:
and I believe they provide nix packages of some form already…
Or are you talking about running nix outside a Z Linux Lpar (vm)?
To my understanding nix does not yet support s390. I did try the instructions here: Download | Nix & NixOS
I’ve now got a number of patches to make nix work on the s390 architecture, including z15 which is the machine type I’m testing on. For testing I’m using one of these legacy non-deterministic operating systems