Nix on macOS | 1190 Members | |
| “There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org | 200 Servers |
| Sender | Message | Time |
|---|---|---|
| 21 Feb 2026 | ||
| 19:34:04 | ||
| 22 Feb 2026 | ||
| 02:54:07 | ||
| 04:14:32 | ||
| 23 Feb 2026 | ||
| 06:16:26 | ||
| do we have a standard recommendation for how to handle
Is one of these unambiguously "better" than the others? I recall the symlink approach having issues (and I can find comments in nixpkgs and on PRs to that extent), so | 06:29:38 | |
In reply to @samasaur:matrix.organ example of symlink causing behavior differences I ran into recently: https://github.com/NixOS/nixpkgs/pull/489364 | 06:55:25 | |
| yea that's what prompted me to ask, i have the zotero, cinny, and nheko PRs up in tabs rn | 06:56:06 | |
| Each of those approaches has more overhead than the last is worth mentioning. | 08:25:20 | |
| Maybe also the fact that them not working might be of interest to upstream. | 08:26:27 | |
| consider not setting a meta.mainProgram, then providing script aliases that point at the executables of that bundle | 11:22:13 | |
let multiOutputBundle = stdenv.mkDerivation { ... }; let singleProg = writers.makeShellScript { "${multiOutputBundle}/bin/$MY-SINGLE-PROGRAM $@" } | 11:23:52 | |
| something like this perhaps? | 11:23:57 | |
In reply to @benjaminsparks:chat.alugha.appi don't get it, your example seems pretty similar to using a (shell) wrapper | 11:35:44 | |
| except that you don't rebuild the multiOutputBundle when you use overrideAttrs to make a new meta.mainProgram for each program | 11:36:25 | |
| ahh im sorry i have misread the message 😄 is what I have written even helpful to you, probably not 😂 | 11:37:33 | |
| 14:34:01 | ||
I think the last option forces macl to be set and then nix-collect-garbage would fail | 17:49:49 | |
does meta.mainProgram = "../Applications/…"; work | 17:51:50 | |
I think it should, it would with my nix-run | 17:54:00 | |
| it's kind of awful and shouldn't work | 17:57:08 | |
| but if it does… | 17:57:09 | |
meta.mainProgram = "../../../../usr/bin/hello"; | 17:57:35 | |
| 18:34:58 | |
*
| 18:35:03 | |
| 21:17:05 | ||
| 21:17:36 | ||
| I didn't get any responses and also did some searching and didn't find quite what I'm looking for. So I created a repo (with just a README) explaining what I'm trying to do and as a starting point for pulling things together: https://github.com/msgilligan/max-nix-on-macos | 23:20:12 | |
| 24 Feb 2026 | ||
| @msgilligan:matrix.org: FWIW 5 and 6 can be covered by native nixpkgs qemu based VMs, unless you really care it's Lima / Apple vz. | 13:06:51 | |
| Thanks for the reminder. I'm looking for maximum performance and seamless integration with the host. In my experience, Lima is best (among OSS solutions, at least) for headless and UTM for GUI, but I can't say that I've tried (the latest versions of) everything. VZ is not Open Source but is built-in to macOS and is (in theory) higher-performance (especially for local file access. Given that we're already running on a closed-source system I make an exception to my Open Source rule for it. One of my goals is to have a GUI NixOS VM that is performant enough to be a daily-driver. I'm hoping the latest UTM with VZ will be able to deliver that. For headless Linux, I really like Lima (though it is adding support for displays and for macOS guests, too) and have been using it for much longer than I've been using Nix. I created the I use nixpkgs qemu via Nix Darwin for a Linux Builder VM, but to date I haven't found it nearly as friendly as Lima or UTM. I definitely need to take a another look. Do people use it for creating interactive VMs for development? | 16:40:48 | |
| * Thanks for the reminder. I'm looking for maximum performance and seamless integration with the host. In my experience, Lima is best (among OSS solutions, at least) for headless and UTM for GUI, but I can't say that I've tried (the latest versions of) everything. VZ is not Open Source but is built-in to macOS and is (in theory) higher-performance (especially for local file access.) Given that we're already running on a closed-source system I make an exception to my Open Source rule for it. One of my goals is to have a GUI NixOS VM that is performant enough to be a daily-driver. I'm hoping the latest UTM with VZ will be able to deliver that. For headless Linux, I really like Lima (though it is adding support for displays and for macOS guests, too) and have been using it for much longer than I've been using Nix. I created the I use nixpkgs qemu via Nix Darwin for a Linux Builder VM, but to date I haven't found it nearly as friendly as Lima or UTM. I definitely need to take a another look. Do people use it for creating interactive VMs for development? | 16:41:21 | |