04:04
philr has joined #nix-darwin
07:06
trcc has joined #nix-darwin
08:30
trcc has quit [Remote host closed the connection]
08:31
trcc has joined #nix-darwin
08:35
trcc has quit [Ping timeout: 246 seconds]
09:06
trcc has joined #nix-darwin
09:10
trcc has quit [Ping timeout: 268 seconds]
09:49
jacereda has joined #nix-darwin
09:57
trcc has joined #nix-darwin
10:00
trcc has quit [Client Quit]
11:18
jacereda has quit [Ping timeout: 244 seconds]
12:12
periklis has joined #nix-darwin
12:19
periklis has quit [Remote host closed the connection]
12:21
periklis has joined #nix-darwin
13:42
__Sander__ has joined #nix-darwin
13:49
philr has quit [Ping timeout: 250 seconds]
16:27
periklis has quit [Ping timeout: 258 seconds]
16:30
__Sander__ has quit [Quit: Konversation terminated!]
17:00
prooftechnique has joined #nix-darwin
17:43
<
prooftechnique >
I hit this on darwin-rebuild fairly often, and I can't figure out if it's something I'm doing wrong or if it indicates some other issue
17:43
<
prooftechnique >
The narinfo just says "404", and I'm not sure what to make of that
17:44
<
gchristensen >
the narinfo will oftne be just 404
17:44
<
prooftechnique >
In that case, I'm quite confused about the unexpected end-of-file
17:45
<
gchristensen >
yeah... not sure
18:28
Ptivall has joined #nix-darwin
18:29
Ptivall has left #nix-darwin [#nix-darwin]
18:57
tboston has joined #nix-darwin
18:59
<
LnL >
I'm still very confused why this doesn't happen with the version from the installer tarball
18:59
<
prooftechnique >
Me, too, to be honest
19:00
<
LnL >
what happens looks identical if I trace it
19:01
<
LnL >
but from what I can tell if cache.nixos.org would have ipv6 this wouldn't happen
19:03
<
gchristensen >
hrm. it doens't support ipv6?
19:06
<
LnL >
s3 is ipv4 only
19:07
<
gchristensen >
its hitting fastly
19:07
<
gchristensen >
which I think does support ipv6
19:09
<
LnL >
^ google has an aaaa record and apple does not
19:10
<
LnL >
is that a wat for apple.com or the library trace?
19:10
<
gchristensen >
well the library trace, but both :P
19:11
<
LnL >
yeah, so something dlopens all sorts of system libraries frameworks in a specific fallback case when resolving a host
19:12
<
gchristensen >
if you do apple.com again,, does it happen each time?
19:14
<
LnL >
I ran that a bunch of times, but yeah it's still consistent
19:16
<
LnL >
and the other way around
19:17
<
gchristensen >
so weird
19:18
<
LnL >
yeah, "something" is definitively reproducable I just have no idea what it is then
19:33
<
LnL >
gchristensen: do you know if ipv6 is new since the recent dns switcheroo?
19:33
<
gchristensen >
I
*think* so
19:33
<
gchristensen >
it would have been new as of cloudflare -> fastly if anything, I think
19:33
<
LnL >
I swear I remember being able to reproduce the same behaviour with cache.nixos.org before
20:46
<
johnw >
I started using m4 with my nix-darwin config today :)
20:46
<
johnw >
needed more dynamism in the configuration
20:53
<
johnw >
for example, I want distributedBuilds enabled on my laptop, but not on my desktop
20:53
<
johnw >
but otherwise they share like 99.9% of the rest of darwin.nix
20:54
<
gchristensen >
so you used m4? :o
20:54
<
johnw >
I was already use make to drive the whole process
20:54
<
gchristensen >
why not an if?
20:54
<
johnw >
and what would you pass to the if?
20:54
<
LnL >
yeah, just use a variable
20:54
<
johnw >
hmm... that's very very true!
20:55
<
johnw >
I guess that works for home-manager too
20:56
<
johnw >
so... if I'm building with 'nix build --keep-going darwin.system'
20:56
<
johnw >
how do I pass an argument into my darwin.nix?
20:56
<
LnL >
I have imports = [ ./local-configuration.nix ]; on my machines which contains device specific things
20:56
<
gchristensen >
--argstr thisdeviceiscalled $(hostname)
20:57
<
LnL >
but you could use builtins.getEnv or NIX_PATH entries to change the evaluation
20:58
<
johnw >
ok, now I can get rid of m4 :)
20:58
philr has joined #nix-darwin
20:58
<
gchristensen >
thank goodness
20:59
<
gchristensen >
if the question was how to do something w.r.t. nix and the answer was m4, I would have failed
21:01
<
LnL >
yeah, usually you'd use --arg/--argstr but I don't think there's anything you can pass in that can be referenced inside modules
21:03
<
LnL >
oh this would work --arg configuration ./foo.nix, but that's the same as -I darwin-config=./foo.nix
21:04
<
LnL >
I could add something that works without a file if you want
21:06
<
johnw >
gchristensen: no, doesn't work
21:06
<
johnw >
nix build --argstr hostname vulcan --keep-going darwin.system
21:06
<
johnw >
error: attribute 'hostname' missing, at /Users/johnw/src/nix/nixpkgs/lib/modules.nix:163:28
21:07
<
johnw >
I didn't think it would be that easy to get a parameter to darwin.nix
21:07
<
johnw >
I think NIX_PATH is a better option
21:07
<
gchristensen >
I agree
21:09
<
johnw >
where do I set NIX_PATH, though?
21:09
<
johnw >
i'm not currently managing that variable
21:10
<
gchristensen >
set it once as part of a bootstrapping run?
21:10
<
gchristensen >
or as part of the Makefile
21:10
<
gchristensen >
NIX_PATH=$NIX_PATH:foo=bar ...
21:10
<
johnw >
oh, that's an idea
21:10
<
johnw >
i only need it during build/install
21:10
<
LnL >
give me a sec
21:17
<
johnw >
ok, that works
21:17
<
johnw >
thanks LnL, but I also needed something that plays well with home-manager
21:17
<
johnw >
so I just extend NIX_PATH in the Makefile, and import <localconfig>