| 9 Nov 2025 |
samasaur | I'm not sure what the best approach here is | 05:52:45 |
samasaur | I can add some CC_WRAPPER_USED_FOR_SWIFT flag that add-local-cc-cflags-before.sh checks to add -Xcc before the -Werror=unguarded-availability when needed, or we could create a wrapper specifically for swift | 05:53:49 |
samasaur | never mind that was silly, we already have the ability to prefix flags with -Xcc. let me see if that works or if I actually need to drop the flag entirely | 06:04:33 |
| Steve Reed changed their profile picture. | 06:16:11 |
samasaur | okay got it | 06:37:24 |
samasaur | https://github.com/NixOS/nixpkgs/pull/459987 | 07:13:38 |
delafthi | yes, I am | 09:41:51 |
| ghpzin (moved to @ghpzin:envs.net) changed their display name from ghpzin to ghpzin (moved to @ghpzin:envs.net). | 15:03:51 |
| 10 Nov 2025 |
| @ieda:matrix.org left the room. | 13:33:38 |
| 11 Nov 2025 |
| Mirko Lenz changed their display name from mlenz to Mirko Lenz. | 08:07:19 |
purrtner | Interesting. On my machine nixpkgs-review is broken, which is surprising. | 08:18:22 |
delafthi | Iβm usually running nixpks-review with https://github.com/Defelo/nixpkgs-review-gha. But let me test it on my local machine. | 11:48:38 |
| leah changed their display name from saige leah to leah. | 12:23:35 |
delafthi | no, nixpks-review works fine for me | 16:38:59 |
Ben Sparks | In reply to @purrtner:matrix.org Interesting. On my machine nixpkgs-review is broken, which is surprising. Are you getting an error related to a schema? | 16:40:35 |
niklaskorz | I was gonna say "what version are you running" | 16:41:01 |
niklaskorz | In reply to @benjaminsparks:chat.alugha.app Are you getting an error related to a schema? That's been fixed though (the biome thingy) | 16:41:12 |
| oak π³οΈβπβ₯οΈ changed their profile picture. | 19:20:44 |
| 12 Nov 2025 |
jonhermansen | Is it normal that darwin-rebuild wants to clobber /etc/bashrc and /etc/zshrc ?
user@desktop mac-flake % sudo nix --extra-experimental-features "nix-command flakes" run nix-darwin/master#darwin-rebuild -- switch --flake .#desktop
warning: $HOME ('/Users/user') is not owned by you, falling back to the one defined in the 'passwd' file ('/var/root')
building the system configuration...
error: Unexpected files in /etc, aborting activation
The following files have unrecognized content and would be overwritten:
/etc/bashrc
/etc/zshrc
Please check there is nothing critical in these files, rename them by adding .before-nix-darwin to the end, and then try again.
| 00:53:20 |
jonhermansen | It's a fairly fresh install of Tahoe, I guess I was just surprised it was necessary. Oh, maybe this is how Nix stuff gets injected into PATH? | 00:59:19 |
samasaur | it is, yes. that said what we normally do is add the hashes of the macOS-provided files to nix-darwin itself so that they are "recognized" and can be overwritten automatically | 01:49:46 |
samasaur | are you on the latest nix-darwin? | 01:49:56 |
jonhermansen | I think I'm on the latest nix-darwin (trying to install master). I think I actually caused this problem π because I messed with the Nix installer.
My /nix and /nix/store are on ZFS and so I had to disable the launchd service which attaches and mounts the APFS disk.
Hmm, OK, mea culpa. I didn't realize nix-darwin would try to manage the plist file too. I actually made the plist immutable, ran darwin-rebuild switch again, and got this
cp: cannot remove '/Library/LaunchDaemons/org.nixos.nix-daemon.plist': Operation not permitted | 01:53:58 |
jonhermansen | I'll have to find a way to import and mount my ZFS filesytems before the nix-daemon service fires | 01:54:24 |
samasaur | the nix-daemon service runs /bin/wait4path, so you should be okay to just replace the org.nixos.darwin-store.plist file? | 01:55:53 |
samasaur | not to trivialize that ofc | 01:56:05 |
jonhermansen | During the Nix installation, it also modified /etc/bashrc I think. I thought I accepted the Nix installer's copy of /etc/bashrc. My install is not typical, but I was curious about the "first-time installation" step of darwin-rebuild | 01:56:06 |
jonhermansen | That makes sense, except I deleted it :p I can find it and put it back | 01:56:27 |
samasaur | re: your original issue, there's no special first-time installation logic. nix-darwin will refuse to overwrite any files in /etc that aren't either a) managed by nix-darwin; b) have a "known hash" | 01:58:01 |
jonhermansen | I wasn't sure exactly where to add my ZFS import / mount steps, and so I had put them into the nix-daemon plist but clearly that was not the right idea | 01:58:01 |