periklis has quit [Remote host closed the connection]
periklis has joined #nix-darwin
Lisanna has joined #nix-darwin
peacememories has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nix-darwin
jtojnar has quit [Ping timeout: 256 seconds]
jtojnar has joined #nix-darwin
Lisanna has quit [Remote host closed the connection]
Lisanna has joined #nix-darwin
victorbjelkholm has quit [Ping timeout: 240 seconds]
victorbjelkholm has joined #nix-darwin
Lisanna has quit [Remote host closed the connection]
Lisanna has joined #nix-darwin
Lisanna has quit [Remote host closed the connection]
Lisanna has joined #nix-darwin
<Lisanna>
"nix" is defined in my <nixpkgs> channel as 2.0, but nix-darwin is still setting up my environment with nix 1.11 :/
ryanartecona has joined #nix-darwin
<LnL>
did you configure nix.package?
<Lisanna>
I did that as a workaround
<LnL>
maybe it shouldn't, but the version from the default profile is used by default
<Lisanna>
not really sure what that means... doesn't nix-darwin generate that profile?
<LnL>
no it only touches the system profile
<Lisanna>
so... the current correct way to do it would be to manually install nix from nixos.org/nix?
<LnL>
without managing nix and the daemon it's the same as a regular install
<LnL>
no need to nuke your store, you can upgrade nix in the default profile and reload the service
<Lisanna>
well I set nix.package = pkgs.nix and that *seemed* to work
<Lisanna>
except I can't get any nix build commands to work
<Lisanna>
(they work on linux)
<Lisanna>
complains that it can't find nixpkgs in the selection path
<Lisanna>
Oh, maybe because nix-channel is still coming from 1.11
<Lisanna>
that's unfortunate
<Lisanna>
so, I guess setting nix.package isn't enough
<LnL>
huh, try rehash or open a new terminal
<Lisanna>
LnL how do I do the "upgrade nix in the default profile" thing you said?
<Lisanna>
nix 2.0 has an upgrade-nix function, but nix 1.11 doesn't seem to... or I don't know what it is
<LnL>
nix.package should work, it will just use the cached path lookup
<Lisanna>
Huh, now nix-channel is getting the 2.0 version
<Lisanna>
weird
<Lisanna>
yeah, needed to open a new terminal
<Lisanna>
that's unusual
<Lisanna>
okay, I updated my channels with nix-channel 2.0, but nix build is still not finding nixpkgs :/
<Lisanna>
Okay, my NIX_PATH doesn't have a "nixpkgs=" value in it
<Lisanna>
if I add one manually it works
<Lisanna>
did NIX_PATH handling change between 1.11 and 2.0?
<Lisanna>
(on NixOS, nixpkgs= is set in my nix path for me)
<Lisanna>
wow, okay, this is expected behavior and there's no solution for it.
ryanartecona has quit [Quit: ryanartecona]
<Lisanna>
Is there some magic I have to do to get remote building working again?
<Lisanna>
I guess some changes went into it... not sure if nix-darwin supports it yet
<LnL>
ah yeah, there's an issue for that NIX_PATH bug
<LnL>
the default from nix-darwin doesn't work?
<Lisanna>
for remote building or NIX_PATH?
<Lisanna>
LnL for NIX_PATH the default from nix-darwin doesn't seem to be working. It's setting this as my NIX_PATH: "darwin-config=/Users/ledettwy/.nixpkgs/darwin-configuration.nix:/nix/var/nix/profiles/per-user/root/channels:/Users/ledettwy/.nix-defexpr/channels"
<Lisanna>
i.e., missing nixpkgs=
<Lisanna>
So to work around that I'm setting nix.nixPath
<LnL>
hmm, maybe I could fix that
<Lisanna>
remote building seems to just be flat-out broken entirely, so I'm not even going to attempt to figure out if there's any nix-darwin specific oddities with that
<LnL>
I'm using it so it should work
<LnL>
there's also an option to manage global known_hosts now so that should help a bit
<Lisanna>
Hmm, well, I'm manually passing a --builders flag with my x86_64-linux system, and even that is complaining that an x86_64-linux system is required to build some thing
<Lisanna>
it responds correctly to ping-store
<Lisanna>
my command is of the form: nix build --system x86_64-linux mychannel.mylinuxpackage --builders "ssh://nix@mylinuxbox?ssh-key=/path/to/ssh/key x86_64-linux"
<Lisanna>
how do you do remote building?
<Lisanna>
ah, maybe I'm an idiot (likely)... it's also giving me that error on nix 1.11, so maybe everything is fine in the world :)
<Lisanna>
oh, yeah, I'm dumb x_x
<LnL>
I have a gist with some common pitfalls, but can't link it right now
<Lisanna>
nah, I got tripped up by an old gotcha in remote building... my host didn't have a required system feature, and there isn't a nice error message that explains that x_x
<Lisanna>
nix can be very unforgiving and unhelpful at times