!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1156 Members
β€œThere are still many issues with the Darwin platform but most of it is quite usable.” β€” http://yves.gnu-darwin.org187 Servers

Load older messages


SenderMessageTime
13 Nov 2025
@niklaskorz:matrix.orgniklaskorzI suppose you set that because you are using determinate nix10:30:05
@niklaskorz:matrix.orgniklaskorz but definitely remove nixpkgs.hostPlatform 10:30:17
@tao:beeper.comtaoI'm actually using Lix10:30:36
@niklaskorz:matrix.orgniklaskorzoh, interesting10:30:47
@niklaskorz:matrix.orgniklaskorzin that case you probably want nix.enable = true and have it auto update your lix installation10:30:58
@niklaskorz:matrix.orgniklaskorzbut that also needs settings nix.package to lix10:31:04
@niklaskorz:matrix.orgniklaskorzyou can find an explanation on how to do that here: https://lix.systems/add-to-config/#flake-based-configurations10:31:48
@niklaskorz:matrix.orgniklaskorz basically it's just nix.package = pkgs.lixPackageSets.stable.lix; if you don't care about having nixpkgs-review and other nix-based tools use lix 10:40:00
@purrtner:matrix.orgpurrtner Last week I submitted a fix for a package, that wont build on darwin anymore.
Unfortunately the package has no maintainer whatsoever. Is the trick just to be patient? I have no issue with it, since I can build it locally using an overlay, but I think, it would be nice to have it building easily for everyone again.
10:40:52
@niklaskorz:matrix.orgniklaskorz If you got no reviews after a week, you can post it on #review-requests:nixos.org 10:50:23
@reckenrode:matrix.orgRandy EckenrodeLLVM dropped support for the aarch64-apple-darwin triple in LLVM 20. I believe Tristan tried to get them to keep support, but they said no.11:36:42
@niklaskorz:matrix.orgniklaskorzI wonder if it's worth having an explicit assertion for anyone that wrongly has this set12:01:50
@purrtner:matrix.orgpurrtnerThanks!13:06:44
@debtquity:matrix.orgdebtquityaarch64 cross compilation on m4 mac is cooking rn at 15G 21:48:17
@mio:chat.mio19.ukmio

python is possibly broken

       > python3.13(9980,0x1fba16240) malloc: *** error for object 0x103902de0: pointer being freed was not allocated
       > python3.13(9980,0x1fba16240) malloc: *** set a breakpoint in malloc_error_break to debug

https://github.com/NixOS/nixpkgs/issues/461396

23:27:20
14 Nov 2025
@sarahec:matrix.orgSarah ClarkI added notes to your bug. TL;dr protobuf is looking like the probable culprit00:48:44
@debtquity:matrix.orgdebtquity

So I use the nix.linux-builder for building aarch64-linux dependencies. But I am running into an issue on remote machines not trusting the generated paths since they are untrusted.

Even on my local machine, nix store verify --all is showing they are untrusted:

# nix store verify --all
...
path '/nix/store/0mapnivw6b3678v1b336j9dfxwjhmwc5-unit-dhcpcd.service' is untrusted
path '/nix/store/wy485gdjl7xwlaq5zz2aq55i3yjxry2b-dhcpcd.conf' is untrusted
path '/nix/store/36yijh6hzrg2r45sydbys92wrlwx5gs6-unit-systemd-fsck-.service' is untrusted
path '/nix/store/sr1pdx59gjbh949ai57lg6nzj19pgrpz-unit-script-network-setup-start' is untrusted
path '/nix/store/1j0930fgfwqgbxl517c08v64fmg0bnij-X-Restart-Triggers-systemd-timesyncd' is untrusted
path '/nix/store/421h6j088bq5q9qakabrsh004v2wgxp2-unit-network-setup.service' is untrusted
...

How do I configure the linux builder to sign the generated files so I can distribute the public key to both my local and remote machines?

03:49:27
@debtquity:matrix.orgdebtquity

this is what i observe with nixos-rebuild-ng

# nixos-rebuild-ng switch --flake .#rpi --ask-sudo-password --sudo --target-host "d@rpi"
[sudo] password for d@rpi:
building the system configuration...
warning: Git tree '/Users/d/.config/nix' is dirty
(d@rpi) Password:
(d@rpi) Password:
copying 6 paths...
copying path '/nix/store/3jrv1qr389dfin65n531zz4zb60pc8s1-nix.conf' to 'ssh://d@rpi'...
error: cannot add path '/nix/store/3jrv1qr389dfin65n531zz4zb60pc8s1-nix.conf' because it lacks a signature by a trusted key
error: unexpected end-of-file
Command 'nix-copy-closure --to d@rpi /nix/store/pjsmcl4633j54l4chsgqzv689kbkcrmi-nixos-system-rpi-25.11.20251005.d7f52a7' returned non-zero exit status 1.
03:51:06
@yoghurtt:matrix.orgyoghurt joined the room.12:55:41
@yoghurtt:matrix.orgyoghurt

Hey I've been using nix on mac for a while and really enjoy it!

I just got a new mac and trying to follow the guide on installing nix-darwin from https://github.com/nix-darwin/nix-darwin seems to fail.

  1. I installed nix using the lix installer
  2. I get an error when i try to install nix-darwin

Here is the output if i run the command in step 2 of the README.md:

$ sudo nix run nix-darwin/nix-darwin-25.05#darwin-rebuild -- switch
warning: $HOME ('/Users/tje') is not owned by you, falling back to the one defined in the 'passwd' file ('/var/root')
building the system configuration...
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
error: file 'darwin' was not found in the Nix search path (add it using $NIX_PATH or -I)

This is a fresh macbook and i tried to follow the steps in the README.md so i'm not sure if I did something wrong or if the README is outdated.

13:05:30
@niklaskorz:matrix.orgniklaskorzdid follow the first step that is unfortunately collapsed by default?13:07:31
@niklaskorz:matrix.orgniklaskorz* did you follow the first step that is unfortunately collapsed by default?13:07:34
@niklaskorz:matrix.orgniklaskorzreferring to "Step 1. Creating flake.nix"13:07:57
@niklaskorz:matrix.orgniklaskorz or if you don't plan to use flakes, then the other instruction telling you to run sudo nix-channel --add first 13:08:39
@yoghurtt:matrix.orgyoghurt

niklaskorz: Thank you. Your message leads me to my mistake.
I did not create the /etc/nix-darwin folder but instead have my flake.nix in a different directory.

The fix was to run sudo nix run nix-darwin/master#darwin-rebuild -- switch --flake ~/darwin/#simple.

~/darwin/ is where I have my config.

13:20:07
@niklaskorz:matrix.orgniklaskorzNice!13:20:36
@yoghurtt:matrix.orgyoghurt Do i understand it correctly or is step 3 kind of redundant in this guide?
I have already run darwin-rebuild -- switch in step 2. πŸ™‚
13:23:42
@yoghurtt:matrix.orgyoghurt * Do i understand it correctly or is step 3 kind of redundant in this guide?
I have already run darwin-rebuild -- switch in step 2. πŸ™‚
(Referring only to the flakes install instructions)
13:25:24
@niklaskorz:matrix.orgniklaskorzoh yeah that's just meant to show how to apply new changes to your config^^13:43:21
@florian.pester:cyberus-technology.deFlorian set a profile picture.18:41:04

Show newer messages


Back to Room ListRoom Version: 6