aminechikhaoui has quit [Quit: Ping timeout (120 seconds)]
squidgy has joined #nix-darwin
aminechikhaoui has joined #nix-darwin
__monty_1 has joined #nix-darwin
Chiliparrot has quit [Ping timeout: 260 seconds]
eraserhd2 has joined #nix-darwin
__monty__ has quit [*.net *.split]
eraserhd has quit [Ping timeout: 264 seconds]
Chiliparrot has joined #nix-darwin
__monty_1 is now known as __monty__
philr_ has quit [Ping timeout: 240 seconds]
<heywoodlh>
Hey guys, what's the proper way to install nix/nix-darwin on the M1 Macbooks? Installing nix on my M1 Macbook always installs the x86_64 bit binary. Do I have to build it from source?
<heywoodlh>
Oh, looking at the manual it looks like x86_64 is the only supported architecture for MacOS.
<{^_^}>
#105026 (by thefloweringash, 16 weeks ago, open): Native support for Apple Silicon
<__monty__>
Not sure whether native nix would take more effort than simply compiling it for arm64 though.
<heywoodlh>
__monty__: to be honest, I really don't care if the nix binary itself is an arm64 executable or not. But is there a way for me to configure nix to install arm64 bit versions of packages when available?
<heywoodlh>
This seems to be relevant, I'm just too much of a noob to understand how to implement it in my setup: https://github.com/NixOS/nix/pull/4310
<{^_^}>
nix#4310 (by matthewbauer, 15 weeks ago, merged): Add x86_64-darwin and aarch64 to "extra-platforms" automatically when Rosetta2 is detected
<__monty__>
heywoodlh: Not yet, afaik, that PR is all about supporting that.
<heywoodlh>
I see
<__monty__>
heywoodlh: Any urgent motivations or just because you'd rather run native software?
squidgy has quit [Ping timeout: 246 seconds]
<heywoodlh>
__monty__: Just rather run native software. Nothing crazy.
<oliver85>
trying it out, i will also link on the ticket
<abathur>
ah, should've thought to look for a gist
<heywoodlh>
Does anyone have a module to turn on the option to "Use your Apple Watch to unlock apps and your Mac"?
oliver85 has quit [Ping timeout: 240 seconds]
oliver85 has joined #nix-darwin
<oliver85>
@abathur still got dyld after enabling FDA, using the same plist on the issue.
<oliver85>
oh wait, maybe I should addd BUILDKITE_SHELL = /bin/sh on the plist
<abathur>
and that
<abathur>
ah
<abathur>
was going to ask if that was enabling it for the shell or for buildkite-agent, but yeah
<oliver85>
hmm happened before, when I set BUILDKITE_SHELL = /bin/sh
<oliver85>
<key>BUILDKITE_SHELL</key>
<oliver85>
<string>/bin/sh</string>
<oliver85>
the bootstrap shell seems to loose all the context
<oliver85>
"/bin/sh: trap 'kill -- $$' INT TERM QUIT; echo $SHELL: No such file or directory"
<oliver85>
"/bin/sh: trap 'kill -- $$' INT TERM QUIT; nix --version: No such file or directory"
<oliver85>
wait
<oliver85>
worked
<oliver85>
:]
<oliver85>
removed the BUILDKITE_SHELL setting, using bash, but have to grant buildkite-agent binary FDA as well
<oliver85>
i don't think it even neccessary to grant FDA to sh if buildkite-agent have FDA. I am guessing when bk runs nix, nix inherit FDA access from the bootstrap shell
<oliver85>
ya, tested it. removed FDA for sh and ran nix --version from launchd buildkite-agent with FDA, works just find
<abathur>
oliver85: yeah, I was guessing it might be able to propagate from the agent
flokli is now known as FLOKLI
<oliver85>
still tho, nix not wanting to mount on new machines, have to ssh in to enable security token.
<oliver85>
thats the only piece of the puzzle we need to get this fully automated.
<oliver85>
do you have script/link that has the logic of checking if /nix is mounted, if not then mount? I suspect thats probably written somewhere already.
philr_ has joined #nix-darwin
<abathur>
oliver85: I know in at least one place I've used `/usr/sbin/diskutil info /nix &>/dev/null` to detect it, but I'm not sure that's ideal here
<abathur>
I wonder if manually running the system/org.nixos.darwin-store launchdaemon will do it
<abathur>
if not, the launchdaemon plist at /Library/LaunchDaemons/org.nixos.darwin-store.plist will show how it "should" get mounted
eraserhd3 has joined #nix-darwin
jhuizy9 has joined #nix-darwin
bpye9 has joined #nix-darwin
jhuizy has quit [Read error: Connection reset by peer]
abathur has quit [Read error: Connection reset by peer]
jhuizy9 is now known as jhuizy
hedgie has quit []
bpye has quit [Read error: Connection reset by peer]