<samueldr>
the image (sha256sum verified) doesn't seem wrong; boots right under qemue
<samueldr>
or uh
<infinisil>
kalbasit: But I guess the nix support is a seller for direnv :)
<samueldr>
there's a way to check the sum of what's on the drive
* samueldr
plunges into logs
<d1rewolf>
samueldr: I've tried 2 different ones, but they the same models. I will go search for another. Knowing how to check the sum of what's on the drive would be awesome
<samueldr>
oh, d1rewolf what size are they?
<d1rewolf>
16 g
<samueldr>
ah, so not a size issue probably :/
<samueldr>
d1rewolf: head -c 1060110336 /dev/sdX | sha256sum
<samueldr>
(thanks past, gchristensen)
<gchristensen>
:)
<samueldr>
(yes I verified the size ;))
<d1rewolf>
awesome. will be back
<d1rewolf>
thx
<kalbasit>
infinisil: oh nice, I did not know about that. but yea nix support is a must for me now
<samueldr>
if you check it, eject, unplug, then re-plug the drive
<samueldr>
just to make it more certain there's nothing caching
<iqubic>
Question: Should I switch from Systemd-boot to GRUB2?
wpcarro has quit [Ping timeout: 260 seconds]
<iqubic>
What are the major differences between the two bootloaders?
statusbot has quit [Ping timeout: 245 seconds]
iqubic has quit [Remote host closed the connection]
<samueldr>
for nixos, there aren't real differences between both, they are supported the same way
<samueldr>
otherwise, all differences in features are the same than for other distros
sam__ has joined #nixos
<samueldr>
the rule of thumb here is that systemd-boot is minimal, not many features, but does everything it does right
<samueldr>
grub has a bunch more features, many not in use by the defaults in nixos
wpcarro has joined #nixos
<infinisil>
samueldr: (he left just before your first reply for some reason)
<samueldr>
aw!
<samueldr>
who even keeps join/parts notices on for this channel? it's maddening!
<drakonis>
grub has fancy backgrounds
gchristensen is now known as gchristensen`wed
<samueldr>
wednesday, not wedding
<samueldr>
drakonis: among other features :)
<drakonis>
yes indeedy
gchristensen`wed is now known as gchris`wednesday
<samueldr>
one that's not talked often of, is how it can open LUKS containers, IIRC evne with LVM
<samueldr>
(though it's a bit on the slow side with encryption)
<samueldr>
so you can keep the whole /boot/ folder encrypted, only have the bootloader un-encrypted
<samueldr>
(though my real use case in the past is that I didn't have to fill the ESP with kernels)
spear2 has joined #nixos
<infinisil>
samueldr: weechat has this fancy smart join/part filter: It shows parts and joins only when the person talked in the last/next 10 minutes or so
worldofpeace has quit [Remote host closed the connection]
iqubic` has joined #nixos
iqubic has quit [Ping timeout: 276 seconds]
tenten8401 has quit [Ping timeout: 244 seconds]
pie_ has quit [Remote host closed the connection]
pie_ has joined #nixos
iqubic` is now known as iqubic
spear2 has quit [Ping timeout: 256 seconds]
cryptomonoid has quit [Ping timeout: 268 seconds]
<zgrep>
Hmm. I think what's happening is that somehow things are "colliding" between nix and my host OS. I can't think of a better way to put it, because I don't know enough about this.
worldofpeace has joined #nixos
mahalel_ has quit [Ping timeout: 276 seconds]
Wharncliffe has quit [Ping timeout: 245 seconds]
spear2 has joined #nixos
dan-v has joined #nixos
<johnw>
infinisil: correct
worldofpeace has quit [Quit: worldofpeace]
aarvar has quit [Ping timeout: 276 seconds]
Raybih has quit [K-Lined]
doyougnu has quit [Ping timeout: 245 seconds]
orivej has joined #nixos
Guanin has quit [Ping timeout: 264 seconds]
spear2 has quit [Quit: Leaving]
wpcarro has joined #nixos
worldofpeace has joined #nixos
FRidh has joined #nixos
wpcarro has quit [Ping timeout: 260 seconds]
Guanin has joined #nixos
<tertle||eltret>
hi
<iqubic>
hey there.
<tertle||eltret>
anyone have a 1440p monitor?
<tertle||eltret>
i might install nix on my 'new' spare PC tommorow
<tertle||eltret>
does nvidia work on nix?
<PyroLagus>
anyone here using the firefox nightly overlay?
<tertle||eltret>
not that i really care
<PyroLagus>
i symlinked it to .config/nixpkgs/overlays, and nix-env seems to find it, but can't install it with nix-env for some reason. doesn't even give me an error message
johnw_ has joined #nixos
johnw has quit [Ping timeout: 248 seconds]
<tertle||eltret>
idk answer to that bro
<tertle||eltret>
maybe zgrep does
<zgrep>
I don't know the answer to anything, I'm pretty new to nix in general. :P
lord| has quit [Ping timeout: 260 seconds]
lord| has joined #nixos
endformationage has quit [Ping timeout: 276 seconds]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
PolarIntersect has quit [Ping timeout: 244 seconds]
alex`` has joined #nixos
muzzy__ has joined #nixos
dan-v has left #nixos ["WeeChat 2.1"]
worldofpeace has quit [Quit: worldofpeace]
pie_ has quit [Read error: Connection reset by peer]
pie_ has joined #nixos
worldofpeace has joined #nixos
Sonarpulse has quit [Ping timeout: 276 seconds]
wpcarro has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<{^_^}>
[nixpkgs] @aneeshusa opened pull request #43838 → gtk-doc: support python3 → https://git.io/fNcxq
<boomshroom>
Hi again. Does anyone here have the Gamecube controller adaptor working on NixOS?
ckauhaus has joined #nixos
goibhniu has joined #nixos
<sphalerite>
boomshroom: is this a case of "I'm considering getting one" or a case of "I can't get mine to work"?
<boomshroom>
sphalerite: The former. I think I've done it at one point, but it was a while back and I forget if I made it work and how. Mostly I just noticed that wii-u-gc-adapter wasn't in my path.
<{^_^}>
[nixpkgs] @peti closed pull request #43804 → [WIP] find Haskell dependencies during evaluation rather than at run-time → https://git.io/fNnlx
<sphalerite>
It's not nixos modules, it's a similar system
<kalbasit>
I don't use Mac so I was not aware of it :)
<kalbasit>
thx
<sphalerite>
what you could also do if switching to nixos wholesale isn't an option is run nixos in a container (it works well with systemd-nspawn iirc) or VM
johnhamelink has quit [Ping timeout: 276 seconds]
crmlt has quit [Quit: Lost terminal]
codedmart_ has joined #nixos
ckauhaus has quit [Ping timeout: 276 seconds]
boomshroom has quit [Ping timeout: 276 seconds]
incospicuous[m] has quit [Ping timeout: 276 seconds]
DenisLehmann[m] has quit [Ping timeout: 276 seconds]
codedmart has quit [Ping timeout: 276 seconds]
codedmart_ is now known as codedmart
<srhb>
Errr, can someone explain the difference between oraclejdk8psu_distro and oraclejdk8distro for me?
<srhb>
Oracle is strictly noninformative about this, but it appears from the security fixes that we shouldn't be using 172 at all.
crmlt has joined #nixos
rotaerk has quit [Ping timeout: 240 seconds]
vmandela has joined #nixos
<hyper_ch2>
trying to package deda but failing miserably :(
wpcarro has joined #nixos
<hyper_ch2>
python is just too weird
ghasshee_ has quit [Quit: leaving]
tertle||eltret has quit [Quit: Connection closed for inactivity]
wpcarro has quit [Ping timeout: 240 seconds]
<hyper_ch2>
something's not good with github here
civodul has joined #nixos
rotaerk has joined #nixos
<angerman>
how do you debug why an expression fails to build on a remote builder?
<srhb>
angerman: Lots of -v flags and some psychic debugging.
<srhb>
From experience I can say that stracing the ssh session is no fun.
<angerman>
srhb: here's the really weird thing: I have wine running a process as part of a build. That works for ~20 odd packages. And fails for a single one. And it fails only on the remote builder with a segfault.
<angerman>
srhb: if I run the same wine-invocation (outside of the nixbld user) it does *not* segfault.
<angerman>
srhb: so there must be something very specific on how that nixbld runs that very invocation.
<srhb>
Oh wow. That sounds terribly weird. :-)
<angerman>
I've been bashing my head against it for a while now.
fendor has quit [Read error: Connection reset by peer]
<angerman>
I've just killed the remote builder and requested a new instance (guess I should have started the new instance prior to deleting the old one to make sure I certainly get a separate one).
<xinming>
clever: ping
jperras has joined #nixos
<angerman>
srhb: is there any way to get into the exact same state the nixbld was in?
<angerman>
srhb: without being able to reproduce it, just seing it being reproduced by the nixbld, it's like I have to painfully watch it kill itself, but for the love of god can't intervene.
<xinming>
srhb: do you know how I can fix, so the module-installer bundled with the package can also compile the modules successfully?
Guanin has quit [Ping timeout: 248 seconds]
<sphalerite>
angerman: nix verify --all --no-trust might have been worth doing too
<srhb>
xinming: Umm, more details required :)
<angerman>
sphalerite: what would that do?
<angerman>
sphalerite: figure out if I have some corruption somewhere?
<sphalerite>
angerman: yep
<sphalerite>
angerman: might be that a single bit was flipped in one of the windows libraries which only the one build used
<goibhniu>
hyper_ch2 did you get it working in nix-shell already?
<sphalerite>
or something
<angerman>
sphalerite: they all use the identical application. And it just fails to launch it. I'll still give this a go.
wpcarro has joined #nixos
<sphalerite>
angerman: oh ok. Maybe not then.
<xinming>
srhb: yesterday, I have rakudo installed, with rakudo installed, it have a module-installer bundled, When I try to use module-installer to install module, I got error
<xinming>
I got error which is "Cannot locate native library 'libssl.so': libssl.so: cannot open shared object file: No such file or directory"
<xinming>
and I have strace dumped
<xinming>
clever yesterday tries to help, but he went to bed.
<srhb>
xinming: Can you share the steps to reproduce, and the nix expression?
<angerman>
sphalerite: yea, the ideal thing would be to manage to get to the exact point and be dropped into the shell to examine what's going on.
<angerman>
sphalerite: like inject some `DEBUG_HERE` command into the preBuild... and then just sleep in the build for 300s, while trying to run the command by hand.
<angerman>
sphalerite: well I'll have to see it reproduces on the new providioned builder as well.
* angerman
still has hopes this just evaporaes
<sphalerite>
angerman: but I need to go just now so I'll give you the essence of it and let you work it out for yourself :p I previously changed a build that I didn't give enough cores to use more by gdb'ing into the make process and making it exec a new make process with the right number of cores
booglewoogle has joined #nixos
<sphalerite>
so do something similar, except spawn a shell with stdio on a socket (in /build) or something that you can then attach to from outside (/build inside corresponds to /tmp/nix-build-foo outside usually)
nschoe has joined #nixos
<sphalerite>
I'm off now, good luck!
* angerman
looks horrified.
Anton-Latukha has quit [Ping timeout: 256 seconds]
wpcarro has quit [Ping timeout: 256 seconds]
<angerman>
:( verification didn't reveal any issue.
<xinming>
srhb: If you mean reproduce, let's say, install the package, then, we manually instlal https://github.com/ugexe/zef
<srhb>
xinming: I'm building it right now. I think
booglewoogle has quit [Remote host closed the connection]
<srhb>
Lots of failed to resolve something, it seems it's still trying to use the network.
<xinming>
srhb: they are just "testing"
<xinming>
the bundled module needs testing.
<srhb>
xinming: ok :)
<xinming>
they are not failure, later, after install zef
<xinming>
we use zef to install other modules, then, we'll get the error, I'm trying to narrow down which module tries to load libssl.so
johanot has joined #nixos
<srhb>
xinming: Let me see how it looks once it's built...
<srhb>
Assuming the build finishes?
johnhamelink has joined #nixos
<xinming>
srhb: The build will finish.
<xinming>
at least here, zef can be instaled successfully.
<srhb>
There's nothing in the result that appears to link against openssl, so I guess the problem is in zef itself.
<hyper_ch2>
goibhniu: I don't use nix-shell
fendor has joined #nixos
<xinming>
but when zef tries to link to third external modules, We'll get error.
<xinming>
I've posted strace error log
<srhb>
xinming: What command should I be running? I've installed zef, I think.
<xinming>
zef install cro
wpcarro has joined #nixos
<xinming>
I'm trying to narrow down what module in cro tries to pull the OpenSSL
<xinming>
that way, we can directly install OpenSSL and test instead of so many useless modules.
cryptomonoid has joined #nixos
<srhb>
xinming: I don't know enough about this ecosystem to really have an idea what's going on. I will say that I don't expect an "installer" to work correctly, eg. zef should be packages with nix, cro should be packages with nix in order to get access to any external libraries they need, but I don't know, sorry.
wpcarro has quit [Ping timeout: 276 seconds]
<xinming>
srhb: Ok, THanks anyway for your time.
Anton-Latukha has joined #nixos
<xinming>
It seems I'll have to wait, and use docker as a tmp sollution. :-)
<hyper_ch2>
echo '' > README.md --> lets see what happens
worldofpeace has joined #nixos
cryptomonoid has quit [Ping timeout: 244 seconds]
clefru has joined #nixos
<hyper_ch2>
it odesn't like that
<goibhniu>
ah, in python3 you can just use open('README.md', 'r', encoding="utf-8")
<goibhniu>
what's the error now?
<hyper_ch2>
I added echo '' > README.md in the patch phase
<hyper_ch2>
error: syntax error, unexpected $end, expecting IND_STR or DOLLAR_CURLY or IND_STRING_CLOSE, at /home/hyper/Desktop/git-repos/nix-expressions/deda.nix:18:5
<goibhniu>
can you paste your expression again?
<hyper_ch2>
stupid me
<hyper_ch2>
echo "" > README.md
<LnL>
you are probably escaping '' in a multiline string
<goibhniu>
aye :D
<hyper_ch2>
because ''
<LnL>
or just echo
boomshroom has quit [Quit: WeeChat 2.1]
Tobba has quit [Ping timeout: 264 seconds]
<FRidh>
"Unicode issues can typically be fixed by including glibcLocales in buildInputs and exporting LC_ALL=en_US.utf-8."
<hyper_ch2>
so, it looks for opencv-python and the python module is just called opencv (also tried with opencv3)
<hyper_ch2>
FRidh: export where?
<LnL>
FRidh: oh! that fixes setup.py evaluation weirdness like this?
<FRidh>
yep
<goibhniu>
nice!
<LnL>
I should do that in my generator then
<hyper_ch2>
postPatch phase do the export?
fractalcat has quit [Quit: WeeChat 2.1]
<FRidh>
LnL: I've sometimes considered always including it...but it adds to the closure
<FRidh>
though I think everyone has glibcLocales
<FRidh>
it's even more interesting now with Python 3.7
<hyper_ch2>
ok, glibcLocales as buildInput and export LC_.... in postPatch works
<goibhniu>
it seems very fragile to me, IIUC python is depending on the locale setting of the user to work correctly
<goibhniu>
Thanks! But in this particular case, wouldn't it be best if the setup.py read the file explicitly as utf-8?
mounty has quit [Quit: Konversation terminated!]
<FRidh>
goibhniu: It kind of depends. README.md uses unicode, but the file does not explicitly state that it does
<FRidh>
in your environment, do you want to state for every file that it does? Do you want to fix code that uses it to say it should use utf-8? Or do you expect your whole environmetn to support utf-8?
xy2_ has quit [Ping timeout: 264 seconds]
<goibhniu>
I'd prefer if it worked for everyone regardless of their env. The authors know what encoding they're using.
<goibhniu>
but I'd say utf-8 is a better default
<FRidh>
Indeed, that's better. In that case, would you prefer to annotate the file as unicode, or would you leave it up to the consumer (setup.py)?
<FRidh>
yes, it's time to move on to utf-8
<RetardedOnion>
where can i see what deps a package has? for example: when i am installing virt-manager, do i have to install qemu, libvirt, ovmf as well?
<goibhniu>
hrm ... annotating the file sounds nicer to me
<hyper_ch2>
hmmm, still can't figure out why it complains about opencv-python :(
<goibhniu>
hyper_ch2 did check some other python package that uses opencv?
fendor has quit [Ping timeout: 276 seconds]
wucke13 has joined #nixos
<hyper_ch2>
goibhniu: I don't know any other pythong packages that uses it
binarin has joined #nixos
<hyper_ch2>
but might the issue be that nix calls it just opencv and the script is looking for opencv-python?
<RetardedOnion>
hm. ok. a way to check it would be nice. thank you anyways
<FRidh>
either we fix our bindings, or we consider using this package
ajs124 has left #nixos ["Stream closed by us: Timed out waiting for stream resumption (connection-timeout)"]
DenisLehmann[m] has quit [Remote host closed the connection]
vskilet[m] has quit [Remote host closed the connection]
NickHu[m] has quit [Remote host closed the connection]
jgl[m] has quit [Remote host closed the connection]
reactormonk[m] has quit [Read error: Connection reset by peer]
indefini[m] has quit [Write error: Connection reset by peer]
Noughtmare[m] has quit [Remote host closed the connection]
tfc[m] has quit [Remote host closed the connection]
AlanPearce[m] has quit [Remote host closed the connection]
Bugworm[m] has quit [Remote host closed the connection]
YegorTimoshenko[ has quit [Remote host closed the connection]
rnkch[m] has quit [Remote host closed the connection]
r3mfKm[m] has quit [Remote host closed the connection]
pauricthelodger[ has quit [Remote host closed the connection]
AdamSlack[m] has quit [Remote host closed the connection]
spacekitteh[m] has quit [Remote host closed the connection]
chominist[m] has quit [Read error: Connection reset by peer]
k0d3fr34k[m] has quit [Read error: Connection reset by peer]
slabity[m] has quit [Remote host closed the connection]
BennoFnfstck[m] has quit [Remote host closed the connection]
CoopDot[m] has quit [Remote host closed the connection]
htafdwes[m] has quit [Read error: Connection reset by peer]
bendlas[m] has quit [Read error: Connection reset by peer]
copumpkin[m] has quit [Read error: Connection reset by peer]
stigmergik[m] has quit [Read error: Connection reset by peer]
nico202[m]1 has quit [Remote host closed the connection]
nickdshsadhkas[m has quit [Remote host closed the connection]
mankyKitty[m] has quit [Read error: Connection reset by peer]
codyopel[m] has quit [Read error: Connection reset by peer]
Khorne[m]1 has quit [Remote host closed the connection]
grahamc[m]1 has quit [Remote host closed the connection]
bluewolfy[m] has quit [Remote host closed the connection]
jack[m]1 has quit [Remote host closed the connection]
ayyjayess[m] has quit [Read error: Connection reset by peer]
Hook[m] has quit [Remote host closed the connection]
aaronc[m] has quit [Remote host closed the connection]
Linus[m] has quit [Read error: Connection reset by peer]
joh[m] has quit [Remote host closed the connection]
AndrewMiloradovs has quit [Remote host closed the connection]
nyanloutre[m] has quit [Remote host closed the connection]
wilornel[m] has quit [Remote host closed the connection]
EuAndreh[m] has quit [Remote host closed the connection]
iceTanner[m] has quit [Remote host closed the connection]
unlmtd[m] has quit [Read error: Connection reset by peer]
petersjt014[m] has quit [Read error: Connection reset by peer]
trubii[m] has quit [Read error: Connection reset by peer]
manveru[m] has quit [Remote host closed the connection]
aniketd[m] has quit [Remote host closed the connection]
desttinghim[m] has quit [Remote host closed the connection]
JaakkoLuttinen[m has quit [Remote host closed the connection]
herzmeister[m] has quit [Remote host closed the connection]
ahbnr[m] has quit [Remote host closed the connection]
funits[m] has quit [Remote host closed the connection]
Olinkl[m] has quit [Read error: Connection reset by peer]
Ralith[m] has quit [Read error: Connection reset by peer]
hl[m] has quit [Read error: Connection reset by peer]
AhmedOmar[m] has quit [Read error: Connection reset by peer]
Seeker[m] has quit [Read error: Connection reset by peer]
chreekat[m] has quit [Read error: Connection reset by peer]
timokau[m] has quit [Read error: Connection reset by peer]
leftfold[m] has quit [Read error: Connection reset by peer]
lkjhgfdsa00xxx[m has quit [Read error: Connection reset by peer]
gh0st[m] has quit [Read error: Connection reset by peer]
uvnikita[m] has quit [Remote host closed the connection]
forex[m] has quit [Remote host closed the connection]
zurk[m] has quit [Remote host closed the connection]
devr[m] has quit [Read error: Connection reset by peer]
fgaz[m] has quit [Read error: Connection reset by peer]
Zurdo[m] has quit [Remote host closed the connection]
jesper[m] has quit [Remote host closed the connection]
demyan[m] has quit [Remote host closed the connection]
mirlur[m] has quit [Read error: Connection reset by peer]
sudoreboot[m] has quit [Read error: Connection reset by peer]
danielrf[m] has quit [Read error: Connection reset by peer]
MaJoe[m] has quit [Read error: Connection reset by peer]
spring322[m] has quit [Read error: Connection reset by peer]
Richard[m] has quit [Read error: Connection reset by peer]
felipeac[m] has quit [Read error: Connection reset by peer]
WilliamHamilton[ has quit [Read error: Connection reset by peer]
malteof[m] has quit [Read error: Connection reset by peer]
bugabinga[m] has quit [Read error: Connection reset by peer]
cryptobilly[m] has quit [Read error: Connection reset by peer]
danbst[m] has quit [Remote host closed the connection]
EB[m] has quit [Remote host closed the connection]
Orbstheorem[m] has quit [Remote host closed the connection]
ipj[m] has quit [Remote host closed the connection]
tosh[m] has quit [Read error: Connection reset by peer]
rnhmjoj[m] has quit [Remote host closed the connection]
jameshjacksonjr[ has quit [Write error: Connection reset by peer]
asp[m] has quit [Remote host closed the connection]
Drakonis[m] has quit [Remote host closed the connection]
dywedir[m] has quit [Remote host closed the connection]
moredhel[m] has quit [Read error: Connection reset by peer]
efx[m] has quit [Read error: Connection reset by peer]
Kallegro[m] has quit [Read error: Connection reset by peer]
hw9891[m] has quit [Read error: Connection reset by peer]
darkmeson[m] has quit [Read error: Connection reset by peer]
wervenyt[m] has quit [Read error: Connection reset by peer]
Elephant454[m] has quit [Read error: Connection reset by peer]
crystalgamma[m] has quit [Read error: Connection reset by peer]
comphez[m] has quit [Read error: Connection reset by peer]
regnat[m] has quit [Read error: Connection reset by peer]
panther320[m] has quit [Read error: Connection reset by peer]
dpetranek[m] has quit [Remote host closed the connection]
zdisk[m] has quit [Remote host closed the connection]
admintgs[m] has quit [Remote host closed the connection]
Dan[m]1 has quit [Remote host closed the connection]
fishy[m] has quit [Remote host closed the connection]
mcatis[m] has quit [Remote host closed the connection]
Minijackson[m] has quit [Remote host closed the connection]
nmikhailov[m]1 has quit [Remote host closed the connection]
freusque[m] has quit [Remote host closed the connection]
mlaskus[m] has quit [Remote host closed the connection]
bitmapper[m] has quit [Remote host closed the connection]
aiyubkhan[m] has quit [Remote host closed the connection]
fearlessKim[m] has quit [Remote host closed the connection]
bobvanderlinden_ has quit [Remote host closed the connection]
v0id72[m] has quit [Remote host closed the connection]
AristotleCajetan has quit [Read error: Connection reset by peer]
WilliamGHatch[m] has quit [Remote host closed the connection]
thefloweringash[ has quit [Remote host closed the connection]
TaoHansen[m] has quit [Remote host closed the connection]
nh2[m] has quit [Remote host closed the connection]
happyente[m] has quit [Read error: Connection reset by peer]
midchildan[m] has quit [Remote host closed the connection]
incospicuous[m] has quit [Remote host closed the connection]
Obscurity[m] has quit [Remote host closed the connection]
Sorbet[m] has quit [Remote host closed the connection]
dtz[m] has quit [Remote host closed the connection]
ArtemVorotnikov[ has quit [Read error: Connection reset by peer]
darkmeson[m]1 has quit [Read error: Connection reset by peer]
rihardsk[m] has quit [Read error: Connection reset by peer]
dash[m] has quit [Read error: Connection reset by peer]
PeterRomfeld[m] has quit [Remote host closed the connection]
emil1234[m] has quit [Remote host closed the connection]
GiodAmelio[m] has quit [Remote host closed the connection]
Dean[m] has quit [Remote host closed the connection]
srid[m] has quit [Remote host closed the connection]
d3rNarr[m] has quit [Remote host closed the connection]
russiancow[m] has quit [Remote host closed the connection]
hendrik[m]1 has quit [Remote host closed the connection]
bkchr[m] has quit [Read error: Connection reset by peer]
mtncoder[m] has quit [Remote host closed the connection]
AntonLatukha[m] has quit [Remote host closed the connection]
coorey[m] has quit [Remote host closed the connection]
primeos[m] has quit [Remote host closed the connection]
gudea[m] has quit [Read error: Connection reset by peer]
techtangents[m] has quit [Read error: Connection reset by peer]
tamwile[m] has quit [Read error: Connection reset by peer]
hedning[m] has quit [Read error: Connection reset by peer]
PascalBach[m] has quit [Read error: Connection reset by peer]
equalunique[m] has quit [Read error: Connection reset by peer]
mica[m] has quit [Read error: Connection reset by peer]
ldesgoui[m] has quit [Remote host closed the connection]
Christian[m]5 has quit [Remote host closed the connection]
bionicmac[m] has quit [Read error: Connection reset by peer]
rycee[m] has quit [Remote host closed the connection]
olejorgenb[m] has quit [Remote host closed the connection]
sirocyl[m] has quit [Read error: Connection reset by peer]
sargon[m] has quit [Read error: Connection reset by peer]
cornu[m]1 has quit [Read error: Connection reset by peer]
mgttlinger[m] has quit [Read error: Connection reset by peer]
BurNiinTRee[m] has quit [Read error: Connection reset by peer]
jerengie[m] has quit [Remote host closed the connection]
sgk[m] has quit [Read error: Connection reset by peer]
kainospur[m] has quit [Read error: Connection reset by peer]
peel[m] has quit [Read error: Connection reset by peer]
adisbladis[m] has quit [Read error: Connection reset by peer]
Bruno[m] has quit [Read error: Connection reset by peer]
Leon[m] has quit [Read error: Connection reset by peer]
HamishHutchings[ has quit [Read error: Connection reset by peer]
DavidLeung[m] has quit [Remote host closed the connection]
semyon[m] has quit [Remote host closed the connection]
davidak[m] has quit [Remote host closed the connection]
fighterhero[m] has quit [Remote host closed the connection]
Dezgeg[m] has quit [Remote host closed the connection]
yochai[m] has quit [Remote host closed the connection]
ngerstle[m] has quit [Remote host closed the connection]
patrl[m] has quit [Remote host closed the connection]
colmeka[m] has quit [Remote host closed the connection]
lordfluffywobble has quit [Read error: Connection reset by peer]
YuFanLovezYou[m] has quit [Read error: Connection reset by peer]
buzzmaster[m] has quit [Remote host closed the connection]
wak-work[m] has quit [Read error: Connection reset by peer]
Wysteriary[m] has quit [Remote host closed the connection]
Phil[m]2 has quit [Remote host closed the connection]
puffnfresh[m] has quit [Read error: Connection reset by peer]
das-g[m] has quit [Remote host closed the connection]
tokudan[m] has quit [Remote host closed the connection]
gbuisson[m] has quit [Remote host closed the connection]
ProofTechnique[m has quit [Remote host closed the connection]
octalsrc[m] has quit [Read error: Connection reset by peer]
nelag[m] has quit [Read error: Connection reset by peer]
tet[m] has quit [Read error: Connection reset by peer]
goibhniu[m] has quit [Remote host closed the connection]
edef[m] has quit [Read error: Connection reset by peer]
tehnix[m] has quit [Remote host closed the connection]
Florian[m] has quit [Read error: Connection reset by peer]
sevanspowell[m] has quit [Read error: Connection reset by peer]
freeman42x[m] has quit [Remote host closed the connection]
offlinehacker[m] has quit [Remote host closed the connection]
cornu[m] has quit [Read error: Connection reset by peer]
Dt[m] has quit [Read error: Connection reset by peer]
mith[m] has quit [Read error: Connection reset by peer]
dadadus[m] has quit [Remote host closed the connection]
ninjarai4[m] has quit [Remote host closed the connection]
stekke[m] has quit [Remote host closed the connection]
liberdiko[m] has quit [Remote host closed the connection]
Adev[m] has quit [Remote host closed the connection]
Singularity[m] has quit [Remote host closed the connection]
card[m] has quit [Remote host closed the connection]
omawnakw[m] has quit [Remote host closed the connection]
zaphar_ps[m] has quit [Read error: Connection reset by peer]
ArdaXi[m] has quit [Read error: Connection reset by peer]
Albtrz[m] has quit [Remote host closed the connection]
MichaelEden[m] has quit [Remote host closed the connection]
trikl[m] has quit [Remote host closed the connection]
xobroll[m] has quit [Remote host closed the connection]
Necronian[m] has quit [Read error: Connection reset by peer]
have-quick[m] has quit [Read error: Connection reset by peer]
mathis[m] has quit [Remote host closed the connection]
U[m] has quit [Read error: Connection reset by peer]
abbafei[m] has quit [Remote host closed the connection]
dkellner[m] has quit [Remote host closed the connection]
bdimcheff[m] has quit [Remote host closed the connection]
nocent[m] has quit [Remote host closed the connection]
davidarmatrixorg has quit [Read error: Connection reset by peer]
morgib[m] has quit [Read error: Connection reset by peer]
Pneumaticat[m] has quit [Read error: Connection reset by peer]
urien1[m] has quit [Read error: Connection reset by peer]
philipp[m] has quit [Read error: Connection reset by peer]
shd[m] has quit [Read error: Connection reset by peer]
musicmatze[m] has quit [Read error: Connection reset by peer]
DanielSchfer[m] has quit [Read error: Connection reset by peer]
smrtak[m] has quit [Read error: Connection reset by peer]
ms[m] has quit [Read error: Connection reset by peer]
praticamentetild has quit [Read error: Connection reset by peer]
xnaveira[m] has quit [Read error: Connection reset by peer]
mudri[m] has quit [Read error: Connection reset by peer]
<FRidh>
dist-info I meant
oknf[m] has quit [Read error: Connection reset by peer]
ajs124 has joined #nixos
aramiscd[m] has quit [Read error: Connection reset by peer]
atopuzov[m] has quit [Read error: Connection reset by peer]
Magnap[m] has quit [Read error: Connection reset by peer]
roberth[m] has quit [Remote host closed the connection]
attero[m] has quit [Remote host closed the connection]
nmikhailov[m] has quit [Remote host closed the connection]
telent[m] has quit [Remote host closed the connection]
ivanfon[m] has quit [Write error: Connection reset by peer]
bhipple[m] has quit [Write error: Connection reset by peer]
lycium[m] has quit [Write error: Connection reset by peer]
daftect[m] has quit [Write error: Connection reset by peer]
TimePath[m] has quit [Remote host closed the connection]
thra11[m] has quit [Remote host closed the connection]
pierrebeaucamp[m has quit [Remote host closed the connection]
PeterHoeg[m] has quit [Remote host closed the connection]
PlasmaStrike[m] has quit [Remote host closed the connection]
aspiwack[m] has quit [Remote host closed the connection]
greska[m] has quit [Remote host closed the connection]
binarin has left #nixos ["Using Circe, the loveliest of all IRC clients"]
<srhb>
RetardedOnion: I can tell you how to check it once it's installed. nix-store -qR /nix/store/thing will give you the runtime deps of thing.
<hyper_ch2>
FRidh: so that also need to be packaged?
<FRidh>
hyper_ch2: no, we should fix our bindings
<FRidh>
that pypi package is actually only binary wheels, so not interesting
fiddlerwoaroof has quit [Ping timeout: 261 seconds]
rev_strangehope has quit [Ping timeout: 260 seconds]
<RetardedOnion>
srhb: still shucks. if i want to install packages, i want to have all the necessary packages for me. so telling me what packages are used would be nice.
<hyper_ch2>
FRidh: I have no idea what that means :)
sellout- has quit [Ping timeout: 245 seconds]
<hyper_ch2>
I thought it would be simple to package deda :(
<srhb>
RetardedOnion: I don't understand what you mean by that. If you want virt-manager, installing it will give you everything you need to use virt-manager. You don't need to chase any other package.
<srhb>
RetardedOnion: If that's not the case, I'd consider it a bug in the package.
<FRidh>
hyper_ch2: me neither
<FRidh>
you can remove the opencv-python requirement from the setup.py /requirements.txt or whatever file they use
<hyper_ch2>
FRidh: trying to package opencv-python though but I even fail at getting from pypi
shoogz has quit [Ping timeout: 240 seconds]
<FRidh>
but do keep your opencv(3) in propagatedBuildInputs
<hyper_ch2>
FRidh: that would work?
<FRidh>
that way it won't check for opencv during installation, but it will be present
<RetardedOnion>
srhb: i dont think it will install xen. virtuozzo, lxc and qemu. that shouldnt be the job of the package imo
abcrawf has joined #nixos
shoogz has joined #nixos
rev_strangehope has joined #nixos
{^_^} has joined #nixos
{^_^} has quit [Changing host]
{^_^} has joined #nixos
<srhb>
RetardedOnion: OK, I see your point. And indeed it does not.
fiddlerwoaroof has joined #nixos
bitonic_ is now known as bitonic
tet[m] has joined #nixos
sellout- has joined #nixos
<hyper_ch2>
FRidh: I had to remove argparse also... then it built... but not sure if it's usable ;)
crmlt has joined #nixos
rotaerk has quit [Ping timeout: 264 seconds]
<goibhniu>
go hyper_ch2 go!
<FRidh>
argparse is ancient
simukis has joined #nixos
hamishmack has joined #nixos
<hyper_ch2>
deda_parse_print test.jpg
<hyper_ch2>
No tracking dot pattern detected. For best results try a 300 dpi scan and a lossless file format.
<hyper_ch2>
but how to find out if it really run it correctly and didn't have errors and stuff?
kerrhau has quit [Ping timeout: 255 seconds]
<hyper_ch2>
goibhniu: do you have color laser printer and a good scanner?
<goibhniu>
infinisil: I have a rather fancy audio interface, that I didn't know how to use properly, the levels were way too low
<goibhniu>
I figured it out after the conf \o/
init_6 has joined #nixos
* goibhniu
would love some help this year too, if anyone's interested
<infinisil>
Hehe I see
pertl has joined #nixos
<pertl>
I have nix on ubuntu and want to install a per-user profile for another user (I already have one configured) ... how can this be done?
<pertl>
is there such a thing as "nix-create-per-user-profile? ?
sbdchd has joined #nixos
<{^_^}>
[nixpkgs] @binarin opened pull request #43844 → gitlab: fix module and corresponding test → https://git.io/fNC3Q
hamishmack has joined #nixos
cryptomonoid has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
fendor has quit [Read error: Connection reset by peer]
<{^_^}>
[nixpkgs] @dotlambda opened pull request #43845 → nixos/home-assistant: do not always override extraComponents → https://git.io/fNCsk
<RetardedOnion>
i installed kde today and i cant change language (only american english is available). where do i specify other languages?
wangoe has joined #nixos
wangoe has quit [Client Quit]
<angerman>
is there a way to have some shared service running during nix-build? E.g. when I run nix-build, the service is started, then all the dependencies are built as needed and can potentially communicate with the service, and at the end the service is shut down? I know this potentially introduces impurity... unless the service is guaranteed to produce deterministic results.
ericsagnes has joined #nixos
<Lisanna>
angerman it's still an impurity, regardless of the determinism
<Lisanna>
e.g., fixed-output derivations that do network stuff are still impure
<Lisanna>
angerman if you turn the sandbox off you can more or less do whatever you want
crmlt has joined #nixos
<angerman>
Lisanna: right. So i was wondering if there was some principled way to do it.
lewo`` has quit [Read error: Connection reset by peer]
<Lisanna>
Yeah, run the service inside the sandbox.
<Lisanna>
you can unshare namespaces inside the sandbox and do all sorts of stuff
sbdchd has quit [Remote host closed the connection]
booglewoogle has joined #nixos
nlyy has joined #nixos
<nlyy>
hi, is this alright: gnome3.extraGSettingsOverrides = " gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 500";
uwap has quit [Ping timeout: 256 seconds]
sbdchd has joined #nixos
sbdchd has quit [Ping timeout: 256 seconds]
alex`` has quit [Ping timeout: 256 seconds]
winem_ has joined #nixos
nlyy has quit [Quit: Leaving]
uwap has joined #nixos
Fare has joined #nixos
<etu>
meh, was about to answer nlyy :/
<Lisanna>
):
<etu>
No patience!
hyper_ch2 has quit [Quit: Page closed]
NightTrain has quit [Quit: Lost terminal]
semihonest has joined #nixos
xinming has quit [Ping timeout: 256 seconds]
crmlt has quit [Quit: Lost terminal]
crmlt has joined #nixos
xinming has joined #nixos
cacatoes has quit [Quit: WeeChat 1.6]
hlolli has joined #nixos
roberth[m] has left #nixos ["Kicked by @appservice-irc:matrix.org : issued !quit command"]
lewo has joined #nixos
<hlolli>
if I use yarn2nix, I will get a nix file with all the .tgz feturl's. How do I go about calling that nix file so that I end with a populated node_modules directory?
crmlt_ has joined #nixos
<hodapp>
what is the magical incantation I can never find to make something build just the dependencies a given package needs, and drop me into an environment where I can go through the build phases?
Rovanion has joined #nixos
<srhb>
hodapp: nix-shell -A ?
silver has joined #nixos
<Rovanion>
Is there such a thing as unattended-upgrades for nixos?
<srhb>
Rovanion:nixos-rebuild switch --upgrade will do it.
crmlt_ has quit [Client Quit]
<Rovanion>
srhb: That looks attended, I want something which applies security updates to my system once per night without me having to do anything.
roberth has joined #nixos
<Rovanion>
But maybe I'm misunderstanding.
<srhb>
Rovanion: A systemd timer with nixos-rebuild switch --upgrade will do it* ;)
<timokau[m]>
Rovanion: Check `man configure.nix`, there is such an option
<hodapp>
srhb: I think that's it, but now I have to figure out how to point it at my local nixpkgs and why this differs from when I use -p....
<booglewoogle>
hey, still trying to get fastermelee installed on nixos. there are some cmakeflags here https://pastebin.com/rH4exQgx, and this expression works fine (however I need to get an installer that does some patching to run which is why this isn't enough)
<srhb>
hodapp: -Inixpkgs=path-to
Oyren has joined #nixos
<hodapp>
srhb: yes, that's what I'm doing and it complains of a lack of default.nix
<srhb>
hodapp: Or just nix-shell path-to-nixpkgs -A ...
<hodapp>
okay, the latter works and the former doesn't
<srhb>
hodapp: Oh, right. Sorry.
<srhb>
nix-shell -A will always assume ./shell.nix or ./default.nix
<booglewoogle>
question: when I try to build this from source and append the same cmakeflags, it gives me an error saying ${gtk2.dev} was a bad substitution
<tilpner>
Rovanion - I have not used it, but there is system.autoUpgrade.enable
<booglewoogle>
what's different here, where in the expression is this addressed?
<Oyren>
hey, how can I set an icon for a package with desktopItem?
<srhb>
booglewoogle: I don't quite understand under which circumstances you're experiencing the error, and under which not.
<timokau[m]>
Can someone (anyone) try to build `ntl` on the latest master? The hydra runner has a test failure I cannot reproduce locally (#43679). It would be really helpful if somebody could reproduce this.
<srhb>
timokau[m]: Sure.
<booglewoogle>
srhb: i don't get the error nix-building the expression. I do get it when I manually build in a nix-shell launched from that same expression
<srhb>
Oyren: iirc just have the "normal" structure in $out/share and create a desktop item for it with mkDesktopItem
<booglewoogle>
okay, thanks. it's a little iffy, the package i'm trying to get installed is supposed to be so with an installer that builds portably -- it needs to patch a bunch of the source. so i can't use a nix expression for this and am trying to get in a shell that can handle the installer.
<srhb>
Hum, okay.
graphene has quit [Remote host closed the connection]
<booglewoogle>
it feels like i'm finally getting close though! been trying to make progress on this for some weeks now on and off
sbdchd has joined #nixos
<srhb>
booglewoogle: Nice :)
<booglewoogle>
:)
graphene has joined #nixos
wucke13 has quit [Ping timeout: 256 seconds]
<booglewoogle>
oh, whoops. gtk2.dev is not a valid identifier. am i misunderstanding the syntax used in the expression? -> -DGTK2_INCLUDE_DIRS=${gtk2.dev}/include/gtk-2.0
<srhb>
booglewoogle: No, that's just not valid bash
<srhb>
It's valid nix though
<booglewoogle>
mmm
<booglewoogle>
alright
wucke13 has joined #nixos
<srhb>
booglewoogle: bash: export: `foo.bar=2': not a valid identifier
<infinisil>
Hey does anybody have Browserpass working? I have been getting "Error talking to Browserpass host" for months now. I did enable config.firefox.enableBrowserpass, but no luck
<srhb>
joehh: If you actually want to replace _nix_ variables, you're probably better off making your files actual nix expressions.
<joehh>
srhb: thanks - great help
<srhb>
joehh: That is, { var1, var2 }: ''My string contains ${var1} and ${var2}''
<joehh>
that is also an idea
<joehh>
right now they are yaml files (config for a service)
<srhb>
joehh: builtins.fromJSON
<joehh>
so I would do that as the build phase?
cryptomonoid has joined #nixos
<srhb>
joehh: It's hard to say what your requirement is exactly, but that's probably the easiest way to manipulate json data -- importing it as a nix attrset and manipulating that, then turning it back into json.
<joehh>
ie make a stdenv.mkDerivation with the src as my original directory(or repo)
<srhb>
That sounds sensible.
<joehh>
yeah - it is fairly abstract :(
wpcarro has quit [Ping timeout: 256 seconds]
<joehh>
then have a buildPhase including a find and substituteInPlace command to replace the strings/vars I cared about
<joehh>
and use the resulting derivation where-ever I needed it
<infinisil>
Ohh.. There's a completely new version now..
<etu>
yeah
<infinisil>
etu: That works, thanks!
<infinisil>
I wouldn't have thought of that
<etu>
It took me weeks to figure this out :D
<infinisil>
Whew
spear2 has joined #nixos
<Oyren>
srhb sry but I wasn't into it at all, i already have a fetchurl for the binary, now i want to add a icon since none is inclueded in the binary. Can I use fetchurl a second time and place the icon in the $out folder?
<joehh>
srhb: that is an excellent idea using fromJSON/toJSON
<sphalerite>
booglewoogle: \o/
<joehh>
my app isn't set up that way right now, but using nix could be much simpler than current situation
<joehh>
especially as nix is in reality integral to deployment...
<joehh>
thanks
<srhb>
Oyren: A simple example is: let icon = fetchurl { ... }; in mkDerivation { ... installPhase = '' ... cp ${icon} $out/... '';
<Oyren>
thanks again
<srhb>
Oyren: You might want to make a separate derivation for the icon. Or include it in srcs. But that's the simple approach
<srhb>
joehh: You are welcome :)
<angerman>
how do I specify a specific remote builder to build on? I want to do some timing tests on two different remote builders.
cryptomonoid has quit [Ping timeout: 240 seconds]
<srhb>
angerman: --builders yourbuilder
<angerman>
srhb: The last time I tried --builders it seemd like it was ignored :( could that be due to nix-darwin?
<srhb>
angerman: Euhm, not sure. Might also have something to do with who is trusted to specify builders? Though if it's already trusted, I don't think that's it...
<LnL>
angerman: are you a trusted user?
<LnL>
angerman: darwin-option nix.trustedUsers
<angerman>
LnL: nope...
<angerman>
LnL: can I set them, or should I do that in the ~/.nixpkgs/configuration.nix?
<LnL>
then --option builders won't do anything, it requires trusting the remote machine so it's potentially unsafe
<angerman>
LnL: yea, so I'll just add myself to the trusted users :-)
<angerman>
error: The option value `nix.trustedUsers' :(
init_6 has quit [Ping timeout: 260 seconds]
<LnL>
I use @admin to enable all the users with administrator rights
<clever>
mjhoy: .nix-profile MUST point to a subdirectory of /nix/var/nix/profiles/
hakujin has joined #nixos
<RetardedOnion>
d1rewolf: specify type?
<clever>
mjhoy: if it does not, then GC WILL eat everything
<mjhoy>
clever: was that like an older way of setting it up? i recently upgraded nix
<d1rewolf>
or should I be using the sfdisk or something else?
<mjhoy>
(by the way am I on darwin)
<clever>
mjhoy: it sounds more like you manually created the symlink and broke things
<mjhoy>
i definitely did not. have just been using `nix-env -iA ...` for everything
<RetardedOnion>
d1rewolf: cfdisk can do this fine if you want
<clever>
mjhoy: try deleting .nix-profile and then creating a new symlink like above
<clever>
mjhoy: the target may already exist from the old install
<d1rewolf>
Retardedonion yes I specified the type as Linux, but still no option to make it bootable. in the tutorial it appears the fdisk should provide this functionality
<d1rewolf>
since I am on my phone and have no Wi-Fi connection on that computer to look. Do you know how to do it with sfdisk?
<RetardedOnion>
d1rewolf: your esp must be type efi-system
<mjhoy>
clever: I just ran /nix/var/nix/profiles/default/bin/nix-env -iA nixpkgs.devEnv to get an environment back
<d1rewolf>
does the UEFI partition need to be bootable or does the root need to be bootable?
<mjhoy>
it created another .nix-profile-1-link-12-link point to /nix/store/...-user-environment
<d1rewolf>
yes I have a UEFI partition
<RetardedOnion>
d1rewolf: your esp must be bootable. but that is specified with the type
<clever>
mjhoy: you need to fix the old ~/.nix-profile before you can install anything
<mjhoy>
so just delete that and rerun?
<clever>
mjhoy: maybe
<d1rewolf>
retarded onion okay so by setting it to EFI type in fdisk that specifies it as bootable?
<RetardedOnion>
d1rewolf: pretty sure. remember it should be your small partition of 512M, not your /
<mjhoy>
Deleting and trying to nix-env -iA does not recreate a ~/.nix-profile ... hmmm
<clever>
mjhoy: manually create .nix-profile with `ln -sv`
<clever>
mjhoy: it should look similar to the one i pasted above
<d1rewolf>
right, okay. I will give that a shot. Thanks.
<d1rewolf>
I wonder why the nixos manual shows differently?
<mjhoy>
should it be per-user/my-user ?
<clever>
mjhoy: yes, and it should end in profile
<RetardedOnion>
i am trying to install all kde applications with nix-env -iA nixos.kdeApplications. error: packages '/nix/store/23yri28zcb2gaa6scswdaw01k3anfc93-kdenlive-18.04.2/share/mime/XMLnamespaces' and '/nix/store/04q9wlg1zw3a1cwqyp4xaf8xwbi2wmj8-k3b-18.04.2/share/mime/XMLnamespaces' have the same priority 5;. what is wrong and how do i fix it? i dont get nix-env --set-flag priority NUMBER INSTALLED_PKGNAME, but i am pretty sure that it makes no sense
<infinisil>
slabity[m]: I am going to NixCon but not talking :)
buckley310 has quit [Read error: Connection reset by peer]
lomotov has joined #nixos
vmandela has quit [Quit: Leaving]
<mightybyte>
When using an ssh substituter, is there a way to make the nix daemon establish the ssh connection as your user instead of as root (on macOS)?
<RetardedOnion>
clever: where can i find more about the buildEnvs? or can you give me a quick command on how to install it? i will try to understand it and get back when i have questions.
<clever>
RetardedOnion: create a package override containing that buildEnv
<clever>
RetardedOnion: line 13 and 20 are 2 old buildEnv's i have used in the past
<clever>
RetardedOnion: and once that is configured, i can just nix-env -iA nixos.manymans to install one
<booglewoogle>
hey. i'd like to create elegant instructions on how to get this installer script working on nixOS, you'd have to get in a nix-shell with, among others, and rewrite a part of a script to reference the shell's glib. i just pasted the whole store path, but i assume there's a way you could reference that for a general system where the hash may be different?
<booglewoogle>
*with, among others, glib*
<{^_^}>
[nixpkgs] @vcunat pushed to release-18.03 « nixos tests: bring back non-blocking nfs tests »: https://git.io/fNC6C
<{^_^}>
[nixpkgs] @dtzWill opened pull request #43854 → python3Packages.zconfig: remove test that relies on setlocale failing → https://git.io/fNC6l
<clever>
booglewoogle: if you put `foo = pkgs.hello;` into the derivation for a shell.nix, then $foo will contain /nix/store/hash-hello-1.2.3/
<clever>
mightybyte: each user or machine has their own private for accessing the cache, and then the cache has a whitelist of publics that can read it
<mightybyte>
clever: Right. But as it stands now I have to copy that per-user private key to the root user.
<nh2>
clever: excellent, thanks!
<mightybyte>
...which doesn't make any sense.
<clever>
mightybyte: i would just generate a new private as root
<clever>
dedicated just to the cache use
<mightybyte>
That still doesn't make any sense because it's not multi-user.
<mightybyte>
That implicitly means that all users of a particular machine will have access to a cache.
<clever>
theres not really a way to give just one user access to the cache
<clever>
and either way, things get cached in /nix/store and become world readable
<mightybyte>
Also...I prefer to do SSH authentication with my Yubikey, and this makes that impossible (or at least I haven't figured out how to make it work yet)
<mightybyte>
clever: It seems like it should be relatively easy for the daemon to change to be running as the user that executed whatever command is currently running.
<mightybyte>
...whenever it is doing SSH stuff.
<clever>
mightybyte: only if /nix/store is user writeable can you run without the daemon, and then nix-build just spawns the ssh directly as your user
<clever>
mightybyte: but then the rules of the store cant easily be enforced, and a multi-user setup would become a security problem
<mightybyte>
Why can't the cached info be retrieved as the user and then written to the store by the daemon as root?
<clever>
mightybyte: because a malicous user can just give the daemon a trojan'd copy of sudo, and wait for it to be ran as root
nlyy has quit [Remote host closed the connection]
<mightybyte>
Hmmmmmm...
nlyy has joined #nixos
booglewoogle has quit [Quit: Leaving]
booglewoogle has joined #nixos
<mightybyte>
Then how does nix run fetchGit SSH as the local user?
<clever>
mightybyte: the hash of that storepath is based on the contents of the directory
<clever>
mightybyte: so somebody wanting an un-trojaned copy, will be using the hash of the unmodified source
<clever>
and a trojaned copy of the source will always live in a different directory and be ignored
<mightybyte>
So it's not that the daemon *couldn't* do what I'm asking, it's that doing so would be a security issue?
coconnor has joined #nixos
<clever>
yeah
<coconnor>
howdy all!
<coconnor>
I got some time to do nixos stuff. yay!
<mightybyte>
clever: Ok, I guess that makes sense.
<mightybyte>
Still seems really annoying though.
<coconnor>
Anyone using KDE and experiencing audio issues?
wpcarro has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @dtzWill merged pull request #43854 → python3Packages.zconfig: remove test that relies on setlocale failing → https://git.io/fNC6l
<{^_^}>
#11970 (by javins, open): pulseaudio: Failed to open module module-x11-publish.so: module-x11-publish.so: cannot open shared object file: No such file or directory
<coconnor>
whic resolved one aspect of pulseaudio issues
__Sander__ has quit [Quit: Konversation terminated!]
<kalbasit>
`buildInputs` and `nativeBuildInputs` are confusing! Am I to understand that `nativeBuildInputs` are dependencies required only for build phase but not for runtime?
<coconnor>
ah ha. pavucontrol does show multiple outputs but the volumes have no connection to the KDE audio controls. I suspect that's related to the "kcm_pulseaudio" error
<ocharles_>
Anyone have any ideas on how to get /keybase files into a Nix builder?
<ocharles_>
I'm referring to stuff in /keybase for nixops deployment.keys
<ocharles_>
but /keybase is user readable only
<ocharles_>
maybe I should just make it readable by the nixbld group
<clever>
ocharles_: nixops deployment.keys are not read by the nixbld group
<clever>
ocharles_: when done correctly, its read directly by the python code in nixops
<ocharles_>
hm
__monty__ has joined #nixos
<ocharles_>
I have text = pkgs.stdenv.mkDerivation { ...}, where I need to normalise a Dhal lfile
<clever>
ocharles_: can you gist your current nix file?
<ocharles_>
yea
<booglewoogle>
nlyy: am i right in that there are something like sub-channels? cause two hashes
<ocharles_>
well, not the whole thing, but I will share the relevant part of deployment.keys
silver has joined #nixos
<kiloreux>
Can I use cachix with binaries installed through nix-env ?
<clever>
ocharles_: id recomend passing "${/keybase}" to the dhallToNix script as well
<clever>
and then modifying it to take a snapshot of the keybase files
<ocharles_>
ah
<clever>
each time you deploy, nix will snapshot that directory and store it in the local /nix/store/
<ocharles_>
right
<clever>
and pass the derivation the storepath of the snapshot
<ocharles_>
yea, that makes sense
<ocharles_>
I wonder if this will end up with a gc root
joshie has quit [Quit: No Ping reply in 180 seconds.]
<clever>
i dont think it will
<ocharles_>
testing now, let's see
<ocharles_>
thanks for the advice! That's a good work around
joshie has joined #nixos
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
wpcarro has joined #nixos
<ocharles_>
hmm. deployment.keys.<name>.text can't be a derivation
leo60228 has joined #nixos
<clever>
ocharles_: i think you want .source
<leo60228>
I think my few-days-old PR got buried (I noticed that the package doesn't work immediately after opening it), and I think it got buried. What should I do?
<ocharles_>
what is .source?
<clever>
ocharles_: deployment.keys.<name>.source
<ocharles_>
that doesn't exist. is that new?
<clever>
hmmm, *checks docs*
<ocharles_>
I only recall text and keyFile
<clever>
ocharles_: ah, yeah, its keyFile
<ocharles_>
doh, of course that makes sense
<clever>
the /etc stuff has text and source, but deployment.keys decided to rename it
<{^_^}>
[nixpkgs] @dtzWill opened pull request #43856 → file: patch for CVE-2018-10360 → https://git.io/fNCSv
<maurer>
manveru: That project was designed to be testable under nix-shell, and needed to spin up temp databases to do it
<manveru>
maurer: awesome, thanks :)
<manveru>
i'm trying to find a nice alternative to docker-compose
<manveru>
and pg really doesn't need a container...
<samueldr>
oh, turns out it's uh, more integrated into $work thing than expected, so can't just dump code
<manveru>
np
<samueldr>
it looks like maurer's, except I onlt initdb if the folder isn't there, and the folder is at a well-known location relative to the project (.gitignored)
<samueldr>
the configuration files are managed through a nix-build
<manveru>
yeah
<manveru>
i was kinda hoping for something like using the nixos module to generate the config only
d1rewolf_ has joined #nixos
<samueldr>
that would have been really nice, it may happen in the future as it turns out that the hack I did for postgresql, nginx, php-fpm is really working well for development use
<samueldr>
so, cleaning it up is a must
<samueldr>
and parts of cleaning it up would be to re-use the nixos modules if possible
<manveru>
easily running DBs in a project is pretty much the only thing i haven't switched fully to nix to yet
<samueldr>
I think the biggest issue I have to fix, yet, is some process supervision that works on both macOS and Linux
<manveru>
there's extra-container and nixos-shell and nix-containers, but they all have quite some bugs and bad UX :|
<manveru>
runit?
<samueldr>
it's linux-only in nixpkgs, haven't yet looked if it's a limitation of runit or if it's just not "done"
<maurer>
If you're in the context of nixos, it might be possible to write something that caused the postgresql module to start under a user unit of systemd
<maurer>
I think there might be a good deal of black magic involved in that though
<samueldr>
maurer: definitely not nixos, only nix
<samueldr>
(and with macOS support required :/)
<manveru>
i just found runit works on anything i throw it at :)
<manveru>
"It runs on GNU/Linux, *BSD, MacOSX, Solaris, and can easily be adapted to other Unix operating systems"
<samueldr>
haha great, no need to do any research when I can lazily talk about an issue on #nixos ;)
<samueldr>
yeah, pretty much, just haven't gotten around to it yet
<d1rewolf_>
guys, I have a bunch of scripts which reference things like /usr/share. For example, under ubuntu, i3blocks utilities are installed in /usr/share/i3blocks. in nixos, they are in /nix/store/0zxf7wj1sj10zj74kck0faqfzk8z7gi3-i3blocks-1.4/libexec/i3blocks/. what's the appropriate way to refer to thihs path across machines?
nlyy has quit [Remote host closed the connection]
<clever>
d1rewolf_: run something like sed over the script to insert ${pkgs.i3blocks}/libexec/i3blocks into the script
halfbit has joined #nixos
<clever>
d1rewolf_: if that string is within a nix file, it will automatically expand to /nix/store/0zxf7wj1sj10zj74kck0faqfzk8z7gi3-i3blocks-1.4/libexec/i3blocks
<d1rewolf_>
clever, it's not within a nix file. it's in a shell script
<clever>
d1rewolf_: youll need to write a nix file to package that shellscript, and apply sed to it
Judson has joined #nixos
<d1rewolf_>
clever, hmmm...ok. i'll look at that. thx. any examples?
Judson is now known as Guest26172
Sonarpulse has joined #nixos
<ocharles_>
clever: hmm, weirdly it complains that: Exception: Neither 'text' or 'keyFile' options were set for key 'server-config.dhall'.
jperras has quit [Quit: WeeChat 2.2]
<ocharles_>
I guess you can't have keyFile = <a derivation>
<clever>
ocharles_: i think nixops is doing some funny things, and wont build the derivation
<clever>
because its meant for keys that are never meant to enter the store
<ocharles_>
yea, I'm trying to work out what this python is doing
<kiloreux>
Saw it on the help but wasn't sure what "Note that as a result the output does not become a root of the garbage collector, and so might be deleted by nix-store --gc."
<kiloreux>
Will my package get removed if I run nix-store --gc ?
<kiloreux>
I mean exclusively there ?
jb55 has joined #nixos
<samueldr>
when a garbage collection happens, so either manually like that, or if you have them done on a timer (as configurable)
<samueldr>
if you want to keep it around, you could always set a specific symlink
<{^_^}>
[nixpkgs] @thoughtpolice pushed 5 commits to release-18.03: https://git.io/fNCHX
<infinisil>
kiloreux: Note that a nix-build and all nix command store everything in /nix/store directly. The result in the current directory is just a symlink to the /nix/store path
<samueldr>
--out-link ~/.local/share/gc-root-for-my-thing would keep it out of sight
<kiloreux>
Thank you <3 .
wpcarro has joined #nixos
raynold has joined #nixos
<{^_^}>
[nixpkgs] @dotlambda merged pull request #43845 → nixos/home-assistant: do not always override extraComponents → https://git.io/fNCsk
<{^_^}>
[nixpkgs] @dotlambda pushed to master « nixos/home-assistant: do not always override extraComponents (#43845) »: https://git.io/fNCHN
<LnL>
mightybyte: there's kind of an alternative tho, you can build stuff using --store ssh-ng://host (that doesn't go through the daemon), and then nix copy back if the paths are signed with a key that's trusted
cryptomonoid has joined #nixos
jperras has joined #nixos
<booglewoogle>
is there a difference between adding fish to the 'systempackages' and adding 'programs.fish.enable=true'? the latter option seems to be available for some packages and i'm wondering what its purpose is
aarvar has joined #nixos
keith_analog has joined #nixos
<manveru>
booglewoogle: yeah, the first adds it to your PATH, the second lets other programs and modules know that you're using it
<manveru>
so they can e.g. add lines into the fishrc
<manveru>
bbl, food
wpcarro has quit [Ping timeout: 248 seconds]
igo95862 has quit [Quit: igo95862]
<booglewoogle>
aah, okay! thanks
<keith_analog>
Hi All, I'm wondering if you can help me to fix a linking bug w/ gcc7. Here's the error message:
<keith_analog>
gcc: error: /nix/store/4zd34747fz0ggzzasy4icgn3lmy89pra-gcc-7.3.0-lib/lib/../lib64/libstdc++.a: No such file or directory
<keith_analog>
Does anyone know where I can find the location of libstdc++.a?
ianz has joined #nixos
<infinisil>
booglewoogle: On NixOS a module is strictly more powerful than just adding a package, so it's usually preferred
raynold has quit []
<infinisil>
,locate libstdc++.a
<{^_^}>
Found in packages: androidndk, gcc-unwrapped, gcc-arm-embedded, mentorToolchains.armEabi, mentorToolchains.armLinuxGnuEabi
d1rewolf_ has joined #nixos
<infinisil>
keith_analog: I think it's some clang thing or so though, try with clangStdenv instead of stdenv
<infinisil>
I think clever recently answered something like that
graphene has quit [Remote host closed the connection]
<dhess>
In NixOS modules, what determines whether a configuration option is merged or is treated as a singleton?
<booglewoogle>
infinisil: okay, that's good to know
graphene has joined #nixos
<infinisil>
dhess: there is a priority system: the values with the highest priorities are merged together
<infinisil>
mkDefault assigns a low priority (1500), mkForce assigns a high priority (50)
<keith_analog>
infinisil: thanks, i'll give it a try
<dhess>
infinisil: Will all modules' `options` attrsets be merged automatically by the module system?
sbdchd has joined #nixos
humanoyd has quit [Quit: WeeChat 2.2]
<dhess>
never mind that, it was a poorly formed question
<infinisil>
dhess: Generally yes, but it can't "deep merge" options.
<dhess>
let me think more carefully about what I'm trying to ask.
<infinisil>
It would help to know what your goal is :)
<d1rewolf_>
guys, on my newly installed system, nix-profile seems to broken: /home/d1rewolf/.nix-profile: broken symbolic link to /nix/var/nix/profiles/per-user/d1rewolf/profile. Any idea why?
<dhess>
infinisil: I want to create a module acts like networking.nat does. Specifically, other modules can, as part of their configuration, add, say, IP addresses to a list, similarly to how networking.nat.internalIPs work. Then, in my module, it should take *all* of the instances of that list that the other modules have populated, and merge them into a single list.
<dhess>
so what I'm wondering is, do I need to do that merge manually, or will it be done automatically so that by the time my module sees that list, it will already have been merged?
<d1rewolf_>
how should I recreate ~/.nix-profile if it's incorrect?
Fare has joined #nixos
<dhess>
looking at the nat.nix module, it looks like this is something that's done automagically. I just want to confirm that or figure out if there's something I'm missing
sbdchd has quit [Ping timeout: 240 seconds]
<infinisil>
dhess: The type `types.listOf ...` will automatically merge all definitions by concating them
johanot has quit [Remote host closed the connection]
<infinisil>
Every type specifies how multiple definitions should get merged
<dhess>
infinisil: ok cool.
cryptomonoid has quit [Ping timeout: 265 seconds]
<dhess>
ohhhhh right I think I remember seeing that somewhere
<d1rewolf_>
LnL, I've installed things in my profile, and my configuration.nix has user.users.d1rewolf.packages with some that are installed by default
<dhess>
It is definitely part of NixOS's secret sauce
keith_analog has quit [Quit: Konversation terminated!]
<{^_^}>
[nixpkgs] @dtzWill opened pull request #43858 → perl-cross: 1.1.8 -> 1.2, needed for newer perl versions → https://git.io/fNC5X
<infinisil>
There are some people who don't like the module system though, and admittedly there are some problems with it
<samueldr>
secretly?
Tobba has quit [Read error: Connection reset by peer]
iqubic has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @Hodapp87 opened pull request #43859 → appleseed: Fix non-executable items and Python bindings → https://git.io/fNCdv
<infinisil>
samueldr: I guess a lot of people know that they can easily configure stuff by adding a line to configuration.nix, but don't actually know what's going on to make that happen (the module system)
<samueldr>
I meant, you are not secretly in love
<samueldr>
(and yeah, learning the modules system was a wonderful experience)
<infinisil>
Ah heh yeah
<booglewoogle>
how would i go about installing a new x-cursor theme globally? where do i put it?
<mightybyte>
LnL: Ahh, ok. I don't think that's the way I want to do it, but thanks for that tip.
eskytthe has joined #nixos
chreekat has quit [Quit: quitting]
SyrupThinker has joined #nixos
kiloreux has quit [Ping timeout: 255 seconds]
kiloreux has joined #nixos
<ocharles_>
clever:
<ocharles_>
I found little hack to my problem. keyFile = import ( let configFile = ... in pkgs.stdenv.mkDerivation { buildCommand = ''echo ${keyFile} > $out"; } );
<ocharles_>
ifd ftw
<infinisil>
ocharles_: Is that supposed to be `echo ${keyFile}` in there? That's a recursive definition
<ocharles_>
that's meant to be ${configFile}
<infinisil>
Ah that makes more sense :) (although recursive definitions are also nice when you want them)
<fresheyeball>
so I am trying to use succeedOnFailure so I can capture failed test output in result for a Haskell project
<fresheyeball>
problem is, I also have doHaddock = true
<fresheyeball>
so if the test fails, it never creates anything at $doc
eskytthe has quit [Remote host closed the connection]
d1rewolf__ has joined #nixos
sbdchd has joined #nixos
eskytthe has joined #nixos
<Acou_Bass>
heyy everyone, im trying to get Steam to install under wine using Playonlinux on Nixos... im getting a command not found error using the nixos playonlinux-4.2.12 when it pulls the wine-staging binary
jD91mZM2 has joined #nixos
sbdchd has quit [Ping timeout: 264 seconds]
<Acou_Bass>
https://pastebin.com/aHN4MJfT error msg here... can anyone help me with this? :D (i would assume its a setup problem on my end as the nixpkg hasnt had any errors against it for a while!)
<srk>
If your program is running, just ignore this message.
<srk>
:D
<Acou_Bass>
it isnt though :P
<srk>
no idea, just find that funny :)
<Acou_Bass>
yeah its funny when it carries on but a smack in the teeth when it doesnt :D
<srk>
I only run steam without playonlinux
Tiez has quit [Quit: WeeChat 2.1]
coot_ has joined #nixos
coot__ has joined #nixos
johnhamelink has joined #nixos
<clever>
fresheyeball: you may need an `mkdir $doc` to fake it sooner on
Thra11 has joined #nixos
<clever>
srk: i tried to play a game under wine a few days ago, and the input lag made it imposible to play
<clever>
srk: i later discovered it had native linux under steam, and that plays with no issues at all
<fresheyeball>
Yeah, I run steam on nixos with no issue, including streaming to my steam link
<srk>
yup
coot__ is now known as coot
<srk>
I remember one game (system shock 2) which didn't work at first (on fedora) cause it bundled it's own wine version
<Acou_Bass>
native steam runs fine for me - wine steam however fails to install, and the game im after has no linux version
<srk>
running it with distro wine fixed it
<fresheyeball>
clever: I am trying preBuild = "mkdir -p $doc";
<fresheyeball>
I still think this might be a bug
<clever>
Acou_Bass: that reminds me, one game i installed with wine steam (and native windows wine) left linux binaries in its install directory!
<clever>
native windows steam*
alexteves has quit [Remote host closed the connection]
<sphalerite>
Acou_Bass: binaries for other linux distros don't work on nixos.
alexteves has joined #nixos
<sphalerite>
Acou_Bass: you could use steam-run or use a nix package.
<sphalerite>
Acou_Bass: Are you using the playonlinux nix package?
<Acou_Bass>
sphalerite: yes im using the playonlinux nixpkg, not using a binary for another linux distro 0,o dunno why youd think that :P
johnw_ is now known as johnw
johnw has quit [Changing host]
johnw has joined #nixos
<sphalerite>
Acou_Bass: hm ok. Are you sure it's "command not found" and not "No such file or directory"?
pie_ has joined #nixos
<sphalerite>
Acou_Bass: because I'm 95% sure that this is a case of playonlinux just downloading a wine binary from god knows where and trying to run that
<fresheyeball>
srk: I have steam in virtual box, plays ok
<Acou_Bass>
/nix/store/b6d30a7l27xi0crzm8sinakli104z88n-playonlinux-4.2.12/share/playonlinux/lib/scripts.lib: line 1013: lsb_release: command not found
<Acou_Bass>
it says command not found hehe
<sphalerite>
oh
<sphalerite>
lol
obadz has quit [Ping timeout: 256 seconds]
<Acou_Bass>
but yes, playonlinux does download wine binaries from god knows where and dump 'em in your home folder, but this has historically worked fine even on nixos for me so not sure why its decided to quit on me
<srk>
fresheyeball: most of my fav games got linux ports so I can just run linux version :)
<sphalerite>
Acou_Bass: easiest solution is probably just using wine from nixpkgs without playonlinux
obadz has joined #nixos
<sphalerite>
although in this case it's not because of the wine binary downloads
crmlt has joined #nixos
<sphalerite>
but because it tries to use the (nonexistent on nixos) lsb_release command to work out… stuff?
<sphalerite>
idk
<acowley>
Is there any documentation for strictDeps? Given that it seems to be getting sprinkled everywhere to unbreak long command lines, I feel like I should know what it is.
booglewoogle has quit [Quit: Leaving]
<Acou_Bass>
presumably to figure out where the downloaded-from-god-knows-where wine binary is as thats generally setup with environment variables i think
<Acou_Bass>
as there is a no such file or directory error when it tries to find said binary in my home directory
<Acou_Bass>
/nix/store/b6d30a7l27xi0crzm8sinakli104z88n-playonlinux-4.2.12/share/playonlinux/lib/wine.lib: line 565: /home/eddie/.PlayOnLinux//wine/linux-x86/2.12-staging/bin/wine: No such file or directory
<Acou_Bass>
like that ^ :P
<sphalerite>
yeah that'll be the missing dynamic linker
<sphalerite>
can you point playonlinux to a wine of your choice?
<Acou_Bass>
oooh thats a good plan, lemme try
chreekat has joined #nixos
<sphalerite>
if so I'd suggest pointing it to a nix-built wine :)
wpcarro has quit [Remote host closed the connection]
<bgamari>
how does one prevent nix from probing its caches for derivations that it can otherwise build?
* bgamari
is on a very high-latency internet connection so it's much faster to just build the derivation in questin
<nlyy>
is there any difference between dnscache and dnsmasq?
wpcarro has joined #nixos
<bgamari>
nlyy, dnsmasq includes a dhcp server
* bgamari
doesn't know about dnscache
<infinisil>
bgamari: --option substitute false
<bgamari>
ahh
<bgamari>
infinisil, thanks!
wpcarro has quit [Remote host closed the connection]
<nlyy>
should i use dnsmasq or dnscache if i have a dhcp server [on the router]
wpcarro has joined #nixos
<bgamari>
nlyy, I use unbound for local dns caching
<bgamari>
nlyy, I used to use dnsmasq
<kiloreux>
How can I make binaries of a package built with `nix-build` visible in "/nix/var/nix/profiles/default/bin" ?
ahmedtd has joined #nixos
<infinisil>
kiloreux: I would have to look that up, but why not just use the systems/roots profile?
graphene has quit [Remote host closed the connection]
<Acou_Bass>
i believe its nix-env -f . -iA programname
<bgamari>
infinisil, that being said, it still appears to check cachix
<nlyy>
ty bgamari
<Acou_Bass>
assuming youre in the directory that the default.nix is in
<infinisil>
bgamari: Hmm..
graphene has joined #nixos
<kiloreux>
infinisil, I am used to installing my binaries with 'nix-env` and the binaries were always there. Now that I am installing them with nix-build, i don't know where to find them?
<infinisil>
kiloreux: Oh nix-build doesn't install them
<Acou_Bass>
if you did a nix-build on a default.nix of your own or someone else's creation itll be in result/bin/binary
<Acou_Bass>
so if you then do the nix-env -f . -iA programname in that same directory
<Acou_Bass>
itll install it to your nix-profile
<kiloreux>
Nice
<kiloreux>
I see now.
<infinisil>
bgamari: Maybe check the other options in man nix.conf
<bgamari>
alright, thanks!
<Acou_Bass>
of course just test it first by doing a ./result/bin/binary to make sure it all works :d
<kiloreux>
Acou_Bass, So I can build it with nix-build. Push it to my binary cache and then run nix-env. And it should use that binary cache?
<Acou_Bass>
0,o i dunno about that
<infinisil>
kiloreux: Well if you built it with nix-build there's no need to get it from the cache as you already have it
nlyy has quit [Quit: Leaving]
<fresheyeball>
how can I cast a string to a bool?
<fresheyeball>
--argstr foo true
<fresheyeball>
makes a string
<chreekat>
fresheyeball: don't ? :)
<fresheyeball>
I just want to pass a bool on argstr
<infinisil>
fresheyeball: --arg foo true?
<fresheyeball>
true is a string in that context
<infinisil>
No need to pass it as a string when you can just use --arg
<fresheyeball>
oh duh, I can == "true"
<chreekat>
fresheyeball: yeah, just use --arg instead of --argstr
<kiloreux>
infinisil, I am mainly talking about the case where I want to avoid building next time. (new disk or something like that). Would that be feasible you think /
<fresheyeball>
oh
<fresheyeball>
I didn't know about --arg
<infinisil>
kiloreux: Yeah sure, if you set up the cache correctly then that should work
<infinisil>
I mean that's what caches are there for
booglewoogle has joined #nixos
<bgamari>
infinisil, It's use-substitutes
<infinisil>
bgamari: Oh, so you're using nix 1.x
<infinisil>
I assumed 2.0
<bgamari>
hmm, am I? I'm on NixOS 18.03
<infinisil>
Hmm, I can't find use-substitutes in my man page
<infinisil>
bgamari: What's nix --version?
<bgamari>
wow
<bgamari>
infinisil, you are right
<bgamari>
ahh, I have a version in my user profile
<bgamari>
much better
<bgamari>
infinisil, thanks!
<infinisil>
:)
<booglewoogle>
key, after switching to the unstable channel, whenever I rebuild it'll print the line 'warning: Nix search path entry '$HOME/.nix-defexpr/channels' does not exist, ignoring' a few times. it doesn't seem to hurt the ugrade process, but where's it coming from? the directory even exists!
<booglewoogle>
hey*
ersran9 has quit [Ping timeout: 244 seconds]
<fresheyeball>
grr
<fresheyeball>
so I got succeedOnFailure to work
igo95862 has joined #nixos
bennofs has joined #nixos
<booglewoogle>
not a common thing?
<infinisil>
booglewoogle: Does running `nix-channel --update` get rid of it?
<{^_^}>
haskell-nix/hnix-store#13 (by sorki, open): WIP: Remote store
<manveru>
that's some dense reading :)
<booglewoogle>
yeah..
<booglewoogle>
i imagined that'd be a possibility, but it just makes me curious
<manveru>
booglewoogle: i usually just remove .nix-defexpr and run update again
<booglewoogle>
what's going on there
<booglewoogle>
oh you just remove the directory? that's fine?
<manveru>
but no clue what it means
<booglewoogle>
i was hesitant about that
<manveru>
yeah
<booglewoogle>
okay
<manveru>
you can move it if you're unsure :)
<toppler>
Apologies. I've never quite got my head around this: how can I easily nix-shell from the command-line into a derivation that's a function of its dependencies, by which I mean the .nix files that make up most of the distro and are called using callPackage in all-packages.nix?
<srk>
manveru: it's not that difficult to implement - there's command (operation) you send to daemon over unix socket, then you need to stream-parse logger output and then it sends actual output of the operation
<manveru>
srk: yeah, i was just reading it through strace
<manveru>
but since it's binary it's a bit cryptic
<manveru>
was mostly wondering how to implement nix-serve without perl
<srk>
hehe, did the same while implementing it :)
<srk>
there are some catches - like if logger contains error you need to bail out and not wait for response
ckauhaus has quit [Quit: WeeChat 2.0]
<booglewoogle>
removing the directory and updating didn't help. --updating itself even spit out the error itself
<booglewoogle>
running 'nix-channel --update' that is
d1rewolf__ has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @volth opened pull request #43860 → [bot] treewide: remove unused 'inherit' in let blocks → https://git.io/fNChj
<manveru>
srk: the nix-perl seems to use a Store.so... maybe we can find the source for that?
<booglewoogle>
whoops @ the double
mojjo has joined #nixos
<mojjo>
hi.. by any chance someone using nixos + emacs + purescript (psc-ide mode)?
<booglewoogle>
i removed '$HOME/.nix-defexpr/channels' from my $NIX_PATH (updating it the classical way via export)
<toppler>
manveru: Just about any argument to "callPackage" in all-packages.nix. I'd like to be able to do that same call, but everytime, I get told that the arguments are missing.
chreekat has quit [Quit: quitting]
<manveru>
srk: i guess having hnix and dhall would be cool :)
<booglewoogle>
and the error STILL happens
<booglewoogle>
not when running it without sudo though (but then it can't rebuild)
<booglewoogle>
i'm at a loss
<booglewoogle>
just happy this doesn't break anything lol
<d1rewolf__>
and nix found and built vscode just fine, so I know that part is working
<srk>
nix-shell -p google-chrome
<clever>
d1rewolf__: the attribute paths are google-chrome for the pre-compiled blob and chromium for the opensource one (also precompiled, but by hydra)
<sphalerite>
d1rewolf__: and it's enabled in your user config at ~/.config/nixpkgs/config.nix ?
<bennofs>
o.o. why is perl in the closure of git-minimal
<clever>
bennofs: it has some perl based scripts in it
<sphalerite>
bennofs: iirc a lot of git is implemented in perl
<d1rewolf__>
sphalerite, what, allowUnfree?
<sphalerite>
d1rewolf__: yep
<clever>
d1rewolf__: nix-env obeys the per-user nixpkgs config, not configuration.nix
<d1rewolf__>
clever: so wouldn't nix-env -qaP 'google-.*' find google-chrome?
<bennofs>
wouldn't have expected git to pull in perl-html-tagcloud
<d1rewolf__>
one sec
<clever>
d1rewolf__: what file did you set allowUnfree in?
<fresheyeball>
clever: that worked!
<sphalerite>
d1rewolf__: it'll only find it if you have allowUnfree enbaled for the user
<bennofs>
yeah but this doesn't work too well because a) hydra-eval-jobs is resource intensive (requires quite a bit of ram) and b) does this work for other arches?
<bennofs>
also I find that britle because it relies on the fact that I reproduce the environment that hydra has. any small differences could lead to different hashes
jdnavarro has joined #nixos
<clever>
bennofs: the whole point of the hydra-eval-jobs binary is to isolate the eval from the environment
<clever>
bennofs: just call it with the right flags and it will always produce the right output
<bennofs>
ok. is everything there built by hydra?
<clever>
all it does is eval the nix expressions and spit out json containing all of the .drv paths
<clever>
and the job name for each .drv
<clever>
release.nix also has some special nix code to reduce memory usage
<bennofs>
last i tried it it required ~3g iirc?
<infinisil>
Would it be better to prefix of suffix a compiler with a nix-provided gcc in PATH?
stranger___ has joined #nixos
<infinisil>
prefix would disallow it to be changed by people, while suffix could lead to weird behaviour of it using a weird gcc in your PATH
<bennofs>
clever: is hydra-eval-jobs supposed to work with restricted mode?
sbdchd has joined #nixos
<coot>
has anybody tries to add some colours to the output of nix-build? Some compiler (ghc) have a colorful output that is lost when running in nix.
<coot>
has anybody tried to add some colours to the output of nix-build? Some compiler (ghc) have a colorful output that is lost when running in nix.
<coot>
has anybody tried to add some colours to an output of nix-build? Some compiler (ghc) have a colorful output that is lost when running in nix.
<bennofs>
clever: trying to run it on pkgs/top-level/release.nix in nixpkgs resulted in "access to path NIXPKGS_CHECKOUT_DIR/lib/ is forbidden in restricted mode"
<clever>
bennofs: you need to include -I NIXPKGS_CHECKOUT_DIR
<clever>
bennofs: only paths listed in -I are allowed, to improve purity
wpcarro has quit [Ping timeout: 244 seconds]
<bennofs>
ok thanks
<infinisil>
coot: Don't spam though
ersran9 has quit [Ping timeout: 256 seconds]
<coot>
sorry, I after whole day in slack I go used to up key to fix a typo...
crmlt has quit [Ping timeout: 276 seconds]
<coot>
and thanks for the link @infinisil
<infinisil>
:)
<bennofs>
clever: hmm, getting an error: syntax error, unexpected '+', at /code/nixpkgs/pkgs/development/tools/misc/help2man/default.nix:27:32 when running it on channels/nixos-unstable now...
sbdchd has quit [Ping timeout: 240 seconds]
<infinisil>
coot: So you can enable colors today if you're willing to do rebuilds of everything, and I don't think colors will come in the near future, but maybe eventually when somebody decides to implement it properly
<clever>
bennofs: all i did was run this in the root dir of a nixpkgs checkout, and its streaming all kinds of json at me
<clever>
and yeah, its up to 4.8gig of ram
<katona>
Hi, anyone else having problem with amdgpu and 4.14.56 kernel version (black screen)
d1rewolf has quit [Ping timeout: 276 seconds]
<bennofs>
clever: ah ok I need to use the hydra from the checkout and not the hardcoded one from your link. sorry, I was a bit lazy, should've debugged this a little more myself
<clever>
bennofs: 7.4gig used
<clever>
bennofs: aha, and it finished
<clever>
Maximum resident set size (kbytes): 7782192
<clever>
Elapsed (wall clock) time (h:mm:ss or m:ss): 12:25.14
<bennofs>
7.4gig is a little... heavy
<clever>
bennofs: the bulk of the runtime was waiting for nix-daemon to do IO
<bennofs>
that means i can't easily test it on most of my laptops if i don't take extra steps to close any other programs first
<{^_^}>
[nixpkgs] @pSub pushed to master « bazel-buildtools: add version to name »: https://git.io/fNWTZ
<clever>
bennofs: i just ran it with 700 tabs open in chrome ....
<bennofs>
i only have 8g :)
jgt has joined #nixos
<clever>
32gig...
<bennofs>
this is probably still better than just running nix-env and hoping the hashes mathc
fresheyeball has quit [Quit: WeeChat 2.0]
<{^_^}>
[nixpkgs] @pSub pushed to master « buck: adhere to version schema convention »: https://git.io/fNWT4
<bennofs>
although it will be a little bit harder to figure out canonical attribute path for installing
wpcarro has joined #nixos
<bennofs>
maybe we should do something about channel evaluation taking ~8g of memory. isn't that a bit too much?
<clever>
,profiling
<{^_^}>
Use NIX_COUNT_CALLS=1 and/or NIX_SHOW_STATS=1 to profile Nix evaluation
<clever>
NIX_SHOW_STATS=1 will tell you where all the memory is going, on a type basis
<clever>
but only certain binaries support it
tertle||eltret has joined #nixos
Acou_Bass has quit [Quit: byeeeeeeeeeeeeeee]
<tertle||eltret>
i couldnt figure out how to get nixos gui going on my machine
<tertle||eltret>
now im using in vm
<jgt>
current setup: developing Haskell project on MacOS, deploying to AWS with NixOps, building on a Docker remote machine. How do I dump all the Nix store paths for the packages my project depends on?
Acou_Bass has joined #nixos
<clever>
jgt: nix-store -qR
wpcarro has quit [Ping timeout: 240 seconds]
<{^_^}>
[nixpkgs] @volth opened pull request #43863 → [bot] nixos/*: remove unused arguments in lambdas → https://git.io/fNWT9
cloud-maingo has quit [Quit: Connection closed for inactivity]
<jgt>
clever: it didn't have any output, so I'm guessing I need to specify some target (I don't have a default.nix; maybe that command depends on that?)
<jgt>
I'm checking nix-store --help
<clever>
jgt: give it the path to your output
<clever>
jgt: for example: du -hc --max-depth=0 $(nix-store -qR /nix/store/awdgjdg1lcpm27xkf68aph52a10hvyfg-hydra-2017-11-21) | sort -h
<infinisil>
When I compile something with gcc and it needs a header file <CL/cl.h> from opencl-headers, I pass -IOpenCL to it. What env var do I need to set for it to find those headers?
bennofs has quit [Quit: WeeChat 2.0]
<{^_^}>
[nixpkgs] @pSub pushed to master « frog: adhere to version schema convention »: https://git.io/fNWkC
wpcarro has quit [Ping timeout: 268 seconds]
<clever>
infinisil: i think you need to compute -I${opencl}/include/CL in nix, and pass that in however you want, usually NIX_COMPILE_CFLAGS i think
<clever>
infinisil: the problem is packages trying to avoid conflicts, which nix solves, and now they make nix harder to use :P
<infinisil>
Ohhh yeah I've seen that -I${... before
Anton-Latukha has quit [Quit: Leaving.]
<infinisil>
I guess I'll have to patch it..
<katona>
Amdgpu doesn't work on kernel 17.* (Absolutely no display, although it never worked on this version for me) , nor on 14.* with current trunk. I can't find the commit that made it so, any idea? No change to amdgpu since last working version
<jgt>
clever: Ok, yeah that's super helpful. Thanks! Basically I want to throw all these paths at Cachix.
<{^_^}>
[nixpkgs] @pSub pushed to master « hyper-haskell-server-with-packages: add version to name »: https://git.io/fNWki
<infinisil>
clever: Oh how about this: I can pass any gcc I want, so I could make a gcc wrapper that adds the -I${opencl... flag :O
<infinisil>
And pass that, no patching needed
<clever>
infinisil: the gcc wrapper used by nix already obeys $NIX_COMPILE_CFLAGS
<clever>
infinisil: that is how buildInputs are injected into it
<infinisil>
Ohh, so I could just set that!
<infinisil>
Let's see..
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<jgt>
clever: Ok, so I can get all my dependencies with `nix-store -qR /nix/store/0ipns30slkihw012867q3fxr6ksyachw-nixops-machines.drv`, but I wonder, am I at risk of caching secrets by doing this? domenkozar gave me this hint in this GH Issue: https://github.com/cachix/cachix/issues/100
<{^_^}>
cachix#100 (by jezen, open): How do I use Cachix with a remote builder and nixops?
<clever>
jgt: thats the build-time dependencies, not the runtime ones
<infinisil>
clever: Doesn't seem to work, unless I got something wrong
<clever>
jgt: run `nix-store -r /nix/store/0ipns30slkihw012867q3fxr6ksyachw-nixops-machines.drv` and then repeat -qR on the output it gave
<infinisil>
I don't think it's NIX_COMPILE_CFLAGS
<infinisil>
Oh
<clever>
jgt: you can also grep those paths for secrets
<clever>
jgt: i found some "secrets" in the closure of hydra
<dhess>
This is why I don't use cachix :)
wpcarro has joined #nixos
<infinisil>
clever: But it still doesn't work because "/bin/ld: cannot find -lOpenCL"
<jgt>
clever: isn't it the build time dependencies that I want? My use case is: I'd like to not have to recompile all packages I depend on after doing a Nix GC
<infinisil>
Because the arg still gets passed :/
<clever>
dhess, jgt: its safer to push just the closure of the program, rather then the entire nixops deployment, and to also never give the package build the secrets
Adev[m] has quit [Ping timeout: 240 seconds]
chominist[m] has quit [Ping timeout: 240 seconds]
bluewolfy[m] has quit [Ping timeout: 240 seconds]
tokudan[m] has quit [Ping timeout: 240 seconds]
Minijackson[m] has quit [Ping timeout: 240 seconds]
nmikhailov[m]1 has quit [Ping timeout: 240 seconds]
mtncoder[m] has quit [Ping timeout: 240 seconds]
pierrebeaucamp[m has quit [Ping timeout: 240 seconds]
Olinkl[m] has quit [Ping timeout: 240 seconds]
gh0st[m] has quit [Ping timeout: 240 seconds]
bkchr[m] has quit [Ping timeout: 240 seconds]
ahbnr[m] has quit [Ping timeout: 240 seconds]
timokau[m] has quit [Ping timeout: 240 seconds]
bugabinga[m] has quit [Ping timeout: 240 seconds]
funits[m] has quit [Ping timeout: 240 seconds]
fgaz[m] has quit [Ping timeout: 240 seconds]
<clever>
infinisil: is opencl in buildInputs?, does its lib exist in ${opencl}/lib/ ?
ngerstle[m] has quit [Ping timeout: 255 seconds]
russiancow[m] has quit [Ping timeout: 255 seconds]
Hook[m] has quit [Ping timeout: 255 seconds]
panther320[m] has quit [Ping timeout: 255 seconds]
DavidLeung[m] has quit [Ping timeout: 255 seconds]
zdisk[m] has quit [Ping timeout: 255 seconds]
bitmapper[m] has quit [Ping timeout: 255 seconds]
r3mfKm[m] has quit [Ping timeout: 255 seconds]
zaphar_ps[m] has quit [Ping timeout: 255 seconds]
thefloweringash[ has quit [Ping timeout: 255 seconds]
Bruno[m] has quit [Ping timeout: 255 seconds]
morgib[m] has quit [Ping timeout: 255 seconds]
abbafei[m] has quit [Ping timeout: 255 seconds]
petersjt014[m] has quit [Ping timeout: 255 seconds]
nelag[m] has quit [Ping timeout: 255 seconds]
Elephant454[m] has quit [Ping timeout: 255 seconds]
Richard[m] has quit [Ping timeout: 255 seconds]
bionicmac[m] has quit [Ping timeout: 255 seconds]
darkmeson[m]1 has quit [Ping timeout: 255 seconds]
TaoHansen[m] has quit [Ping timeout: 255 seconds]
nocent[m] has quit [Ping timeout: 255 seconds]
darkmeson[m] has quit [Ping timeout: 255 seconds]
unlmtd[m] has quit [Ping timeout: 255 seconds]
jack[m]1 has quit [Ping timeout: 240 seconds]
aiyubkhan[m] has quit [Ping timeout: 240 seconds]
DenisLehmann[m] has quit [Ping timeout: 240 seconds]
Christian[m]7 has quit [Ping timeout: 240 seconds]
Dan[m]1 has quit [Ping timeout: 240 seconds]
patrl[m] has quit [Ping timeout: 240 seconds]
rnhmjoj[m] has quit [Ping timeout: 240 seconds]
ipj[m] has quit [Ping timeout: 240 seconds]
xobroll[m] has quit [Ping timeout: 240 seconds]
Zurdo[m] has quit [Ping timeout: 240 seconds]
Kallegro[m] has quit [Ping timeout: 240 seconds]
U[m] has quit [Ping timeout: 240 seconds]
AlanPearce[m] has quit [Ping timeout: 240 seconds]
wervenyt[m] has quit [Ping timeout: 240 seconds]
regnat[m] has quit [Ping timeout: 240 seconds]
musicmatze[m] has quit [Ping timeout: 240 seconds]
trikl[m] has quit [Ping timeout: 240 seconds]
jesper[m] has quit [Ping timeout: 240 seconds]
CoopDot[m] has quit [Ping timeout: 240 seconds]
indefini[m] has quit [Ping timeout: 240 seconds]
WilliamHamilton[ has quit [Ping timeout: 240 seconds]
mirlur[m] has quit [Ping timeout: 240 seconds]
davidarmatrixorg has quit [Ping timeout: 240 seconds]
copumpkin[m] has quit [Ping timeout: 240 seconds]
Ralith[m] has quit [Ping timeout: 240 seconds]
efx[m] has quit [Ping timeout: 245 seconds]
incospicuous[m] has quit [Ping timeout: 245 seconds]
aaronc[m] has quit [Ping timeout: 245 seconds]
mlaskus[m] has quit [Ping timeout: 245 seconds]
liberdiko[m] has quit [Ping timeout: 245 seconds]
Phil[m]2 has quit [Ping timeout: 245 seconds]
NickHu[m] has quit [Ping timeout: 245 seconds]
fishy[m] has quit [Ping timeout: 245 seconds]
omawnakw[m] has quit [Ping timeout: 245 seconds]
jerengie[m] has quit [Ping timeout: 245 seconds]
sirocyl[m] has quit [Ping timeout: 245 seconds]
tfc[m] has quit [Ping timeout: 245 seconds]
tehnix[m] has quit [Ping timeout: 245 seconds]
aniketd[m] has quit [Ping timeout: 245 seconds]
lkjhgfdsa00xxx[m has quit [Ping timeout: 245 seconds]
PascalBach[m] has quit [Ping timeout: 245 seconds]
WilliamGHatch[m] has quit [Ping timeout: 245 seconds]
iceTanner[m] has quit [Ping timeout: 245 seconds]
Magnap[m] has quit [Ping timeout: 245 seconds]
demyan[m] has quit [Ping timeout: 245 seconds]
BennoFnfstck[m] has quit [Ping timeout: 245 seconds]
coorey[m] has quit [Ping timeout: 245 seconds]
Necronian[m] has quit [Ping timeout: 245 seconds]
ArdaXi[m] has quit [Ping timeout: 245 seconds]
offlinehacker[m] has quit [Ping timeout: 245 seconds]
AristotleCajetan has quit [Ping timeout: 245 seconds]
dywedir[m] has quit [Ping timeout: 245 seconds]
sudoreboot[m] has quit [Ping timeout: 245 seconds]
freeman42x[m] has quit [Ping timeout: 245 seconds]
tet[m] has quit [Ping timeout: 245 seconds]
codyopel[m] has quit [Ping timeout: 245 seconds]
TimePath[m] has quit [Ping timeout: 245 seconds]
wilornel[m] has quit [Ping timeout: 245 seconds]
nh2[m] has quit [Ping timeout: 245 seconds]
forex[m] has quit [Ping timeout: 245 seconds]
card[m] has quit [Ping timeout: 245 seconds]
semyon[m] has quit [Ping timeout: 245 seconds]
Singularity[m] has quit [Ping timeout: 245 seconds]
slabity[m] has quit [Ping timeout: 245 seconds]
trubii[m] has quit [Ping timeout: 245 seconds]
Dean[m] has quit [Ping timeout: 245 seconds]
bhipple[m] has quit [Ping timeout: 245 seconds]
GiodAmelio[m] has quit [Ping timeout: 245 seconds]
gbuisson[m] has quit [Ping timeout: 245 seconds]
HamishHutchings[ has quit [Ping timeout: 245 seconds]
danielrf[m] has quit [Ping timeout: 245 seconds]
zurk[m] has quit [Ping timeout: 245 seconds]
BurNiinTRee[m] has quit [Ping timeout: 245 seconds]
tamwile[m] has quit [Ping timeout: 245 seconds]
wak-work[m] has quit [Ping timeout: 245 seconds]
bdimcheff[m] has quit [Ping timeout: 245 seconds]
primeos[m] has quit [Ping timeout: 245 seconds]
tosh[m] has quit [Ping timeout: 245 seconds]
edef[m] has quit [Ping timeout: 245 seconds]
hl[m] has quit [Ping timeout: 245 seconds]
malteof[m] has quit [Ping timeout: 245 seconds]
<infinisil>
Oh
emil1234[m] has quit [Ping timeout: 256 seconds]
ninjarai4[m] has quit [Ping timeout: 256 seconds]
fighterhero[m] has quit [Ping timeout: 256 seconds]
grahamc[m]1 has quit [Ping timeout: 256 seconds]
colmeka[m] has quit [Ping timeout: 256 seconds]
manveru[m] has quit [Ping timeout: 256 seconds]
hendrik[m]1 has quit [Ping timeout: 256 seconds]
octalsrc[m] has quit [Ping timeout: 256 seconds]
chreekat[m] has quit [Ping timeout: 256 seconds]
Obscurity[m] has quit [Ping timeout: 256 seconds]
pauricthelodger[ has quit [Ping timeout: 256 seconds]
felipeac[m] has quit [Ping timeout: 256 seconds]
rihardsk[m] has quit [Ping timeout: 256 seconds]
reactormonk[m] has quit [Ping timeout: 256 seconds]
nmikhailov[m] has quit [Ping timeout: 256 seconds]
midchildan[m] has quit [Ping timeout: 256 seconds]
AndrewMiloradovs has quit [Ping timeout: 256 seconds]
davidak[m] has quit [Ping timeout: 256 seconds]
cornu[m]1 has quit [Ping timeout: 256 seconds]
lycium[m] has quit [Ping timeout: 256 seconds]
ivanfon[m] has quit [Ping timeout: 256 seconds]
mudri[m] has quit [Ping timeout: 256 seconds]
ArtemVorotnikov[ has quit [Ping timeout: 256 seconds]
bendlas[m] has quit [Ping timeout: 256 seconds]
telent[m] has quit [Ping timeout: 256 seconds]
Linus[m] has quit [Ping timeout: 256 seconds]
Drakonis[m] has quit [Ping timeout: 256 seconds]
adisbladis[m] has quit [Ping timeout: 256 seconds]
aramiscd[m] has quit [Ping timeout: 256 seconds]
Wysteriary[m] has quit [Ping timeout: 256 seconds]
Florian[m] has quit [Ping timeout: 256 seconds]
philipp[m] has quit [Ping timeout: 256 seconds]
herzmeister[m] has quit [Ping timeout: 256 seconds]
cornu[m] has quit [Ping timeout: 256 seconds]
<dhess>
clever: Yeah, but without some programmatic safeguards, I don't trust myself not to make a mistake.
roberth has quit [Ping timeout: 260 seconds]
MichaelEden[m] has quit [Ping timeout: 260 seconds]
admintgs[m] has quit [Ping timeout: 260 seconds]
nickdshsadhkas[m has quit [Ping timeout: 260 seconds]
Albtrz[m] has quit [Ping timeout: 260 seconds]
mathis[m] has quit [Ping timeout: 260 seconds]
ldesgoui[m] has quit [Ping timeout: 260 seconds]
dpetranek[m] has quit [Ping timeout: 260 seconds]
danbst[m] has quit [Ping timeout: 260 seconds]
jgl[m] has quit [Ping timeout: 260 seconds]
shd[m] has quit [Ping timeout: 260 seconds]
das-g[m] has quit [Ping timeout: 260 seconds]
rycee[m] has quit [Ping timeout: 260 seconds]
DanielSchfer[m] has quit [Ping timeout: 260 seconds]
techtangents[m] has quit [Ping timeout: 260 seconds]
praticamentetild has quit [Ping timeout: 260 seconds]
leftfold[m] has quit [Ping timeout: 260 seconds]
sargon[m] has quit [Ping timeout: 260 seconds]
hw9891[m] has quit [Ping timeout: 260 seconds]
ayyjayess[m] has quit [Ping timeout: 260 seconds]
dkellner[m] has quit [Ping timeout: 260 seconds]
nyanloutre[m] has quit [Ping timeout: 260 seconds]
mica[m] has quit [Ping timeout: 260 seconds]
k0d3fr34k[m] has quit [Ping timeout: 260 seconds]
AntonLatukha[m] has quit [Ping timeout: 260 seconds]
AhmedOmar[m] has quit [Ping timeout: 260 seconds]
Sorbet[m] has quit [Ping timeout: 260 seconds]
jameshjacksonjr[ has quit [Ping timeout: 260 seconds]
attero[m] has quit [Ping timeout: 260 seconds]
smrtak[m] has quit [Ping timeout: 260 seconds]
oknf[m] has quit [Ping timeout: 260 seconds]
uvnikita[m] has quit [Ping timeout: 256 seconds]
rnkch[m] has quit [Ping timeout: 256 seconds]
Bugworm[m] has quit [Ping timeout: 256 seconds]
have-quick[m] has quit [Ping timeout: 256 seconds]
moredhel[m] has quit [Ping timeout: 256 seconds]
Noughtmare[m] has quit [Ping timeout: 256 seconds]
mith[m] has quit [Ping timeout: 256 seconds]
ms[m]1 has quit [Ping timeout: 256 seconds]
hedning[m] has quit [Ping timeout: 256 seconds]
devr[m] has quit [Ping timeout: 256 seconds]
Seeker[m] has quit [Ping timeout: 256 seconds]
YegorTimoshenko[ has quit [Ping timeout: 256 seconds]
crystalgamma[m] has quit [Ping timeout: 256 seconds]
peel[m] has quit [Ping timeout: 256 seconds]
sgk[m] has quit [Ping timeout: 256 seconds]
asp[m] has quit [Ping timeout: 256 seconds]
JaakkoLuttinen[m has quit [Ping timeout: 256 seconds]
v0id72[m] has quit [Ping timeout: 260 seconds]
gudea[m] has quit [Ping timeout: 260 seconds]
vskilet[m] has quit [Ping timeout: 260 seconds]
bobvanderlinden_ has quit [Ping timeout: 260 seconds]
cryptobilly[m] has quit [Ping timeout: 260 seconds]
nico202[m]1 has quit [Ping timeout: 260 seconds]
srid[m] has quit [Ping timeout: 260 seconds]
lordfluffywobble has quit [Ping timeout: 260 seconds]
buzzmaster[m] has quit [Ping timeout: 260 seconds]
freusque[m] has quit [Ping timeout: 260 seconds]
EB[m] has quit [Ping timeout: 260 seconds]
goibhniu[m] has quit [Ping timeout: 260 seconds]
PlasmaStrike[m] has quit [Ping timeout: 260 seconds]
mcatis[m] has quit [Ping timeout: 260 seconds]
urien1[m] has quit [Ping timeout: 260 seconds]
stigmergik[m] has quit [Ping timeout: 260 seconds]
Pneumaticat[m] has quit [Ping timeout: 260 seconds]
desttinghim[m] has quit [Ping timeout: 260 seconds]
xnaveira[m] has quit [Ping timeout: 260 seconds]
ProofTechnique[m has quit [Ping timeout: 260 seconds]
spacekitteh[m] has quit [Ping timeout: 260 seconds]
dtz[m] has quit [Ping timeout: 260 seconds]
comphez[m] has quit [Ping timeout: 260 seconds]
<sphalerite>
whoosh
<clever>
and we are getting matrixed again
daftect[m] has quit [Ping timeout: 276 seconds]
d3rNarr[m] has quit [Ping timeout: 276 seconds]
MaJoe[m] has quit [Ping timeout: 276 seconds]
Khorne[m]1 has quit [Ping timeout: 276 seconds]
stekke[m] has quit [Ping timeout: 276 seconds]
dadadus[m] has quit [Ping timeout: 276 seconds]
PeterRomfeld[m] has quit [Ping timeout: 276 seconds]
spring322[m] has quit [Ping timeout: 276 seconds]
AdamSlack[m] has quit [Ping timeout: 276 seconds]
Dezgeg[m] has quit [Ping timeout: 276 seconds]
yochai[m] has quit [Ping timeout: 276 seconds]
fearlessKim[m] has quit [Ping timeout: 276 seconds]
Orbstheorem[m] has quit [Ping timeout: 276 seconds]
PeterHoeg[m] has quit [Ping timeout: 276 seconds]
kainospur[m] has quit [Ping timeout: 276 seconds]
thra11[m] has quit [Ping timeout: 276 seconds]
joh[m] has quit [Ping timeout: 276 seconds]
happyente[m] has quit [Ping timeout: 276 seconds]
sevanspowell[m] has quit [Ping timeout: 276 seconds]
YuFanLovezYou[m] has quit [Ping timeout: 276 seconds]
olejorgenb[m] has quit [Ping timeout: 276 seconds]
Leon[m] has quit [Ping timeout: 276 seconds]
atopuzov[m] has quit [Ping timeout: 276 seconds]
greska[m] has quit [Ping timeout: 276 seconds]
puffnfresh[m] has quit [Ping timeout: 276 seconds]
mgttlinger[m] has quit [Ping timeout: 276 seconds]
dash[m] has quit [Ping timeout: 276 seconds]
htafdwes[m] has quit [Ping timeout: 276 seconds]
equalunique[m] has quit [Ping timeout: 276 seconds]
Dt[m] has quit [Ping timeout: 276 seconds]
aspiwack[m] has quit [Ping timeout: 276 seconds]
mankyKitty[m] has quit [Ping timeout: 276 seconds]
EuAndreh[m] has quit [Ping timeout: 276 seconds]
<infinisil>
clever: There are only opencl headers though
<clever>
infinisil: then you need to find the derivation that includes the libs, and add it to buildInputs
agjacome has joined #nixos
<dhess>
I've mostly removed secrets from my builds now. There are still a few things that remain, though.
<infinisil>
Oh right, libs != headers
agjacome has quit [Client Quit]
wpcarro has quit [Ping timeout: 244 seconds]
__monty_1 has quit [Quit: leaving]
sellout- has quit [Ping timeout: 260 seconds]
<infinisil>
NIX_LDFLAGS might be it
<clever>
yeah, seperate one for compile and link
wpcarro has joined #nixos
sellout- has joined #nixos
wpcarro has quit [Ping timeout: 276 seconds]
<infinisil>
clever: Um, could it be that I need to use a special gcc to honor these env vars?
<clever>
infinisil: let me confirm the names
<infinisil>
The gcc in `nix-shell -p gcc` works just fine, but using the gcc directly fails
<clever>
infinisil: and i dont think a PR will be accepted with storepaths in it, so just manually paste the fetchFromGitHub in for now?
<infinisil>
It will get overridden by the default.nix
cops is now known as onon
<infinisil>
I guess it is a bit ugly
erasmas has quit [Quit: leaving]
kerrhau has quit [Read error: Connection reset by peer]
NightTrain has joined #nixos
<elvishjerricco>
dhess: Is it even possible to use Nix's `self: super:` pattern with `dhall`? Isn't `dhall` strict?
<dhess>
elvishjerricco: Hmm that's interesting, I haven't considered that.
agjacome has quit [Ping timeout: 260 seconds]
<dhess>
dhall-nix is just generating .nix files though, I don't think it's intended to do what nixpkgs does. So I'm imaginging using it as a nicer way to do Nix programming.
<elvishjerricco>
dhess: I can't imagine doing nix programming without `self: super:` though :P
<dhess>
elvishjerricco: I write a bunch of NixOS modules and none of those use self or super.
sbdchd has joined #nixos
<elvishjerricco>
dhess: A NixOS module *is* a `self:` pattern, albeit no `super`
<infinisil>
dhess: Actually, all of nixpkgs packages are done through layers of overlays
<infinisil>
See the bottom of that file where they are combined
stranger___ has quit [Quit: Connection closed for inactivity]
sbdchd has quit [Ping timeout: 260 seconds]
<dhess>
elvishjerricco: well for example, anything that iterates over the module system's types.* (and possibly large portions of pkgs.lib) could be done in Dhall, no?
statusbot has joined #nixos
<dhess>
so potentially you could replace pkgs.lib with a type-checked Dhall-to-Nix equivalent standard library
<neonfuz>
Any way to easily turn on sandboxing just for one build?
<infinisil>
neonfuz: --option sandbox true
<neonfuz>
k thanks lol
<dhess>
and using lib and types and walking over reasonably deeply-nested data structures is about 80% of what my NixOS modules do
<dhess>
and it would be really nice to have a real type system for that because I get it wrong all the time, and have to wait for nix-build to evaluate the whole complicated mess before I get any feedback
<johnw>
dhess: perhaps hnix could help too, but be more integrated with nixpkgs
<johnw>
dhess: it has a type checker now, although it's fairly liberal at the moment (for lack of annotations()
<dhess>
johnw: well with hnix I think now you're talking about being able to replace the whole ball of wax :)
<johnw>
I want to keep nixpkgs
<dhess>
but dhall could do the configuration bits that it's good at
<johnw>
that's like 90% of the wax
<dhess>
Is your goal to be able to point hnix and nixpkgs as-is and ask it to build something?
AndrewMiloradovs has joined #nixos
comphez[m] has joined #nixos
unlmtd[m] has joined #nixos
atopuzov[m] has joined #nixos
cornu[m] has joined #nixos
jerengie[m] has joined #nixos
<johnw>
yep
dpetranek[m] has joined #nixos
mirlur[m] has joined #nixos
ProofTechnique[m has joined #nixos
telent[m] has joined #nixos
gbuisson[m] has joined #nixos
ahbnr[m] has joined #nixos
WilliamHamilton[ has joined #nixos
nyanloutre[m] has joined #nixos
jesper[m] has joined #nixos
sevanspowell[m] has joined #nixos
pauricthelodger[ has joined #nixos
PascalBach[m] has joined #nixos
abbafei[m] has joined #nixos
Drakonis[m] has joined #nixos
indefini[m] has joined #nixos
tokudan[m] has joined #nixos
demyan[m] has joined #nixos
Leon[m] has joined #nixos
mankyKitty[m] has joined #nixos
tfc[m] has joined #nixos
regnat[m] has joined #nixos
roberth has joined #nixos
primeos[m] has joined #nixos
Bruno[m] has joined #nixos
U[m] has joined #nixos
codyopel[m] has joined #nixos
aspiwack[m] has joined #nixos
chominist[m] has joined #nixos
lycium[m] has joined #nixos
tehnix[m] has joined #nixos
Olinkl[m] has joined #nixos
danielrf[m] has joined #nixos
HamishHutchings[ has joined #nixos
YegorTimoshenko[ has joined #nixos
have-quick[m] has joined #nixos
WilliamGHatch[m] has joined #nixos
uvnikita[m] has joined #nixos
freeman42x[m] has joined #nixos
leftfold[m] has joined #nixos
stigmergik[m] has joined #nixos
Linus[m] has joined #nixos
mith[m] has joined #nixos
TimePath[m] has joined #nixos
hl[m] has joined #nixos
Minijackson[m] has joined #nixos
rihardsk[m] has joined #nixos
Noughtmare[m] has joined #nixos
aniketd[m] has joined #nixos
Seeker[m] has joined #nixos
wervenyt[m] has joined #nixos
ipj[m] has joined #nixos
hendrik[m]1 has joined #nixos
adisbladis[m] has joined #nixos
wak-work[m] has joined #nixos
chreekat[m] has joined #nixos
Kallegro[m] has joined #nixos
<dhess>
wow that's pretty ambitious :)
cryptobilly[m] has joined #nixos
bdimcheff[m] has joined #nixos
das-g[m] has joined #nixos
bobvanderlinden_ has joined #nixos
peel[m] has joined #nixos
Bugworm[m] has joined #nixos
xobroll[m] has joined #nixos
ArdaXi[m] has joined #nixos
nmikhailov[m] has joined #nixos
puffnfresh[m] has joined #nixos
davidarmatrixorg has joined #nixos
moredhel[m] has joined #nixos
xnaveira[m] has joined #nixos
timokau[m] has joined #nixos
sudoreboot[m] has joined #nixos
octalsrc[m] has joined #nixos
shd[m] has joined #nixos
rnhmjoj[m] has joined #nixos
rycee[m] has joined #nixos
mudri[m] has joined #nixos
thra11[m] has joined #nixos
grahamc[m]1 has joined #nixos
<clever>
and matrix is striking again!
desttinghim[m] has joined #nixos
jgl[m] has joined #nixos
aiyubkhan[m] has joined #nixos
Sorbet[m] has joined #nixos
greska[m] has joined #nixos
fishy[m] has joined #nixos
olejorgenb[m] has joined #nixos
ivanfon[m] has joined #nixos
zaphar_ps[m] has joined #nixos
efx[m] has joined #nixos
bluewolfy[m] has joined #nixos
thefloweringash[ has joined #nixos
YuFanLovezYou[m] has joined #nixos
tamwile[m] has joined #nixos
ayyjayess[m] has joined #nixos
copumpkin[m] has joined #nixos
fearlessKim[m] has joined #nixos
Elephant454[m] has joined #nixos
patrl[m] has joined #nixos
midchildan[m] has joined #nixos
NickHu[m] has joined #nixos
wilornel[m] has joined #nixos
davidak[m] has joined #nixos
reactormonk[m] has joined #nixos
CoopDot[m] has joined #nixos
ArtemVorotnikov[ has joined #nixos
techtangents[m] has joined #nixos
nh2[m] has joined #nixos
omawnakw[m] has joined #nixos
AlanPearce[m] has joined #nixos
manveru[m] has joined #nixos
happyente[m] has joined #nixos
ngerstle[m] has joined #nixos
sirocyl[m] has joined #nixos
bugabinga[m] has joined #nixos
herzmeister[m] has joined #nixos
yochai[m] has joined #nixos
danbst[m] has joined #nixos
htafdwes[m] has joined #nixos
Florian[m] has joined #nixos
darkmeson[m]1 has joined #nixos
lkjhgfdsa00xxx[m has joined #nixos
Magnap[m] has joined #nixos
DanielSchfer[m] has joined #nixos
<johnw>
and if it fails to evaluate, give you an awesome error message
asp[m] has joined #nixos
joh[m] has joined #nixos
liberdiko[m] has joined #nixos
dkellner[m] has joined #nixos
Dezgeg[m] has joined #nixos
admintgs[m] has joined #nixos
bitmapper[m] has joined #nixos
trubii[m] has joined #nixos
goibhniu[m] has joined #nixos
fighterhero[m] has joined #nixos
spring322[m] has joined #nixos
AdamSlack[m] has joined #nixos
ldesgoui[m] has joined #nixos
Christian[m]7 has joined #nixos
slabity[m] has joined #nixos
Singularity[m] has joined #nixos
mlaskus[m] has joined #nixos
Dan[m]1 has joined #nixos
DenisLehmann[m] has joined #nixos
semyon[m] has joined #nixos
vskilet[m] has joined #nixos
sargon[m] has joined #nixos
Necronian[m] has joined #nixos
Wysteriary[m] has joined #nixos
nico202[m]1 has joined #nixos
Richard[m] has joined #nixos
felipeac[m] has joined #nixos
hedning[m] has joined #nixos
ms[m]1 has joined #nixos
nocent[m] has joined #nixos
nmikhailov[m]1 has joined #nixos
offlinehacker[m] has joined #nixos
edef[m] has joined #nixos
iceTanner[m] has joined #nixos
Obscurity[m] has joined #nixos
trikl[m] has joined #nixos
ninjarai4[m] has joined #nixos
urien1[m] has joined #nixos
bkchr[m] has joined #nixos
BurNiinTRee[m] has joined #nixos
philipp[m] has joined #nixos
AristotleCajetan has joined #nixos
kainospur[m] has joined #nixos
dtz[m] has joined #nixos
jameshjacksonjr[ has joined #nixos
DavidLeung[m] has joined #nixos
BennoFnfstck[m] has joined #nixos
bhipple[m] has joined #nixos
Pneumaticat[m] has joined #nixos
oknf[m] has joined #nixos
hw9891[m] has joined #nixos
tosh[m] has joined #nixos
Dt[m] has joined #nixos
crystalgamma[m] has joined #nixos
darkmeson[m] has joined #nixos
spacekitteh[m] has joined #nixos
Dean[m] has joined #nixos
AhmedOmar[m] has joined #nixos
coorey[m] has joined #nixos
aramiscd[m] has joined #nixos
pierrebeaucamp[m has joined #nixos
AntonLatukha[m] has joined #nixos
equalunique[m] has joined #nixos
sgk[m] has joined #nixos
lordfluffywobble has joined #nixos
PlasmaStrike[m] has joined #nixos
fgaz[m] has joined #nixos
JaakkoLuttinen[m has joined #nixos
mtncoder[m] has joined #nixos
morgib[m] has joined #nixos
funits[m] has joined #nixos
gh0st[m] has joined #nixos
nelag[m] has joined #nixos
malteof[m] has joined #nixos
mica[m] has joined #nixos
TaoHansen[m] has joined #nixos
Zurdo[m] has joined #nixos
petersjt014[m] has joined #nixos
Ralith[m] has joined #nixos
mgttlinger[m] has joined #nixos
bionicmac[m] has joined #nixos
zurk[m] has joined #nixos
mcatis[m] has joined #nixos
r3mfKm[m] has joined #nixos
colmeka[m] has joined #nixos
zdisk[m] has joined #nixos
PeterRomfeld[m] has joined #nixos
musicmatze[m] has joined #nixos
EuAndreh[m] has joined #nixos
devr[m] has joined #nixos
dash has joined #nixos
cornu[m]1 has joined #nixos
forex[m] has joined #nixos
k0d3fr34k[m] has joined #nixos
dywedir[m] has joined #nixos
Khorne[m]1 has joined #nixos
rnkch[m] has joined #nixos
praticamentetild has joined #nixos
GiodAmelio[m] has joined #nixos
bendlas[m] has joined #nixos
attero[m] has joined #nixos
smrtak[m] has joined #nixos
aaronc[m] has joined #nixos
PeterHoeg[m] has joined #nixos
EB[m] has joined #nixos
stekke[m] has joined #nixos
freusque[m] has joined #nixos
mathis[m] has joined #nixos
MaJoe[m] has joined #nixos
MichaelEden[m] has joined #nixos
panther320[m] has joined #nixos
d3rNarr[m] has joined #nixos
buzzmaster[m] has joined #nixos
Hook[m] has joined #nixos
Albtrz[m] has joined #nixos
Adev[m] has joined #nixos
srid[m] has joined #nixos
daftect[m] has joined #nixos
incospicuous[m] has joined #nixos
gudea[m] has joined #nixos
nickdshsadhkas[m has joined #nixos
v0id72[m] has joined #nixos
card[m] has joined #nixos
emil1234[m] has joined #nixos
russiancow[m] has joined #nixos
jack[m]1 has joined #nixos
Phil[m]2 has joined #nixos
Orbstheorem[m] has joined #nixos
<dhess>
do you think Nix+nixpkgs types are well-specified enough to do that with no changes to existing nixpkgs?
dadadus[m] has joined #nixos
<johnw>
no, not for really good error messages
agjacome has joined #nixos
<johnw>
i want typing annotations that specify when a list must be homogenously typed, for example
<dhess>
ok so you are still envisioning some things (e.g., annotations) will be needed
<johnw>
then I can make assumptions about every member
<dhess>
right
<johnw>
when you use hnix --check right now
<johnw>
it just assumes that all types are homogenous, for example
<dhess>
that seems still ambitious but plausible.
<johnw>
all lists*
<johnw>
the typing of attribute sets remains tricky
<johnw>
since the membership itself is sometimes a part of the type
<johnw>
other times, you only care about the types of members
<dhess>
right
<dhess>
good point
<johnw>
hnix starts being as strict as it can, but it backs off quickly
<johnw>
and then there's the soul destroying 'with' construct
<dhess>
I actually take advantage of the "duck typing" of the modules fairly often
<johnw>
which makes static analysis very hard
ericsagnes has joined #nixos
sellout- has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @thoughtpolice pushed to master « foundationdb: bump to 5.2.6, 6.0.2-prelease »: https://git.io/fNWOd
<dhess>
like, I can assign one submodule-type object to another as long as they're more-or-less the same, and/or one of them has default values for the values that aren't provided in the other.
<johnw>
yep
<johnw>
same with matching up argument sets to function parameters
<dhess>
right
<dhess>
yeah that's a better example of course.
<dhess>
johnw: Are you using hnix in production for any of your projects? Even just as a pre-processor/linter?
agjacome has quit [Ping timeout: 276 seconds]
<johnw>
not yet, just as an exploratory debugging tool at the moment
<dhess>
I was just poking around the GitHub repo a few minutes ago actually
<{^_^}>
[nixpkgs] @neonfuz opened pull request #43866 → yaxg: init at 2018-07-20 → https://git.io/fNW3f
<dhess>
I do that (and the dhall-nix repo) every time I'm knee-deep in NixOS module-writing and I'm miserable.
<johnw>
hahaa
<dhess>
"Is this thing working yet? Let's see...."
Fare has joined #nixos
revskill has quit [Ping timeout: 264 seconds]
sellout- has joined #nixos
Tobba has joined #nixos
<johnw>
with help, hnix would work even more... :)
<dhess>
heheh I was also looking at the issues list ;)
<dhess>
maybe I'll spelunk a bit, I could definitely use it.
<johnw>
dhess: very soon (a few weeks) Obsidian Systems will start supporting hnix work by allocating some time from one of their engineers to help me get the whole of nixpkgs evaluating up-to-equivalence with C++ nix
monotux has quit [Ping timeout: 264 seconds]
Guest99618 has joined #nixos
<dhess>
oh wow, cool
katona has quit [Quit: Connection closed for inactivity]
<maurer>
johnw: While I like haskell over C++ as a matter of taste when writing it, is there some benefit to hnix over normal nix?
<maurer>
Is it just intended to be easier to extend? Is there some new trick you've tought it?
<johnw>
maurer: it's just a very natural fit is all
<johnw>
maurer: it's originally meant so that Haskell programmers can easily build custom tooling for the Nix ecosystem
<maurer>
johnw: Also, out of curiosity, is there a reason that the execution method for nix code isn't transpiling it to a subset of haskell? :P
<johnw>
maurer: no reason at all; in fact, it's on the idea board