| 26 Jun 2021 |
abueide | * 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 | andrew@Akiko> file $(which nix) ~/nixfiles
/Users/andrew/.nix-profile/bin/nix: Mach-O 64-bit executable x86_64
| 20:52:11 |
abueide | 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 | * 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 | ok i just had to add /usr/sbin to my PATH for some reason | 21:19:27 |
| Qwerky joined the room. | 22:16:36 |
Qwerky | Hello, 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 | can you post error message? | 22:20:08 |
Qwerky | its very generic -> zsh: command not found: nix-shell | 22:20:45 |
abueide | what is output of cat ~/.zshenv | 22:21:44 |
Qwerky | huh no such directory -_- now how did that happen | 22:22:42 |
abueide | actually thats probably fine | 22:23:18 |
abueide | try reinstalling nix, kinda annoying but the installer will give you instructions on how to remove nix and reinstall it | 22:23:41 |
abueide | sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume --daemon | 22:23:45 |
abueide | just use this command | 22:23:48 |
Qwerky | once 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 | yeah 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 error | 22:28:52 |
Qwerky | Catalina 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 | lol i literally just ran into tht | 23:19:58 |
abueide | Qwerky: sudo vim /etc/synthetic.conf | 23:20:19 |
abueide | remove nix | 23:20:20 |
abueide | reboot | 23:20:22 |
abueide | also maybe need to disk util and delete the apfs partition idk tho | 23:20:50 |
abueide | nix apfs partition* | 23:21:13 |
abueide | * `sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume | 23:22:06 |
Qwerky | worked like a charm thanks abueide ! | 23:40:16 |
Qwerky | I really hope they update that uninstall documentation page... | 23:40:38 |
| 27 Jun 2021 |
abueide | anyone know how to make xcrun --sdk macosx --show-sdk-path show all of the sdks like AppKit CoreAudio etc | 01:28:50 |
abueide | this is my current derivation but scons can't pick up the header files from the apple sdk's | 01:30:41 |
abueide | https://github.com/abueide/nixpkgs/blob/godot-macos/pkgs/development/tools/godot-macos/default.nix | 01:30:42 |