00:46
<
worldofpeace >
cool jtojnar pushed the changes
03:21
aszlig has quit [Quit: Kerneling down for reboot NOW.]
03:23
aszlig has joined #nixos-dev
06:50
orivej has joined #nixos-dev
08:39
orivej has quit [Ping timeout: 268 seconds]
10:17
orivej has joined #nixos-dev
11:32
<
arianvp >
what part of the instalation script sets up /nix/var/nix/gcroots/profiles symlink?
11:32
<
arianvp >
I grepped through nixpkgs for gcroots and cant find any reference to it
11:32
<
arianvp >
reason I ask, it looks like this on my system, which is not good:
11:32
<
arianvp >
lrwxrwxrwx 1 root root 25 Jun 13 20:46 profiles -> /mnt/nix/var/nix/profiles
11:33
psyanticy has joined #nixos-dev
11:36
<
arianvp >
I thought it was nixos/modules/services/misc/nix-daemon.nix but that doesn't create that one
11:39
lassulus has quit [Ping timeout: 245 seconds]
11:40
tv has quit [Ping timeout: 245 seconds]
12:29
<
arianvp >
the weird thing is nix-store --gc --print-roots still shows /nix/var/nix/profiles eventhough it is not symlinked in /nix/var/nix/gcroots
12:36
<
arianvp >
also when I strace nix-daemon or nix-store ahwn running nix-store --gc --print-roots it doesn't even open "/nix/var/nix/gcroots" which is very suspicious to me
12:36
<
arianvp >
is information somehow cached in memory?
12:36
<
gchristensen >
does strace capture all the threads which already exist?
12:37
<
arianvp >
I'm running nix-daemon from a terminal
12:37
<
arianvp >
sudo strace nix-daemon 2>&1 | grep "/nix/var/nix"
12:37
<
gchristensen >
with -f?
12:37
<
arianvp >
what does -f do?
12:37
<
gchristensen >
follows forks
12:38
<
arianvp >
that's per-user
12:39
<
arianvp >
also funnily enough that env variable is not set in my terminal session :/
12:39
<
gchristensen >
I guess I'm not understanding the question :)
12:39
<
gchristensen >
it isn't an exported variable
12:39
<
arianvp >
ok so I have /nix/var/nix/gcroots/profiles
12:40
<
arianvp >
which is symlinked (because of some wierd reason im trying to figure out) to /mnt/nix/var/nix/profiles
12:40
<
arianvp >
which is a directory that doesn't exist on my system
12:40
<
gchristensen >
weird
12:40
<
gchristensen >
me too
12:40
<
gchristensen >
I don't know why we have that
12:40
<
arianvp >
but! nix-daemon still stats /nix/var/nix/profiles
12:40
<
arianvp >
when running nix-store --gc --print-roots
12:40
<
gchristensen >
yes, profiles makes sense
12:40
<
gchristensen >
oh... weird
12:41
<
gchristensen >
so it probabl yhappens in stage-1.sh
12:41
<
arianvp >
well the docs mention that only /nix/var/nix/gcroots and
_nothing else_ is stat'd
12:41
<
arianvp >
I dont ahve a symlink to my profiles directory in my gcroots yet it's still statted
12:42
<
arianvp >
gchristensen: is it also symlinked to /mnt in your system?
12:42
<
arianvp >
so I have this weird gut feeling that this is a bug, and then it was maybe worked around on the Nix side by statting /nix/var/nix/profiles directly?
12:42
<
arianvp >
pure speculation but that would explain both things
12:43
<
arianvp >
aha yes so it is there in the nix code.
12:44
<
gchristensen >
sounds like a docs PR waiting to happen :)
12:44
<
arianvp >
yes! will do
12:45
<
arianvp >
but then who is creating this bogus symlink :)
12:45
<
arianvp >
(and if we can fix the symlink, then it doesnt have to be in the nix code in the first place, right?)
12:45
<
gchristensen >
yes, that is a great question
12:45
<
gchristensen >
(one sec)
12:45
<
gchristensen >
(I don't think it is a bug / workaround)
12:46
<
arianvp >
this seems to be a related commit
12:49
<
gchristensen >
the reason I suspect stage-1 is because it isn't a relic of my installation, and it is recent to the last 2 weeks of running my system
12:50
<
gchristensen >
nice find :)
12:51
<
gchristensen >
however "/mnt" isn't used in stage-1, "/mnt-root" is
12:51
<
arianvp >
maybe it's nixos-install ?
12:51
<
arianvp >
the only command where you pass a /mnt path right?
12:51
<
gchristensen >
actually yeah I take back the part about how it must be recent
12:52
<
gchristensen >
since my entire /nix is persisted
12:54
<
arianvp >
I'll dump these breadcrumbs into an issue. so we can investigate later. I gotta go back to work
12:55
<
gchristensen >
cool
12:59
<
{^_^} >
nix#3060 (by arianvp, 2 minutes ago, open): Nix garbage collector is implemented differently from how it is documented
13:32
<
roberth >
arianvp++
13:32
<
{^_^} >
arianvp's karma got increased to 4
14:05
jtojnar has quit [Quit: jtojnar]
14:06
jtojnar has joined #nixos-dev
14:37
orivej has quit [Ping timeout: 272 seconds]
15:14
jtojnar has quit [Quit: jtojnar]
15:31
tv has joined #nixos-dev
15:34
<
infinisil >
I'm in the process of writing a buildCrystalPackage, which can reuse that small helper you wrote for generating a shards.nix
15:34
<
manveru >
infinisil: not at all
15:35
<
manveru >
it was just the only crystal package at the time :)
15:35
<
infinisil >
Alright cool :)
15:35
lassulus has joined #nixos-dev
15:48
<
infinisil >
manveru: To fill out meta, what license do you want? And can I put you in as a maintainer?
15:48
<
manveru >
MIT is fine, and yeah
15:49
<
infinisil >
Alright
15:54
drakonis has joined #nixos-dev
16:03
ixxie has joined #nixos-dev
16:25
__monty__ has joined #nixos-dev
16:30
drakonis has quit [Quit: WeeChat 2.5]
16:37
<
{^_^} >
#67510 (by Infinisil, 30 seconds ago, open): Crystal package builder
16:38
orivej has joined #nixos-dev
16:42
<
manveru >
infinisil: will review :)
16:50
<
manveru >
heh "I don't really feel like writing docs right now"
16:59
<
infinisil >
manveru: I'm actually writing docs right now anyways :D
17:01
<
gchristensen >
woot
17:11
orivej has quit [Ping timeout: 245 seconds]
17:32
orivej has joined #nixos-dev
17:53
pie_ has quit [Ping timeout: 264 seconds]
18:07
<
infinisil >
Only because I found out how easy it was to avoid having to write xml when writing a new language framework section
18:07
phreedom_ has quit [Remote host closed the connection]
18:07
phreedom has joined #nixos-dev
18:57
jtojnar has joined #nixos-dev
19:18
psyanticy has quit [Quit: Connection closed for inactivity]
20:05
pie_ has joined #nixos-dev
20:32
ixxie has quit [Ping timeout: 245 seconds]
20:39
__monty__ has quit [Ping timeout: 248 seconds]
21:11
{`-`} has joined #nixos-dev
21:52
orivej has quit [Ping timeout: 245 seconds]
23:53
<
ryantm >
Should we also update the topic of this irc channel?
23:54
<
samueldr >
it's still technically right