!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
5 Jul 2025
@emilazy:matrix.orgemily and of course you'd want to remove the nix.enable = false; required for Determinate Nix 15:33:06
@emilazy:matrix.orgemily(this is for after you have whatever Nix you'd like installed)15:33:22
@tiferrei:matrix.orgtiferreiDo you find Lix has a similar level of "playing nice" with macOS as the determinate installer provides for vanilla nix?15:36:29
@tiferrei:matrix.orgtiferreiPurely from a short read of the about page of Lix, these sound like all principles i align with 15:36:48
@emilazy:matrix.orgemilyin terms of the installer themselves all of {CLI DetSys installer installing Determinate Nix, CLI DetSys installer installing Nix, Lix installer installing Lix} should be comparable since they're based on the same codebase. AIUI the main things the Determinate daemon does are Keychain integration for custom CAs, which nix-darwin lets you configure manually but does not have an automatic thing for; management of the daemon users, which nix-darwin handles by default; and automatic garbage collection, which can be configured in nix-darwin. but Nix/Lix don't have things like lazy trees that Determinate Nix ships and I have no idea if they interoperate with FlakeHub if you use that. YMMV15:41:48
@emilazy:matrix.orgemilyI personally consider managing the Nix installation to be one of the killer features of nix-darwin since otherwise it is a bit fussy on macOS15:42:12
@emilazy:matrix.orgemily I know Lix would like to move more functionality from the installer into the nix-daemon itself which would help with that but I don't think anything concrete has happened with that yet 15:42:48
@tiferrei:matrix.orgtiferreiThat sounds good, I also wanted to have nix-darwin manage nix, rather than some third party corp that i do not know 15:51:07
@tiferrei:matrix.orgtiferreiWow, all done and everything is working flawlessly, thank you!15:57:19
@emilazy:matrix.orgemily🎉16:08:48
@ronald:lokilabs.nlronald joined the room.20:42:11
6 Jul 2025
@bestlem:matrix.orgbestlemI was inspired by this (and an issue with nix doctor) to update my nix - unfortunately the installer would not just work so I had to uninstall and reinstall. I folowed the nix-darwin instructions using the Determinate installer and not use DetSys nix - which works BUT .... DetSys installer - does - * Create build users (UID 351-382) and group (GID 350) And then nix-darwin then using my working flake then says - error: Build user group has mismatching GID, aborting activation The default Nix build user group ID was changed from 30000 to 350. You are currently managing Nix build users with nix-darwin, but your nixbld group has GID 350, whereas we expected 30000.10:06:47
@bestlem:matrix.orgbestlemHow do you use DetSys installer and nix-darwin together? as they seem to want different nixbld groups? 10:08:03
@fiodor:matrix.orgfiodor joined the room.10:09:49
@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

Show newer messages


Back to Room ListRoom Version: 6