| 12 Mar 2026 |
WeetHet | Much easier than on NixOS | 08:40:36 |
| redbunnyninja joined the room. | 08:42:49 |
redbunnyninja | hey all, i'm just starting out with nix! i'm on macos and i'm trying things out to see if a declarative config works for me. i've followed the flakes method to get started from https://github.com/nix-darwin/nix-darwin and used https://github.com/ryan4yin/nix-darwin-kickstarter/tree/main/minimal as inspiration on how to structure things in my config. the initial sudo nix run nix-darwin/master#darwin-rebuild -- switch worked but i have no idea where the binaries that are in my config went to. e.g. i added in the fish shell to the nix config but i can't find where the fish shell that got installed is :) | 08:46:28 |
emily | should be in /run/current-system/sw/bin/fish or in your PATH if you open a new configured shell | 09:15:46 |
emily | FWIW I still need to clean up my local x86 drop stack but I think the code burden of supporting it just enough to build Wine while this gets fixed would be very low for now. i.e. we could drop it almost everywhere and get most of the maintenance and infra benefit while still letting Wine build | 09:17:53 |
emily | I wonder if we could just do Wine as "cross" to x86 for now honestly | 09:18:38 |
emily | without even involving a full stdenv | 09:18:54 |
samasaur | be sure to also set programs.fish.enable = true; :) | 09:19:00 |
redbunnyninja | thanks, finally found it :D | 09:19:40 |
redbunnyninja | yep i got this in there. i was just trying to figure out why i couldn't see things working in my fish shell that i have from homebrew. when i just started up fish from nix, it has /run/current-system/sw/bin in the PATH now. | 09:20:42 |
emily | it does not look like we'd have to support cross to x86 on very many packages at all to make that work | 09:21:30 |
redbunnyninja | the nix installed fish doesn't have my other configured PATHs though. i wonder why it uses a different configuration then the one i have in ~/.config/fish/ | 09:21:55 |
samasaur | where do you set your "other configured paths"? | 09:22:36 |
emily | it should use your main configuration. it won't use /etc/paths.d though | 09:22:54 |
redbunnyninja | in various files under ~/.config/fish/ | 09:22:57 |
redbunnyninja | like /Users/muyuser/miniconda3/condabin gets set in ~/.config/fish/conf.d/conda.fish | 09:23:47 |
samasaur | that... should get picked up by default, yeah | 09:24:19 |
redbunnyninja | and its also missing stuff like /Library/Apple/usr/bin which i honestly don't know where it comes from :D | 09:24:53 |
samasaur | and you said running homebrew fish properly picks up your existing config? | 09:25:09 |
redbunnyninja | yep that works fine | 09:25:21 |
redbunnyninja | thats what i've been using so far | 09:25:30 |
samasaur | even post activating your nix-darwin config? | 09:25:44 |
samasaur | I'm wondering whether it's a (fish via nix issue) or a (fish with nix-darwin) issue | 09:26:17 |
redbunnyninja | not exactly sure what you mean by "activating" here. i'm about 3 hours into nix over a span of 2 days :D | 09:26:24 |
redbunnyninja | some stuff nix fish picked up actually, like my pixi path. | 09:27:13 |
samasaur | does it still work after you did sudo darwin-rebuild switch and got fish config files in /etc that point to the nix store | 09:27:18 |
samasaur | actually sorry I have to go to sleep but can try and debug this with you tomorrow (for me at least) | 09:28:36 |
redbunnyninja | nodice | 09:31:34 |
redbunnyninja | ╭─ /run/current-system/sw/bin ··········································································································································································· 10:27:35
╰─❮ ./fish
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
╭─ /run/current-system/sw/bin ··········································································································································································· 10:27:37
╰─❯ cd /etc/nix-darwin
╭─ /etc/nix-darwin ······················································································································································································ 10:28:00
╰─❯ sudo darwin-rebuild switch
building the system configuration...
setting up /Applications/Nix Apps...
setting up pam...
applying patches...
setting up /etc...
user defaults...
setting up launchd services...
configuring networking...
configuring application firewall...
configuring power...
setting up /Library/Fonts/Nix Fonts...
setting nvram variables...
Homebrew bundle...
`brew bundle` complete! 0 Brewfile dependencies now installed.
╭─ /etc/nix-darwin ·············································································································································································· 11s 10:28:15
╰─❯ echo $PATH
/Users/myuser/.pixi/bin /Users/myuser/.toolbox/bin /Users/myuser/go/bin /opt/homebrew/sbin /opt/homebrew/bin /Applications/Ghostty.app/Contents/MacOS /Users/myuser/.nix-profile/bin /run/current-system/sw/bin /nix/var/nix/profiles/default/bin /usr/local/bin /usr/bin /bin /usr/sbin /sbin /Users/myuser/.local/bin /Users/myuser/.local/bin
╭─ /etc/nix-darwin ······················································································································································································ 10:28:20
╰─❯ echo "going back to homebrew fish"; exit
going back to homebrew fish
╭─ /run/current-system/sw/bin ································································································································································ 1m 13s 10:28:50
╰─❮ echo $PATH
/nix/var/nix/profiles/default/bin /Users/myuser/.pixi/bin /Users/myuser/.toolbox/bin /Users/myuser/go/bin /opt/homebrew/sbin /opt/homebrew/bin /Applications/Ghostty.app/Contents/MacOS /Users/myuser/miniconda3/condabin /usr/local/bin /System/Cryptexes/App/usr/bin /usr/bin /bin /usr/sbin /sbin /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin /opt/pmk/env/global/bin /Library/Apple/usr/bin /Users/myuser/.local/bin /Users/myuser/.local/bin
| 09:31:42 |
redbunnyninja | good night and thanks! | 09:31:50 |