!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1184 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org193 Servers

Load older messages


SenderMessageTime
21 Jan 2026
@k900:0upti.meK900If you want to run a Linux VM on OSX, you can already do that with qemu13:02:11
@k900:0upti.meK900That's how the nix-darwin linux builders are set up13:02:21
@eveeifyeve:matrix.orgeveeifyeveI am talking about natively.13:02:38
@eveeifyeve:matrix.orgeveeifyeve* I am talking about natively, not QEMU.13:02:45
@eveeifyeve:matrix.orgeveeifyeve* I am talking about natively (apple framework), not QEMU.13:02:55
@k900:0upti.meK900QEMU uses Apple frameworks under the hood?13:03:12
@k900:0upti.meK900It's hardware accelerated, anyway13:03:45
@eveeifyeve:matrix.orgeveeifyeveDoes it? Because I thought it doesn't and the reason it has performance issues..13:04:27
@k900:0upti.meK900It's definitely hardware accelerated and I don't know about "performance issues"13:05:11
@k900:0upti.meK900Unless you mean, like, graphics, in which case the problem is very much Not That13:05:18
@eveeifyeve:matrix.orgeveeifyeveHardware accelerated, but the real question is that if it uses https://developer.apple.com/documentation/virtualization13:06:49
@k900:0upti.meK900Why does that matter exactly?13:07:25
@eveeifyeve:matrix.orgeveeifyeve* Hardware accelerated could still mean emulated, but the real question is that if it uses https://developer.apple.com/documentation/virtualization13:07:27
@ihar.hrachyshka:matrix.orgIhar HrachyshkaIt's accelerated and performant enough, at one point I did my Linux development in a nixpkgs VM, ran kind clusters and such.13:07:32
@eveeifyeve:matrix.orgeveeifyevehttps://determinate.systems/blog/changelog-determinate-nix-384/#why13:08:27
@k900:0upti.meK900 And? 13:08:57
@steve_in_the_matrix:matrix.orgSteve

Hi there, I'm attempting to create an installation image using nix-community/nixos-generators on macOS, but I'm encountering strange issues related to my "$HOME" environment variable. When I execute nix build as a regular user, it reports that $HOME is set to "/build", which is not the case. However, when I "sudo nix build", it reports that $HOME is set to my user directory (not root?). Nevertheless, it then complains that the directory is not owned by root.

Has anyone encountered such unusual behavior before? I'm at a loss for what to do. I would greatly appreciate any insights or suggestions you may have. Thank you in advance for your assistance.

13:10:54
@k900:0upti.meK900I'd be really surprised if that actually works on a Darwin host tbh13:11:24
@saiko:knifepoint.netKatalin 🔪 sudo does not reset $HOME 13:12:17
@saiko:knifepoint.netKatalin 🔪 add -i 13:12:18
@ihar.hrachyshka:matrix.orgIhar HrachyshkaI did use nixos-generators on Darwin to create virtualbox images. Why wouldn't it work?13:12:54
@k900:0upti.meK900Because you'd have to build some NixOS bits presumably?13:13:32
@steve_in_the_matrix:matrix.orgSteveThat's exactly what I'm trying to do. Just for UTM.13:13:42
@ihar.hrachyshka:matrix.orgIhar HrachyshkaOh sure but you always have a Linux builder.13:14:00
@eveeifyeve:matrix.orgeveeifyeveLooking at QEMU source code, it unfortunately doesn't.13:14:01
@k900:0upti.meK900 I am still confused why you think this even matters 13:14:15
@k900:0upti.meK900I don't know what exactly it does13:14:21
@k900:0upti.meK900But it does not introduce major CPU overhead13:14:29
@k900:0upti.meK900So I'm not sure what your problem is13:14:33
@steve_in_the_matrix:matrix.orgSteve-i brings "unrecognized flag". I'm using determinate Nix. Is that maybe the problem?13:14:39

Show newer messages


Back to Room ListRoom Version: 6