!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
26 Jun 2021
@abueide:matrix.orgabueide *

so i added this to my darwin-configuration.nix

nix.extraOptions
    system = aarch64-darwin
    extra-platforms = aarch64-darwin sudo launchctl kickstart -k system/org.nixos.nix-daemonx86_64-darwin
  '';

but all my nix executables are still x86_64. my packages are arm64 though

20:51:50
@abueide:matrix.orgabueideandrew@Akiko> file $(which nix) ~/nixfiles /Users/andrew/.nix-profile/bin/nix: Mach-O 64-bit executable x86_64 20:52:11
@abueide:matrix.orgabueide ok i messed up my nix install. sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume --daemon gives me an error /var/folders/v0/b2nzxjzx7m93vlkjlmkyhgsw0000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.2t9MSYqG/unpack/nix-2.3.13-x86_64-darwin/create-darwin-volume.sh: line 10: diskutil: command not found -:1: parser error : Document is empty 21:15:14
@abueide:matrix.orgabueide * ok i messed up my nix install. sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume --daemon
gives me an error
/var/folders/v0/b2nzxjzx7m93vlkjlmkyhgsw0000gn/T/nix-binary-tarball-unpack.XXXXXXXXXX.2t9MSYqG/unpack/nix-2.3.13-x86_64-darwin/create-darwin-volume.sh: line 10: diskutil: command not found -:1: parser error : Document is empty
21:15:28
@abueide:matrix.orgabueideok i just had to add /usr/sbin to my PATH for some reason21:19:27
@qwerky:matrix.orgQwerky joined the room.22:16:36
@qwerky:matrix.orgQwerkyHello, Im new, having some path problems (I think). I installed nix on my Mac after some efforts making it work with the apfs and it was working fine for a while. Today I tried to start a regular nix-shell and my zsh just does not understand the nix command anymore. Not sure where to start debugging this issue?22:19:40
@abueide:matrix.orgabueidecan you post error message?22:20:08
@qwerky:matrix.orgQwerkyits very generic -> zsh: command not found: nix-shell22:20:45
@abueide:matrix.orgabueidewhat is output of cat ~/.zshenv22:21:44
@qwerky:matrix.orgQwerkyhuh no such directory -_- now how did that happen22:22:42
@abueide:matrix.orgabueideactually thats probably fine22:23:18
@abueide:matrix.orgabueidetry reinstalling nix, kinda annoying but the installer will give you instructions on how to remove nix and reinstall it22:23:41
@abueide:matrix.orgabueide sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume --daemon 22:23:45
@abueide:matrix.orgabueidejust use this command22:23:48
@qwerky:matrix.orgQwerkyonce bitten..... iirc, there had to be some wormhole magic for macs to create the filesystem partition. Thanks for your help so far :)22:25:45
@abueide:matrix.orgabueideyeah i'm not the most knowledgable i'm still trying to figure all this out too. just had to recently reinstall and it managed to work out ok after some trial and error22:28:52
@qwerky:matrix.orgQwerkyCatalina people, how did you remove the disk partition for /nix? It won't allow me to erase the partition because nix is being used by the kernel?22:59:05
@abueide:matrix.orgabueidelol i literally just ran into tht23:19:58
@abueide:matrix.orgabueide Qwerky: sudo vim /etc/synthetic.conf 23:20:19
@abueide:matrix.orgabueideremove nix23:20:20
@abueide:matrix.orgabueidereboot23:20:22
@abueide:matrix.orgabueidealso maybe need to disk util and delete the apfs partition idk tho23:20:50
@abueide:matrix.orgabueidenix apfs partition*23:21:13
@abueide:matrix.orgabueide * `sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume23:22:06
@qwerky:matrix.orgQwerky worked like a charm thanks abueide ! 23:40:16
@qwerky:matrix.orgQwerkyI really hope they update that uninstall documentation page...23:40:38
27 Jun 2021
@abueide:matrix.orgabueideanyone know how to make xcrun --sdk macosx --show-sdk-path show all of the sdks like AppKit CoreAudio etc01:28:50
@abueide:matrix.orgabueidethis is my current derivation but scons can't pick up the header files from the apple sdk's01:30:41
@abueide:matrix.orgabueidehttps://github.com/abueide/nixpkgs/blob/godot-macos/pkgs/development/tools/godot-macos/default.nix01:30:42

There are no newer messages yet.


Back to Room ListRoom Version: 6