!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
14 Nov 2025
@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
15 Nov 2025
@k900:0upti.meK900 @Randy Eckenrode Mesa 25.3 is out with Kosmickrisp 10:05:18
@k900:0upti.meK900Can I leave setting that up to you10:06:00
@reckenrode:matrix.orgRandy EckenrodeSure.11:31:55
@reckenrode:matrix.orgRandy EckenrodeGiven the timing, I’ll get it building and make sure it can be used in preference to MoltenVK, but it won't be the default. That may happen for 26.05, but it probably depends on getting a few more of the macOS extensions implemented or for other projects to accommodate it (e.g., it doesn’t work with mpv right now).13:35:12
@reckenrode:matrix.orgRandy Eckenrode * 13:37:35
@niklaskorz:matrix.orgniklaskorz Randy Eckenrode: I'm preparing a treewide PR for removing obsolete instances of darwinMinVersionHook now 19:09:12
@niklaskorz:matrix.orgniklaskorzit's just a handful but qt6 is under them, so I'll probably split that commit into a separate staging PR19:09:38
@weethet:catgirl.cloudWeetHetShould this go into staging instead? https://github.com/NixOS/nixpkgs/pull/46201719:34:10
@k900:0upti.meK900Technically no19:34:50
@k900:0upti.meK900Given the rebuild count19:34:53
@k900:0upti.meK900But it might make sense to delay this until we have Kosmickrisp19:35:01
@weethet:catgirl.cloudWeetHetI don't know if gtk even supports kosmickrisp19:35:51
@weethet:catgirl.cloudWeetHetTheir official page says to use moltenvk19:36:12
@weethet:catgirl.cloudWeetHetAnd it's better than using OpenGL anyways19:36:21
@weethet:catgirl.cloudWeetHetCan just update to use kosmickrisp when/if gtk supports it19:36:39
@niklaskorz:matrix.orgniklaskorzI hope there is nothing to explicitly support19:42:22
@weethet:catgirl.cloudWeetHetOh I'm dumb yeah19:42:34
@niklaskorz:matrix.orgniklaskorzit'll just depend on loading the correct vulkan icd I suppose19:42:41

Show newer messages


Back to Room ListRoom Version: 6