!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
6 Jul 2025
@fiodor:matrix.orgfiodor Hi everyone. I'm trying to upgrade my setup to the latest nix-darwin, but I'm struggling with the migration due to system.activationScripts.extraUserActivation getting removed. I have some custom activation scripts which set up my dotfiles, etc. I cannot find anything that works as a replacement online. Can someone please help? 10:16:20
@toonn:matrix.orgtoonn There's Home-Manager's activation blocks, which sound more appropriate for dotfiles anyway. 12:32:43
@emilazy:matrix.orgemily you can use sudo in a system activation script if you really want to run some random code as a user 12:41:13
@emilazy:matrix.orgemilybut yes, that's what Home Manager integration will do for you already, so I'd recommend using HM for this task12:41:23
@cathal_mullan:matrix.orgCathal changed their display name from CJ to Cathal.17:17:20
7 Jul 2025
@thefloweringash:matrix.orgthefloweringash For months my emacs has just been sometimes hanging whenever I run magit. Today I finally tracked it down. magit's commit action loads the commit message file, which runs normal-mode, which in my config hits go--is-go-asm, which loads ffap (presumably find-file-at-point), which then calls gcc -print-multiarch. This hits xcrun, which then infinitely invokes itself. The cause was having, in my PATH, the value /usr/bin/ instead of /usr/bin. This came from round-tripping via parse-colon-path which always adding a trailing slash to all returned path elements. I can even easily reproduce by running PATH=/usr/bin/:$PATH gcc in the shell environment. 08:19:12
@uep:matrix.orguep There do seem to have been several opportunities to have not done something before the something that you eventually discovered was going wrong. 10:49:41
@benjaminsparks:chat.alugha.appBen Sparksobligatory XKCD: https://xkcd.com/1172/11:06:39
@benjaminsparks:chat.alugha.appBen Sparks* obligatory XKCDs: https://xkcd.com/1172/, https://xkcd.com/378/11:07:01
@antifuchs:asf.computerantifuchs
In reply to @uep:matrix.org
There do seem to have been several opportunities to have not done something before the something that you eventually discovered was going wrong.
That’s the gamma knife model of incidents (:
14:00:45
@colemickens:matrix.orgcolemickens 🏳️‍🌈 left the room.21:52:58
@saiko:knifepoint.netKatalin 🔪 changed their display name from Katalin ⚧︎ to Katalin 🔪.23:28:20
8 Jul 2025
@zhaofeng:zhaofeng.liZhaofeng Li

PSA about beta 3

If System Settings > Desktop & Dock > Displays have separate Spaces is disabled, WindowServer will crash at login time. (153570422)
Workaround: Boot into Recovery, then mount the Data volume on your partition. Launch Terminal and run rm /Volumes/<Partition Name "Macintosh HD">/Users/<user name>/Library/Preferences/com.apple.Spaces.plist.

03:39:25
9 Jul 2025
@jonhermansen:matrix.orgjonhermansen joined the room.01:17:51
@saiko:knifepoint.netKatalin 🔪they added an option to add a background to the menu bar in beta 3! Hallelujiah01:37:56
@zhaofeng:zhaofeng.liZhaofeng LiI think it was there in beta 2?05:14:59
@prince213:matrix.orgprince213https://github.com/NixOS/nixpkgs/pull/42373209:41:31
@prince213:matrix.orgprince213First time bumping Xcode version09:41:50
@reckenrode:matrix.orgRandy Eckenrode
In reply to @reckenrode:matrix.org
I’m not rebasing on staging this week to focus on splitting up my branch. It’s time to get my wrapper changes up for review, bump the minimum to 14.0, and update the SDK and source releases to 15.5.
I made some progress on this but not a lot. Progress will be slow this week. I’d like to get at least some of this stuff into the next staging cycle.
11:57:02
@sarahec:matrix.orgSarah Clark I've been seeing OSError: AF_UNIX path too long pop up across several packages this week (checkPhase failures). I wonder if something changed recently to trigger this. 17:12:33
@emilazy:matrix.orgemilyCVE fix relocating the build directory I would imagine17:13:17
@emilazy:matrix.orgemilymay ned the path shortening on macOS 🫠17:13:36
@sarahec:matrix.orgSarah ClarkSounds plausible.17:14:12
@sarahec:matrix.orgSarah ClarkSo is there a better solution than disabling the failing test(s)?17:14:50
@emilazy:matrix.orgemily you can change build-dir but it risks re-exposing you to CVEs 17:16:56
@emilazy:matrix.orgemilymaybe you can convince the tests to use shorter paths17:17:07
11 Jul 2025
@axman6:matrix.orgAxman6 I think I've asked this before, but asking again because I ran into it again - there's currently no way to get a Universal python via Nix right? The one that macOS ships with (and IIRC the installer from python.org) can build universal stuff when it needs to compile C bits, but the nix provided ones can't. I need to create an executable using pyinstaller, which works fine on aarch64 and x86_64 when using the system python. I had looked into using lipo to combine binaries from the two arches into one, but something conflicts when they're joined (we embed an executable inside this other executable, and I think the two copies conflict in its unpacking, or something ... this sounds a lot like malware now I think about it [and I'm not convinced it's not]) 01:33:38
@reckenrode:matrix.orgRandy EckenrodeDarwin support in nixpkgs is not really set up to do universal builds except in trivial cases (with no dependencies).01:37:56
@zhaofeng:zhaofeng.liZhaofeng Li

embed an executable inside this other executable

Oof, this will be a problem if you ever want to adopt app sandboxing. Also you have tried that it passes notarization, right?

01:41:49
@axman6:matrix.orgAxman6the embedded executable is also signed, and seems to work fine03:29:16

Show newer messages


Back to Room ListRoom Version: 6