nix-alien
nixos-apple-silicon
nix-alien | nixos-apple-silicon | |
---|---|---|
4 | 16 | |
417 | 686 | |
- | - | |
8.3 | 9.0 | |
25 days ago | 9 days ago | |
Python | Nix | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
nix-alien
-
Nix-Powered Development with OCaml
copy the extracted files over to the nix output dir, and patch-elf all the binaries to link to the nix-version of the dynamic lib.
This sounds more difficult than it is, the result will be a copied over binary file that has its “libc.so” and other dynamic libs replaced in the ELF-header with “/nix/store/hdjdewuieu737-libc/libc.so”. I recommend looking up a package in nixpkgs which has a similar install story, that’s the easiest way to write a new package.
In case you only want to run it locally https://github.com/thiagokokada/nix-alien and similar programs work fine with the binary.
- NixOS 22.11 “Raccoon” Released
-
Gentoo Users: What are your thoughts on NixOS? Have you used it before? How do you think it compares to Gentoo?
You might be interested in tools like nix-alien which help, though to some extent it's always going to be an annoyance.
-
Arch + NixOS at once?
There's also nix-alien to run random binaries and nixos-fhs-compat to FHS your OS (might need some tweaking).
nixos-apple-silicon
-
Hackintosh Is Almost Dead
I just used this: https://github.com/tpwrules/nixos-apple-silicon/blob/main/do...
I used one of their releases rather than building my own image. It’s a guide that merits careful reading, as some key steps are not specifically bulleted. Oh, and it’s not the NixOS graphical installer.
But it was dead simple, and 99% of the heavy lifting is from the Asahi team. The biggest downside is that updating the support files is a manual process, but NixOS of course makes it a breeze to rebuild into a new environment—and back out if it doesn’t work.
-
Asahi Linux folks are doing us a solid with WPA3 fixes
I doubt it will ever have native support. NixOS doesn't do native support. For what it's worth I'm running NixOS on an M2 Max MPB using https://github.com/tpwrules/nixos-apple-silicon.
- NixOS bare metal on Apple Silicon
- Lima: A nice way to run Linux VMs on Mac
- Resources to install NixOS bare metal on Apple Silicon Macs
-
Nix-Powered Development with OCaml
Most hardcore Nix users/developers I have met have been suspicious for Flakes for several years, so your point rings true.
That said, it feels like they are slowly coming to terms with it and just accepting it as default. Here are two examples of maintainers eventually accepting flake support on their repos after initial hesitation [1][2].
[1] https://github.com/tpwrules/nixos-apple-silicon/pull/47
-
ARM64 Linux Workstation
I do, no issues at all with the beta Asahi kernel, you basically have to git clone https://github.com/tpwrules/nixos-apple-silicon in /etc/nixos/, include a file from that repo in the configuration.nix and configure as you like (beta gpu driver or not, which kernel, 4k pages or not, ecc). The experience then is exactly the same as a stock NixOS installation.
-
chroot to existing Asahi installation
there is a NixOS iso for m1 you can use it https://github.com/tpwrules/nixos-apple-silicon
- NixOS on M1
What are some alternatives?
distrobox - Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available at: https://gitlab.com/89luca89/distrobox
nixos-infect - [GPLv3+] install nixos over the existing OS in a DigitalOcean droplet (and others with minor modifications)
nixos-fhs-compat - LSB&FHS compatibility for NixOS. Intended for containers and VMs.
docs - Hardware and software docs / wiki
mach-nix - Create highly reproducible python environments
m1n1 - A bootloader and experimentation playground for Apple Silicon
vulnix - Vulnerability (CVE) scanner for Nix/NixOS.
SwayM1 - A Guide on how to install and configure sway for M1 MackBooks.
nixops - NixOps is a tool for deploying to NixOS machines in a network or cloud.
powertop - The Linux PowerTOP tool -- please post patches to the mailing list instead of using github pull requests
docker-files
linux - Linux kernel source tree