frankpf has quit [(Ping timeout: 255 seconds)]
python476 has joined #nixos
<clever> gchristensen: is there a simple way to restart a service in launchd like nix-daemon, or shal i just unload and load it?
<clever> gchristensen: i'm trying to add a binary cache on a travis job, and its not reading the new nix.conf
fikse has quit [(Ping timeout: 268 seconds)]
lesce has quit [(Ping timeout: 240 seconds)]
baconicsynergy[m has joined #nixos
indefini has joined #nixos
cornu[m] has joined #nixos
primeos[m] has joined #nixos
sirius[m] has joined #nixos
jyp[m] has joined #nixos
regnat[m] has joined #nixos
berot3[m] has joined #nixos
xj9[m] has joined #nixos
aspiwack[m] has joined #nixos
scott2 has joined #nixos
revoltmedia[m] has joined #nixos
bachp has joined #nixos
NickHu has joined #nixos
Kallegro[m] has joined #nixos
TimePath has joined #nixos
M-liberdiko has joined #nixos
davidar has joined #nixos
mith[m] has joined #nixos
frio[m] has joined #nixos
wak-work[m] has joined #nixos
timclassic has joined #nixos
hendrik[m]1 has joined #nixos
sudoreboot[m] has joined #nixos
ArdaXi[m] has joined #nixos
octalsrc[m] has joined #nixos
copumpkin has joined #nixos
Drakonis[m] has joined #nixos
Exee7uvo[m] has joined #nixos
matrixkrav has joined #nixos
AlanPearce[m] has joined #nixos
Elephant454[m] has joined #nixos
spacekitteh[m] has joined #nixos
herzmeister[m] has joined #nixos
Magnap[m] has joined #nixos
florianjacob has joined #nixos
necronian has joined #nixos
hl has joined #nixos
harlock[m] has joined #nixos
spawnthink[m] has joined #nixos
edef[m] has joined #nixos
thematter[m] has joined #nixos
offlinehacker[m] has joined #nixos
Wysteriary[m] has joined #nixos
bhipple[m] has joined #nixos
Yaniel has joined #nixos
dtz has joined #nixos
bennofs[m] has joined #nixos
benkolera has joined #nixos
pstn has joined #nixos
qrilka[m] has joined #nixos
WinterFox[m] has joined #nixos
Guest26663 has joined #nixos
cwopel has joined #nixos
Sovereign_Bleak has joined #nixos
BurNiinTRee[m] has joined #nixos
sk23[m] has joined #nixos
konfou[m] has joined #nixos
zimbatm has joined #nixos
danielrf has joined #nixos
mtncoder[m] has joined #nixos
dibblego[m] has joined #nixos
musicmatze[m] has joined #nixos
reactormonk[m] has joined #nixos
Ralith has joined #nixos
DIzFer[m] has joined #nixos
sargon[m] has joined #nixos
mdash has joined #nixos
peterhoeg has joined #nixos
bendlas has joined #nixos
dalaing has joined #nixos
jack[m] has joined #nixos
wmertens[m] has joined #nixos
corngood has joined #nixos
adisbladis[m] has joined #nixos
jsv[m] has joined #nixos
JameySharp[m] has joined #nixos
rycee[m] has joined #nixos
lecorpsnoir[m] has joined #nixos
Oo[m] has joined #nixos
seif[m] has joined #nixos
chominist[m] has joined #nixos
trikl[m] has joined #nixos
admin[m] has joined #nixos
StuK[m] has joined #nixos
tommyangelo[m] has joined #nixos
Dezgeg[m] has joined #nixos
myklam[m] has joined #nixos
a123123123[m] has joined #nixos
ycy[m] has joined #nixos
Khorne[m] has joined #nixos
icetan has joined #nixos
etcinit[m] has joined #nixos
eqyiel[m] has joined #nixos
retrry[m] has joined #nixos
fpletz[m] has joined #nixos
mhsjlw[m] has joined #nixos
sziszi[m] has joined #nixos
Kirill[m] has joined #nixos
ninegua[m] has joined #nixos
jlle[m] has joined #nixos
sphalerite has joined #nixos
alain[m] has joined #nixos
taktoa[m] has joined #nixos
sphalerite is now known as Guest62794
<clever> spamage!
koserge has joined #nixos
bennofs has quit [(Ping timeout: 260 seconds)]
<Infinisil> clever: There certainly is, I can't remember exactly but I think it should be launchctl restart <service name>
<Infinisil> I know there is launchctl stop and start
<clever> Unrecognized subcommand: restart
<clever> kickstart Forces an existing service to start.
<clever> DE302:~ root# launchctl kickstart -k org.nixos.nix-daemon
<clever> Usage: launchctl kickstart [-k] [-p] <service-target>
nh2 has left #nixos []
<clever> Infinisil: what else could the service-target refer to?
<Infinisil> Hmm
<Infinisil> Maybe this doesn't work with services, just targets
<Infinisil> No that shouldn't be
<slack1256> can I get a package description for nix-env -qa ?
<Guest62794> So... Anyone care to invite me to nixcon? :D
jtojnar_ has quit [(Ping timeout: 260 seconds)]
<clever> Guest62794: it looks like matrix isnt configured to auto-identify upon connecting
<Guest62794> aw bummer
* Guest62794 is actually sphalerite
<Guest62794> slack1256: I think adding --json will give you a JSON object for each matched package, including its description. Not sure if that will suit your purpose?
<Guest62794> you can also use nox, which allows searching packages based on name and description
<Guest62794> Meh, I also can't find the freenode IRC bridge chat that would allow me to change my name back
koserge has quit [(Ping timeout: 246 seconds)]
<clever> Guest62794: what about just /nick sphalerite
<clever> try saying that in the channel?
frankpf has joined #nixos
<Guest62794> I think that will go into the channel
<Guest62794> huh, nope
<Guest62794> did it work?
<clever> nope
<Infinisil> Guest62794: How about /nick before connecting?
<Guest62794> It's meant to be possible by sending !nick <name> to the app service, but that just gets me "Failed to change nick: err_unavailresource"
<Guest62794> it's not because the nick is in use, I tried GHOSTing it with nickserv
nixer has joined #nixos
<Infinisil> Guest62794: I guess you'll have to just accept your new identity, "Guest62794"
<Guest62794> Infinisil: I don't explicitly connect, I'm permanently connected via Matrix
<Guest62794> (as permanently as the bridge works, that is)
<clever> Guest62794: matrix went down about an hour ago, and mass-disconnected
Guest62794 is now known as sphalerite1
<clever> then mass-joined, and your new connection couldnt auto-identify
<sphalerite1> hm, well that's a start
<sphalerite1> I guessed as much
takle has quit [(Remote host closed the connection)]
<sphalerite1> So yeah, any top-25 contributors want to invite me to nixcon? :D
<Enzime> what's nixcon
<Infinisil> I have an idea for nixpkgs/nixos: An option to assign ports to services (let's call it networking.ports for now). Every service that requires a port sets the one it uses (networking.ports."80" = <servicename>), so that when multiple ones want to use the same one the configuration can detect that and error at eval time
<clever> Infinisil: sounds handy, ive seen one or 2 users having weird problems in here because they didnt notice that
* Infinisil lifts his hand
<clever> and far too many things assume 8080 is free
<Infinisil> sphalerite1: I recently learned that it's not public by default :(
nh2 has joined #nixos
mudri` has quit [(Ping timeout: 260 seconds)]
<Infinisil> Not sure if I'd want to go though, I'm usually not the kind of person to.. leave the house xD
<peterhoeg> infinisil: great idea. We have "mkEnableOption" today so I guess having "mkPortOption" that sets things the way you propose would be the way forward.
wigust has quit [(Ping timeout: 240 seconds)]
<Infinisil> peterhoeg: Good idea!
<Infinisil> I'm not sure about the number string as an attribute though, it's a bit ugly
<peterhoeg> infinisil: ping me in your PR - I'm curious to see! ;-)
<Infinisil> peterhoeg: If I do one, should be doing other stuff right now (exams are soon)
<peterhoeg> Exams, schmexams...
kiloreux has quit [(Ping timeout: 260 seconds)]
<peterhoeg> This is way more fun!
<Infinisil> peterhoeg: It is, and that's the problem, I'm doing nix/nixos all the time!
<Infinisil> For some reason I have a ton of motivation for this, but none for learning, even though I'm studying CS
<sphalerite1> Infinisil: well in that case I'll be glad to take the place you would have ;)
<sphalerite1> (at nixcon)
<Infinisil> sphalerite1: I don't have one!
<sphalerite1> learning nix is learning!
<Infinisil> I've only very recently started and contributing
<Infinisil> started using nix/nixos*
<sphalerite1> how recently is very recently?
<sphalerite1> I started back in October or November I think
<Infinisil> Hmm, few months I guess, not *very* recently
<Infinisil> Oh My God, I just booted into macOS... in NixOS..
<clever> how? heh
<Infinisil> macOS which is installed on an external disk connected via usb
<Infinisil> Using VirtualBox
<clever> ah
<Infinisil> clever: So, you need to know something about macOS?
<clever> i have tried to run hackintosh before, and ran into issues with a lack of AMD support in the mac kernel, and a lack of vm extensions on all of my intel cores
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth opened pull request #27785: xrdp: abs path to garbage directory (master...xrdp-0.9.3-1) https://git.io/v78ey
NixOS_GitHub has left #nixos []
<Infinisil> Yeah, not well supported
<clever> Infinisil: something i have planned in the distance, is to make a nixos-like image based on XNU
<clever> something that runs an opensource build of the darwin kernel, with a custom launchd, that only has sshd and nix-daemon
<pie__> nix-build man page says " The result of the build is automatically registered as a root of the Nix garbage collector. This root disappears automatically when the result symlink is deleted or renamed. So don’t rename the symlink."
<pie__> does that mean it wont be able to garbage collect it?
<clever> pie__: you cant GC the result until the result symlink is deleted
<pie__> or that it will even if you dont want it to after having renamed it/etc
<sauyon> it'll be gc'd if you delete it
<clever> if you rename or move the result symlink, it has the same effect as deleting it
<pie__> ok that makes sense
<sauyon> or rename it
<pie__> thanks
<clever> lrwxrwxrwx 1 root root 22 Dec 1 2016 /nix/var/nix/gcroots/auto/v8lp8ld74g7lyvhkv7pvmy6dmmxx9ffl -> /home/clever/ratpoison
<clever> pie__: indirect roots work via symlinks in here, that point to the "result" links, which point back into the store
<Infinisil> clever: oh that would be nice
<clever> Infinisil: then you have a fully license free build slave, that is capable of running and building mach-o binaries
deep-book-gk has joined #nixos
<Infinisil> pie__: But you could make your own indirect gcroot symlink with any name
<pie__> nix-build -I unstable=/nix/var/nix/profiles/per-user/paprika/channels/unstable shell.nix results in : variable $src or $srcs should point to the source
<clever> yeah, the above example is from "nix-build -A ratpoison -o ratpoison '<nixpkgs>'"
<pie__> i didnt find anything in the man page, what did i screw up again?
deep-book-gk has left #nixos []
<Infinisil> pie__: You didn't set the src attribute in you derivation
<clever> nix-build will try to build a derivation, but that name implies its only for use with nix-shell
<clever> and the src is missing, so it has no way to build it
<pie__> i guess nix-build requires a different approach: https://gist.github.com/22459/e3fc2306cc3dab819fd6367e016fb27f
<pie__> *different approach from
<clever> pie__: for nix-build, you would probably just want: with import <unstable> {}; python36.withPackages (ps: [ps.toolz ps.ipython])
jbaum98 has quit [(Quit: Connection closed for inactivity)]
<pie__> clever, ahh what the heck? :/
<clever> ccenv is just a dummy derivation that depends on a special python, but cant build anything
<clever> so nix-build cant build it
slack1256 has quit [(Ping timeout: 246 seconds)]
<Infinisil> I assume booting my mac disk on a non-mac but intel machine doesn't work so easily?
<Infinisil> Because performance on this laptop is.. pretty bad
<Infinisil> Within VirtualBox that it
<Infinisil> is*
<pie__> hm ok
<pie__> clever, man this stuff feels weird but i think i get it.
<pie__> using buildinputs to get stuff feels like a hack in that case
slack1256 has joined #nixos
<sauyon> wouldn't it be really easy to write a wrapper around it
<Infinisil> sauyon: Around what?
<sauyon> mkderivation
<gchristensen> Infinisil: hackintosh can be quite tricky
zgrep has joined #nixos
lambdamu has joined #nixos
ison111 has quit [(Ping timeout: 240 seconds)]
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
<Infinisil> I'm getting this warning when starting virtualbox on the command line: VirtualBox: supR3HardenedVerifyFileFollowSymlinks: Failed to resolve the real path '/run/opengl-driver/lib/dri/tls/i965_dri.so': No such file or directory (2)
lambdamu_ has quit [(Ping timeout: 260 seconds)]
<Infinisil> Maybe that's why it's so slow
<gchristensen> wait what are you doing? you're running vbox inside vbox?
<Infinisil> gchristensen: Nah, from the command line `VirtualBox`
<gchristensen> what is your host OS?
<Infinisil> nixos
<gchristensen> and osx inside vbox?
jgertm has quit [(Ping timeout: 255 seconds)]
<Infinisil> gchristensen: Yup
<gchristensen> gotcha
<Infinisil> And the osx display is only like 1024x640..
<clever> if [ "x$OSTYPE" == xdarwin16 ]; then sudo launchctl stop org.nixos.nix-daemon ; sudo launchctl start org.nixos.nix-daemon ; fi
<clever> gchristensen: how else might i detect darwin, and restart the nix daemon?
<Infinisil> LGTM
<clever> /Users/travis/.travis/job_stages: line 57: {:echo os=: command not found
<clever> - echo os: $OSTTPE
<clever> has yaml eaten my command again?
<Infinisil> clever: Is it ostTpe?
<clever> i think yaml is treating the : specially
<clever> which breaks everything
nixer has quit [(Quit: Page closed)]
<Infinisil> Can't you just enclose it in ""?
<Guest26663> Uname will show Darwin of course
<clever> $OSTYPE also contains darwin
<sauyon> lack of /etc/os-release?
<sauyon> after checking for other things...
<sauyon> that's probably terrible though
jtojnar_ has joined #nixos
<clever> oh, i also mis-spelled type
<Infinisil> clever: I can run some commands for you on osx to test it
s33se has joined #nixos
<clever> Infinisil: as can i, the problem is getting yaml to not scramble them
<Infinisil> Ah
<Infinisil> clever: Why are you using Travis anyways? :P (I assume its travis)
<clever> i'm updating a travis script to use nix more heavily, and i need to restart nix-daemon in travis to make sure it uses a hydra cache
gnuhurd has quit [(Ping timeout: 240 seconds)]
mbrgm has quit [(Ping timeout: 260 seconds)]
<Infinisil> I see
s33se_ has quit [(Ping timeout: 260 seconds)]
<sauyon> so when is there going to be a CI that runs exclusively on nix expressions
<clever> Infinisil: i think its working now, watching it build...
<clever> sauyon: hydra is the closest thing right now
<Infinisil> What do you mean by closest thing? What can hydra not do?
mbrgm has joined #nixos
<clever> impure things, and some of its config is json or a weird xml / ini mix
<Infinisil> Ah, well that's not very nice indeed
<sauyon> soon™
ison111 has joined #nixos
<clever> Infinisil: i now have binary cache working on travis darwin again: https://github.com/input-output-hk/cardano-sl/pull/1192/files#diff-354f30a63fb0907d4ad57269548329e3R33
hellrazo1 has joined #nixos
<Infinisil> nice
hellrazor has quit [(Ping timeout: 260 seconds)]
<Infinisil> How are these VirtualBox Guest additions supposed to be installed with nixos?
<Infinisil> I set virtualisation.virtualbox.guest = true, but it's not doing anything
<Infinisil> VirtualBox says guest additions are not installed
<Infinisil> Ohh, I should restart the virtualbox service
<Infinisil> And I'll reboot because why not
<Infinisil> brb
Infinisil has quit [(Quit: leaving)]
b has quit [(Remote host closed the connection)]
dhess has joined #nixos
slack1256 has quit [(Remote host closed the connection)]
Infinisil has joined #nixos
<Infinisil> Nah still couldn't find the guest additions iso or whatever
<dalaing> hmm, I appear to have done something bad to my hydra instance while trying to fix up something related to the non-determinism in GHC 7.10.3
<Infinisil> I read that this should allow me to resize the screen
<sauyon> wait, this is a nixos host right
<Infinisil> sauyon: Yes
<dalaing> does anyone have any quick tips about how to clean a hydra instance up?
<sauyon> so you're trying to install guest additions into the osx machine?
<clever> dalaing: what is wrong with it?
<sauyon> they don't exist afaik
<Infinisil> sauyon: Ohh
<clever> sauyon: the vm's from macincloud.com have vbox extensions on them
<clever> -r--r--r-- 1 root wheel 935B Aug 22 2014 /Library/LaunchAgents/com.vmware.launchd.vmware-tools-userd.plist
<sauyon> ah
[0__0] has joined #nixos
<sauyon> they're not official then
<sauyon> I think?
<clever> i cant say where that came from, but i think that manages copy/paste into a vm
<dalaing> and now I'm getting this:
* dalaing sent a long message: dalaing_2017-07-31_02:03:04.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/hnEtTFKUkqVhhZuEzuOUGjzz>
<clever> dalaing: what does nix-store --delete /nix/store/y0k23pgw7j0p3k1bx6q3w50ihslf8gs7-pandoc-1.19.2.1 say?
<Infinisil> Oh my god, VirtualBox is abusing the ~/.config directory..
<sauyon> ...at least it *uses* the .config directory
<dalaing> error: cannot delete path ‘/nix/store/y0k23pgw7j0p3k1bx6q3w50ihslf8gs7-pandoc-1.19.2.1’ since it is still alive
<Infinisil> `du -d 0 -h ~/.config/VirtualBox`
<Infinisil> 58M/home/infinisil/.config/VirtualBox
<clever> dalaing: nix-store --query --roots /nix/store/y0k23pgw7j0p3k1bx6q3w50ihslf8gs7-pandoc-1.19.2.1
<sauyon> ahahaha
<Infinisil> 58 Megabytes
<Infinisil> ...
<sauyon> no that's fine
<Infinisil> That's not config
<sauyon> it's obviously all config
<Infinisil> Oh sure
<Infinisil> Like the guest additions iso it just downloaded into .config
<clever> Infinisil: .config/chromium is 433mb
<sauyon> maybe they're just using a hyper-inefficient storage method
<sauyon> hyper xml
<sauyon> !!
<Infinisil> Damn
<sauyon> but yeah
<clever> Infinisil: and sublime has 10 backups of something, that each include a 4.5mb eval.gif
<sauyon> getting people to follow freedesktop specifications is completely impossible
<Infinisil> VirtualBox has its logs in .config..
<Infinisil> sauyon: Some can do it
<clever> sublime has a backup, cache, index, and packages in its .config
fikse has joined #nixos
* dalaing sent a long message: dalaing_2017-07-31_02:06:34.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/msVRNViVYDsBVJNOYobjRwZs>
<dalaing> thanks for the help by the way
<clever> dalaing: is the blog profile at generation 34 right now?
<clever> dalaing: what does /nix/var/nix/profiles/blog point to?
<dalaing> it points to blog-34-link
[0__0] has quit [(Remote host closed the connection)]
<sauyon> is there really no better way for matrix to handle long messages lol
<dalaing> ah - whoops - I'm used to irccloud and the auto pastebin goodness
<clever> dalaing: you will need to first remove pandoc from the blog's profile, and after confirming blog no longer points to blog-34-link, you can delete blog-34-link
[0__0] has joined #nixos
<sauyon> it's not really your fault :P
<clever> dalaing: then go into the hydra config for the blog project, and set the keep-number to 0, and "sudo systemctl start hydra-update-gc-roots.service"
<clever> dalaing: then the previous --query --roots should say none, and you can --delete the corrupt path
<dalaing> sweet - thanks
<dalaing> got to duck out for lunch now, but I'll give that a go
<clever> then you will want to turn the keep-number back up, so things cant get GC'd
romildo has joined #nixos
<dalaing> I can do without the blog profile at the moment as well - it's only being used by hail to deploy the blog when it updates on hydra
<romildo> What packages should be in nix-shell in order to compile C++ with clang4 ?
<dalaing> anyhow, I'm going to grab food first, don't want to mess with this stuff while I'm hungry :)
<Infinisil> Ohh, that little script I wrote recently to block ips instead of using fail2ban has worked wonderfully: 111 blocked ips
<Infinisil> All that with a few lines of bash
<sauyon> to do?
<Infinisil> sauyon: Block ips that were constantly getting denied by named
<Infinisil> After about 12 hours of frustration with fail2ban I wrote a bash script in 5 minutes that did what I wanted
<sauyon> lol
<Infinisil> I kept getting requests for cpsc.gov
<sauyon> huh
<Infinisil> I've seen someone ask for how to do this online, and he also got these requests for cpsc.gov. I checked a few ips, and of course they're all from China
<sauyon> is it an internal site or something?
<sauyon> wonder what that's about
<sauyon> ...oh you need to use www rofl
<Infinisil> sauyon: I feel like it's some attack or something for bad configured dns servers, dunno. The requests were in bursts of 5-15 requests in a second, about 5 different ips per hour
<sauyon> interesting
<tilpner> Is /nix/var/nix/db supposed to be read-only in a FHSUserEnv?
<Infinisil> sauyon: Ohh, indeed
<clever> it sounds like those chinese IP's your seeing, are actually the victims, with a spoofed source ip
<clever> and if your dns server was an open recursive resolver, you would join the DDoS, by sending a 4kb reply
<erictapen> I just found out, that InfluxDB has not been updated for almost a year now. Does anyone of you use that DB? What would you suggest for time series with collectd?
<clever> so no level of source based blocking will stop it, you are blocking based on the intended target, not the real source
<Infinisil> clever: But that doesn't explain why they come in bursts, and always the same few ips over hours
<sauyon> well it would be that they're ddosing that ip
<clever> it could also be that they are just testing you, to see if you can join in a later attack
<Infinisil> clever: I could just block every ip I know I won't be connecting from
<sauyon> honestly wouldn't the best solution be to just prevent anybody from querying cpsc.gov :P
<Infinisil> Ohh, but it's running the dns server for my website..
<Infinisil> duh
<Infinisil> sauyon: I don't know how to set up bind for that, but right now I'm just grepping the logs for cpsc.gov and blocking these ips, so it's pretty much the same :)
<sauyon> lol
<sauyon> that
<sauyon> is super janky
<sauyon> I like it
<Infinisil> It worked 100x better than fail2ban, sooo
<sauyon> honestly though self-hosting dns seems like more effort than it's worth
<Infinisil> sauyon: I don't have to go to namecheap.com anymore and input the record into a shitty user-interface
<Infinisil> I can just edit a single file on the server itself, super easy
<sauyon> google has a pretty nice dns interface :P
<Infinisil> Didn't know google did that
<Infinisil> Well I shouldn't be suprised, there's hardly anything google doesn't do..
fikse has quit [(Ping timeout: 260 seconds)]
<sauyon> heh
<Infinisil> Oh and btw, this is the script that does the blocking: https://gist.github.com/Infinisil/bfa5edd44b5521757dbe09dfd5e93fb8
<tilpner> Now go and access cpsc.gov with your browser...
<Infinisil> Heh
<Infinisil> I wouldn't be locked out forever, my ISP changes its public ip sometimes
<Infinisil> It's so nice when journalctl doesn't spew messages all over the place
<sauyon> when does it not lol
<Infinisil> It doesn't for me :D
<Infinisil> Only a few messages per minute
jbaum98 has joined #nixos
<sauyon> woah
<sauyon> my chrome console logs to systemd?
<tilpner> Firefox does too
<tilpner> :/
<dash> logging is important
<sauyon> sure
<Infinisil> Like the js console? When i type something there?
<dash> ;)
<simpson> Reading the logs, not always important. But having the logs, very important.
<sauyon> reading js logs
<clever> i think chrome is only logging to stdout
<sauyon> never important
<clever> and if you launch something from the xfce panel and such, stdout goes to the same stdout as the display manager
<sauyon> that would make sense
<clever> which is the journal for the display-manager.service unit
<sauyon> didn't know dmenu did that
<sauyon> oh random note
<sauyon> display-manager (lightdm) was complaining about the lack of /bin/rm at some piont
<dhess> I deploy to a bunch of machines using NixOps. Most of them run a service or two written in Haskell. I'd like to 'dontHaddock' pretty much everything on those deployments; they're servers and I don't need local Haskell package docs installed.
<clever> i run my browser in a terminal, just because it likes to randomly segfault, and i want to see that
<dhess> Anyone got a clever way to do that?
<clever> dhess: a PR i recently got into master handles that fully
<dhess> clever: oh really, got a link?
<Infinisil> sauyon: That does indeed not exist
<clever> dhess: the docs are now in a .doc output, and can potentially be GC'd out
<sauyon> yeah should probably be patched
<clever> dhess: with nixos-unstable, the closure of a shake script is 1.6gig
<clever> dhess: with master, it was 151mb
<dhess> oh god don't tell me that :(
<clever> dhess: and with master, and running strip over the binary, it went down to 30mb
<dhess> all those hours wasted building docs!
<dhess> especially on armv7l, ughhhhh
<dhess> clever: what's the PR?
<dhess> I guess this isn't in the nixos-unstable channel yet?
<dhess> I'll try to cherry pick it into my branch
<clever> dhess: it appears to be in nixos-unstable-small
<dhess> huh
nix-gsc-io`bot has joined #nixos
nh2 has quit [(Quit: Leaving.)]
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/9d2da6ab3a (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<clever> the -small channels wait for testing, but not full binary cache coverage
<Infinisil> And there it is!
<clever> so they update more often
<clever> yeah, that often :P
<Infinisil> I know it doesn't matter, but what display-manager do the people here use/recommend?
<dhess> actually I should probably wait for it to hit the caches, it might actually take *longer* to build everything from scratch :D
<dhess> clever: anyway that's awesome. So how to enable this in my config?
<clever> its just enabled by default
<Infinisil> dhess: Well you only need to rebuild everything from scrath if there was a mass-rebuild change
<tilpner> Infinisil - Use? Slim, but I sadly can't recommend it, as it's been discontinued and people have been telling me to switch for a while
<dhess> Infinisil: I mean all of the Haskell packages I need, not literally everything.
<Infinisil> tilpner: Using slim too, want to switch for the same reason
<clever> Infinisil: i was working on this a few months ago: https://github.com/taktoa/hsdm
<sauyon> I switched to lightdm seems ok
<Infinisil> clever: Nice
<Infinisil> Hmm, I'll have a look at how well each one of the curretnly supported DM's is supported and maintained
<tilpner> Infinisil - I couldn't manage to get blocked by your thing. Wasn't blackholing supposed to also stop answering HTTP?
<clever> i find slim still works for all of my systems
<Infinisil> Umm, replace the last supported with something else
<Infinisil> tilpner: Ohhh, right, it's only the named logs that get checked
<tilpner> Infinisil - What are named logs?
<clever> tilpner: the logs for named (the dns server)
<Infinisil> ^^
<tilpner> But I made a DNS request to that site! That should blackhole me and also prevent me from getting HTTP response, no?
<tilpner> (DNS requests are answered too, though with status: REFUSED)
treaki has quit [(Ping timeout: 260 seconds)]
<Infinisil> tilpner: Hmm, maybe try ns1.infinisil.io
<tilpner> Ahh, I just tried infinisil.io
romildo has quit [(Quit: Leaving)]
treaki has joined #nixos
<Infinisil> Ohhh
<Infinisil> Hmm no, i don't know why it doesn't block you
<sauyon> well
<sauyon> I was blocked from DNS
<sauyon> you sure it's set up to block HTTP
<tilpner> Doesn't "ip route add blackhole $ip" do that?
<clever> Infinisil: did you link the script on gist?
<dhess> clever: so if I understand this PR correctly, the doc output will only be produced if you reference it explicitly in an expression, or if the package itself depends on it?
<sauyon> separate servers I assume
<clever> dhess: cabal2nix will detect if you generate docs, and set the right boolean to activate my changes
<tilpner> Possible. Does it still answer your DNS queries though?
<Infinisil> Here is the full bind config, including the script (clever): https://gist.github.com/anonymous/1be01ba7c53cb89e1d42dd92c7d6cf8d
<sauyon> no it refuses my DNS queries
<Infinisil> I set my ip to be allowed in bind
<sauyon> hrm
<Infinisil> Ohhhhhh
<clever> tilpner: oh, that block script only runs every 10mins
<clever> so it wont block you right away
<tilpner> clever - I waited 10 minutes
<Infinisil> It doesn't block ipv6 lol
<sauyon> oh I guess refuse isn't the same thing as no conn
<tilpner> Hah, that might be it!
<Infinisil> Wait no it should
<Infinisil> ahh there i see it, denied from sauyon.com
<tilpner> dig says "SERVER: 2a03:b0c0:3:d0::47dc:3001#53(2a03:b0c0:3:d0::47dc:3001)"
<Infinisil> Yeah it's probably because it's running only every 10 mins
<sauyon> who knows
<tilpner> Infinisil - Can every component of the block script handle ipv6?
<Infinisil> tilpner: I think so
<tilpner> (/var/dns/blocked, ip route add, ...)
<Infinisil> except ip route add doesn't work for ipv6
<Infinisil> dunno
<clever> i think you need ip -6 route
<sauyon> eh but
<sauyon> it's complexity that's probably unnecessary
* tilpner wants a refund, this banning service isn't very user-friendly
<Infinisil> :P
<Infinisil> sauyon: Where's the complexity?
<sauyon> actually bothering to block ipv6
<Infinisil> Ah
<Infinisil> weird.. ip route doesn't show any ip..
<sauyon> oh you're actually using ip
<sauyon> I should really learn how to use ip
<sauyon> ...
<Infinisil> Okay that's weird, manually doing ip route add blackhole <some ip> does work, but the script somehow doesnt
lesce has joined #nixos
<Infinisil> Ohhhhh, does this table get cleared on reboot?
<sauyon> odd
<clever> yes
<Infinisil> That's it then
<sauyon> lol
<tilpner> Find out if ip route deduplicates. If it does, just don't delete your log at the end
<sauyon> btw
<sauyon> sort -u
<sauyon> :P
<Infinisil> tilpner: Deduplication is built in, in that blocked ips won't be in the logs
mpcsh has joined #nixos
<Infinisil> sauyon: Ohh, thanks!
<tilpner> Infinisil - But that way you lose them after reboot. If you kept the log, you would ban IPs across reboots
<sauyon> incredibly important :P
<Infinisil> tilpner: I'm logging all banned ips to a file, so i could totally reblock then on boot
<sauyon> don't block me!
<sauyon> I can use your dns server in the future!
<Infinisil> Oh no!
<sauyon> I definitely have a legitimate use case!
erictapen has quit [(Ping timeout: 240 seconds)]
<Infinisil> tilpner: It does, but the line 2 above logs the ip to another file
<Infinisil> oh fuck
slack1256 has joined #nixos
<Infinisil> I'm cat'ing /var/log/named.log, but emptying /var/log/named/named.log
<Infinisil> And I'm logging to /var/log/named/named.log
lesce has quit [(Ping timeout: 276 seconds)]
<tilpner> Yeah, I noticed that too, after rereading
<Infinisil> That's my reminder to use variables for this kind of stuff..
<tilpner> (Which is why I first assumed you cleared your log)
<tilpner> And I awk can do the filtering for you, something like /cpsc.gov/ { sub(...) }
<tilpner> *I think
<Infinisil> Oh right
<Infinisil> Yeah that's correct, I just didn't think of it
<tilpner> So awk '/cpsc.gov/ {sub("#.*", "", $5);print $5;}' /var/log/named.log | sort -u
<Infinisil> if we wanna be super exact, it needs a \ for the dot in the regex
<tilpner> I didn't touch that, that's your regex
<Infinisil> /cpsc\.gov/ i mean
<tilpner> Oh, right
<Infinisil> And the commented out part at the beginning is my failed attempt at fail2ban
<Infinisil> I guess I fail2fail2ban.. hue hue hue
python476 has quit [(Ping timeout: 240 seconds)]
magnetophon1 has quit [(Ping timeout: 240 seconds)]
<tilpner> Why not ips=$(awk '...' ${log} | sort -u)? Poor cats...
<Infinisil> Ohh, didn't know about that *refactors*
<tilpner> (I did that above)
Kaydee has joined #nixos
<Infinisil> Oh lol
<mpcsh> hey there, anyone use keybase with nixos?
<Kaydee> Hello again. I had a small question about intended usage with nixos and nix that I feel like I don't quite understand.
<Kaydee> Is there documentation for all the various things living under xserver? Seems like a lot of very impactful options, but also the only isnight I've gotten is reading packages that appear on searches.
<Infinisil> mpcsh: Not me, but what's your problem?
<mpcsh> Infinisil: well, I can't figure out how to specify the mount point for kbfs
<sauyon> the nixos options documentation?
<mpcsh> I know it's defined - lemme grab the github link
<sauyon> other than that there's the actual xserver docs (Kaydee)
<Kaydee> Infinisil: So I'm right, the only documentation here is the packge files and any comments embedded in them?
<Infinisil> Reading the nix sources is very informative as to what the options do
<mpcsh> so how would I change the mount point in configuration.nix?
<sauyon> Kaydee: technically there's https://nixos.org/nixos/options.html
<Kaydee> It's true, but it's also somewhat overwhelming. There's a lot of options there and it's not always clear where to start.
<tilpner> mpcsh - Something like services.kbfs = { enable = true; mountPoint = "/something/else"; };
<dalaing> clever: I've still got some hydra gc roots that I don't seem able to shake :/
<sauyon> isn't that nixos in a nutshell
<dalaing> they are .drv files, wondering if they're related to attempts to restart some builds
<clever> dalaing: did you start the hydra-update-gc-roots service?
<clever> dalaing: and are those jobsets set to keep 0 evals?
<Kaydee> sauyon: Well actually that's helpful. Ty, gonna bookmark that for sure.
<Kaydee> My other question is: i notice that any users I create have no nix channels
<dalaing> yeah, and that took care of a lot of the roots
<Kaydee> But the root user does.
<dalaing> all but 3 of them
<Kaydee> Reading the manual it seems a wee bit ambivalent about this.
<clever> mpcsh: services.kbfs.mountPoint = "...";
<mpcsh> tilpner: I get "The option 'services.kbfs' defined in '/etc/nixos/configuration.nix' does not exist"
<mpcsh> clever: ^
<tilpner> mpcsh - That option doesn't exist in your version of nixpkgs, you'd need to upgrade to something more recent
<Kaydee> Should I not be adding channels to my normal user like nixos-unstable?
<Kaydee> err sorrcy nixpkgs-unstable, et
<clever> Kaydee: they will use roots channels automatically
<tilpner> mpcsh - It's only been added in May 22, according to GH
<mpcsh> tilpner: ahhhh
<Kaydee> clever: Well I mean, if I type "nix-env -i ghc" from my user it doesn't work
<Kaydee> And -qa ghc finds no hits
<Kaydee> But if I do it from root, it does work.
<tilpner> mpcsh - Are you on nixos-17.03?
<clever> Kaydee: what does "ls -lh ~/.nix-defexpr/" say?
<sauyon> actually
<mpcsh> tilpner: yes, I'm using the virtualbox appliance
<Kaydee> clever: channels_root -> /nix/var/nix/profiles/per-user/root/channels
<sauyon> Infinisil: *nix* doesn't follow the freedesktop specs
<Infinisil> sauyon: :O where?
<clever> Kaydee: and nix-env -iA nixos.ghc
<tilpner> mpcsh - nixos-unstable should have that service
<mpcsh> tilpner: yeah I'm switch --upgrade'ing right now to see if it works
<tilpner> (Or you can try to backport it yourself)
<clever> Kaydee: what does that do?
<sauyon> polluting my poor home directory
<sauyon> ;)
<Kaydee> Ah so that does work.
<sauyon> :'(
<Kaydee> I am left a bit confused how though.
<Infinisil> sauyon: You mean the old .nixpkgs?
<clever> Kaydee: that tells it to use the channel called nixos
<Kaydee> Should I not ?add channels etc to my user account?
<clever> Kaydee: adding channels to users tends to make things harder to manage
<sauyon> .nix-defexpr and .nix-profile
<Kaydee> Why doesn't the nixos channel appear in my --list for nix-channel?
<clever> Kaydee: poor UI, nix-channel --list only shows the current user
<clever> Kaydee: but nix-env can search current and root
<Infinisil> sauyon: Oh right, hmm.. I'm willing to justify it because it's nixos, but not sure..
<dalaing> clever: ah, failed builds seem be sticking around as hydra gc roots :/
<Kaydee> I suppose I _should_ be putting these in the configuration.nix file if I care about them?
<clever> dalaing: you can also try manualy deleting those hydra roots, and then nix-store --delete the bad path
fikse has joined #nixos
<clever> Kaydee: things like ghc shouldnt be installed, but loaded in a nix-shell
<dalaing> cheers, will give that a try
<sauyon> it's one of the reasons I resisted switching tbh
<clever> Kaydee: one reason for that, there is no way to tell that ghc what packages it can import
<sauyon> but now I can run steam in a container
<clever> Kaydee: you have to create a new ghc, using ghcWithPackages
<sauyon> so it more than makes up for it
<Infinisil> sauyon: You resisted switching to NixOS because it installs stuff directly in ~?
<sauyon> no because it added two files to my home directory
<Infinisil> lol
<Infinisil> sauyon: What's the benefit of running steam in a container?
<Kaydee> clever: How does stack feel about this? :)
<sauyon> my home directory isn't polluted
<Kaydee> or maybe I'm mistaking your meaning.
<clever> Kaydee: i learned nix before stack&cabal, so i just dont use either
<mpcsh> sauyon: how do you run steam in a container?
<clever> Kaydee: i never experience cabal hell
<Infinisil> sauyon: Admittedly my home is a mess and I'm kind of jealous of you
<Kaydee> clever: Well we're all going to have to go there, unless Nix learns how to think about Backpack.
<Kaydee> I learned in the days when cabal-dev was new, so stack seems pretty plush.
<clever> Kaydee: there is also stack2nix, which can generate a tree of haskell packages for every version in your stack file
<sauyon> containers.steam = {
<sauyon> config =
<sauyon> { config, pkgs, ... }:
<sauyon> {
<sauyon> nixpkgs.config.allowUnfree = true;
<clever> sauyon: pastebin
<sauyon> environment.systemPackages = with pkgs; [
<sauyon> steam
<sauyon> ];
<Infinisil> PASTEBIN
<sauyon> };
<sauyon> bindMounts = {
<sauyon> "/var/xray" = {
<mpcsh> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
<tilpner> Nooooo!
<sauyon> hostPath = "/home/sauyon/devel/xray";
<sauyon> isReadOnly = true;
<sauyon> };
<Infinisil> It doesn't stop
<sauyon> };
<mpcsh> tilpner: I got it!
<sauyon> autoStart = false;
<mpcsh> tilpner: Sorry!
<sauyon> };
<mpcsh> tilpner: Sorry!
<sauyon> ignore the bindmouonts
<sauyon> shh
<sauyon> b-but laziness
<mpcsh> tilpner: Nice shot!
<Kaydee> Given that both cabal and stack manage this per-project for development and stack2nix is a deployment step, I don't quite get the interaction.
<tilpner> mpcsh - Huh?
<mpcsh> tilpner: was your "Nooo!" not a rocket league reference?
<Infinisil> sauyon: nix-env -iA nixos.gist. Then you can do `gist path/to/file` and get a link directly
<Kaydee> Okay, my final question for now is: I've been rebuilding and all the builds are on my bootloader. It's going to get out of hand soon. Can I clear those older options soon?
<sauyon> ooh ok that's a lot less effort :P
<tilpner> mpcsh - It wasn't. I've played that only once with my brother and I'm terrible at it
<Infinisil> tilpner: mpcsh: Close one!
<clever> Kaydee: "nixos-rebuild test" will activate it without putting it into the bootloader
<sauyon> honestly there's probably a weechat plugin for autopastebinning things
<clever> Kaydee: no more spam, and if things break horribly and you hard-reset, all changes are undone
<Kaydee> clever: Sure but I have many in the bootloader. Can I remove old ones?
<clever> Kaydee: check the man page for nix-collect-garbage, the --delete-older-than i think
<adisbladis> Kaydee: nixos-collect-garbage
<Infinisil> mpcsh: You playing RL on NixOS by any chance?
<adisbladis> nix-collect-garbage, not nixos-...
<mpcsh> Infinisil: I'm just now starting out in nixos land, trying out the virtualmachine from arch
<mpcsh> but I do play RL on arch!
magnetophon1 has joined #nixos
<tilpner> mpcsh - Does kbfs work yet?
<Infinisil> mpcsh: Nice!
fikse has quit [(Ping timeout: 260 seconds)]
<mpcsh> tilpner: well no, I'm not really sure what's going on
<Kaydee> adisbladis: ty
<Kaydee> clever: ty
<mpcsh> tilpner: I have services.kbfs.enable = true and services.kbfs.mountPoint = "/keybase", but when I run systemctl --user status kbfs it's just dead and inactive
<Kaydee> clever: Is there a reason you say "Don't install use a shell?" that's beyond, 'THis is how I do per-project dependency management?"
<mpcsh> *dead and disabled
<Kaydee> (don't get me wrong, that's a fair reason)
<tilpner> mpcsh - And you ran nixos-rebuild switch and everything ran fine?
<mpcsh> tilpner: yes
<Infinisil> sauyon: Regarding my home dir:
<Infinisil> `ls -a | wc -l`
<Infinisil> 123
<sauyon> eeeew
<sauyon> lol
<dalaing> clever: I've been tracking some of these down, and I've reached some .drv files that don't have anything turning up with --query --roots or --query --referers, but that I can't nix-store --delete (because apparently they are still alive)
<mpcsh> Infinisil: jesus
<tilpner> mpcsh - Hold on, I'll try installing it here
<clever> Kaydee: the main ghc attribute lacks all packages on hackage, so its not of much use
<mpcsh> I'm on arch and mine returned 55
<Infinisil> sauyon: :P
<clever> Kaydee: and it will conflict with the other ghc's that have packages you want
<clever> dalaing: ah yeah, nix also checks for roots in /proc, for in-use files
inflames has joined #nixos
<sauyon> oh ew
<clever> dalaing: rebooting is the simplest way to clear them all, something has come up now
<clever> bbl
<Infinisil> But I can't really get around not polluting ~, since a lot of programs just expect something there
<sauyon> the mining software I used to make my PC into a heater polluted it more
<dalaing> ok - thanks for all of the help
<tilpner> mpcsh - Uhh, sorry, I guess I won't try that. What does the log say after you start it manually?
<tilpner> mpcsh - And what's the log for keybase.service?
<mpcsh> tilpner: hang on, gotta log in
earldouglas has joined #nixos
<Infinisil> Maaaan, I really want private nix to exist
treaki has quit [(Ping timeout: 260 seconds)]
<tilpner> mpcsh - And what's the log for keybase.service?
treaki has joined #nixos
nslqqq has quit [(Ping timeout: 260 seconds)]
<tilpner> mpcsh - Huh, that's bad. You need to fix keybase in order to use kbfs, but I can't test right now
noobly has joined #nixos
<mpcsh> tilpner: ok, got it to work - the keybase service was running daemonized, and systemd couldn't lock a .pid file
<mpcsh> tilpner: but my question remains - why isn't it autostarted?
earldouglas has quit [(Quit: leaving)]
rpifan has joined #nixos
<Infinisil> mpcsh: Have a look at `systemctl cat keybase`
kriztw has joined #nixos
<mpcsh> Infinisil: this is a user service, so I have to use `systemctl --user cat keybase`, but it yields https://gist.github.com/bb4b3d3cfd684473b79ba62e5cece269
<noobly> I'm having trouble accessing anything other than my home network. My user account is in groups "wheel" and "networkmanager". Network manager is disabled (commented out of my config.nix) and networking.wireless is set to true, but when editing the password and network name and running nixos-rebuild switch, it still does not connect. Where is my error? Hardware switch is definately not the problem lol
Kaydee has quit [(Quit: Page closed)]
<Infinisil> mpcsh: Hmm, it does indeed not have any autostarting configured
<mpcsh> Infinisil: whaaaat? why not?
<Infinisil> mpcsh: No idea, I don't even know what this does
<clever> noobly: journalctl -f -u wpa_supplicant
<kriztw> mpcsh: I just joined, what is the problem? I have just spent 3 hours of my life debugging a custom user service, so I might be able to help :D
<noobly> wpa_supplicant is successfully initialiezed
<noobly> clever:^
<Infinisil> You could have it autostart by setting `systemd.user.services.keybase.wantedBy = [ <something I don't know> ]`
schoppenhauer has quit [(Ping timeout: 240 seconds)]
<clever> noobly: wpa_cli, then status, scan, and scan_results
<adelbertc> anyone have guidance on how to get a NixOS ISO onto a USB drive from a Windows machine?
<Infinisil> But I don't know what to put there, on system services it's usually "multi-user.target", but I think it's something else for user services ( mpcsh )
<adelbertc> does Rufus work?
MP2E has joined #nixos
<mpcsh> kriztw: I'm trying to get keybase and kbfs to work :/
<mpcsh> adelbertc: install cygwin?
<adelbertc> :/
<sauyon> lol
<Infinisil> Don't use windows?
<noobly> clever: interestingly, wpa_cli tells me it can't connect to wpa_supplicant
<clever> noobly: what about ps aux | grep wpa_suppicant
schoppenhauer has joined #nixos
<adelbertc> Infinisil: well installing NixOS on this machine is a step in that direction, but i still need to bootstrap the process :-)
<Infinisil> noobly: This is the same for me, but I can connect to wlan nonetheless
<Infinisil> adelbertc: Ahh, not sure what to do, but you should find plenty of things online. Just search for "Windows put iso onto usb" or something
<mpcsh> Infinisil: it's never that simple with windows
<Infinisil> mpcsh: Ohh
<Infinisil> Damn you windows
<Infinisil> You could use the Ubuntu subsystem :D
<adelbertc> random googling suggests it works for some people and not others?
<adelbertc> guess ill just try it and see what happens
<adelbertc> hmm this is true
<sauyon> unetbootin?
<clever> unetbootin breaks the nixos ISO
<clever> the nixos iso can just be dd'd directly to a usb stick
<Infinisil> clever: It can't?
<Infinisil> Why not?
<adelbertc> clever: can or can't
<joehh> how do people make use of ghcWithHoogle? I do most of my work in a nix-shell with my custom packages available, but not sure how to get access to a hoogle for the environment
<Infinisil> Ohh because of the disk label maybe, which needs to be NIXOS_ISO or something
<mpcsh> adelbertc: I can confirm that clever meant "can't"
<sauyon> I mean that's not hard to fix
<clever> Infinisil: the nixos iso is a specially made hybrid image, that can boot on usb or an iso, just burn the iso directly to a usb
<mpcsh> oh shit
<mpcsh> I meant "can"
<mpcsh> it CAN be dd'ed directly
<clever> yeah
<Infinisil> Ahh I thought I read "can't" on clever's message lol
<sauyon> yeah but how do you dd on windows
<adelbertc> well it looks like i have `dd` from "Bash on Ubuntu on Windows"
<adelbertc> so... guess i'll try that
<mpcsh> ^
nslqqq has joined #nixos
<Infinisil> adelbertc: Should be installed by default
<sauyon> thought that's what unetbootin did though tbh
<clever> sauyon: unetbootin has special modes to extract the kernel and initrd and mess with things to make iso only images boot from usb
<clever> sauyon: those modes break the nixos image
<clever> which was already usb bootable to begin with
<Infinisil> damn you unetbootin
<sauyon> hmm
<slack1256> joehh: nix-shell -p 'haskellPackages.ghcWithHoogle (pkgs: with pkgs; [ env ] )' works for me
<sauyon> works with the arch iso though doesn't it?
<noobly> will network mananger work for wireless networks?
<clever> sauyon: depends heavily on what the os has done to generate the iso
<mpcsh> noobly: yes
<Infinisil> I think I actually had problems when I wanted to install NixOS with unetbootin, until i used dd
<sauyon> oh no it overwrites the syslinux config lol
<mpcsh> unetbootin is garbage software lmao
<sauyon> I wouldn't go that far
<sauyon> ...not that I actually know what it does lol
<noobly> mpcsh: will it work for wpa2 protected connections?
<mpcsh> noobly: yes
<joehh> thanks slack1256 - I normally do nix-shell mypkgs.nix -A myproject.env
<Infinisil> It certainly isn't garbage software. It mustve done something right since it's this popular
cmcdragonkai has joined #nixos
<Infinisil> It apparently worked for most people
<joehh> where myproject is inside a pkgs.haskellPackages.override record and is a callPackage thing
<sauyon> probably for making nothing but ubuntu isos :P
<cmcdragonkai> If you're packaging something that has separate downloads for 32 bit and 64 bit, are they meant to be in separate packages default.nix, what is the naming convention for it?
<joehh> not sure how to "merge" the two together
<kriztw> mpcsh: as far as I can tell there is no way to autostart systemd user services for specific users currently
<kriztw> except having wantBy default.target, but that starts it for all users, which is not what you want
Wizek_ has quit [(Ping timeout: 255 seconds)]
<kriztw> if I'm wrong I would love to know though, I need it myself
<Infinisil> kriztw: There must be some way
<mpcsh> kriztw: when I try to run `systemctl --user enable kbfs`, I get "The unit files have no installation config (WantedBy, RequiredBy, Also, Alias settings in the [Install] section, and DefaultInstance for template units). This means they are not meant to be enabled using systemctl."
<cmcdragonkai> clever: Cool I'll try that
<sauyon> isn't wantedby default.target fine?
<Infinisil> sauyon: mpcsh: I'm just looking through `systemctl --user --all` and there are the targets `basic.target, default.target, graphical-session.target` and a few more
<Infinisil> default.target might just work
slack1256 has quit [(Remote host closed the connection)]
<mpcsh> sauyon: would that then enable it for all users?
<sauyon> a user unit?
<sauyon> does nix autoenable things?
<clever> sauyon: the entire enable/disable section of systemd has been disabled, everything is just on all the time
<clever> normally, if you want something off, you just turn it off in the nixos config, and it ceases to exist
<kriztw> My understanding of this comes from reading issues, particularly this one: https://github.com/NixOS/nixpkgs/issues/17858
<sauyon> oh for some reason I thought I'd enabled the emacs service
<kriztw> But I'm a systemd noob, so it's a bit hard for me to follow
<Infinisil> Holy fuck, one of our cats just brought me a mouse's head in my room..
<Infinisil> Sorry, off-topic, carry on
<clever> Infinisil: cats will do that
<Infinisil> clever: Usually she brings a soft ball meant to play with, I did not expect a head..
<simpson> Infinisil: I'm watching Mythbusters see whether it's possible to herd cats. (Spoilers: It's not.)
<zgrep> The cat is most assuredly certain that you will accept the gift graciously. And then play with the cat.
uralbash has joined #nixos
<clever> simpson: have a look at the vid i just linked
kriztw has quit [(Remote host closed the connection)]
<simpson> clever: Oh, ha, yeah, this story. Amazing.
uralbash has left #nixos []
<clever> yeah
<Infinisil> Great, just had to clean the literally bloody floor..
<dalaing> oh man, I finally managed to delete that nix-store path, and it came back on the next evaluation
noobly has quit [(Ping timeout: 260 seconds)]
<clever> dalaing: yeah, hydra will either download it from the binary cache, or re-build it
<clever> dalaing: did it fix the problem when it did so?
<dalaing> no, the same problem returned straight away
<cmcdragonkai> if you dont have a 32 bit comp, how can you test whether the 32 build works?
<clever> dalaing: then it might have been a problem with the ghc that pandoc linked to
<clever> dalaing: another simpler option might be to just try changing the nixpkgs channel hydra is using temporarily
<dalaing> I'll try that next - currently I've bumped something of ours that is upstream of this project to try to permute things a bit
<cmcdragonkai> another question if a package's .tar.gz has a fonts folder, how should this be dealt with? inside is just another folder with standard/Courier-*.ttf Helvetica and Times?
<dalaing> yeah, pandoc is complaining about the same thing on that other package - it's colliding with containers in a pretty bad way
<dalaing> I started down this path from here - https://github.com/NixOS/nixpkgs/issues/7792
<Infinisil> cmcdragonkai: There is probably some way to run a 32bit version using virtualization, but I'm not experienced with that
<dalaing> that seems to have caused some pretty severe issues
<Infinisil> cmcdragonkai: What do you mean by how to deal with these fonts? Just not installing them, aka doing nothing is totally reasonnable
fikse has joined #nixos
<sauyon> find the font packages and depend on them?
<Infinisil> Yeah well it depends on why the package has them
<Infinisil> If it's a font package then obviously you want to install them, if it depends on them then you may need them as deps
<Infinisil> And if it just has them for no sensible reason, you can just ignore them
<cmcdragonkai> Infinisil: It's a pdf editor
<Infinisil> Ahh
<cmcdragonkai> Infinisil: master pdf editor, perhaps it expects the fonts to exist somewhere
<cmcdragonkai> relative to the executable?
<sauyon> try it and see
<Infinisil> cmcdragonkai: I don't know, you'll have to test what works
<Infinisil> Or read the source
<cmcdragonkai> it's unfree
<cmcdragonkai> no source available
<Infinisil> Ohh..
<sauyon> well
<clever> cmcdragonkai: or strace the program to see what paths it tries to open
<sauyon> trial and error it is then
<cmcdragonkai> which phase creates the out directory and moves stuff there?
<Infinisil> cmcdragonkai: You'll have to create it yourself in the installPhase
<cmcdragonkai> ok
<Infinisil> installPhase moves everything to $out
<Infinisil> Usually
<clever> copy is usually better then move
<Infinisil> Well not everything, just what is being installed
<Infinisil> clever: Agreed
fikse has quit [(Ping timeout: 240 seconds)]
<Infinisil> clever: Hmm, but why? It shouldn't matter really, unless something weird is going on
<clever> Infinisil: for a normal build it wont matter, but it can make testing under nix-shell harder
<Infinisil> Good point
<Infinisil> But.. isn't coping slower?
<clever> though if your not using a sandbox, and /tmp is on the same fs as /nix/store, a move might be atomic
<Infinisil> Yeah
<clever> if you are using a sandbox, or the FS's dont match up, a move is just cp + rm
<Infinisil> But in most cases /tmp and /nix/store should be on the same fs..
<cmcdragonkai> clever: So the problem is that a move may not be atomic?
<cmcdragonkai> clever: How does copy resolve this problem?
<clever> cmcdragonkai: atomic doesnt really matter much in this case, it just makes mv as slow as cp
<cmcdragonkai> clever: Then what's the advantage of using a cp?
<clever> cmcdragonkai: still simpler to test under nix-shell
<Infinisil> cmcdragonkai: A mv is dirt cheap when it's moving something on the same fs, but a cp allocates space in all cases
<clever> Infinisil: in my case, / and /nix are seperate datasets in the same zfs pool, and the linux kernel isnt smart enough to understand that
<cmcdragonkai> clever: It's for testing, so your files still say in your tmp you mean?
<cmcdragonkai> clever: During a nix-shell
<clever> Infinisil: so it always copies, and cant even share the blocks on-disk (enless i turn on dedup!)
jtojnar_ has quit [(Quit: jtojnar_)]
<cmcdragonkai> clever: Why did you put /nix on a different dataset? Did you tune that dataset for nix usage?
<Infinisil> clever: Why doesn't that make sense?
<clever> i turned off snapshots for /nix
<Infinisil> Different datasets are different filesystems
<cmcdragonkai> clever: Ah that's really clever!
<cmcdragonkai> clever: I should do that
<clever> my NAS was setup before i did that, and now i have to delete several weeks worth of backups just for nix-collect-garbage to have any effect
<Infinisil> Ohh right, snapshots are read-only, it's either don't delete any of it or all of it..
<Infinisil> You could maybe do it with cloning
<Infinisil> And I'm not sure about not snapshotting /nix.. I ran into trouble because I did nix-collect-garbage -d recently..
<cmcdragonkai> So inside my installPhase I have `mkdir -pv $out`
<cmcdragonkai> Now I want to move everything inside the extracted dir to $out
<Infinisil> I'm not snapshotting /nix right now, but I may turn it on
treaki has quit [(Ping timeout: 260 seconds)]
<cmcdragonkai> Is there a special variable for the extracted folder?
treaki__ has joined #nixos
<cmcdragonkai> `cp -r $somefolder $out`?
<Infinisil> cmcdragonkai: You're in it already :)
<clever> cmcdragonkai: the stdenv will cd into it for you, so .
<cmcdragonkai> I see
frankpf has quit [(Ping timeout: 240 seconds)]
<sauyon> no install?
jtojnar_ has joined #nixos
<Infinisil> sauyon: source not available
jtojnar_ has quit [(Client Quit)]
<sauyon> ?
nslqqq has quit [(Ping timeout: 240 seconds)]
<Infinisil> sauyon: I assumed you meant `make install` by "no install?", but that's not possible because he doesn't have the source
<sauyon> no, install
<sauyon> the tool
<sauyon> man install
<Infinisil> sauyon: Ohhh, admittedly I have never used it
<clever> same, i just use cp
<sauyon> I only use it for install scripts :P
<Infinisil> "install - copy files and set attributes", doesn't seem to be doing much
<sauyon> it handles mode
<sauyon> and owner
<sauyon> if that's necessary
<sauyon> plus it makes all parent dirs so that's cool
<clever> sauyon: mkdir -pv $out/bin/
<sauyon> sure but it's a single command ;P
<Infinisil> sauyon: Well owner and mode doesn't really exist for /nix :P
<sauyon> it's mostly useful when you want to install data dirs
<Infinisil> That it makes the dirs is nice though
<Infinisil> Oh damn, tomorrow is my nations holiday, but I do not give a single f**k
<sauyon> it's ok patriotism is a little silly
<clever> i'm not sure when the last or next one even is here, lol
<Infinisil> clever: You're from canada right?
<clever> yeah
<Infinisil> July 1
<Infinisil> Oh no you missed it \s
jtojnar_ has joined #nixos
jtojnar_ has quit [(Quit: jtojnar_)]
<cmcdragonkai> I'm trying this libPath = stdenv.lib.makeLibraryPath libs; where libs is a list of packages. But I'm getting: error: cannot coerce a set to a string, at /nix/nixpkgs/lib/strings.nix:85:38
reinzelmann has joined #nixos
<clever> cmcdragonkai: can you gist your nix expression?
<dalaing> clever: just rebuilt everything that referred to ghc-8.0.2, that did the trick :)
* dalaing wipes sweat from eyes
<clever> cmcdragonkai: qt4 and qt5 are sets, not derivations
<clever> correction, only qt5 is a set
<cmcdragonkai> clever: Ok what is the right path then?
<cmcdragonkai> This is the ldd for the executable:
<cmcdragonkai> libQt5Svg.so.5 => not found
<cmcdragonkai> libQt5PrintSupport.so.5 => not found
<cmcdragonkai> libQt5Widgets.so.5 => not found
<cmcdragonkai> libQt5Gui.so.5 => not found
<cmcdragonkai> libQt5Network.so.5 => not found
reinzelmann has quit [(Client Quit)]
<cmcdragonkai> libQt5Core.so.5 => not found
<Infinisil> nix totally needs better error reporting
<sauyon> heh
<clever> qt5.full.out 0 s /nix/store/kg36kcq4kx2m0j33ynz3bjllsd7li4zk-qt-5.8.0/lib/libQt5Core.so.5
<sauyon> yeah the patchelf thing needs to be a thing
<clever> cmcdragonkai: qt5.full
nslqqq has joined #nixos
<sauyon> actually, where do the error messages come from?
<Infinisil> sauyon: nixpkgs/nix?
<clever> cmcdragonkai: this is how i tracked it down: https://gist.github.com/cleverca22/872b21404062218409315a39a080091a
<Infinisil> Umm NixOS/nix
<clever> sauyon: in this case, the error was because a list containing a set was passed to makeLibraryPath
<sauyon> file not found when running a dynamically linked binary compiled on another system?
<sauyon> oh I'm thinking about something else then
<sauyon> just saw the ldd output and thought it was the library path thing
<Infinisil> Ahh sry
<sauyon> hmm?
<sauyon> yeah but
<sauyon> it was more that I was building projects
<sauyon> pushing them onto a test server
<sauyon> and then getting
<sauyon> file not found when trying to run them and it took me forever to figure out why that was :P
<clever> ah
<sauyon> not much nix can do about that though
<clever> thats the kernel to blame
<sauyon> makes sense
lesce has joined #nixos
lesce has quit [(Ping timeout: 240 seconds)]
oahong has quit [(Ping timeout: 240 seconds)]
* clever heads to bed
<sauyon> gute nacht
<Infinisil> Night
<Infinisil> sauyon: You german?
<sauyon> no I'm an american born korean ;)
<Infinisil> Ahh ;)
<Infinisil> I just found someone say this on HackerNews: "Moreover, I wouldn't see basic HTML or CSS as specific knowledge. This is something every coder knows (like English)"
<Infinisil> Lol no
<sauyon> ew
<sauyon> eeeeeeeeeeeeeeew
<Infinisil> That's a web dev for ya
<Infinisil> But it's okay, he's being downvoted into oblivion
<isHavvy> <p style="color: red">Stay <b>away</b> from <u><color="blue">HackerNews</color></u>.</p>
<sauyon> <u>?
<sauyon> oh is that underline
<isHavvy> Underline.
oahong has joined #nixos
<Infinisil> isHavvy: What's so bad about HN?
<sauyon> underline!
<sauyon> that didn't work did it
<sauyon> HN is webdev central
<Infinisil> Is there any such forum i can enjoy without people saying "foo sucks"?
<Infinisil> sauyon: Eh, I don't get that impression tbh
<isHavvy> Infinisil: Hard to explain succinctly and this is not the place to do it.
<sauyon> well
<sauyon> how about this
<sauyon> most participants wouldn't be interested in NixOS ;)
wowi42 has joined #nixos
<simpson> sauyon: That's not true, though.
<Infinisil> :OOOOO HOW DARE THEY, BURN HN, BURN
<Infinisil> Yeah probably not true tbh
<isHavvy> Infinisil: Only places I've found safe are specific IRC channels and /r/rust
<sauyon> shhh
<Infinisil> I enjoy HN, it's got a bit of everything
<sauyon> *I* think it was funny
<simpson> Many of my professional peers would, if correctly pitched, be quite interested in NixOS.
<Infinisil> And js hate posts are being upvoted :)
<adisbladis> Infinisil: Not even most webdevs actually know css ;)
<sauyon> you think?
<sauyon> well
<Infinisil> simpson: Everybody loves NixOS, they just don't know it yet ;)
<sauyon> I'm working in a research department I don't really know what's going on out there
<adisbladis> Infinisil: I find that to be the case too.
<sauyon> well
<sauyon> I don't even know if I love nixos
<Infinisil> Too bad programmers are mostly narcistic creatures, that don't accept anything they didn't discover themselves
<adisbladis> sauyon: Heathen!
GK1wmSU has joined #nixos
<Infinisil> At least i get that impression
<sauyon> I don't really get that
GK1wmSU has left #nixos []
<Infinisil> Okay well that's what I get from most people I talk to in my CS degree anyways
<Infinisil> Maybe it's just me though, as in I'm a generaly not-liked person
<sauyon> mmmmm
<Infinisil> I'm bad at social stuff, soooo
<isHavvy> It's possible to get better at being social.
<Infinisil> isHavvy: Is staying inside for 3 months helping?
<isHavvy> No.
<sauyon> it's ok this is helping!
<Infinisil> sauyon: :D
<adisbladis> Infinisil: Quote from an old friend: I'm a very social person, I'm on lots of IRC channels!
<Infinisil> adisbladis: ++
<sauyon> lots of irc channels is hard to manage
<Infinisil> I'm so antisocial that only 2 people congratulated me on my last birthday lol
<sauyon> happy belated birthday!
<Infinisil> Thx!
<Infinisil> Alright I'll go to sleep, it's already 7am here
<Infinisil> See ya!
<sauyon> it's only 6:26
<sauyon> !!!!
<sauyon> :P
<sauyon> night
<Infinisil> :)
Infinisil has quit [(Quit: Zzzzz)]
fikse has joined #nixos
_GK1wmSU has joined #nixos
DrWaste has joined #nixos
_GK1wmSU has left #nixos []
jgertm has joined #nixos
fikse has quit [(Ping timeout: 260 seconds)]
hamishmack has quit [(Quit: hamishmack)]
hamishmack has joined #nixos
Mercuria1Alchemi has joined #nixos
hamishmack has quit [(Ping timeout: 260 seconds)]
<cmcdragonkai> awesome it works! but i had to disable stripping
rigelk has quit [(Ping timeout: 276 seconds)]
<cmcdragonkai> clever: I actually was tryingto figure what subset of qt5 modules are needed
<cmcdragonkai> Not just all of them
<cmcdragonkai> I wonder why stripping needed to be disabled?
rpifan has quit [(Quit: Leaving)]
<cmcdragonkai> Ok I found that the executable does look for those directories supplied in the .tar.gz, however it looks for it relative to the executable location
<cmcdragonkai> What's the right way to do this, move the directories to the $out/bin as well, or somehow rewrite the lookup paths for the executable?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/v783k
<NixOS_GitHub> nixpkgs/master 497e04a Peter Hoeg: smartmontools: use slightly newer drive DB
NixOS_GitHub has left #nixos []
kuznero has joined #nixos
<kuznero> Hi All!
MP2E has quit [(Quit: leaving)]
<cmcdragonkai> Here's an example of the open call: open("/nix/store/vmpl4qkz7v8dn7jc27xrwsyc38hjwdlh-masterpdfeditor-4.2.70/bin//stamps", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
<kuznero> Why is it when I am trying to `sudo nixos-rebuild switch` it is building chromium, but when `nix-env -i chromium` it is just downloading binary?
reinzelmann has joined #nixos
<kuznero> It takes soooo looong time to build chromium, I don't really want to do that...
<manveru> depends on which chromium it finds... did you use -iA nixos.chromium ?
<manveru> also which channel are you on in nixos
blahdodo has quit [(Remote host closed the connection)]
Wizek has quit [(Quit: Connection closed for inactivity)]
<kuznero> `sudo nix-channel --list` or `nix-channel --list` shows empty list for me. And I am just trying chromium which is `nixos.chromium` I assume...
<kuznero> And when installing as a user just did `nix-env -i chromium` and that is it. That went fast.
<sauyon> run nix-channel --list as root
<sauyon> are you sure it's building chromium
<kuznero> yes
<sauyon> I mean
<sauyon> is this on the same install?
<kuznero> Running it as root gives empty list too
<sauyon> ...huh
MichaelRaskin has joined #nixos
blahdodo has joined #nixos
<sauyon> I mean regardless if you ran the install for the user on the same machine it's basically a no-op
ebzzry has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/v783X
<NixOS_GitHub> nixpkgs/master 688ab1e Peter Hoeg: terragrunt: 0.12.24 -> 0.12.25
NixOS_GitHub has left #nixos []
<kuznero> sauyon: I am having chromium in systemPackages in my nix files and that is trying to build, maybe if I specify channel it will behave differently?
<sauyon> perhaps
<kuznero> And another thing is that my channel gets removed from time to time. I have no idea why. One thing for sure - it is not me explicitly doing it...
<kuznero> What is the latest stable channel one should normally have?
<kuznero> ?
<sauyon> if you want stable then yeah
<kuznero> thankx
hamishmack has joined #nixos
fikse has joined #nixos
<kuznero> it still tries to build chromium... :(
wigust has joined #nixos
<sauyon> nix-channel --update?
<sauyon> I find it strange that it's building anything
<srhb> kuznero: Did you maybe modify your chromium configuration with like pdf viewer settings or something and forgot about it?
<srhb> (I did that)
goibhniu has quit [(Ping timeout: 255 seconds)]
<kuznero> sauyon: I can understand that it rebuilds when there is an override, but not in this case.
<sauyon> I mean, you're sure it's building *chromium* and not just nix
<sauyon> or if you configured it
<kuznero> sauyon: mostly sure, yes
<sauyon> what's your configuration look like
fikse has quit [(Ping timeout: 255 seconds)]
k2s has joined #nixos
<kuznero> Here is my config: https://github.com/kuznero/dotfiles
<srhb> The latest commit in 17.03 does contain a chromium related commit
<kuznero> It is multilayered - I am using work-dev files on top of the rest
<srhb> Revert "chromium: 58.0.3029.110 -> 60.0.3112.78"
<srhb> Because of a failing build
<kuznero> It is trying to build `chromium-58.0.3029.110`
<srhb> Odd, that should not happen.
<srhb> I just checked, and mine doesn't build it.
<srhb> kuznero: What does nixos-version say?
<cmcdragonkai> Do icon themes have to installed as part of systemPackages, or can they work while installed as part of nix-env?
<cmcdragonkai> I sometimes see blank buttons in various GUI apps
<kuznero> it doesn't build it for me too with simple `nix-env -i chromium`
<kuznero> 17.03.1584.48ecdcf598 (Gorilla)
<sauyon> I completely gave up on themes
<srhb> kuznero: And you don't have different channels for system and user?
<kuznero> srnb: I have channel defined only on system
* srhb boggles
<sauyon> you're running nix-channel as root right
<kuznero> yes
<sauyon> nope 0 clue
ertes-w has joined #nixos
<srhb> kuznero: can we see the entire rebuild log on a pastebin?
<kuznero> sec
sauyon has left #nixos ["fixing weechat"]
sauyon has joined #nixos
<kuznero> Strange, I don't see it building yet. Waiting until `nixos-rebuild switch` will complete now...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/v78sj
<NixOS_GitHub> nixpkgs/master 2a48a62 Peter Hoeg: sensu: 0.29.0 -> 1.0.2...
NixOS_GitHub has left #nixos []
<kuznero> srhb: it is rebuilding it again. How do I save entire build log - my tmux/terminal buffer is too short for such big thing. `sudo nixos-rebuild switch > output.log` or `... | tee -a output.log` does not seem to work ...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] CMCDragonkai opened pull request #27790: masterpdfeditor: Added masterpdfeditor (master...masterpdfeditor) https://git.io/v78Gl
NixOS_GitHub has left #nixos []
nslqqq has quit [(Ping timeout: 246 seconds)]
k2s has quit [(Ping timeout: 240 seconds)]
nslqqq has joined #nixos
<srhb> kuznero: It logs to stderr for some reason
<srhb> kuznero: So redirect 2>
<kuznero> Ah... thanks
<kuznero> There it is now: https://pastebin.com/4n8ZLmdQ
FRidh has joined #nixos
<nixos-users-wiki> "Configs" edited by davidak https://git.io/v78GX
hellrazo1 has quit [(Quit: WeeChat 1.9)]
k2s has joined #nixos
kiloreux has joined #nixos
<sauyon> oh it's patching things
<kuznero> sauyon: is that because I have some strange system wide settings like pdf viewer (which is what was suggested a bit earlier here)?
zraexy has joined #nixos
ambro718 has joined #nixos
nschoe has joined #nixos
<sauyon> I'm not honestly the best person to ask
<kuznero> Is there any option I can supply to `nixos-rebuild` to show details like why it was decided to build instead of fetch from binary cache?
<srhb> kuznero: That answer is trivial: Because the hashes don't match (because your inputs are different)
<srhb> kuznero: Did you paste your configuration.nix somewhere?
<sauyon> he linked his dotfile repo
* srhb looks up
<sauyon> which has his configuration.nix fragmented into like a million parts heh
<kuznero> :)
<sauyon> at which point I stopped looking because I should really be working ;)
<srhb> kuznero: Oh hey, Denmark?
<kuznero> configuration.nix package.nix are critical things there
<kuznero> srhb: :)
<srhb> More than one NixOS user here then! Woo
<kuznero> :) There are more at the place I work in... Trying to expose that to others as well :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to master: https://git.io/v78Zq
<NixOS_GitHub> nixpkgs/master 740d763 Frederik Rietdijk: Merge commit 'ba68231273bea4cba01413fd2a0e56d68db9234c' into HEAD
NixOS_GitHub has left #nixos []
<srhb> kuznero: Nice!
<srhb> (Where do you work?)
<kuznero> Danske
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh merged master into staging: https://git.io/v78Z3
NixOS_GitHub has left #nixos []
<srhb> I don't see anything obvious in your config either :/
<srhb> kuznero: Oh! Interesting, I didn't really know there was any real presence there.
<kuznero> I guess we are the only ones and only using it for development
MoreTea has joined #nixos
* srhb nods
<kuznero> --show-trace does not really help :(
<kuznero> srhb: what about you, also in Denmark?
<srhb> kuznero: Yep. :) I work at a rather smaller company, DBC A/S (bibliotek.dk and stuff)
<srhb> kuznero: Can you take a look at chromiums input arguments? Perhaps you've modified one of them?
<kuznero> srhb: do you managed to be using NixOS in prod?
<srhb> kuznero: No, but I'm desperately trying (and I may not be very far off)
cinimod has joined #nixos
joehh has quit [(Ping timeout: 246 seconds)]
<srhb> We have some really obvious use cases, and Debian is becoming a rather large burden.
Ph1llemann has left #nixos ["WeeChat 1.9"]
<kuznero> srhb: but it is stated as a systemPackage and nothing else... so, I assume it is the default input... Or am I missing something?
<srhb> kuznero: If you've overriden some dependency in nixpkgs elsewhere, that will change the build as well.
<srhb> Say for instance that you overrode the default gcc version or something.
<MoreTea> I have a question about evaluation in Nix, especially what the implications of niksnut's comment in https://github.com/NixOS/nixpkgs/pull/23505#issuecomment-318932390 are.
<kuznero> srhb: Nice to hear about more NixOS in CPH :)
<srhb> kuznero: Agreed :D
<kuznero> srhb: I will try to find some overrides, thanks
<kuznero> A bunch of overrides for elm and haskell :) But those shouldn't be used to build chromium, right?
<MoreTea> so the question is: does the mapAttrs thunk get re-used, or re-computed everytime an attr in lib.* is used?
<srhb> kuznero: I very much doubt it (sadly) :-)
<MichaelRaskin> If you want a browser that uses anything in a fresh, carefully designed programming language…
jgertm has quit [(Ping timeout: 240 seconds)]
<srhb> kuznero: I've got to run, I hope you figure it out or someone else can help you track down the reason. Otherwise you might want to clear up your config to a bare minimum and see what happens then.
<srhb> kuznero: You can always roll back :)
<srhb> Good luck
<kuznero> srhb: Thanks!
<MichaelRaskin> I would try nix-build'ing chromium and running it by full path
ambro718 has quit [(Ping timeout: 240 seconds)]
<srhb> That works already.
<srhb> (Or I assume it doesn, since it worked with nix-env -iA)
* srhb really scatters now
<MichaelRaskin> Via building or via cache?
jbaum98 has quit [(Quit: Connection closed for inactivity)]
<MichaelRaskin> Hm, then store paths for nix-env and for system rebuild are different ?
<MichaelRaskin> Maybe user's builds and system builds use different heckouts because of NIX_PATH details?
<kuznero> MichaelRaskin: `nix-env -i chromium` fetches from binary cache, but system tries to build. So, yes, they seem to be different then.
<MichaelRaskin> Something about user's NIX_PATH and root NIX_PATH?
<LnL> either there's a differences between the nixpkgs used for root/your user
<LnL> or there's something different in nixpkgs.config/nixpkgs.overlays compared config.nix
mk-fg has quit [(Ping timeout: 240 seconds)]
<LnL> try nix-build '<nixos/nixos>' -A config._module.args.pkgs.chromium
fikse has joined #nixos
<LnL> MoreTea: I think will get reused in most cases
<kuznero> LnL: is there any way to run a diff tool on root/user final configs somehow?
<LnL> what I showed should match the drv that nixos-rebuild tries to rebuild when running as root
fikse has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] regellosigkeitsaxiom opened pull request #27791: Removed deprecation warning for networking.extraHosts (master...master) https://git.io/v78nE
NixOS_GitHub has left #nixos []
<LnL> does that rebuild when running as root and/or your user?
freusque has joined #nixos
ison111 has quit [(Ping timeout: 260 seconds)]
<kuznero> Ok, that had something to do with me explicitly setting up pulseAudio. I commented out all the lines related to pulseAudio and now it simply fetches pre-built bits of chromium :)
<kuznero> Would be nice to be able to troubleshoot such problems with some helper tools...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gentoofreak opened pull request #27792: gnupg: 2.1.21 -> 2.1.22 (master...gnupg-2.1.22) https://git.io/v78nQ
NixOS_GitHub has left #nixos []
<LnL> ^ this is exactly why I don't like packages that change options based on config.nix attributes
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] aszlig pushed 1 new commit to master: https://git.io/v78nx
<NixOS_GitHub> nixpkgs/master 979817d aszlig: linux-testing: 4.13-rc2 -> 4.13-rc3...
NixOS_GitHub has left #nixos []
<kuznero> LnL: thanks, that gives a good overview. I can see that chromium is using it...
inflames has quit [(Ping timeout: 248 seconds)]
<LnL> so if you add { pulseaudio = true; } to nixpkgs.config all of those packages suddenly have a different hash
<kuznero> yep, that explains why it started to rebuild. Btw, how many variations of a package does binary cache contain (with respect to all these options like pulseAudio)?
<srhb> kuznero: I think it's mostly the definitions in all-packages.nix
<LnL> just the default which is true in this case
<LnL> did you explicitly disable it?
<kuznero> LnL: yes, I just disabled it (which is also strange since it is the default value)
<kuznero> LnL: ah... so it is true by default ;)
<kuznero> That makes more sense now
<LnL> yeah the defaults are all over the place, making config.pulseaudio even worse
proteusguy has joined #nixos
mk-fg has joined #nixos
mk-fg has quit [(Changing host)]
mk-fg has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 1 new commit to master: https://git.io/v78CI
<NixOS_GitHub> nixpkgs/master 701d2c8 Peter Simons: osc: update to version 0.159.0-4-g2d44589 (current git master)
NixOS_GitHub has left #nixos []
civodul has joined #nixos
kuznero has quit [(Ping timeout: 260 seconds)]
mguentner has joined #nixos
<globin> niksnut, ikwildrpepper: eval of trunk has been failing with "Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS" for a few days
cinimod has quit [(Ping timeout: 260 seconds)]
<globin> nixos:trunk-combined*
goibhniu has joined #nixos
<niksnut> globin: yeah, I don't know what causes that (apart from too many packages, I suppose)
silver_hook has joined #nixos
silver_hook has quit [(Changing host)]
silver_hook has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/v78C5
<NixOS_GitHub> nixpkgs/master a74c0c6 Valentin Shirokov: Removed deprecation warning for networking.extraHosts
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 2 new commits to master: https://git.io/v78Ch
<NixOS_GitHub> nixpkgs/master fdbdccf Volth: xrdp: abs path to garbage directory
<NixOS_GitHub> nixpkgs/master f90c4be Franz Pletz: Merge pull request #27785 from volth/xrdp-0.9.3-1...
NixOS_GitHub has left #nixos []
<globin> niksnut: google tells me it comes from the boehm GC
<globin> niksnut: export GC_INITIAL_HEAP_SIZE=16G for example
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #15507: hunspell-dict-de-any-igerman98: init at 20160407 (master...hunspell-dict-de) https://git.io/vrnpT
NixOS_GitHub has left #nixos []
freusque has quit [(Ping timeout: 260 seconds)]
<niksnut> globin: well, I know that :-)
<niksnut> I don't know what is causing the increase in our memory consumption
k2s has quit [(Ping timeout: 260 seconds)]
<niksnut> this is a good excuse for dropping i686, as that should halve memory usage
thc202 has joined #nixos
kuznero has joined #nixos
<kuznero> Was trying to update ghc (haskell compiler) to latest 821 (from 802) - https://github.com/kuznero/dotfiles/blob/2970c711b31fe55c1a8b9e9e60198ea619fb51c2/devel/haskell.nix but it does not work for some reason complaining about a missing dependency on process >=1.1.0.1 && <1.5. What should I do to fix it?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 2 new commits to master: https://git.io/v78ly
<NixOS_GitHub> nix/master 2fd8f8b Jörg Thalheim: Replace Unicode quotes in user-facing strings by ASCII...
<NixOS_GitHub> nix/master 561e977 Eelco Dolstra: Merge branch 'quotes' of https://github.com/Mic92/nix-1
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra closed pull request #1495: Replace Unicode quotes in user-facing strings by ASCII (master...quotes) https://git.io/v7l4M
NixOS_GitHub has left #nixos []
leat has quit [(Ping timeout: 240 seconds)]
fikse has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra closed pull request #1377: Replace Unicode quotes in user-facing strings by ASCII (master...ertes-quotes) https://git.io/v9wFp
NixOS_GitHub has left #nixos []
<globin> niksnut: could maybe split the jobset and channels for i686, x86_64 and aarch64?
<dhess> kuznero: I'm having the same problem.
<dhess> kuznero: try not including cabal-install in your haskellPackages ? I was going to give that a shot next
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 3 new commits to master: https://git.io/v788c
<NixOS_GitHub> nix/master 92bcb61 davidak: replace "Mac OS X" with "macOS"...
<NixOS_GitHub> nix/master fcb8d6a davidak: replace "OS X" with "macOS"
<NixOS_GitHub> nix/master a277898 Eelco Dolstra: Merge branch 'macOS' of https://github.com/davidak/nix
NixOS_GitHub has left #nixos []
<kuznero> dhess: I've heard that together with ghc 821 there is a new cabal version 2.x
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra closed pull request #1494: replace "Mac OS X" with "macOS" (master...macOS) https://git.io/v7llh
NixOS_GitHub has left #nixos []
<kuznero> dhess: will try that
leat has joined #nixos
<dhess> kuznero: There is a Cabal_2_0_0_2 in nixpkgs now, yes. But it appears that cabal-install refers to the 1.24.2 version
<dhess> kuznero: as far as I know Cabal 2 isn't requried for GHC 8.2.1, unless you want to use Backpack.
<dhess> but I may be wrong.
<niksnut> globin: that would be a possibility though it would make channel handling more complicated
<kuznero> dhess: I don't know the details on that one. Will first try without cabal-install
<dhess> kuznero: I tried Cabal = super.Cabal_2_0_0_2 and it made no difference. Something (probably cabal-install) was still pulling 1.24.2 in.
<globin> niksnut: yep.. but we'd probably want to add aarch64 sometime soon as that is quite stable now and there are more devices around than i686
<dhess> kuznero: I think that the ghc821 derivation forces the world to use its own process, which is probably 1.6.x
fikse has quit [(Ping timeout: 260 seconds)]
<dhess> and cabal 1.24.2 wants < 1.5
<kuznero> dhess: makes sense... is that really 20% faster to build btw?
<dhess> is what?
<kuznero> ghc 821
<dhess> Dunno.
<kuznero> Huh... now complaining that `base >=4.3 && <4.10`
<kuznero> missing deps
<dhess> kuznero: ugh. :(
<dhess> kuznero: what's pulling those in?
<kuznero> dhess: it seems it is primitive-0.6.1.0
<dhess> kuznero: maybe just keep paring back until you get something that builds.. though it might not be very useful :)
<dhess> kuznero: I'll bet there's a lot of stuff that is base < 4.10 and hasn't been ported yet.
<dhess> kuznero: you could try jailbreaking it
<kuznero> dhess: no time for that. Will fallback to 801 now and wait another week :)
<dhess> kuznero: hehe, I came to the same conclusion more or less.
<kuznero> :)
<dhess> kuznero: there's not even a Stack LTS yet for 8.2.1. I saw a comment on reddit that mentioned some ungodly number of packages that were broken in Stack nightlies
ThatDocsLady has joined #nixos
<kuznero> dhess: interesting, so the whole story will take some time to resolve...
<dhess> it always does!
<nixos-users-wiki> "Generic Algorithm on Doing Packaging" created by danbst https://git.io/v784O
mudri` has joined #nixos
MoreTea has quit [(Ping timeout: 240 seconds)]
freusque has joined #nixos
cinimod has joined #nixos
JagaJaga has joined #nixos
takle has joined #nixos
vandenoever has joined #nixos
vandenoever has quit [(Changing host)]
vandenoever has joined #nixos
<vandenoever> my machine keeps locking up when i start a virtualbox vm. X freezes and i cannot switch to ctrl-alt-1.
<vandenoever> perhaps i'm using a wrong setting for the paravirtualization feature which i've not seen before
<globin> niksnut: does the hydra machine still have memory available?
<vandenoever> the kernel says: 'Booting paravirtualized kernel on bare hardware' on boot
<niksnut> it has 16 GB available atm
<globin> niksnut: hardware or configured in boehm?
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] edolstra pushed 1 new commit to gcc-6: https://git.io/v78Rt
<NixOS_GitHub> nixpkgs/gcc-6 9bcee10 Eelco Dolstra: strigi: Build on gcc 6...
NixOS_GitHub has left #nixos []
erictapen has joined #nixos
vandenoever has quit [(Ping timeout: 260 seconds)]
goibhniu has quit [(Quit: Leaving.)]
Ivanych has joined #nixos
katyucha has quit [(Killed (verne.freenode.net (Nickname regained by services)))]
katyucha_ is now known as katyucha
katyucha_ has joined #nixos
oever has joined #nixos
oever is now known as vandenoever
goibhniu has joined #nixos
<vandenoever> ah, virtualbox kills the kernel with an oops: 'BUG: unable to handle kernel paging request at ffffffffff574044'
cinimod has quit [(Ping timeout: 255 seconds)]
<niksnut> globin: hardware
<niksnut> there is no configured boehm limit
<niksnut> I could try that
<niksnut> *initial heap size
harlock[m] has left #nixos ["User left"]
python476 has joined #nixos
<makefu> danbst1: thanks for adding the text from `Message-ID: <CANZg+ycucNzq0vzNWLo7wM_ymNaOPdoVG7fzMd-FN1-aNDMZ=Q@mail.gmail.com>`. i was thinking about doing exactly the same thing :)
bennofs has joined #nixos
MoreTea has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gnidorah closed pull request #27646: [WIP] openmw-tes3mp: init at 2017-07-20 (master...openmw-tes3mp) https://git.io/v7YWC
NixOS_GitHub has left #nixos []
bennofs has quit [(Ping timeout: 260 seconds)]
phinxy has joined #nixos
<globin> niksnut: or GC_MAX_HEAP_SIZE, don't know what that defaults to?
<globin> niksnut: couldn't find that being defined either
<niksnut> I don't think it's limited by default
<globin> niksnut: ok
erictapen has quit [(Ping timeout: 260 seconds)]
<niksnut> maybe we should build boehm-gc with --enable-large-config
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 1 new commit to master: https://git.io/v78u8
<NixOS_GitHub> nixpkgs/master b2d19a4 Michael Raskin: fbida: fix build failure
NixOS_GitHub has left #nixos []
simukis has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/v78uM
<NixOS_GitHub> nixpkgs/master c40ac69 Martin Wohlert: gnupg: 2.1.21 -> 2.1.22...
NixOS_GitHub has left #nixos []
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
zraexy has quit [(Ping timeout: 240 seconds)]
mpcsh has joined #nixos
bennofs has joined #nixos
vandenoever has quit [(Quit: ䷴៚)]
MoreTea has quit [(Ping timeout: 260 seconds)]
__Sander__ has joined #nixos
fre has joined #nixos
freusque has quit [(Ping timeout: 260 seconds)]
erictapen has joined #nixos
<pie__> whats the correct way to fetchgit a local repo?
<ij> I heard that the i18n module doesn't work for docker container generation. Why, roughly, is that?
<pie__> im doing url = "./alacritty";
DrWaste has quit [(Quit: Run away!)]
<goibhniu> pie__: you can use src = ./path/to/src; (no need for fetchgit)
m0rphism has joined #nixos
fre has quit [(Ping timeout: 246 seconds)]
<pie__> oh
<pie__> right. ok thanks
ebzzry has joined #nixos
gnuhurd has joined #nixos
gm152 has joined #nixos
<adisbladis> goibhniu: That will also include local changes which might not be what you want to do
<goibhniu> I assume that's the point of using a local repo
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 2 new commits to master: https://git.io/v78VU
<NixOS_GitHub> nixpkgs/master ee8df19 Franz Pletz: batman-adv: 2017.1 -> 2017.2
<NixOS_GitHub> nixpkgs/master 55742a2 Franz Pletz: cacert: fix unicode names in blacklist...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to release-17.03: https://git.io/v78Vq
<NixOS_GitHub> nixpkgs/release-17.03 3c6e969 Franz Pletz: cacert: fix unicode names in blacklist...
NixOS_GitHub has left #nixos []
sphalerite1 is now known as sphalerite
fikse has joined #nixos
<niksnut> globin: evaluation succeeded with GC_INITIAL_HEAP_SIZE=12G, but that doesn't say much (the failures seem fairly random)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] nlewo opened pull request #27793: dockerTools: fix permissions on base image (master...dockerTools-permissions) https://git.io/v78VS
NixOS_GitHub has left #nixos []
<globin> niksnut: nice, yeah but constantly failing for 3 days now I think and I triggered it quite often
fikse has quit [(Ping timeout: 268 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] nlewo opened pull request #27795: vm: Add trusty-updates to the packages list (master...trusty-updates) https://git.io/v78wC
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] basvandijk opened pull request #27796: postage: init at V3.2.16 & add NixOS module (master...postage) https://git.io/v78wE
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 4 new commits to master: https://git.io/v78wQ
<NixOS_GitHub> nixpkgs/master 86eb017 Franz Pletz: youtubeDL: 2017.07.09 -> 2017.07.30.1
<NixOS_GitHub> nixpkgs/master b68fdfb Franz Pletz: whois: 5.2.16 -> 5.2.17
<NixOS_GitHub> nixpkgs/master f645db1 Franz Pletz: caddy: 0.10.4 -> 0.10.6
NixOS_GitHub has left #nixos []
cpennington has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc opened pull request #27797: Convert libs to a fixed-point (master...fixed-lib) https://git.io/v78r8
NixOS_GitHub has left #nixos []
<gchristensen> ^ this is a doozy of a PR I'm not sure we want :P
iyzsong has joined #nixos
<FRidh> That is one ugly PR :P. Its a pity you can't use lib to form lib.
ertes-w has quit [(Quit: Bye!)]
m0rphism has quit [(Quit: WeeChat 1.9)]
ertes-w has joined #nixos
IITaudio_ has joined #nixos
<IITaudio_> Hi, anybody uses tmux inside nix-shell? I'd like to have a tmux session spawned from nix-shell so that every child pane and window shares the same env
<gchristensen> FRidh: yeah...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] regellosigkeitsaxiom opened pull request #27798: Removed networking.fqdn option (master...master) https://git.io/v78oU
NixOS_GitHub has left #nixos []
babic has joined #nixos
bennofs has quit [(Ping timeout: 248 seconds)]
fre has joined #nixos
jtojnar_ has joined #nixos
jtojnar_ has quit [(Client Quit)]
CcxWrk has joined #nixos
jtojnar_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ocharles pushed 1 new commit to master: https://git.io/v78KC
<NixOS_GitHub> nixpkgs/master 9de6670 Ollie Charles: ephemeralpg: Add meta
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh opened pull request #27799: Python: disable user site-packages for programs and environments. (master...nosite) https://git.io/v78KR
NixOS_GitHub has left #nixos []
bennofs has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh fast-forwarded staging from 740d763 to c40ac69: https://git.io/v78Ky
NixOS_GitHub has left #nixos []
moredhel has joined #nixos
jtojnar_ has quit [(Quit: jtojnar_)]
mudri`` has joined #nixos
<moredhel> Hi, I'm not _currently_ using NixOs, but am using the nix pkg manager, and was having an issue that I hope you might be able to help me with. I'm trying to install all my dev packages through nix, I do have some some that I want installed with access from anywhere. Good for integration into emacs, git is used in all my environments. I know I can do this using `nix-env -i git emacs ...`. But that kinda defeats the
<moredhel> point of a declarative system. I'm trying to write a default.nix which defines my user packages, but am having issues figuring out how. Does someone mind having a look, and seeing if I'm missing a conceptual leap?
jtojnar_ has joined #nixos
<moredhel> I've tried this with `nix-env -i -f default.nix`. Deps are installed, but then it fails (because I'm trying to build an env package).
<goibhniu> do you know about nix-shell already moredhel?
<NickHu> moredhel: That's not something that is built into nixos as of now
mudri` has quit [(Ping timeout: 260 seconds)]
jtojnar_ has quit [(Client Quit)]
jtojnar_ has joined #nixos
<NickHu> There are some solutions available, e.g. https://github.com/rycee/home-manager
jtojnar_ has quit [(Client Quit)]
jtojnar_ has joined #nixos
<moredhel> goibhniu: yep, but that's not the default env when I boot up. Kinda wanting cascading dependencies (I guess that's the correct terminology)
<NickHu> wow the manual is written in xml? gross
<goibhniu> moredhel: cool, nix-env also has the --remove-all option, which might be handy for you
<LnL> yeah it's not the nicest thing out there :)
<moredhel> ah, looking now! I've been using the --pure with nix-shell which has been handy when I broke my proxy :p
<gchristensen> NickHu: lots of manuals are
<gchristensen> NickHu: it turns out there are some pretty good tools for writing technical documentation, which use XML
<moredhel> ah, that's nifty. A good way not leave cruft.
<sphalerite> Nick Hu: docbook. If you know of a markup that is nicer and expresses semantics equally well, people would probably be open to switching.
<pie__> goibhniu, i think the package depends on me using git
<moredhel> LnL: do you have a link to the actual content rather than the PR? It's a little hard to see the surrounding context
<sphalerite> moredhel: A simpler option than making a derivation is just having a set containing the packages, e.g. with import <nixpkgs> {}; {inherit emacs git mu;}
<sphalerite> moredhel: which you can then also install with nix-env -f stuff.nix -i
<goibhniu> pie__: ah, so you can add it to the buildInputs
<moredhel> sphalerite: that sounds exactly like what I'm looking for. brb
fikse has joined #nixos
jtojnar_ has quit [(Client Quit)]
<NickHu> Is there something horrifically wrong with standard manpages/markdown?
<gchristensen> NickHu: have you written troff?
<NickHu> gchristensen: n-no, I haven't...
<sphalerite> Nick Hu: markdown doesn't express semantics.
magnetophon1 has quit [(Ping timeout: 248 seconds)]
<sphalerite> At least, not in nearly as much detail as docbook
<gchristensen> NickHu: well, there is a reason docbook came to be
<LnL> moredhel: not sure if it's hosted somewhere, but you can run nix-store -r /nix/store/3iryk5pz8wl9lj41q055a76vgcy0g7k2-nixpkgs-manual
<NickHu> What kind of semantics do you mean?
<gchristensen> NickHu: many people don't like docbook, which is fine, I think we'd be open to switching to something else
<NickHu> Perhaps restructuredText might be suitable
<sphalerite> it tags pieces of text by their meaning
<sphalerite> Also, parts of the manual are written in markdown
<gchristensen> that said, most disagreement with docbook is "ew xml" and not real reasons IMO
<moredhel> oops
<moredhel> apparently remove-all also removes nix :p
<NickHu> gchristensen: xml creates overhead for me; Writing is much nicer with less crufty syntax everywhere, which is why I prefer to have a separation between formatting and content
<gchristensen> quite literally 100% of your disagreement was "ew its written in XML" not a more nuanced look at why our XML may make sense, and what it provides vs. other available tools for complex documentation
<MichaelRaskin> gchristensen: To be honest, «ew XML with a complicated schema, non-trivial include graph and lack of debugging helpers»
<gchristensen> MichaelRaskin: now _THERE_ is something with a meaty reason!
<MichaelRaskin> I mean, it's not like I have never participated in trying to debug mysterious manual build failures
<sphalerite> Nick Hu: there's a long-standing offer from various people to translate any docs you write from your format of choosing to docbook.
<NickHu> Also the manual is one of the weak areas of nixos, and contributions would help massively - I'm sure XML is a barrier to this in some sense
<gchristensen> MichaelRaskin: nice to see you around again! did you go on vacation?
fikse has quit [(Ping timeout: 240 seconds)]
<MichaelRaskin> For some values of vacation
<sphalerite> Nick Hu: nobody ever seems to take that offer, so the problem isn't so much with writing XML as with writing documentation in the first place :)
<NickHu> sphalerite: Is there a manual section on contributing to the manual?
<gchristensen> yes I believe so
<MichaelRaskin> Pre-conference I reacted to GH mentions but not much more. Then ICALP, then SSCM (I'd say the top summer school for grade 10 to university year 2 in Russia)
<NickHu> Also, I read on one of the issues that there are some strong opinions about having inline manual content (doxygen-like) in nix expressions
<moredhel> Thanks all! sphalerite, I got it working :) Now I have to stop procrastinating and get back to work :)
<MichaelRaskin> Also, at some point Freenode has started kicking me for excess flood (before conference), and I didn't have energy to investigate
<sphalerite> moredhel: np! :)
<gchristensen> NickHu: there are
<sphalerite> Nick Hu: there is a section. It's not very big though https://nixos.org/nixpkgs/manual/#chap-contributing
<NickHu> //nixos.org/nixos/manual/index.html#sec-writing-documentation
<NickHu> it took me 3 attempts to locate it, just found isaw t
<NickHu> whoops
<goibhniu> pie__: you want to build that from a local repo?
<pie__> yes
<NickHu> Doesn't anyone else find it confusing how there's a nix manual, a nixpkgs manual, and a nixos manual?
<goibhniu> pie__: and what happens?
<gchristensen> NickHu: certainly!
<gchristensen> it is a challenging and confusing split
<NickHu> I see why the distinction is there, but there ought to be better crosslinking imo
<pie__> goibhniu, i tried using src = "./pathe/to" and i get this: https://gist.github.com/22459/dce861f1fb28e9f04ceeead0577b96c6
<gchristensen> also certainly :)
<sphalerite> Nick Hu: a little, but it makes sense. It's not really good to mix the nixos and nixpkgs docs, lest a macOS or foreign-distro user think they can use nixos config
<sphalerite> IMHO.
<NickHu> I don't see why the semantic xml tags are useful
<sphalerite> They allow for a lot more processing by machines
<gchristensen> it sounds like doing a deep-dive in to why docbook exists would help you make a salient argument against it
<sphalerite> This can be useful for accessibility and for search, for instance
<NickHu> yeah but I don't see that being utilised really
<goibhniu> pie__: sorry, I think you need someone who's familiar with buildRustPackage
bennofs has quit [(Ping timeout: 260 seconds)]
<NickHu> sphalerite: the search is just a google search
<sphalerite> Nick Hu: But it's there, so it can be done. If it were all markdown it wouldn't be possible, bar someone redoing all the markup.
<NickHu> admittedly I don't use accesibility features, but I can't imagine it's that hard to do with a lightweight text markup language
<pie__> goibhniu, ok thanks anyway
<sphalerite> The accessibility isn't tied to the XML, it's tied to the semantic markup.
<goibhniu> pie__: my pleasure
<sphalerite> There are probably alternative ways to express content according to the docbook schema.
takle_ has joined #nixos
jtojnar_ has joined #nixos
jtojnar_ is now known as jtojnar
<sphalerite> I don't know much about accessibility technologies either, but I cannot imagine that a screenreader for instance would be hindered rather than helped by semantic markup.
jtojnar has quit [(Client Quit)]
gm152 has quit [(Quit: Lost terminal)]
tmaekawa has joined #nixos
<MichaelRaskin> Hm, lilypond build failure is weird
takle has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #27793: dockerTools: fix permissions on base image (master...dockerTools-permissions) https://git.io/v78VS
NixOS_GitHub has left #nixos []
nslqqq has quit [(Ping timeout: 260 seconds)]
mudri`` has quit [(Ping timeout: 260 seconds)]
jophish has quit [(Quit: leaving)]
jophish has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/v78PZ
<NixOS_GitHub> nixpkgs/master d30b2eb Valentin Shirokov: Removed networking.fqdn option...
NixOS_GitHub has left #nixos []
<pie__> goibhniu, i think it might be worth trying to use fetchgit local, maybe that might fix it
<pie__> but idk how to pass the path
<pie__> passing it normally doesnt like it
<pie__> (one sec)
<pie__> oh nevermind i figured it out
dalaing has quit [(Ping timeout: 246 seconds)]
sphalerite has quit [(Ping timeout: 246 seconds)]
Dezgeg[m] has quit [(Ping timeout: 240 seconds)]
octalsrc[m] has quit [(Ping timeout: 240 seconds)]
WinterFox[m] has quit [(Ping timeout: 255 seconds)]
etcinit[m] has quit [(Ping timeout: 246 seconds)]
<pie__> ah....well that wasnt the problem...
mith[m] has quit [(Ping timeout: 246 seconds)]
spacekitteh[m] has quit [(Ping timeout: 246 seconds)]
sziszi[m] has quit [(Ping timeout: 240 seconds)]
timclassic has quit [(Ping timeout: 240 seconds)]
mhsjlw[m] has quit [(Ping timeout: 240 seconds)]
Khorne[m] has quit [(Ping timeout: 240 seconds)]
peterhoeg has quit [(Ping timeout: 240 seconds)]
Magnap[m] has quit [(Ping timeout: 240 seconds)]
primeos[m] has quit [(Ping timeout: 240 seconds)]
bendlas has quit [(Ping timeout: 240 seconds)]
eqyiel[m] has quit [(Ping timeout: 255 seconds)]
trikl[m] has quit [(Ping timeout: 255 seconds)]
NickHu has quit [(Ping timeout: 255 seconds)]
scott2 has quit [(Ping timeout: 255 seconds)]
dibblego[m] has quit [(Ping timeout: 255 seconds)]
Ralith has quit [(Ping timeout: 240 seconds)]
mdash has quit [(Ping timeout: 240 seconds)]
benkolera has quit [(Ping timeout: 240 seconds)]
Guest26663 has quit [(Ping timeout: 246 seconds)]
alain[m] has quit [(Ping timeout: 255 seconds)]
taktoa[m] has quit [(Ping timeout: 255 seconds)]
ninegua[m] has quit [(Ping timeout: 255 seconds)]
a123123123[m] has quit [(Ping timeout: 255 seconds)]
ycy[m] has quit [(Ping timeout: 255 seconds)]
musicmatze[m] has quit [(Ping timeout: 255 seconds)]
Sovereign_Bleak has quit [(Ping timeout: 255 seconds)]
sudoreboot[m] has quit [(Ping timeout: 258 seconds)]
myklam[m] has quit [(Ping timeout: 246 seconds)]
frio[m] has quit [(Ping timeout: 246 seconds)]
Exee7uvo[m] has quit [(Ping timeout: 246 seconds)]
ArdaXi[m] has quit [(Ping timeout: 246 seconds)]
aspiwack[m] has quit [(Ping timeout: 246 seconds)]
icetan has quit [(Ping timeout: 240 seconds)]
corngood has quit [(Ping timeout: 240 seconds)]
bhipple[m] has quit [(Ping timeout: 240 seconds)]
sk23[m] has quit [(Ping timeout: 240 seconds)]
regnat[m] has quit [(Ping timeout: 240 seconds)]
bachp has quit [(Ping timeout: 240 seconds)]
Oo[m] has quit [(Ping timeout: 240 seconds)]
revoltmedia[m] has quit [(Ping timeout: 240 seconds)]
necronian has quit [(Ping timeout: 240 seconds)]
hl has quit [(Ping timeout: 240 seconds)]
<goibhniu> pie__: could it be that you need to fetch git submodules?
retrry[m] has quit [(Ping timeout: 264 seconds)]
fpletz[m] has quit [(Ping timeout: 264 seconds)]
tommyangelo[m] has quit [(Ping timeout: 264 seconds)]
mtncoder[m] has quit [(Ping timeout: 264 seconds)]
Drakonis[m] has quit [(Ping timeout: 264 seconds)]
adisbladis[m] has quit [(Ping timeout: 246 seconds)]
matrixkrav has quit [(Ping timeout: 246 seconds)]
jyp[m] has quit [(Ping timeout: 246 seconds)]
florianjacob has quit [(Ping timeout: 246 seconds)]
lecorpsnoir[m] has quit [(Ping timeout: 240 seconds)]
BurNiinTRee[m] has quit [(Ping timeout: 240 seconds)]
jack[m] has quit [(Ping timeout: 240 seconds)]
hendrik[m]1 has quit [(Ping timeout: 240 seconds)]
konfou[m] has quit [(Ping timeout: 240 seconds)]
dtz has quit [(Ping timeout: 240 seconds)]
wak-work[m] has quit [(Ping timeout: 240 seconds)]
pstn has quit [(Ping timeout: 240 seconds)]
xj9[m] has quit [(Ping timeout: 240 seconds)]
admin[m] has quit [(Ping timeout: 255 seconds)]
DIzFer[m] has quit [(Ping timeout: 255 seconds)]
TimePath has quit [(Ping timeout: 255 seconds)]
Yaniel has quit [(Ping timeout: 255 seconds)]
Kirill[m] has quit [(Ping timeout: 276 seconds)]
chominist[m] has quit [(Ping timeout: 276 seconds)]
baconicsynergy[m has quit [(Ping timeout: 276 seconds)]
edef[m] has quit [(Ping timeout: 276 seconds)]
spawnthink[m] has quit [(Ping timeout: 276 seconds)]
jsv[m] has quit [(Ping timeout: 255 seconds)]
sargon[m] has quit [(Ping timeout: 255 seconds)]
thematter[m] has quit [(Ping timeout: 255 seconds)]
copumpkin has quit [(Ping timeout: 255 seconds)]
cornu[m] has quit [(Ping timeout: 255 seconds)]
zimbatm has quit [(Ping timeout: 255 seconds)]
M-liberdiko has quit [(Ping timeout: 255 seconds)]
JameySharp[m] has quit [(Ping timeout: 258 seconds)]
Kallegro[m] has quit [(Ping timeout: 258 seconds)]
davidar has quit [(Ping timeout: 258 seconds)]
herzmeister[m] has quit [(Ping timeout: 258 seconds)]
reactormonk[m] has quit [(Ping timeout: 258 seconds)]
unlmtd has quit [(Ping timeout: 258 seconds)]
<pie__> goibhniu, i dont think so but doesnt it already do that by default?
jlle[m] has quit [(Ping timeout: 264 seconds)]
StuK[m] has quit [(Ping timeout: 264 seconds)]
rycee[m] has quit [(Ping timeout: 264 seconds)]
wmertens[m] has quit [(Ping timeout: 264 seconds)]
danielrf has quit [(Ping timeout: 264 seconds)]
qrilka[m] has quit [(Ping timeout: 264 seconds)]
AlanPearce[m] has quit [(Ping timeout: 264 seconds)]
Wysteriary[m] has quit [(Ping timeout: 264 seconds)]
bennofs[m] has quit [(Ping timeout: 264 seconds)]
indefini has quit [(Ping timeout: 264 seconds)]
sirius[m] has quit [(Ping timeout: 264 seconds)]
seif[m] has quit [(Ping timeout: 276 seconds)]
cwopel has quit [(Ping timeout: 276 seconds)]
Elephant454[m] has quit [(Ping timeout: 276 seconds)]
berot3[m] has quit [(Ping timeout: 276 seconds)]
offlinehacker[m] has quit [(Ping timeout: 276 seconds)]
cinimod has joined #nixos
<seequ> Ehm, why doesn't `gnupg` install gpg?
<gchristensen> you probably want gnupg2
<gchristensen> erm, gnupg gets you gpg2
erictapen has quit [(Ping timeout: 260 seconds)]
<seequ> Ah.
<globin> seequ: you probably want gnupg1compat if you really need the gpg binary or gpg1
<goibhniu> pie__: I don't think so, unless buildRustPackage does that
<seequ> No, I just didn't realize it installed gpg2 :)
<gchristensen> niksnut: I put in a PR which I didn't expect to get thumbs-ups on, it converts lib/*.nix to use a fixed-point and be explicit about what functions from various libs are reexported to lib directly. anyway, I'm planning on merging it later today or tomorrow, but you may want to take a look :) https://github.com/NixOS/nixpkgs/pull/27797
<pie__> the thing is this works normally....
<pie__> i mean this expresson works, just not mine..
<pie__> well the nixpkgs one uses fetchfromgithub
<goibhniu> pie__: oh! sorry
<pie__> goibhniu, normally i have more trouble reading through nixpkgs xD
<pie__> *sifting through
<goibhniu> :)
<seequ> Does NixOS mount usbs by default?
<seequ> And if it does, where?
nslqqq has joined #nixos
<sauyon> that seems highly unlikely\
mudri`` has joined #nixos
MarcWeber has quit [(Ping timeout: 248 seconds)]
<niksnut> gchristensen: hm, that giant list of inherits seems kinda ugly...
cinimod has quit [(Read error: Connection timed out)]
Wizek_ has joined #nixos
mudri`` has quit [(Read error: Connection timed out)]
mudri`` has joined #nixos
MarcWeber has joined #nixos
Wizek has joined #nixos
<pie__> idk why it wouldnt work like this though..
<goibhniu> pie__: did you try downloading the release from github (instead of cloning it from master)?
<gchristensen> niksnut: I agree :/ that is the biggest downside. one thing about those giant lists is I don't think we would have exported as many fn's if we had to make them explicitly exported like that.
<pie__> goibhniu, is there a way to delete the currently built package to test whether it still builds? readding the fetchfromgithub works but its using the cached build
<yegortimoshenko> which hash function does nix use for /nix/store/?
MoreTea has joined #nixos
john has joined #nixos
john is now known as Guest58176
<gchristensen> niksnut: if you have suggestions, I'll try them :) if you don't think we can make it nicer and don't want it, no worries -- I didn't expect anyone to want it in the first place :P
<niksnut> gchristensen: no, can't think of any. It's probably unavoidable due to the lack of laziness in "with lib"
<yegortimoshenko> gchristensen: thanks! so it seems it's just base32-encoded md5/sha1/sha256/sha512...
<goibhniu> pie__: you can use `nix-store --delete /nix/store/path`
<gchristensen> niksnut: yeah, I tried finding other routes but the only things I found that worked at all broke things
<seequ> How can I add /media ?
<Guest58176> Hi friends, when I did nixos-rebuild test on a previous generation (booted from grub), I lost everything in my /boot/UEFI/nixos and /boot/UEFI/linux folder. Therefore I cannot boot nixos. Any idea how to rebuild them?
<pie__> goibhniu, how do i get that path? xD
<gchristensen> Guest58176: hi, is /boot a separate partition?
<Guest58176> yes
<Guest58176> Dual booted with windows too
<gchristensen> Guest58176: is it mounted? sometimes this is a problem, /boot isn't mounted and it messes things up
<goibhniu> you can follow the symlinks e.g. readlink -f `which alacrity`
<Guest58176> I looked with grub and it was empty
<goibhniu> pie__: you probably need to uninstall it first
<Guest58176> I'll look it more via windows
<pie__> goibhniu, how do i uninstall it? xD
<pie__> i mean its not installed, i just use nix-shell
<gchristensen> Guest58176: I mean right now, is /boot mounted?
<goibhniu> pie__: nix-env -e
<Guest58176> No I'm on windows to talk to you. It was on grub start because I saw other files inside
<pie__> goibhniu, and then?
<Guest58176> gchristensen: While doing `ls /efi/nixos` from grub, there was no file inside.
fikse has joined #nixos
<v0|d> gchristensen: any plans to replace compressHash(,20) with identity?
<gchristensen> v0|d: I have no idea what that means
<Guest58176> gchristensen: I was trying to debug a problem with nixos & new linux kernel version not booting (error was `EFI stub: failed to read file. I can't boot!). Might be related to failing to rebuild on boot full? (https://github.com/NixOS/nixpkgs/issues/23926). I then switched to an old generation from the boot menu and did 'nixos-rebuild test', which supposedly deleted the linux and nixos images.
<v0|d> gchristensen: max filename length is 112 in my store. i don't see the point in compressHash.
<v0|d> gchristensen: i expect it to be removed soon.
hellrazor has joined #nixos
<nixos-users-wiki> "Installation guide" edited by NickHu https://git.io/v78MQ
<v0|d> i am pretty confident that it is possible to attack (ie scond preimage) to trunc sha256.
<v0|d> sha256 isnt meant to be 160 bits.
ebzzry has quit [(Ping timeout: 260 seconds)]
<v0|d> at least there should be an option to use full 256bits.
fikse has quit [(Ping timeout: 246 seconds)]
mudri``` has joined #nixos
<gchristensen> v0|d: sorry, I'm really out of my league here. I had no idea this is something we did.
<v0|d> gchristensen: okk np:)
ebzzry has joined #nixos
mudri`` has quit [(Ping timeout: 240 seconds)]
michiel_l has joined #nixos
<gchristensen> v0|d: I'd recommend opening a github issue :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar closed pull request #27657: ld-wrapper: Optimize expanding rpath (staging...optimize-rpath) https://git.io/v7ONo
NixOS_GitHub has left #nixos []
<gchristensen> niksnut: for clarity, does "It's probably unavoidable due to the lack of laziness" mean you're OK with the change, or that the unavoidable ugliness means I shouldn't merge it?
mrcheeks has joined #nixos
mbrgm has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
mbrgm has joined #nixos
<niksnut> gchristensen: the first
<gchristensen> cool :) thank you :D ok I'll add that to the page. I'm pretty impressed for a change I almost didn't even PR ...
Guest58176 has quit [(Quit: Page closed)]
proteusguy has quit [(Remote host closed the connection)]
deltasquared has joined #nixos
<seequ> ..ah, heh `sudo mkdir /media` worked
zx2c4 has quit [(Excess Flood)]
<seequ> Didn't expect it to, considering.
zx2c4 has joined #nixos
<deltasquared> why wouldn't it? it's not like nixos totally stops you from going outside it's bounds
<deltasquared> it makes it hard, sure.
<seequ> Eh, root paths kind of feel like a thing NixOS would control.
<seequ> Is there actually an option for that?
<gchristensen> nix isn't that much of a controller
<seequ> I'd like to have the creation of /media in my config
<gchristensen> that isn't really a thing nix can describe but you could make a module with an activation script to create it
Arcaelyx has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<deltasquared> I guess you *could* dunk processes in namespaces by default if you really wanted
<niksnut> /media is deprecated by /run/media/<user> btw
<deltasquared> niksnut: only if you use udisks ;)
magnicida has joined #nixos
Ivanych has quit [(Ping timeout: 276 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f90c4be438 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
moth has joined #nixos
<moth> yo guys! I just installed nix on arch through package manager and I get error nixbld specified in build-sers-group does not exist when I try to do nix-channel --update
<moth> and I don't have a nix.conf anywhere according to find
darlan has joined #nixos
darlan has quit [(Client Quit)]
<deltasquared> moth: how did you install nix? I have a similar setup of nix hosted on arch
<deltasquared> did you use the script
<gchristensen> moth: are you running nix commands as root? single-user installations of nix don't support root usage out of the box
<moth> deltasquared: I just used yaourt
<moth> I sudo them from my user
joehh has joined #nixos
<deltasquared> moth: I'm not sure about the AUR package for it, but I just created the /nix directory owned by my user, and was able to run the install without using sudo once
<moth> do you think it would work if I just uninstall and then install according to the docs?
<deltasquared> possibly. it's what I did.
<moth> okay cool I'll just do that
v0|d has quit [(Remote host closed the connection)]
<deltasquared> moth: like I said, if you use sudo *once* to create /nix, chown it to your user, you can then run the install script without needing privileges at all
<deltasquared> you can even install nix packages unprivileged. a nice feature of nix in general.
<domenkozar> aminechi1haoui: ohh, I have implemented the res- trick in nixops, but there is no topological sort implemented for dependencies between resources
<domenkozar> so SG could be provisioned faster in a thread than EIP
<deltasquared> gchristensen: makes me curious as to how nix handles binaries that want to be setuid, I haven't encountered that thus far. does nixos just not allow them or is there something else there
<gchristensen> deltasquared: nix cannot create setuid binaries
<deltasquared> gchristensen: so uh, what does the typical nixos user do for sudo?
<gchristensen> deltasquared: the sandbox prevents setting the setuid bit, and if it manages to be created it is stripped when it is added to the store
<deltasquared> I mean personally rootflags=nosuid suits me just fine, it closes off an entire security bug class. just curious
<ikwildrpepper> domenkozar: you can let elastic ips be created before sg's
<gchristensen> deltasquared: on nixos we have setuid and "capability wrappers" that create setuid executables outside of the nix store, which are in the path
<gchristensen> $ which ping
<gchristensen> /run/wrappers/bin/ping
<domenkozar> ikwildrpepper: how is that done in nixops?
<ikwildrpepper> ./nixops/backends/ec2.py: def create_after(self, resources, defn):
<domenkozar> create_after?
<deltasquared> gchristensen: fair enough. I was hoping for daemon-based sudo, somewhat similar to what android rooting currently has to do to get around selinux
<domenkozar> aha
<ikwildrpepper> yeah
<ikwildrpepper> not ideal, but for this case it works
<gchristensen> deltasquared: no, because the problem expands far beyond sudo, we'd have to change _lots_ of software to make that work
<domenkozar> I'll see how it should be implemented,thanks
<gchristensen> deltasquared: like ping :)
<moth> deltasquared: great thx. worked like a charm
<deltasquared> moth: oh? is nix behaving now
<deltasquared> also beware the libnss module problem
<moth> deltasquared: nix-channel --update behaved afaict. Alright, what's the libnss module problem?
<deltasquared> moth: if you do anything funny with your host /etc/nsswitch.conf like I did, nix binaries may need to be told where to find e.g. systemd's resolve nss module
<deltasquared> I use systemd-resolved instead of dns directly, see. makes the firewalling easier.
<domenkozar> ikwildrpepper: thanks
<moth> That's interesting. Well I don't have any plans on doing NS stuff right now, so I should be good.
<deltasquared> someone else ran into it with some kind of networking setup. it appears to be my speciality round here right now :P
wowi42 has quit [(Quit: Hulk Hungry!!!)]
<deltasquared> the tl;dr is read the docs and look at how the profile docs work, then you may have to export LD_LIBRARY_PATH to point at a profile's lib dir for nix binaries that need to use any "non-standard" nss module.
<deltasquared> s/profile docs/profiles/
<deltasquared> other than that, have fun I guess.
Ivanych has joined #nixos
<moth> Alright, I'll remember that. Thanks :)
rydnr has joined #nixos
IITaudio_ has quit [(Ping timeout: 260 seconds)]
<rydnr> hi all
fikse has joined #nixos
fre has quit [(Ping timeout: 240 seconds)]
<rydnr> I've been using NixOS for some time, but never did anything besides declaring what to install in /etc/nixos/configuration.nix. When I had some issues with certain tools, I ended up using them in Docker containers. I'd love to be able to do basic things, such as installing my own packages. I've read the NixOS manual, and some Nix guides here and there, but I still think there're lots of things I don't yet understand. Let me ask you some q
<gchristensen> rydnr: we'll be glad to help. your message looks like it was cut off at "Let me ask you some q"
Myrl-saki has joined #nixos
fikse has quit [(Ping timeout: 255 seconds)]
fre has joined #nixos
reinhardt has joined #nixos
<rydnr> - What does nix-shell do?
reinhardt has quit [(Client Quit)]
fikse has joined #nixos
goibhniu1 has joined #nixos
<rydnr> For what I've read, it reads shell.nix in the current directory and runs bash in an environment after applying shell.nix
jensens has joined #nixos
python476 has quit [(Ping timeout: 248 seconds)]
<LnL> it starts an interactive shell with the build environment of the expression
reinzelmann has quit [(Ping timeout: 240 seconds)]
goibhniu has quit [(Ping timeout: 240 seconds)]
dbmikus has joined #nixos
<LnL> so you can use it to debug build issues of a package
deltasquared has quit [(Quit: Leaving)]
<LnL> or another common usecase is to define a dummy derivation with some dependencies giving you a temporary environment with those packages available
proteusguy has joined #nixos
deltasquared has joined #nixos
<LnL> that's what -p does for you
ison111 has joined #nixos
babic has quit [(Remote host closed the connection)]
MoreTea has quit [(Quit: Leaving)]
<rydnr> Ok I think I get it. Could it be used also to automate the process of having a common development among developers using Nix?
<mguentner> absolutely!
<LnL> exactly, just like an expression for a package
earldouglas has joined #nixos
cfricke has joined #nixos
<LnL> and if that's checked into the project other people can use it to get the same environment (given the same nixpkgs revision)
<domenkozar> niksnut: do you remember, did you eventually switch off dir_index (htree index for directories) on ext4 while hydra was still using global store?
charlycoste has joined #nixos
<domenkozar> there are "out of disk space" errors comming up seemingly from birthday paradox given that dir_index is 32bit, there are about 3.5M files in the dir
<deltasquared> oh, what was the deal with hydra by the way? I'm relatively new to this but my understand was that it is some kind of build server that suffered some outage
<domenkozar> I'm afraid disabling dir_index will make things really bad, but I'm not sure how often Hydra tries to list it
<LnL> it's what builds all of the caches
<deltasquared> LnL: ok, figures
<deltasquared> anyone care to backfill on why it, er, blew up?
<domenkozar> deltasquared: what do you mean by "blew up"?
<LnL> don't know what the problem was yesterday
<Dezgeg> time to install kernel 4.13 I suppose: The ext4 filesystem has a new "largedir" option that increases the number of files that can exist in a single directory. Users who find the current limit of about 10 million files a bit constraining can enable this feature and raise the limit to around 2 billion. That should hold most people for the next few years.
<deltasquared> huh, I could have sworn there were grumblings about it last week
<deltasquared> Dezgeg: that sounds like the lwn description
<Dezgeg> yes
<LnL> we build 40k packages for each branch so it runs into scaling problems sometimes :)
<LnL> kind of to be expected
<deltasquared> wouldn't some form of subdirectories help?
<deltasquared> is there a particular reason this limit can't be worked around, I mean
<LnL> domenkozar: out of inodes?
<LnL> I think you can increase it on ext4
<deltasquared> I never even thought I'd ever run out of inodes ever, I completely forgot about that
<domenkozar> no
<domenkozar> it's literally dir_index
<domenkozar> it hashes directory names with half of md4
<domenkozar> with 3.5M entries
<LnL> heh
<domenkozar> you start hitting collisions
<domenkozar> because of uniform random distribution
<domenkozar> ergo, birthday paradox
<gchristensen> oh my word.
<domenkozar> linux is web scale :P
<LnL> did the hydra master use ext4 when it was still writing builds to disk?
<domenkozar> yes
<deltasquared> domenkozar: oh shit. so ext4 can't fix this then?
<gchristensen> ext4 is not all things to all people :P
<domenkozar> Dezgeg: thanks, that does look useful
<deltasquared> gchristensen: oh, for sure.
tmaekawa has quit [(Ping timeout: 248 seconds)]
<deltasquared> seems to be better at handling many small file reads on spinning rust from my experience
<deltasquared> btrfs... kinda sucks depending on tree depth.
<deltasquared> an SSD would be more ideal but I lack the monies for that
<LnL> talking about large directories, is there a reason nix doesn't do something like git creating a separate dir for the first to characters of the hash
cfricke has quit [(Ping timeout: 255 seconds)]
<deltasquared> I lack the money for a system fast enough to cope with such storage, never mind...
<deltasquared> LnL: maybe no-one thought that would be a problem
<deltasquared> I'm no nix dev but it doesn't seem like it would be a problem, it'd just be an extra step in working out the paths.
<LnL> yeah you usually don't have enough storage to hit problems like this :p
* domenkozar hit it at 1.7TB
<deltasquared> oh dear.
<LnL> oh!
<deltasquared> note to self: GC once in a while
<LnL> are there a lot of drv files in the store or something?
<domenkozar> LnL: in general lots of derivation results
<deltasquared> oh well, could be worse, it's not like btrfs exploding on ENOSPC
<deltasquared> ... right?
<domenkozar> it's ext4 exploding on ENOSPC
<domenkozar> :D
<deltasquared> seems more like ETHISWASNTSUPPOSEDTOHAPPEN to me
<domenkozar> error: cannot link ‘/nix/store/.links/1rqwrvsw8v0vx80iqpy3m7mkpkyisnc8zlbypilq9a559wzqpjdf’ to ‘/nix/store/d66viwfm7041h713rlsn024k8h2cid7h-l2fwd_pktsize=_conf=_snabb=next_dpdk=16-04_qemu=2-5-1_num=9.drv’: No space left on device
<deltasquared> ugh, maybe it returns ENOSPC if an internal error (such as the mentioned birthday collision) happens
<domenkozar> that's the intermittent collision
<deltasquared> sounds like a unique enough use case to prod a kernel guy about if one could be found
ixxie has joined #nixos
goibhniu1 is now known as goibhniu
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gnidorah opened pull request #27801: qdirstat: add script dependency (master...qdirstat) https://git.io/v78bx
NixOS_GitHub has left #nixos []
<ixxie> If a configuration does not change, can something cause a nixos-rebuild to fail when it succeded before when I am on the stable channel?
<domenkozar> Dezgeg: I'm afraid that won't fix the collisons, at least I can't see how it would unless they'd bump dir_index to be 64bit
<gchristensen> ixxie: _rarely_ what's up?
Mercuria1Alchemi has quit [(Ping timeout: 240 seconds)]
<deltasquared> domenkozar: you'd have thought they would have a chaining fallback, like most sane hash tables do.
<LnL> it's not supposed to happen but it can
<ixxie> gchristensen: well, I cannot be entirely sure that I reverted the file to how it was the last time it built succesfully, but I could have sworn....
<ixxie> anyway, I am getting a "cannot build derivation ‘/nix/store/zaq1yxflvnqvrlpy87gi0vri7k0bqn6s-system-path.drv’: 1 dependencies couldn't be built"
pie__ has quit [(Ping timeout: 260 seconds)]
<Dezgeg> "This INCOMPAT_LARGEDIR feature allows larger directories to be created in ldiskfs, both with directory sizes over 2GB and and a maximum htree depth of 3 instead of the current limit of 2."
<gchristensen> ixxie: can you paste more log?
<Dezgeg> where the last part probably solves that
<domenkozar> Dezgeg: so htree depth implies the hashtable size?
<ixxie> hold on, I'm rebuilding without a module to try and narrow down the error
<domenkozar> ah, htree is a merkle tree
<Dezgeg> not exactly merkle tree I think but some sort of hashed tree allowing O(log n) lookups
fikse has quit [(Ping timeout: 240 seconds)]
<deltasquared> no video acceleration for me then, fun.
<domenkozar> HTree indexing improved the scalability of Linux ext2 based filesystems from a practical limit of a few thousand files, into the range of tens of millions of files per directory.
<domenkozar> lol
<domenkozar> 17 years later.
dannyg has joined #nixos
nh2 has joined #nixos
<deltasquared> [ 4412.831498] radeon 0000:02:00.0: GPU lockup (current fence id 0x000000000000dcae last fence id 0x000000000000dcc1 on ring 0)
<deltasquared> if I leave suddenly you know why >_>
<deltasquared> I only wanted video decode damnit
fre has quit [(Quit: WeeChat 1.9)]
JagaJaga has quit [(Ping timeout: 255 seconds)]
<domenkozar> from "Entry lookup" it seems like having more depth should help with collisions
<domenkozar> aha, that will help
<deltasquared> at the cost of having to go an extra level, of course. probably won't hurt too much on a hot cache
<mog> i just want to say i love nixos that is all
<deltasquared> mog: \o/
<mog> just did an upgrade was unhappy with part of it. rolled whole os back with 0 problems
<deltasquared> tis nice when package install is just an extract operation and old versions can stick around
<ixxie> gchristensen: https://pastebin.com/ZK9TtkSv
pie__ has joined #nixos
<deltasquared> alright, must go now before I burn through my power bill with this desktop tower on
deltasquared has left #nixos ["Leaving"]
ebzzry has quit [(Ping timeout: 258 seconds)]
fikse has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 1 new commit to master: https://git.io/v78xq
<NixOS_GitHub> nixpkgs/master 53931c0 Joachim Fasting: electrum: 2.8.3 -> 2.9.0
NixOS_GitHub has left #nixos []
<gchristensen> ixxie: do it again with --keep-going and then run it again, and then paste that output
kriztw has joined #nixos
Mateon2 has quit [(Remote host closed the connection)]
Mateon2 has joined #nixos
<mog> i am having problems upgraded chromium
<mog> i get this error error: cannot download google-chrome-stable_58.0.3029.110-1_amd64.deb from any mirror
<mog> so i downloaded that deb by hand and did nix-store --add the file
<mog> but its till 404ing and trying to get the file
<LnL> gchristensen: what's the reason you used all those inherits instead of unifying the attributesets?
charlycoste has quit [(Quit: Leaving.)]
Wizek_ has quit [(Ping timeout: 240 seconds)]
erasmas has joined #nixos
kuznero has quit [(Quit: Page closed)]
<ixxie> gchristensen: https://paste.ubuntu.com/25213558/ (wow it went over pastebin's limit xD)
<gchristensen> LnL: what does unifying mean?
<LnL> using (//) like it's right now
Phillemann has joined #nixos
<Phillemann> Is it possible to mount a directory from the host into a nixos-container?
Jackneill has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 1 new commit to master: https://git.io/v78hP
<NixOS_GitHub> nixpkgs/master 449946e Tim Steinbach: torbrowser: 7.0.2 -> 7.0.3...
NixOS_GitHub has left #nixos []
unlmtd has joined #nixos
<Phillemann> Ah, there's extraBinds apparently.
ThatDocsLady has quit [(Quit: Arma-geddin-outta-here!)]
<LnL> gchristensen: how's that related? I'm not talking about hiding functions
<gchristensen> LnL: // makes it impossible
Jackneill has quit [(Read error: Connection reset by peer)]
gnuhurd has quit [(Ping timeout: 255 seconds)]
<LnL> gchristensen: I don't think so, I'll take a better look in a couple of hours
<domenkozar> gchristensen: ugh, maintaining the list of imported functions sounds like a big drawback
ixxie has quit [(Quit: Lost terminal)]
gnuhurd has joined #nixos
<gchristensen> only if your function is widely usable enough to export it to lib directly
<gchristensen> otherwise it'll be at lib.strings.foobar
ixxie has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to release-17.03: https://git.io/v78jM
<NixOS_GitHub> nixpkgs/release-17.03 fc91f39 Tim Steinbach: torbrowser: 7.0.2 -> 7.0.3...
<NixOS_GitHub> nixpkgs/release-17.03 f39972b Joachim Fasting: electrum: 2.8.2 -> 2.8.3...
NixOS_GitHub has left #nixos []
<ixxie> whoops
<ixxie> gchristensen: it appears google-chrome is the culprit
<ixxie> I managed to rebuild without it
<ixxie> so.... that's weird
Jackneill has joined #nixos
<gchristensen> domenkozar: the spirit of the comment that was there is that we don't want to just put every function on `lib.fn-name` directly, but it was impossible to do because of the `//` automatically bringing everything in each lib attrset on to `lib`
<gchristensen> I'd be surprised if we had to do much maintenance of the inherit line, as I'd be surprised if we wanted to continue that for many new functions
<LnL> gchristensen: let strings = self: { ... }; in fix' (self: { strings = strings self; ... } // self.strings // ...)
<gchristensen> I know that may be possible, I'm saying it isn't desirable
iyzsong has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<LnL> that should expose bot strings.foo and foo
Infinisil has joined #nixos
<LnL> but sill uses a fixpoint instead of rec
<Phillemann> mguentner: Thank you, that worked perfectly.
<gchristensen> yes but lib.strings.fixedWidthString should be available but not lib.fixedWidthString
<LnL> ah, does that happen often?
<gchristensen> look at the comment I deleted about not exporting every little function
<gchristensen> then look at all the little functions that are exported
<LnL> because if not I think filterAttrs is still nicer then explicitly inheriting everythign
Phillemann has left #nixos ["WeeChat 1.9"]
<domenkozar> I think we should rethink our api there
<LnL> I'll look properly in a bit
<gchristensen> it is basically an accident that the vast majority of these functions are exported
<domenkozar> so they shouldn't exist
<domenkozar> :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 1 new commit to master: https://git.io/v74vC
<NixOS_GitHub> nixpkgs/master a0d4640 Linus Heckemann: nixos/timezone: support imperative timezone configuration (#26608)...
NixOS_GitHub has left #nixos []
<clever> gchristensen: i was just thinking, what about a util for nix on darwin, that would help manipulate nix.conf and reloading nix-daemon
<clever> gchristensen: sudo update-nix.conf --append binary-caches ... --append binary-cache-public-keys ... --restart
<gchristensen> an accident attached to a todo from 9 years ago https://github.com/grahamc/nixpkgs/commit/599015e8b071bc8d38779fbfc37961db1ac0f464
<gchristensen> domenkozar: I agree they shouldn't exist
<gchristensen> domenkozar: but combining this change + a huuuge break to basically all nix code using lib functions wasn't something I wanted to do together :P
<domenkozar> it would still break if lib.X didn't work suddenly
<gchristensen> lib.X will work
<gchristensen> I didn't break that API
<gchristensen> domenkozar: from this change we could wrap functions in trace lines saying lib.<exportedfunctionthatshouldnotbeexported> should be called instead by lib.sublib.exportedfunctionthatshouldnotbeexported
<gchristensen> I didn't break any call-time APIs in this change, it is why the imports are so long
<gchristensen> s/imports/inherits/
ison111 has quit [(Ping timeout: 246 seconds)]
<__Sander__> sigh
<clever> gchristensen: does the above util sound useful?
<gchristensen> clever: I'm not sure, but maybe? :/
jyp[m] has joined #nixos
baconicsynergy[m has joined #nixos
indefini has joined #nixos
cornu[m] has joined #nixos
Guest51532 has joined #nixos
sirius[m] has joined #nixos
konfou[m] has joined #nixos
bachp has joined #nixos
berot3[m] has joined #nixos
xj9[m] has joined #nixos
cwopel has joined #nixos
primeos[m] has joined #nixos
aspiwack[m] has joined #nixos
NickHu has joined #nixos
revoltmedia[m] has joined #nixos
timclassic has joined #nixos
mith[m] has joined #nixos
hendrik[m]1 has joined #nixos
davidar has joined #nixos
Kallegro[m] has joined #nixos
TimePath has joined #nixos
wak-work[m] has joined #nixos
frio[m] has joined #nixos
M-liberdiko has joined #nixos
sudoreboot[m] has joined #nixos
Oo[m] has joined #nixos
ArdaXi[m] has joined #nixos
matrixkrav has joined #nixos
chominist[m] has joined #nixos
octalsrc[m] has joined #nixos
AlanPearce[m] has joined #nixos
hl has joined #nixos
Exee7uvo[m] has joined #nixos
Elephant454[m] has joined #nixos
myklam[m] has joined #nixos
Drakonis[m] has joined #nixos
<gchristensen> oh hi matrix
spacekitteh[m] has joined #nixos
copumpkin has joined #nixos
reactormonk[m] has joined #nixos
herzmeister[m] has joined #nixos
Magnap[m] has joined #nixos
Wysteriary[m] has joined #nixos
florianjacob has joined #nixos
sargon[m] has joined #nixos
necronian has joined #nixos
spawnthink[m] has joined #nixos
edef[m] has joined #nixos
Sovereign_Bleak has joined #nixos
thematter[m] has joined #nixos
offlinehacker[m] has joined #nixos
benkolera has joined #nixos
dtz has joined #nixos
pstn has joined #nixos
bennofs[m] has joined #nixos
sk23[m] has joined #nixos
BurNiinTRee[m] has joined #nixos
bhipple[m] has joined #nixos
WinterFox[m] has joined #nixos
lecorpsnoir[m] has joined #nixos
mtncoder[m] has joined #nixos
mdash has joined #nixos
retrry[m] has joined #nixos
scott2 has joined #nixos
regnat[m] has joined #nixos
jack[m] has joined #nixos
Ralith has joined #nixos
dibblego[m] has joined #nixos
bendlas has joined #nixos
DIzFer[m] has joined #nixos
musicmatze[m] has joined #nixos
jsv[m] has joined #nixos
qrilka[m] has joined #nixos
peterhoeg has joined #nixos
wmertens[m] has joined #nixos
dalaing has joined #nixos
zimbatm has joined #nixos
adisbladis[m] has joined #nixos
AmineChikhaoui[m has joined #nixos
Dezgeg[m] has joined #nixos
admin[m] has joined #nixos
seif[m] has joined #nixos
rycee[m] has joined #nixos
JameySharp[m] has joined #nixos
ycy[m] has joined #nixos
StuK[m] has joined #nixos
trikl[m] has joined #nixos
tommyangelo[m] has joined #nixos
a123123123[m] has joined #nixos
etcinit[m] has joined #nixos
ninegua[m] has joined #nixos
corngood has joined #nixos
icetan has joined #nixos
eqyiel[m] has joined #nixos
Khorne[m] has joined #nixos
Kirill[m] has joined #nixos
jlle[m] has joined #nixos
fpletz[m] has joined #nixos
sziszi[m] has joined #nixos
taktoa[m] has joined #nixos
mhsjlw[m] has joined #nixos
alain[m] has joined #nixos
danielrf has joined #nixos
sphalerite has joined #nixos
ertes-w has quit [(Ping timeout: 260 seconds)]
drakonis_ has joined #nixos
<gchristensen> yes it would :)
<clever> gchristensen: and would also open up the option to make it more cross-platform, if we ever get multi-user on ubuntu for ex
<gchristensen> domenkozar: does what I said make sense? I haven't changed the external behavior of `lib` at all
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #26802: fetchnixpkgs: init (master...fetchnixpkgs) https://git.io/vQY2o
NixOS_GitHub has left #nixos []
bigvalen has quit [(Quit: ZNC by prozac - http://znc.sourceforge.net)]
simukis has quit [(Quit: simukis)]
drakonis_ has quit [(Read error: Connection reset by peer)]
simukis has joined #nixos
Jackneill has quit [(Quit: Leaving)]
bigvalen has joined #nixos
<kiloreux> I was talking to clever last time about not being able to execute a python script due to the LD_LIBRARY_PATH not finding the require shared libraries because nix is loaded
<kiloreux> he recommended me to use this script https://gist.github.com/kiloreux/5d9ea970623cb2f676cd03cc78b2f3be
<kiloreux> But i have been trying with it for over a week
<kiloreux> and I still couldn't fix it :(
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 1 new commit to master: https://git.io/v74TC
<NixOS_GitHub> nixpkgs/master 4ed291b georgewhewell: {radarr,sonarr}: add libcurl to library search path (#27628)
NixOS_GitHub has left #nixos []
<clever> kiloreux: i dont see that changing LD_LIBRARY_PATH any
<clever> kiloreux: can you add a simple python script that imports the problem module?
Jackneill has joined #nixos
<kiloreux> the problem module is cv2
<kiloreux> I get this
<kiloreux> ImportError: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
dannyg has quit [(Quit: dannyg)]
<clever> kiloreux: and what was the nix attribute path for opencv?
<FRidh> looks like opencv needs some fixing then
<kiloreux> "/nix/store/w779qvq466f1l6xm4qa6x9c2bxrqc445-opencv-3.2.0"
<FRidh> we probably need to hardcode some paths
<clever> FRidh: its a problem common to all of java and python
<clever> kiloreux: attribute, not store path
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] aszlig pushed 1 new commit to master: https://git.io/v74In
<NixOS_GitHub> nixpkgs/master 4f90120 aszlig: nixos/timezone: Fix evaluation error...
NixOS_GitHub has left #nixos []
<kiloreux> Not sure I understand this one :( ?
<FRidh> clever: what do you mean common? That we need to patch interpreted languages, or this specific library?
<clever> FRidh: all interpreted languages, because we cant patchelf the interpreter
<FRidh> clever: exactly
<clever> kiloreux: how is numpy getting into the python search path?
mguentner has quit [(Quit: WeeChat 1.9)]
<kiloreux> I am extending the PYTHON_PATH manually for testing purposes now. By pointing to the module in nix package.
<clever> thats what the nix expression should be doing for you
<kiloreux> In that case why do I keep getting the ImportError ?
<clever> because the nix expression should also be patching LD_LIBRARY_PATH
<clever> but you have done neither
<FRidh> you're proposing an ugly solution
<kiloreux> pardon my ignorance, but how can I do this ?
<clever> that is what i have so far
<clever> no need to mess with PYTHON_PATH
rydnr has quit [(Ping timeout: 260 seconds)]
<kiloreux> I will test that and see what happens. Thank you.
<clever> it doesnt have the LD_LIBRARY_PATH fix yet, i'm waiting for opencv3 to compile to test that
tvon has joined #nixos
bennofs has joined #nixos
<clever> kiloreux: i dont get any errors when i run the script produced by that gist
<clever> surprisingly, python.withPackages delt with the opencv libs automatically
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gebner pushed 1 new commit to master: https://git.io/v74qe
<NixOS_GitHub> nixpkgs/master b94da10 Gabriel Ebner: libqalculate, qalculate-gtk: 0.9.9 -> 1.0.0
NixOS_GitHub has left #nixos []
<kiloreux> And you had both opencv and numpy installed through nix right ?
<clever> nope
<clever> the entire point of nix, is to make it work without the user having to install other things
<gnuhurd> how do I add packages to Emacs?
<clever> list everything you need in the default.nix and nix will fetch them for you
<gnuhurd> I can use M-x package-list-packages
<gnuhurd> but I heard there's a way in configuration.nix
<kiloreux> You mean something like "opencv = pkgs.opencv;"
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/v74mm
<NixOS_GitHub> nixpkgs/master 499e36c gnidorah: qdirstat: add script dependency
<NixOS_GitHub> nixpkgs/master b0ea683 Jörg Thalheim: Merge pull request #27801 from gnidorah/qdirstat...
NixOS_GitHub has left #nixos []
zraexy has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jensbin opened pull request #27802: networkmanager_dmenu: unstable-2017-05-28 -> unstable-2017-06-15 (master...networkmanager_dmenu-update) https://git.io/v74mS
NixOS_GitHub has left #nixos []
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
tg has quit [(Excess Flood)]
bennofs has quit [(Ping timeout: 240 seconds)]
<ixxie> anybody else having trouble building nixos with google-chrome?
gnuhurd has quit [(Remote host closed the connection)]
<gchristensen> ixxie: I've seen a few comments about it lately.
<gchristensen> ixxie: there might be an existing "fix" PR, if you find one / make one I'll merge
tg has joined #nixos
gnuhurd has joined #nixos
jbaum98 has joined #nixos
<ixxie> alright, ill check it out gchristensen; but one thing I already discovered is that a quick package search reveals google-chrome, google-chrome-beta and google-chrome-dev are all the same version
bkchr has joined #nixos
ixxie has quit [(Quit: Lost terminal)]
<bkchr> Hi, how can I express runtime dependencies in a mkDerivation?
<gchristensen> that happens from time to time
<bkchr> The package needs to run sshfs and that needs to be in the PATH
<gchristensen> to ixxie^
ixxie has joined #nixos
pie__ has quit [(Quit: Leaving)]
pie_ has joined #nixos
FRidh has quit [(Quit: Konversation terminated!)]
<clever> bkchr: use wrapProgram to prepend sshfs to PATH
<kiloreux> clever, putting that gist in a directory under default.nix and running nix-env -f directory -iA on that directory is not giving me any output whatsoever. Could i be wrong about the way to run it ?
<clever> kiloreux: i run nix-build on it
<clever> nix-env is not the way to test things
<kiloreux> Thank you for that.
<pie_> is there something for getting a mutable environment while youre doing dev work?
<pie_> mutable derivation i guess
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix opened pull request #27803: pythonPackages.daphne: 1.2.0 -> 1.3.0 (master...update_daphne) https://git.io/v74ZD
NixOS_GitHub has left #nixos []
<clever> pie_: i mainly use nix-shell and then ./configure && make
fikse has quit [(Ping timeout: 246 seconds)]
civodul has quit [(Remote host closed the connection)]
[0x4A6F] has joined #nixos
Mateon3 has joined #nixos
Mateon2 has quit [(Ping timeout: 260 seconds)]
__Sander__ has quit [(Quit: Konversation terminated!)]
Mateon3 is now known as Mateon2
<bkchr> @clever: Thank you again :)
<ixxie> when a derivation has src = binary; where does that binary come from?
moth has quit [(Quit: leaving)]
<tilpner> Is there something like python.withPackages for Lua? It's not obvious how to make installed packages available to other programs
deltasquared has joined #nixos
rydnr has joined #nixos
<rydnr> Hi again.
* deltasquared waves
<rydnr> I have another question... For some reason, I'm not able to install the gradle_latest package. I've seen it in nixpkgs repo it's available in "master" (https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/tools/build-managers/gradle/default.nix) but not in the "stable" branch. I'm trying to follow this approach http://anderspapitto.com/posts/2015-11-01-nixos-with-local-nixpkgs-checkout.html , but still nixos-rebuild switch doesn
<rydnr> I've always found difficult to know where (or from which channel) nix is retrieving the package information from.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] aszlig opened pull request #27804: NixOS /etc/hosts improvements (master...nixos-hosts-improvements) https://git.io/v74WE
NixOS_GitHub has left #nixos []
kriztw has quit [(Quit: Lost terminal)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] expipiplus1 opened pull request #27805: pythonPackages.gst-python: Use correct package set (master...gst-python3) https://git.io/v74Ww
NixOS_GitHub has left #nixos []
<rydnr> Currently, nix-channel --list returns nixos https://nixos.org/channels/nixos-unstable, and NIX_PATH is nixpkgs=/etc/nixos/nixpkgs:nixos-config=/etc/nixos/configuration.nix
<clever> rydnr: it looks like you customized NIX_PATH and it now ignores all channels
nschoe has quit [(Quit: Program. Terminated.)]
<rydnr> clever: but then why it doesn't find gradle_latest, if it's in my cloned repository
<rydnr> Is there a cache or something?
<clever> rydnr: add -v to the nix-build command and you will see every file its reading
<rydnr> clever: sorry, how should I use nix-build? I only know how to use nixos-rebuild switch
<clever> nixos-rebuild may also accept -v
<kiloreux> clever, after running nix-build and going to the generated directory I am still getting the ImportError.
<rydnr> clever: it does, thank you
<kiloreux> Not sure what you've done to solve it.
<clever> kiloreux: can you gist the output of nix-build?
Sonarpulse has joined #nixos
<jluttine> any guides on how to set up a django-based website on nixos?
<hodapp> hmmm... how might I start working in a build environment in which I want it to pull some source archive, but not attempt to build it?
<clever> kiloreux: and what happens when you run ./result/bin/output ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 2 new commits to master: https://git.io/v74lA
<NixOS_GitHub> nixpkgs/master 8523ab5 Tuomas Tynkkynen: raspberrypifw: 1.20170427 -> 1.20170515
<NixOS_GitHub> nixpkgs/master 3db9a2b Tuomas Tynkkynen: linux_rpi: 1.20170427 -> 1.20170515
NixOS_GitHub has left #nixos []
<kiloreux> clever, I get this https://pastebin.com/bQyz7CiB
<clever> kiloreux: that doesnt start with ./result/
<kiloreux> I am not quite sure where the result directory is ?
<kiloreux> or where it should even be ?
fikse has joined #nixos
<clever> ls -ltrh
bennofs has joined #nixos
ambro718 has joined #nixos
Phillemann has joined #nixos
justelex_ has joined #nixos
<kiloreux> only listing my home directory
<clever> nix-build creates a result symlink in the directory you ran it in
<Phillemann> I have an application that, during its build process, downloads a binary and tries to run it. This fails, of course, because /lib/ld-... doesn't exist. I'm in a nixos container. Should I symlink/mount ld to /lib somehow? Or what's the typical solution for this?
<Phillemann> Note that I can't patchelf, because I cannot interfere in the build process.
<clever> Phillemann: if its doing network during a build, its already broken, and that should be stopped first
<clever> Phillemann: does it have the ability to detect if the file has already been downloaded?
<markus1199> was there some recent change wrt to the way we specify etc files? I am getting an error on nixos-unstable-small with 'etc."X11/Xresources".text = '' ...' saying syntax error, unexpected $end, expecting '"'
<Phillemann> Sure, this sucks hugely, but I don't have the resources to fix it completely ;)
<deltasquared> I would be curious as to why it needs to download and *run* a binary from the internet during a build process
<Phillemann> The binary is actually node, and it does so to fix a certain node version.
<Phillemann> And again, this _sucks_, I know :D
<gchristensen> Phillemann: the other problem is nix with sandboxing won't allow the build process to download anything.
<deltasquared> I can't even name the reaction face right now I have to this
<deltasquared> the jackie chan one
<gchristensen> Phillemann: the best resolution would be to patch the build process.
Wizek has quit [(Quit: Connection closed for inactivity)]
<kiloreux> clever, It doesn't seem to have created one.
<deltasquared> gtg now, dinner time.
<kiloreux> I will rerun it.
deltasquared has quit [(Quit: Leaving)]
<gchristensen> or figure out if it won't download the file if it already exists, put the file there before you run the build process, and patch it
<Phillemann> gchristensen: The thing is, I'm not trying to build the thing using a nix expression. I just want it containerized. I could use docker, of course, but I wanted to try nix' containers. :)
<gchristensen> that is challenging
<gchristensen> if you're going to ignore the benefits of nix, then sure a symlinkmight work
fresheyeball has joined #nixos
<fresheyeball> how can I install `ispell` for emacs?
<kiloreux> clever, negative, even when running it again now result directory is created :( .
<clever> kiloreux: try closing that shell and re-opening it, other env variables you set might be messing with it
fresheyeball has quit [(Client Quit)]
tokudan has joined #nixos
<kiloreux> Created this time but the same problem https://pastebin.com/uFvZcL6z
<LnL> gchristensen: still a little confused about the lib changes, don't we currently expose every function from libs.strings, etc. in lib?
<gchristensen> LnL: we do
<gchristensen> but we don't want to
<LnL> ok and your changes?
<gchristensen> my code preserves the existing behavior on the existing functions
<clever> kiloreux: thats not the same problem, thats an entirely different problem
<Infinisil> Why is lib in nixpkgs anyways? Wouldn't it make more sense to have a standard library repo?
<kiloreux> clever, it was this my original problem of not python not being able to locate .so files.
<Infinisil> Hmm or maybe not
<gchristensen> Infinisil: I'd love to discuss that as part of a different conversation, on a different day :)
justelex_ has quit [(Ping timeout: 260 seconds)]
<clever> kiloreux: this is a different so file
<LnL> gchristensen: ok so this is to prevent further clobbering of the lib names but doesn't break the current functions in there
<Infinisil> gchristensen: ;)
<gchristensen> LnL: yeah
<LnL> alright then it makes sense :)
<gchristensen> ok cool :)
<kiloreux> clever, I believe we originally used that nix script to avoid this error.
<kiloreux> Any different idea on how this can be solved ?
<gchristensen> LnL: would you like to leave a comment saying that on the PR? :)
<LnL> hmm, github is dying
<gchristensen> I guess my changes were too awesome
<clever> kiloreux: my opencv doesnt try to load gtk when i run it
<LnL> if I can
<clever> kiloreux: which channel are you building this on?
<Infinisil> gchristensen: What PR?
<pie_> lol github is dead, world screeches to a halt
<kiloreux> clever, unstable but I am using a fixed version of nixpkgs.
<clever> kiloreux: i tested it against a7c8f5e419
<kiloreux> That's the nixpkgs commit hash ?
<clever> yeah
<kiloreux> Will try that. Thanks.
goibhniu has quit [(Ping timeout: 246 seconds)]
bennofs1 has joined #nixos
takle has joined #nixos
bennofs has quit [(Ping timeout: 240 seconds)]
<hodapp> is there some obvious reason why the commands I'm putting in 'postPatch' and 'postUnpack' in a shell.nix are not running?
<hodapp> even putting stuff like 'echo' in there, I'm not seeing any sign
<Infinisil> Oh damn, github is actually having problems
<clever> hodapp: they wont run until you run the unpackPhase and patchPhase
FRidh has joined #nixos
<aristid> the nixcon 2017 registration is very confusing
<hodapp> clever: oh, I thought it only withheld running things with -A
takle_ has quit [(Ping timeout: 260 seconds)]
<bennofs1> Infinisil: doesn't seem fully down though, I just loaded a repo page & cloned a repo successfully
Phillemann has left #nixos ["WeeChat 1.9"]
<clever> hodapp: when you give it a path to a nix file, it just runs the top level value, in the same way as -A
tokudan has quit [(Ping timeout: 260 seconds)]
<ixxie> gchristensen, clever - can you explain / point me to an explanation of the meaning of setting src = binary in a derivation?
<clever> ixxie: can you link an example?
<Infinisil> bennofs1: Yeah, just like half of the times it doesn't load
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bkchr opened pull request #27806: Kdeconnect: Minor fixes and improvements (master...kdeconnect_fixes) https://git.io/v74BB
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/v74BR
<NixOS_GitHub> nixpkgs/master 310e597 Vincent Laporte: ocamlPackages.gen: 0.4 -> 0.4.0.1
NixOS_GitHub has left #nixos []
<kiloreux> how can i clear the nix-build cache ?
<clever> kiloreux: 90% of the time, you dont need to
<clever> kiloreux: nix will detect when things have changed and do the right thing
<clever> kiloreux: why do you think its doing the wrong thing?
<ixxie> (I am trying to figure out what's wrong here because google-chrome no longer builds on my system)
<hodapp> clever: oh. this is one of those distinctions that I always screw up, in part because I have no practical sense of one of the other.
<clever> ixxie: line 41, i suspect its using chromium.upstream-info.binary
<kiloreux> because upon doing nix-env -f https://github.com/NixOs/nixpkgs/archive/a7c8f5e419.tar.gz -iA and running nix-build again.
<kiloreux> Still the same error
<kiloreux> related to gtk import
<ixxie> clever: but how could I figure this out by reading the derivation?
<clever> kiloreux: that nix-env command tells nix-env to install EVERYTHING in nixpkgs
<clever> kiloreux: and it doesnt change any config
<clever> kiloreux: so nix-build continues to use the previous version
fpletz has quit [(Remote host closed the connection)]
<clever> ixxie: because they used with statements, you guess
<ixxie> clever: aaaah the with clause
<ixxie> thank!
<ixxie> s*
<clever> i ctrl+f'd for binary, found no definitions, and then looked at the with's
<clever> kiloreux: you want nix-build -I nixpkgs=https://github.com/NixOs/nixpkgs/archive/a7c8f5e419.tar.gz
<Infinisil> Should the descriptions of packages be made xml conformant?
<kiloreux> I will try that clever thank you.
mudri``` has quit [(Ping timeout: 276 seconds)]
tokudan has joined #nixos
ixxie has quit [(Quit: Lost terminal)]
ixxie has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03-small advanced to https://github.com/NixOS/nixpkgs/commit/f39972bd14 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-17.03-small)
nix-gsc-io`bot has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/v740f
<NixOS_GitHub> nixpkgs/master aac6eef Vincent Laporte: ocamlPackages.containers: 1.2 -> 1.3
NixOS_GitHub has left #nixos []
fpletz has joined #nixos
JagaJaga has joined #nixos
<yegortimoshenko> are there any drawbacks to nix-store --optimise?
yegortimoshenko has quit [(Quit: yegortimoshenko)]
yegortimoshenko has joined #nixos
mbirkis has joined #nixos
<clever> yegortimoshenko: depending on your filesystem, it can make garbage collection unusually slow
alx741 has quit [(Quit: alx741)]
<yegortimoshenko> clever: i use zfs (no deduplication). does it apply?
<Infinisil> If you're using zfs deduplication, nix-store --optimize probably doesn't do anything other than waste CPU time :P
alx741 has joined #nixos
<clever> yegortimoshenko: on my NAS, that part of the GC can take upwards of 10 hours
<clever> but its only a cost at gc, while dedup would be a cost at every write
<yegortimoshenko> Infinisil: unfortunately ZFS deduplication is very expensive
<clever> so its still better
<LnL> hmm, how does that make gc slow?
<clever> LnL: reading /nix/store/.links/ takes hours
<clever> too many files in one directory
<jluttine> i'm using buildPythonPackage with fetchFromGitHub. how do i prefetch the hash given user, repo and version tag?
<LnL> ah
<Infinisil> jluttine: nix-prefetch-url --unpack <link to github archive.tar.gz>
<clever> jluttine: nix-prefetch-url -A foo.src
cwre has quit [(Quit: Aliens ate me. I'm not good for them.)]
<Infinisil> Ohh nice
cwre has joined #nixos
<jluttine> thanks both! :)
<clever> LnL: and /nix/store has the same problem to a lesser degree
<Infinisil> clever: But why would one want to list the contents of these dirs?
<mbirkis> what option do i need to set to enable gpu rendering in blender in my configuration.nix?
<clever> Infinisil: nix-collect-garbage has to list the contents, and delete everything with a hardlink count of 1
<Infinisil> clever: Oh right
cwre has quit [(Remote host closed the connection)]
<LnL> I forgot about the .links, do you know what that's used for
<srhb> mbirkis: Looks like blender takes a cudaSupport bool argument.
<clever> LnL: after nix-store --optimize, every single file in the entire store is hardlinked to /nix/store/.links/<hash>, based on the hash of the file
<clever> LnL: so duplicate files hardlink to the same hash, and share the on-disk data
<LnL> right, I was thinking it would be something like that
<Infinisil> clever: Ohh, so .links contains every single file of everything in /nix/store
<clever> yep
<Infinisil> Damn
<clever> clever@c2d ~ $ time ls /nix/store/.links/ | wc -l
<clever> 30453
<clever> real 0m0.710s
<clever> and thats on a less used nix build slave
<clever> [root@nas:~]# time ls /nix/store/.links | wc -l
<clever> 1589822
<clever> real 4m0.277s
cwre has joined #nixos
<clever> thats from my new hydra setup
<Infinisil> 437188, 1.27s for me
<clever> nix-collect-garbage also has to lstat every single entry, and conditionaly unlink
<tilpner> Why does my laptop have 1170444 files in there...?
<clever> causing reads and writes to be interleaved
<Infinisil> tilpner: clever just explained that a few messages abevo
<clever> tilpner: you ran nix-store --optimize at some point, and it made hardlinks to save space
<tilpner> I know what they are for. I'm wondering why they are so many, compared to clevers c2d. I don't run Hydra on my laptop, so it seemed like a lot
<tilpner> But then I realized clevers Hydra might not build every package available, so the number is meaningless
<clever> i'm only building a small subset of nixpkgs
<Infinisil> And the amount of files doesn't mean much anyways, you could have 1000000 files but 0 bytes used (except the metadata)
<clever> amd: drwxr-xr-x 2 root root 1022K Jul 28 22:10 /nix/store/.links/
<clever> nas: drwxr-xr-x 2 root root 1.6M Jul 31 14:39 /nix/store/.links/
<clever> c2d: drwxr-xr-x 2 clever clever 1.9M Feb 8 2016 /nix/store/.links/
<clever> ls -lhd /nix/store/.links/
<clever> c2d is xfs, the rest are zfs
<kiloreux> clever, using the specific hash with nix-build didn't solve the issue and I am still getting libgtk error.
jgertm has joined #nixos
<Infinisil> clever: So that's e.g. 1.9MB that the filesystem uses just to store info about the files?
<clever> Infinisil: yeah
<clever> and it has to read all of that to give a directory listing
<tilpner> Is anyone here using weechat with matrix.lua? I can't manage to install cjson :/
<kiloreux> Any idea on what to try next :( ?
<clever> kiloreux: can you gist everything from the console when you tested it?
<Infinisil> clever: How do the files in .links get their filenames? Seems like some hash, but sha256 doesn't seem to be it
cwre has quit [(Quit: Aliens ate me. I'm not good for them.)]
<kiloreux> clever, here it is https://pastebin.com/yD0Wngyh
<Dezgeg> I had the /nix/var/nix/gcroots/auto/ directory grow to 2 gigabytes once
cwre has joined #nixos
deltasquared has joined #nixos
<clever> Dezgeg: how the hell does that happen.......
<clever> Infinisil: and remember, nix uses a non-standard base32
<Dezgeg> dunno, maybe nix-push or something creates stuff that doesn't go away until next gc cleans that directory up
<clever> ah yeah
<clever> i think nix-push has one derivation per derivation
<clever> and the autolinks point into an area of /tmp that gets cleaned up pretty fast
<clever> and auto only gets cleaned up at gc
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] copumpkin created revert-27630-backport-high-sierra-17.03 (+1 new commit): https://git.io/v74gQ
<NixOS_GitHub> nixpkgs/revert-27630-backport-high-sierra-17.03 075f623 Daniel Peebles: Revert "Fix Darwin stdenv to work on 10.13 (backport to 17.03)"
NixOS_GitHub has left #nixos []
<Dezgeg> seems to be a 80M on the same build box currently
<Infinisil> clever: Non-standard base32?
<Infinisil> I'll try to find it in the source
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] copumpkin opened pull request #27807: Revert "Fix Darwin stdenv to work on 10.13 (backport to 17.03)" (release-17.03...revert-27630-backport-high-sierra-17.03) https://git.io/v742m
NixOS_GitHub has left #nixos []
mudri``` has joined #nixos
<Infinisil> Damn, so there's not even an easy way to check if hash(file) =^= filename
fikse has quit [(Ping timeout: 240 seconds)]
<clever> Infinisil: i think the nix-hash command can do it
<Infinisil> ohhh, well TIL about nix-hash
<kiloreux> Is there anyway to have a wrapper script that removes all env variables that are screwing this.
<Infinisil> `nix-hash --base32 --type sha256 /nix/store/.links/00007y2lsh8bqmcbjgy6dyljab71b53y104qczsxrfxz7rcy5r7g`
<Infinisil> 00007y2lsh8bqmcbjgy6dyljab71b53y104qczsxrfxz7rcy5r7g
<Infinisil> Nice
<kiloreux> I tried using wrapProgram but with no luck
<clever> kiloreux: which arguments did you give to wrapProgram?
<kiloreux> $out/bin/output and unsetting LD_LIBRARY_PATH
<clever> you need to append the gtk lib dir to LD_LIBRARY_PATH
<clever> clearing LD_LIBRARY_PATH will only make it worse
fikse has joined #nixos
<kiloreux> locate libgtk-x11-2.0.so.0
<kiloreux> Only results in in /nix/store results
<kiloreux> shouldn't that be in the LD_LIBRARY_PATH already ? Since i loaded nix-profile
<clever> that relies on the end-user installing things
<clever> which is anti-nix
<clever> kiloreux: gnome2.gtk is the attribute path with that library
<clever> so you want to append ${gnome2.gtk}/lib/ to LD_LIBRARY_PATH
<kiloreux> How can I do that in an elegant and permanent way ?
<kiloreux> Inside default.nix ?
<clever> by including the exact string, ${gnome2.gtk}/lib/, inside default.nix
<clever> it will eval to the full store path
jgertm has quit [(Ping timeout: 260 seconds)]
<kiloreux> So that would be LD_LIBRARY_PATH="${gnome2.gtk}/lib/:$LD_LIBRARY_PATH" ?
<clever> you want to use the --append mode in wrapProgram
<clever> i think its this one
yegortimoshenko has quit [(Ping timeout: 260 seconds)]
<clever> a grep over nixpkgs should provide examples
Turion has joined #nixos
mudri```` has joined #nixos
<clever> /home/clever/apps/nixpkgs/pkgs/development/compilers/rust/cargo.nix: ${stdenv.lib.optionalString stdenv.isDarwin ''--suffix DYLD_LIBRARY_PATH : "${rustc}/lib"''}
<Turion> How do I install ghc-mod?
<clever> /home/clever/apps/nixpkgs/pkgs/tools/filesystems/fuse-7z-ng/default.nix: wrapProgram $out/bin/${pname} --suffix LD_LIBRARY_PATH : "${libs}/p7zip"
<clever> /home/clever/apps/nixpkgs/pkgs/tools/security/eid-viewer/default.nix: wrapProgram $out/bin/eid-viewer --suffix LD_LIBRARY_PATH : ${pcsclite}/lib
<kiloreux> Alright, will do. Thank you :D.
<tilpner> weechats postinstall uses wrapProgram. How can I add to the wrapProgram arguments without repeating them in my own config?
<clever> tilpner: are you trying to modify how it wraps it?
mudri``` has quit [(Ping timeout: 240 seconds)]
alx741_ has joined #nixos
<tilpner> Yes, I'd like to add --prefix LUA_PATH ..., but leave the rest intact
<clever> tilpner: no real way to do that right now, and calling wrapProgram twice results in an infinite loop
<tilpner> So I override and copy the postinstall into my config, then change it?
<tilpner> That's annoying
<tilpner> :/
<clever> yeah
<bennofs1> you could sed the old postInstall...
<bennofs1> and then `eval` it but ugh, probably better to just copy it :)
alx741 has quit [(Ping timeout: 260 seconds)]
tmaekawa has joined #nixos
Sonarpulse has quit [(Ping timeout: 240 seconds)]
<tilpner> bennofs1 - You're not using weechat for Matrix by any chance, are you?
<bennofs1> tilpner: no I am not ... weechat for matrix has this bug where it freezes weechat every x seconds or so
<bennofs1> just using matrix as a "i am too lazy to set up a proper irc bouncer" right now :)
<tilpner> So Riot then?
<bennofs1> web interface / Riot for mobile
<kiloreux> clever, still persisting https://pastebin.com/7uGT5Lgu :'( with an extra line of error.
<kiloreux> weirdly enough running it with sudo doesn't mention libgtk and suggests that "no module named numpy"
<clever> kiloreux: can you gist the contents of result/bin/output?
<kiloreux> There it is https://pastebin.com/mXX4LrXc
<clever> thats strange
<clever> its in the search path, it should work
bkchr has quit [(Quit: Konversation terminated!)]
<kiloreux> is there a way to add nix libs to LD_LIBRARY_PATH ?
<clever> thats what wrapProgram is doing
ambro718 has quit [(Ping timeout: 260 seconds)]
<kiloreux> :( Any idea on what to try next ?
<clever> nope
michiel_l has quit [(Quit: No Ping reply in 180 seconds.)]
<kiloreux> a nix-shell should do it right? Except it's not persistent ?
michiel_l has joined #nixos
<clever> Jul 31 00:17:23 nas nix-gc-start[29805]: deleting unused links...
<clever> Jul 31 04:07:36 nas nix-gc-start[29805]: note: currently hard linking saves 86631.22 MiB
<clever> Infinisil: an example of how slow gc can get
<Infinisil> Damn
<srhb> kiloreux: Did you paste your nix derivation yet?
<Infinisil> Isn't admittedly your nas super slow and mirrors like 3 times?
<srhb> kiloreux: In case someone can spot a problem.
<Infinisil> on HDs that are really old? xD
<clever> Infinisil: raidz1 over 3 drives, with an L2 arch on a 4th to speed up reads
<clever> Infinisil: the raidz1 is over modern drives, the L2 is on a slightly older drive
<Infinisil> :D
<kiloreux> srhb, only these two files in one paste I have used https://pastebin.com/PzxwKsZW
<clever> 1tb Seagate Barracuda 7200.14 (AF) * 3 + Western Digital Caviar Green 1tb
<clever> Infinisil: those should all be reasonably modern
<Infinisil> Oh btw, I'm just grepping through nixpkgs, and I found 1445 instances where homepage = "<foo>" was used where the quotes aren't necessary, should I do a PR to refactor all of these?
<srhb> kiloreux: And how do those tie together?
<clever> Infinisil: one sec
Arcaelyx has joined #nixos
https_GK1wmSU has joined #nixos
<Infinisil> clever: So all other instances should be made strings?
<clever> Infinisil: looks like it
<Infinisil> (I just told in someones pr that the quotes were'nt needed lol)
https_GK1wmSU has left #nixos []
<clever> Infinisil: the nix parser treats all URI's as strings
<clever> so even if you unquote it, its still a string
<clever> i think
<Infinisil> clever: Makes sense, nix-repl also shows strings when you put in an URL
<clever> yeah, its just a string value
<LnL> yes
<Infinisil> LnL: What do you think, make URL's that don't need quoting actual URL's or let them be strings?
<kiloreux> srhb, one is to install opencv and my other packages
<kiloreux> and the other to use my script.
<LnL> I don't quote them, but I don't know what the general option in it is
<Infinisil> There are 5944 instances of url's not being quoted, but only 1445 of them being quoted
<Infinisil> Problem is that there are instances where quoting is needed, such as when the url contains "(" and "#"
<Infinisil> Eh whatever, that's gonna be fine, people can discuss on github more about it
yegortimoshenko has joined #nixos
<srhb> kiloreux: Sorry, I guess I misunderstood the problem statement, and I don't know what "install" means in this case.
<kiloreux> I have a python script that requires opencv.
<kiloreux> But at every time i try to import it
<kiloreux> I get the ImportError libgtk not found.
reinzelmann has joined #nixos
<srhb> kiloreux: Just to be clear, that's when you say $(nix-build default.nix)/bin/output on the nix file with the script definition?
alx741_ has quit [(Quit: alx741_)]
alx741 has joined #nixos
<kiloreux> Yes :D
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #27803: pythonPackages.daphne: 1.2.0 -> 1.3.0 (master...update_daphne) https://git.io/v74ZD
NixOS_GitHub has left #nixos []
<srhb> kiloreux: What's your nixpkgs commit?
<srhb> (I can't reproduce that)
<kiloreux> a7c8f5e419
takle has quit [(Remote host closed the connection)]
<clever> nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion
<clever> kiloreux: what does this return?
<ixxie> I'm trying to diagnose the issue with google chrome not building, and I think in might have to do with version numbering mismatch, but I have no idea where to find a complete list of mirrors for .deb's for google chrome
<kiloreux> clever, "17.03pre-git"
<clever> kiloreux: nix-instantiate --find-file nixpkgs
<kiloreux> srhb, putting these two files in one directory and running nix-build should enable you to reproduce https://gist.github.com/kiloreux/074a5c42da3faff7f0345f5f11e827b7
<kiloreux> clever, /nix/store/ypkjg084hpc50wbf3scv88zziz9v2z2x-f2c4af4e3bd9ecd4b1cf494270eae5fd3ca9e68c.tar.gz
<clever> kiloreux: you appear to be using nixpkgs f2c4af4e, not a7c8f5e419
<srhb> kiloreux: No, I can't. What clever said. :)
<kiloreux> But I exactly used that command you gave me
<clever> the -I flag doesnt change any config
<clever> you have to pass the same -I every time if you want it to keep having an effet
<clever> effect*
<kiloreux> I get it, how can I make it have a permanent effect to that commit then ?
<srhb> kiloreux: Instead of import <nixpkgs> you can import the specific one you want.
<clever> set the $NIX_PATH env variable
<clever> or that
<srhb> kiloreux: Or something to that effect.
<srhb> kiloreux: There's a million ways of doing this, probably.
<clever> yeah
<srhb> (I just have my local checkout be my default nixpkgs)
<srhb> Which is fun when i don't realize I have master checkout out and leave my machine immediately after issuing nixos-rebuild :-P
<kiloreux> You mean like import the hash id
<srhb> #nixtroubles
<kiloreux> ?
<srhb> I mean the directory
<clever> lol
<clever> import (builtins.fetchurl https://github.com/NixOS/nixpkgs-channels/archive/nixos-unstable.tar.gz) { config = {}; };
<clever> an example i yanked from my #nixos logs
<srhb> Why the blank config?
<clever> to isolate it from changes the user may have in ~/.nixpkgs/config.nix
<srhb> Ah, clever, clever.
<kiloreux> so putting that in the top of my default.nix and just running nix-build should solve it ?
<clever> once you put in the right git rev, yeah
<kiloreux> And how can I change the older one ?
<kiloreux> Should I just delete it from nix-store ?
<clever> just leave it
<srhb> kiloreux: Once you remove the symlink (or it gets overriden) the next gc will remove it
<clever> you almost never need to delete things from the store
<kiloreux> It's giving me a syntax error ._.
<clever> it needs the with still
<clever> builtins.fetchurl takes a url and returns a string pointing to the store
<kiloreux> That's what i tried and also syntax error.
<clever> import takes that path, and returns the object (a nix function)
<clever> can you gist the entire file?
<kiloreux> error: syntax error, unexpected $undefined, at /nix/store/mycansf4653c5vraq43cnryqgrjniqp9-nixos-unstable.tar.gz:1:1
<clever> oh right
<clever> fetchtarball, not fetchurl
<tilpner> bennofs1 - matrix.lua seems to be usable if you leave Matrix HQ
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] MP2E pushed 1 new commit to master: https://git.io/v74Pi
<NixOS_GitHub> nixpkgs/master 2a8c1a9 Cray Elliott: dolphinEmuMaster: 20170705 -> 20170730...
NixOS_GitHub has left #nixos []
MP2E has joined #nixos
tvon has quit [(Quit: System is sleeping...)]
<kiloreux> Giving me a missing fetchtarball attribute
<clever> builtins.fetchTarball
ambro718 has joined #nixos
tvon has joined #nixos
<kiloreux> --'
<kiloreux> Same issue
takle has joined #nixos
<clever> can you gist both files?
MP2E has quit [(Read error: Connection reset by peer)]
<ixxie> aszlig: you did some work on the google-chrome / chromium derivations; google-chrome is not building on my system anymore, and it seems to be due to an issue with URLs being out of date
<srhb> kiloreux: Wrong gist, no fetchTarball there.
tmaekawa has quit [(Quit: tmaekawa)]
<srhb> (clearly nixlang needs to be case insensitive!)
MP2E has joined #nixos
<kiloreux> Updated
<clever> works on this end
<Infinisil> PR incoming..
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Infinisil opened pull request #27809: pkgs: refactor needless quoting of homepage meta attribute (master...url-quote-refactor) https://git.io/v74XW
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Taeradan opened pull request #27810: postfix service: typo in transport file-path (master...patch-1) https://git.io/v74XR
NixOS_GitHub has left #nixos []
<Infinisil> Did the refactor
tvon has quit [(Read error: Connection reset by peer)]
dejanr has joined #nixos
tvon has joined #nixos
<clever> kiloreux: what error do you get with that gist?
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/aac6eef548 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<kiloreux> trying to run ./result/bin/output
<kiloreux> $ ./result/bin/output
<kiloreux> Traceback (most recent call last):
<kiloreux> File "/nix/store/j24f31sv6ak03xz8czab8kvm33jydbyq-script/bin/.output-wrapped", line 3, in <module>
<kiloreux> import cv2
<kiloreux> ImportError: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
<clever> srhb: and if you test that gist?
<srhb> Works fine.
<srhb> Different store path though
<clever> srhb: yv4148n89z0j5n57fwz6kwcj640fnvsh ?
<srhb> sjyi1sdlixqls2b87xjnrw8d63ywz6l -- nixos-unstable
<srhb> Oh wait
<srhb> This one has fetchTarball, nevermind
* srhb is half asleep
<srhb> fsjyi1sdlixqls2b87xjnrw8d63ywz6l
<clever> srhb: can you gist the output of running ls -ltrh and nix-build -v
<srhb> ... weird
deltasquared has quit [(Quit: Leaving)]
<clever> srhb: your default.nix is one byte longer, as is the script.py
<srhb> Tsk, failed pasting I gues
<clever> srhb: are you aware that you can just run "git clone" on a gist url?
<srhb> I was not!
<srhb> That's handy!
<clever> very
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #27810: postfix service: typo in transport file-path (master...patch-1) https://git.io/v74XR
NixOS_GitHub has left #nixos []
<clever> pull also works, but ive found push auth to be tricky
<srhb> I cloned, chmod u+x script.py and I get /nix/store/yv4148n89z0j5n57fwz6kwcj640fnvsh-script
<clever> same path as me
<srhb> The world is back to normal then.
<clever> i suspect that kiloreux is using the full script, rather then the stub in the gist
<kiloreux> only the imports actually.
<kiloreux> If it imports it works. Then I am using only the imports to test
<srhb> Well, your environment is terribly barfed then.
<kiloreux> and they are failing.
<clever> kiloreux: what is the output of nix-build -v ?
<clever> kiloreux: and ls -ltrh
<ixxie> is there a way to run unfree packages with nix-shell?
Ivanych has quit [(Ping timeout: 246 seconds)]
<clever> ixxie: set allowUnfree in your users config.nix file
<srhb> I assume --option would also work
<srhb> Oh, that's Nix options, not nixpkgs options.
<srhb> Nevermind.
<kiloreux> clever, https://pastebin.com/7GtNGpE5 AND lrwxrwxrwx 1 vagrant vagrant 50 Jul 31 19:20 result -> /nix/store/j24f31sv6ak03xz8czab8kvm33jydbyq-script
<clever> kiloreux: i need more of the ls output
<ixxie> clever: is there a way to do it in one line? or to use the nixos settings, which have unfree already
<clever> ixxie: maybe --arg config '{ allowUnfree = true; }'
dejanr has quit [()]
rpifan has joined #nixos
dash is now known as ndash
<Infinisil> How can I evaluate every nix file in nixpkgs?
<Infinisil> nix-instantiate --eval <something>
<clever> kiloreux: strange, i dont see the default.nix in that dir
<ixxie> clever, that one doesn't work...hmmm
<clever> ixxie: it will depend on what your running nix-shell against as well
<kiloreux> it's in a directory inside Google_files
<srhb> kiloreux: Please do what clever adviced me to do. git clone your own gist url, then cd there, then run nix-build -v from there
<ixxie> clever: my real goal is a minimal reproduction of the error I am having with building chrome, but I guess I can just post a bug report without that
<srhb> kiloreux: There are too many factors when things are always not-quite as you've described them.
<clever> ixxie: if you are importing nixpkgs in your nix file, then you have to set config in there
<kiloreux> srhb, not sure how that would change anything. But sure i i will try it
<srhb> kiloreux: Thank you. :)
<srhb> kiloreux: Just narrowing down the issue.
magnicida has quit [(Ping timeout: 240 seconds)]
<srhb> kiloreux: It may turn out to change nothing.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] copumpkin closed pull request #27807: Revert "Fix Darwin stdenv to work on 10.13 (backport to 17.03)" (release-17.03...revert-27630-backport-high-sierra-17.03) https://git.io/v742m
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] copumpkin deleted revert-27630-backport-high-sierra-17.03 at 075f623: https://git.io/v74QU
NixOS_GitHub has left #nixos []
<pbogdan> ixxie: https://github.com/NixOS/nixpkgs/issues/25880 sounds like the .deb might have vanished
Sonarpulse has joined #nixos
<pbogdan> ixxie: https://dl.google.com/linux/chrome/deb/dists/stable/main/binary-amd64/Packages AFAIK these are official stable / beta / dev versions
mdash is now known as dash
<gchristensen> hey pbogdan sorry I've been away, really busy with some other issues right now. I'll get back to you soon!
Sonarpulse has quit [(Client Quit)]
Sonarpulse has joined #nixos
kiloreux has quit [(Ping timeout: 240 seconds)]
<pbogdan> ixxie: some older versions / .debs might exist but I don't think there's a way to get a listing of those
<pbogdan> google-chrome-beta still installs fine for me on 17.03
<mpcsh> hey all - is it possible to create a nix expression that's just pinned to the master branch of a git repo?
reinzelmann has quit [(Quit: Leaving)]
<ixxie> pbogdan: aaah thanks; I *just* posted my own issue >.<
<ixxie> pbogdan: those packages are only the latest ones
<ixxie> and 17.03 stable is on 58, which isn't there
<ixxie> anyway, ill have to continue tomorrow, thanks everybody
ixxie has quit [(Quit: Lost terminal)]
dejanr has joined #nixos
stanibanani has joined #nixos
FRidh has quit [(Quit: Konversation terminated!)]
oida_ has joined #nixos
magnicida has joined #nixos
kiloreux has joined #nixos
oida has quit [(Ping timeout: 260 seconds)]
magnicida has quit [(Client Quit)]
tokudan has quit [(Quit: Leaving)]
<pbogdan> yep, I can't find a .deb for 58 from Google's official repo anymore :/, beta @ 59 seems fine
<joepie91> so, who here will be at SHA2017? :)
Turion has quit [(Ping timeout: 246 seconds)]
<pbogdan> maybe keeping chrome / chromium versions on stable channel in sync with unstable (according to what upstream considers stable / beta / dev) would make sense
jbaum98 has quit [(Quit: Connection closed for inactivity)]
<pbogdan> gchristensen: no worries :-)
tvon has quit [(Quit: System is sleeping...)]
jgertm has joined #nixos
dejanr has quit [()]
dejanr has joined #nixos
ted_ has joined #nixos
tvon has joined #nixos
schoppenhauer has quit [(Ping timeout: 260 seconds)]
ted_ has quit [(Client Quit)]
Wizek_ has joined #nixos
stanibanani has quit [(Ping timeout: 240 seconds)]
phinxy has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] tohl opened pull request #27812: sbcl updated, tested on nixos x86_64 (master...master) https://git.io/v74NR
NixOS_GitHub has left #nixos []
Ivanych has joined #nixos
phinxy has joined #nixos
magnicida has joined #nixos
darlan has joined #nixos
darlan has quit [(Client Quit)]
rydnr has quit [(Ping timeout: 260 seconds)]
takle has quit [(Remote host closed the connection)]
MP2E has quit [(Read error: Connection reset by peer)]
MP2E has joined #nixos
ison111 has joined #nixos
schoppenhauer has joined #nixos
tvon has quit [(Quit: System is sleeping...)]
magnicida has quit [(Ping timeout: 276 seconds)]
Sonarpulse has quit [(Ping timeout: 248 seconds)]
<mpcsh> hey there, is it possible to use a GPG signature to verify something from fetchUrl?
hamishmack has quit [(Quit: hamishmack)]
Sonarpulse has joined #nixos
eacameron has joined #nixos
wigust has quit [(Ping timeout: 260 seconds)]
<seequ> mpcsh: a hash isn't enough?
wigust has joined #nixos
Infinisil has quit [(Ping timeout: 240 seconds)]
Infinisil has joined #nixos
<avn> mpcsh: look to irc/mailing-list archives, I seen some attempts to do it half year ago, or so
<Infinisil> People always say to look at the mail archives, but how do you actually search for something? The website is horrible to find something
<Infinisil> Or do people just use their mail clients to do that while having downloaded every single e-mail?
Yaniel has joined #nixos
jtojnar has joined #nixos
<seequ> Googling with `"[nix-dev]"` often works
<seequ> Not in this case, though :P
ambro718 has quit [(Ping timeout: 260 seconds)]
<mpcsh> seequ: a hash is fine, but I'm trying to build a better keybase nix expression, and the binary is served at https://prerelease.keybase.io/keybase_amd64.deb, with a signature at https://prerelease.keybase.io/keybase_amd64.deb.sig. Problem is they're updated very frequently so I'd rather not have to manually compute the hash and make a PR every time they update
jtojnar has quit [(Client Quit)]
jtojnar has joined #nixos
<Infinisil> mpcsh: Why is this updated this often? Is this a super-nightly version?
[0x4A6F]1 has joined #nixos
<mpcsh> Infinisil: yeah, they're still in alpha - no stable version yet
<mpcsh> Infinisil: the .deb at that URL is built by their CI
<mpcsh> updated roughly every 2 days
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mimadrid opened pull request #27813: xsv: 0.12.1 -> 0.12.2 (master...update/xsv-0.12.2) https://git.io/v7BeJ
NixOS_GitHub has left #nixos []
[0x4A6F] has quit [(Ping timeout: 260 seconds)]
[0x4A6F]1 is now known as [0x4A6F]
<gchristensen> :/ I need to submit entries for nixcon :/ :?
<seequ> mpcsh: If nothing else, you could write a little script that generates the new version
<mpcsh> seequ: yeah but based on what? I'd have to have something continuously monitor the website
<Infinisil> That's how mozilla-nixpkgs does it with the firefox nightlies
<Infinisil> but it's not very nice tbh
<mpcsh> Infinisil: yeah that doesn't sound very elegant :/
<seequ> Oh, they don't keep old versions :/
<mpcsh> is there some way to monitor this maybe? http://prerelease.keybase.io.s3.amazonaws.com/update-linux-prod.json
[0x4A6F]1 has joined #nixos
JagaJaga has quit [(Ping timeout: 240 seconds)]
[0x4A6F] has quit [(Ping timeout: 246 seconds)]
[0x4A6F]1 is now known as [0x4A6F]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to openssl-1.1: https://git.io/v7BvO
<NixOS_GitHub> nixpkgs/openssl-1.1 f59c04f Robin Gloster: erlang: default to R20
NixOS_GitHub has left #nixos []
<mpcsh> Infinisil: yeah actually I just realized if I can monitor that update-linux-prod.json for changes, I can automatically get the newest version from that page you linked me
<gchristensen> fpletz: ping?
<gchristensen> globin: ping?
<globin> gchristensen: pong
<fpletz> pong :)
<gchristensen> ooh a full reply!
takle has joined #nixos
<gchristensen> I have some questions about nixcon submissions *looks at the clock, 1hr left* may I PM either of you?
<globin> we're sitting at the same table, fire away %)
<fpletz> we're both sitting in the same room, so pick your favourite :)
<gchristensen> I'll send half of my message to each of you
<globin> two-factor %)
<gchristensen> every other byte
<Infinisil> mpcsh: It doesn't need an update script, you can just link to a persistent version
takle_ has joined #nixos
takle has quit [(Read error: Connection reset by peer)]
<Infinisil> And only update it occasionally when you or others feel like it
python476 has joined #nixos
<mpcsh> Infinisil: well sure but I'd rather automate it
<mpcsh> Infinisil: they do add new features quite frequently
<Infinisil> mpcsh: I don't know if it makes sense to make a PR for twice day
Wizek has joined #nixos
<Infinisil> for that*
<mpcsh> Infinisil: I'm thinking I could just keep it in my own dotfiles
<Infinisil> mpcsh: Ahh
<mpcsh> Infinisil: what I'm really looking for is a way to make it just always pull the latest file without having to update the nix expression, is that even possible?
<seequ> Not really, but having a script that creates the newest expr whenever executed would do it.
<Infinisil> mpcsh: You could use builtins.fetchurl, which just takes a url
bennofs1 has quit [(Ping timeout: 260 seconds)]
<mpcsh> Infinisil: right, but it also needs a sha256
<mpcsh> I'm thinking the easiest way to do this is to just have a systemd service on my VPS that checks say every day at midnight and updates my own personal keybase-bin.nix nix expression
<Infinisil> mpcsh: Ah so you want to parse that json which contains url and hash and make that into a nix expression?
<mpcsh> Infinisil: the url doesn't contain a hash, sadly :(
[0x4A6F] has quit [(Ping timeout: 240 seconds)]
<mpcsh> Infinisil: that's why I asked about the GPG signature
<Infinisil> Ah
<Infinisil> Well yeah you can't monitor an url just like that, you need to repeatedly poll
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] derchrisuk opened pull request #27814: xtermcontrol: init at 3.3 (master...xtermcontrol) https://git.io/v7BJC
NixOS_GitHub has left #nixos []
<Infinisil> mpcsh: You might be able to use `jq`, a great command line tool to parse and interact with json
yegortimoshenko has quit [(Ping timeout: 260 seconds)]
<clever> Infinisil: you can also just builtins.fromJSON and builtins.readFile then manipulate it with nix
<mpcsh> clever: would that enable me to never have to update the nix expression?
<Infinisil> clever: Oh right
<clever> mpcsh: depends on where you get the json from
<mpcsh> clever: as in, it depends on whether or not the url changes?
<clever> if you run builtins.fetchurl on the above url, it will check it with some internal caching
<clever> you can then readfile, fromjson, and build another url based on the version in there
<LnL> where's the version in that url!? :p
<clever> but since you lack the nix hash, you need to use builtins.fetchurl again to download it
MichaelRaskin has left #nixos []
<mpcsh> LnL: the version is in the json that's hosted at that url
<clever> so it will be doing 2 downloads at eval time
<sphalerite> Any nixers around Washington DC?
<mpcsh> clever: eh, I'm ok with that. Right now keybase on nixos is split into 3 packages, keybase, keybase-gui, and kbfs, which is just way uglier
<Infinisil> mpcsh: Well they do seem like 3 different packages
yegortimoshenko has joined #nixos
<mpcsh> Infinisil: I suppose, but none of them (except the base CLI utility) are particularly helpful without the others
<mpcsh> the GUI needs KBFS for chat to work, KBFS needs the GUI for tracker popups to work
<mpcsh> (tracker popups == "this user has updated their proofs since you last visited this folder, here are the new ones")
<LnL> n/m the debs are versioned, thought you could only download the latest like with some projects
<Infinisil> mpcsh: Maybe they should depend on each other then?
<mpcsh> Infinisil: well all 3 components are distributed as one package. I don't know why they're separate in nixpkgs - there's no real use case for using any of the components without the others
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/v7BTr
<NixOS_GitHub> nixpkgs/master 57b1542 derchris: xtermcontrol: init at 3.3
NixOS_GitHub has left #nixos []
<mpcsh> clever: so I'm a complete nixpkgs noob. what's the best way to learn how to build a nix expression like this?
<Infinisil> mpcsh: Look at examples :d
fikse has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Read error: Connection reset by peer)]
hamishmack has joined #nixos
eacameron has joined #nixos
<mpcsh> let me ask something more specific then. How do I pass the output of builtins.fetchurl (a filename) as input to builtins.fromJSON?
<mpcsh> (I'm just trying stuff out in nix-repl)
<sphalerite> mpcsh: I'm guessing you want to pass the contents of the file as opposed to the name of the file into fromJSON
<sphalerite> mpcsh: in which case you'll want to combine it with builtins.readFile
<Infinisil> ^^
<sphalerite> so... `with builtins; fromJSON (readFile (fetchurl <stuff>))`
* hodapp stabs NixOS in the face
* hodapp stabs OpenCV in the face
<sphalerite> :o why?
<sphalerite> oh.
simukis has quit [(Ping timeout: 240 seconds)]
<mpcsh> sphalerite: that worked! thank you!
<clever> mpcsh: and also run the parts in nix-repl
<clever> mpcsh: for example, just run the inner most fetchurl in nix-repl
<mpcsh> clever: yeah that's what I've been doing
<clever> mpcsh: the code in here can also sometimes be used as a hint as to what a builtin is expecting: https://github.com/NixOS/nix/blob/master/src/libexpr/primops.cc#L959-L977
<Infinisil> But nix' error messages are pretty bad all around
<mpcsh> clever: lmao I feel like that should be better documented
zraexy has quit [(Ping timeout: 240 seconds)]
<Infinisil> Admittedly there isn't a whole lot you can mess up, but still
Arcaelyx has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mimadrid opened pull request #27816: calc: 2.12.5.3 -> 2.12.6.1 (master...update/calc-2.12.6.1) https://git.io/v7BIV
NixOS_GitHub has left #nixos []
Arcaelyx has joined #nixos
lstanley has quit [(Quit: uwotm8 -- https://liam.sh)]
jtojnar has quit [(Quit: jtojnar)]
jtojnar has joined #nixos
<pie_> im in nix-shell -p freetype, so any ideas why this is happening?: https://gist.github.com/22459/d030bde2562c2ead1cfe0ab652120751
johnw has quit [(Ping timeout: 255 seconds)]
<Infinisil> Heh, just found `--gen-prime mode bits -- Use the source, Luke :-). The output format is still subject to change.` in man gpg2 :P
gnuhurd has quit [(Remote host closed the connection)]
<pie_> what could possibly go wrong?
<clever> pie_: try adding pkgconfig to the nix-shell args
gnuhurd has joined #nixos
Arcaelyx has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<pie_> oh.....
python476 has quit [(Ping timeout: 240 seconds)]
Arcaelyx has joined #nixos
<pie_> clever, didnt you learn nix in like two months? :P
<mpcsh> clever: so question: will a nix package ever update if the nix expression never changes?
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03-small advanced to https://github.com/NixOS/nixpkgs/commit/ea2e2af192 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.03-small)
<clever> pie_: something like that
nix-gsc-io`bot has quit [(Client Quit)]
<mpcsh> clever: like, will running nixos-rebuild switch --upgrade just never upgrade my keybase if I build it like this?
<clever> mpcsh: if your using builtins.fetchurl, nix will re-fetch that url every hour, and that can have an effect on the eval
<pie_> well that fixed it.
dbmikus has quit [(Quit: WeeChat 1.9)]
<clever> mpcsh: --upgrade simply alls "nix-channel --update" behind the scenes, it has no effect on the builtins.fetchurl caching
<clever> pie_: pkgconfig has some setup hooks that manipulate the pkgconfig search path
<clever> pie_: installing pkgconfig breaks them, so you should just never install pkgconfig
<mpcsh> clever: sorry, I have no idea how the caching works - so if the stuff being served at the url changes, then nix knows to upgrade the package?
<clever> mpcsh: within an hour, yeah
<mpcsh> clever: that's awesome!!!
<clever> mpcsh: every time you eval that nix expression, it will check the age of the file in the cache, and potentialy re-download it
<mpcsh> clever: so now I have a problem: it doesn't seem there's a way to do GPG checks, and keybase doesn't serve hashes for their .deb's :(
<clever> and if the contents are different, it will compute a new storepath
<clever> you need to run a derivation over it to check the signature
<clever> runCommand "foo.tar" { buildInputs = [ gpg ]; } ''
<clever> verify signature on ${src}
<clever> cp ${src} $out
<clever> ''
<clever> network isnt allowed during this, so you will need to fetchurl anything network based
<mpcsh> clever: right, but that doesn't fix the problem right now where I have `src = fetchurl { url = "https://s3.amazonaws.com/prerelease.keybase.io/linux_binaries/deb/keybase_${version}_amd64.deb"; };` and when I run nix-build keybase.nix, I get "error: Specify hash for fetchurl fixed-output derivation"
<clever> mpcsh: you need to use the builtins.fetchurl, which doesnt require a hash
<clever> it will re-download the .deb at every eval
<mpcsh> clever: wait, am I not using builtins.fetchurl?
<clever> that looks like the pkgs.fetchurl
<clever> which needs a hash
<clever> there are roughly 3 fetchurl's available
<gchristensen> clever: are you going to nixcon?
<clever> gchristensen: i think its half way around the globe?
<gchristensen> so is your employer?
<clever> gchristensen: lol, good point
<mpcsh> clever: sighhhh lol thank you :)
<clever> though ive never left this continent before
<gchristensen> domenkozar: will iohk pay for clever to go to nixcon? :)
fikse has joined #nixos
<joepie91> repeat question: anybody here going to SHA2017?
<clever> mpcsh: first is builtins.fetchurl, the hash is optional, and nix will re-download it hourly: https://github.com/NixOS/nix/blob/master/src/libexpr/primops.cc#L1881-L1885
<Infinisil> joepie91: SHA2017?
<joepie91> Infinisil: https://sha2017.org/
Arcaelyx has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<pie_> best you can catch me for right now is function, and thats a demoparty
<clever> mpcsh: then you have import <nix/fetchurl.nix> which uses a curl embeded into the nix build and requires a hash: https://github.com/NixOS/nix/blob/master/corepkgs/fetchurl.nix
kriztw has joined #nixos
hiratara has quit [(Ping timeout: 246 seconds)]
<clever> mpcsh: and 3rd, you have pkgs.fetchurl, which supports mirrors and ssl: https://github.com/NixOS/nixpkgs/tree/master/pkgs/build-support/fetchurl
<mpcsh> clever: hold up, builtins.fetchurl doesn't support ssl?
<gchristensen> clever: do you have a passport?
rpifan has quit [(Remote host closed the connection)]
<clever> mpcsh: i think builtins.fetchurl supports ssl
<clever> gchristensen: yeah, had to get one when i went to bayhack
Arcaelyx has joined #nixos
<gchristensen> clever: cool :) that way when iohk picks up your ticket you can go :)
<gchristensen> (I say, hoping)
<Infinisil> iohk?
Filystyn has quit [(Read error: Connection reset by peer)]
yegortimoshenko has quit [(Ping timeout: 260 seconds)]
hiratara has joined #nixos
Filystyn has joined #nixos
Filystyn has quit [(Changing host)]
Filystyn has joined #nixos
<clever> Infinisil: i work for https://iohk.io/
<Infinisil> Oh, nice that you found something :D
<clever> yep
jensens has quit [(Ping timeout: 255 seconds)]
<Infinisil> Holy fuck, that effect on this homepage is crazy cool
<clever> and now that i open that site, i have questions, what is up with my gpu....
<clever> the framerate on that background is oddly slow
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 8 new commits to openssl-1.1: https://git.io/v7BYe
<NixOS_GitHub> nixpkgs/openssl-1.1 8373c6a Franz Pletz: libmsn: remove, build fails and obsolete...
<NixOS_GitHub> nixpkgs/openssl-1.1 1427905 Franz Pletz: libevhtp: remove, abandoned and build fail...
<NixOS_GitHub> nixpkgs/openssl-1.1 96d2619 Franz Pletz: ldcpp: remove, old and abandoned...
NixOS_GitHub has left #nixos []
<Infinisil> clever: It's pretty fast for me
<clever> its normally so smooth
<clever> bedroom temp: 26.88c(80.38f)
<clever> could it be as simple as thermal throttling?
<Infinisil> Maybe
zeus_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to openssl-1.1: https://git.io/v7BYc
<NixOS_GitHub> nixpkgs/openssl-1.1 4a65bde Robin Gloster: erlang1{6,7,8,9}: mark as broken for now...
NixOS_GitHub has left #nixos []
Arcaelyx has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Infinisil> clever: What do you work on there btw?
gm152 has joined #nixos
<clever> Infinisil: mostly the nixops expressions for the deployments and nixos tests
<Infinisil> Nice
<Infinisil> Definitely something you're capable of
<clever> yep
fikse has quit [(Ping timeout: 260 seconds)]
phinxy has quit [(Read error: Connection reset by peer)]
lstanley has joined #nixos
<Infinisil> I'm very attempted to just experiment a bit with gpg
alx741 has quit [(Quit: alx741)]
alx741 has joined #nixos
jensens has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 2 new commits to openssl-1.1: https://git.io/v7BOr
<NixOS_GitHub> nixpkgs/openssl-1.1 bc66c30 Franz Pletz: shellinabox: build with openssl 1.0.2
<NixOS_GitHub> nixpkgs/openssl-1.1 3e967b9 Franz Pletz: elinks: build with openssl 1.0.2
NixOS_GitHub has left #nixos []
ison111 has quit [(Ping timeout: 240 seconds)]
<mpcsh> Infinisil: I feel very strongly that gpg is obsolete, I really think keybase is the future. You should check it out :)
<mpcsh> (to be clear, when I say "obsolete," I mean "relic of a byegone era" - I think it's too complex for widespread adoption)
<Infinisil> mpcsh: Ahh, I wondered what keybase was, but didn't check, I'll definitely do so now
<mpcsh> Infinisil: it's a keyserver and accompanying suite of crypto tools built for the modern day - includes standard "gpg-like" operations, an encrypted chat system, and an encrypted filesystem
<mpcsh> (full disclosure: I worked there last summer)
<Infinisil> Ahh, it uses gpg in the back
Acou_Bass has quit [(Remote host closed the connection)]
<Infinisil> Not sure what to think about keybase being somehow centralized
<mpcsh> Infinisil: it used to, they still need to remove that from the website. It's possible to use it (https://keybase.io/mpcsh) completely without gpg
Nobabs27 has joined #nixos
<clever> Infinisil: i think part of it, is that you must post proofs on other servers, so people dont have to trust keybase
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mimadrid opened pull request #27817: gitAndTools.diff-so-fancy: 1.1.0 -> 1.1.1 (master...update/diff-so-fancy-1.1.1) https://git.io/v7B3e
NixOS_GitHub has left #nixos []
Acou_Bass has joined #nixos
<Infinisil> mpcsh: Why is that a bad thing? gpg has been proven to work well for decades, why not use that development?
<mpcsh> Infinisil: ^^
<clever> Infinisil: for example, my keybase proof stating i own a given github user, is a gist, that must not be deleted
<mpcsh> Infinisil: because it's just too complex for wide adoption
<clever> Infinisil: so anybody can just open that gist and confirm things
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to openssl-1.1: https://git.io/v7B3L
<NixOS_GitHub> nixpkgs/openssl-1.1 24911f3 Franz Pletz: Merge remote-tracking branch 'origin/master' into openssl-1.1
NixOS_GitHub has left #nixos []
<mpcsh> Infinisil: if you buy the idea that everything should be encrypted and everyone should have easy access to crypto, it's a hard sell to have someone non-technical use GPG
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/v7B3m
<NixOS_GitHub> nixpkgs/master efb2b32 mimadrid: gitAndTools.diff-so-fancy: 1.1.0 -> 1.1.1
NixOS_GitHub has left #nixos []
<mpcsh> Infinisil: in my eyes, at least, GPG is a relic from when the only computer users were highly technical
<Infinisil> mpcsh: Yeah, but if keybase just uses gpg's functions internally, they can profit from all the research and developing hours
<Infinisil> The users wouldn't have to use gpg manually of course
kriztw has quit [(Remote host closed the connection)]
<mpcsh> Infinisil: it doesn't - it began years ago as a gpg wrapper, but it no longer uses gpg internally
<mpcsh> Infinisil: where are you seeing that it does?
Filystyn has quit [(Quit: Konversation terminated!)]
kiloreux has quit [(Ping timeout: 240 seconds)]
<Infinisil> From https://keybase.io/docs: "You can do so much with it: sign, verify, encrypt, generate messages, sign code, move keys around, etc., all using GPG for the crypto."
<pie_> gpg is bad becaue....
<pie_> random link http://secushare.org/PGP
<mpcsh> Infinisil: oooh, that's very out of date :/
<mpcsh> Infinisil: this is the current state https://keybase.io/blog/keybase-new-key-model
<Infinisil> mpcsh: Well, they should probably update the main docs link if it's so out of date
<Infinisil> ..
<mpcsh> Infinisil: yeah :/ I'm not sure why they haven't
<Infinisil> But yeah, keybase sounds very interesting
<Infinisil> It definitely needs some nixos modules eventually
<mpcsh> Infinisil: it is! If you want to sign up to check it out, feel free to follow me (I'm https://keybase.io/mpcsh), and I can show you how the chat and filesystems work
<joepie91> mpcsh: Q: is there currently any reliance whatsoever, no matter how small, on centralized trust where keybase is concerned?
<mpcsh> Infinisil: interesting you say that - how does this look? https://gist.github.com/anonymous/d24c08bc7eb5869ab3a821075d125b8f
ison111 has joined #nixos
<mpcsh> joepie91: no - all proofs are posted externally. if you go to a profile (e.g. https://keybase.io/mpcsh), and check a proof, you can see e.g. the github proof is a gist, the reddit proof is a reddit post, the twitter proof is a tweet, the https proof is a hosted file, etc etc etc
<Infinisil> mpcsh: Well, that's not a module :P
<mpcsh> joepie91: so you only have to trust that keybase, github, reddit, twitter, facebook, all the DNS registrars in the world, etc are not colluding
<mpcsh> Infinisil: oh, sorry, what's a module? (I'm new to nixos)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/v7BsK
<NixOS_GitHub> nixpkgs/master 5825724 Robin Gloster: phpPackages.composer: 1.4.1 -> 1.4.2
NixOS_GitHub has left #nixos []
<joepie91> mpcsh: 1) how do I independently verify that the proofs are legitimate? 2) does keybase in any way control the creation or propagation of private keys in such a way that they could obtain them?
<mpcsh> but also clever, what do you think of this? https://gist.github.com/anonymous/d24c08bc7eb5869ab3a821075d125b8f
<joepie91> (in usable form)
<Infinisil> mpcsh: Have a look into nixpkgs/nixos/modules, it's how to declare options and make them do something
bennofs1 has joined #nixos
<mpcsh> joepie91: 1) I'm not sure what you mean - just try it out, go to my profile, click on any of the proofs, and you'll be taken to the proof on the external site 2) absolutely not. private keys never leave your machine. that's one of my biggest praises for keybase, you never have to shuttle a key around because they're device-specific.
<joepie91> mpcsh: I'm talking about cryptographic verification; "here's the proof that X" is great and all, but it's not useful unless I can verify that this was actually signed by the correct key, for example
<joepie91> independently, on a local system
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/v7Bsp
<NixOS_GitHub> nixpkgs/master af84611 Robin Gloster: moonlight-embedded: 2.2.3 -> 2.4.2
NixOS_GitHub has left #nixos []
<mpcsh> joepie91: ok yeah - so check out https://mpc.sh/keybase.txt which is my proof for my website over HTTPS. you can verify the proof is correct using the keybase CLI utility
<mpcsh> joepie91: (which, fyi, is open source https://github.com/keybase/client)
<joepie91> mpcsh: which of them? that contains a number of clients
<Infinisil> joepie91: CLI? Shouldn't matter really
hiratara has quit [(Quit: ZNC - http://znc.in)]
<mpcsh> joepie91: the go client is the CLI client
<mpcsh> joepie91: (supported on any platform that golang runs on)
taeradan has joined #nixos
hiratara has joined #nixos
<mpcsh> joepie91: you can also install binaries from https://keybase.io/download
<mpcsh> if that's your cup of tea
<Infinisil> Why Go though :(
<joepie91> mpcsh: right, I may have another question about that later, but right now I'm not awake enough to ask any more about it :)
<mpcsh> Infinisil: go is fantastic!
<joepie91> mpcsh: one last non-technical question; what's Keybase's business model?
<joepie91> given that it's free and all
catch22 has joined #nixos
<mpcsh> joepie91: right now, literally just venture capital. eventually they're going to open up to maintaining internal keyservers for businesses at a cost
<Infinisil> mpcsh: While I only read a bit of Go source code, I wouldn't call it fantastic. It may be pretty simple, but that's not what I want from a programming language
<mpcsh> joepie91: but the main keybase.io keyserver and client code will forever be FOSS
kriztw has joined #nixos
<joepie91> mpcsh: right, so essentially 'free software, paid deployments'
<mpcsh> Infinisil: hmm, I think you should give it a more serious try - I use C at university and I strongly prefer go after using it for a while
<mpcsh> joepie91: yeah exactly
<joepie91> mpcsh: alright, thanks :)
<Infinisil> mpcsh: I'd prefer any language over C anyways
<mpcsh> Infinisil: fair enough lol
* joepie91 is currently in the process of learning Rust
<Infinisil> But having seen the result of decades of programming language research, I'm really amazed by what some languages can do
<joepie91> liking it so far, taking into account the inherent verbosity/complexity in strongly typed things
<Infinisil> joepie91: Good example
<mpcsh> hey ok so I think my keybase nix expression is working now. is there a way to try to install the output of the file to see if the binaries are all in the right place? (because nix-build doesn't install it)
<joepie91> generally very very well-designed, from my first impressions
<Infinisil> mpcsh: nix-env -f . -i
<mpcsh> Infinisil: thanks :)
<Infinisil> mpcsh: Or you can just check what the folder `result` contains, binaries should be in `result/bin/`
<Infinisil> nix-env -f . -i is useful when you want to actually install the tool into your user env
<Infinisil> Oh actually, you could use a nix-shell to verify the installation too
cpennington has quit [(Remote host closed the connection)]
<mpcsh> Infinisil: oh yeah nix-shell is definitely the way to go, thanks :)
mrcheeks has left #nixos ["ERC (IRC client for Emacs 26.0.50)"]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03 advanced to https://github.com/NixOS/nixpkgs/commit/f39972bd14 (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-17.03)
nix-gsc-io`bot has quit [(Client Quit)]
<mpcsh> Infinisil: ok, so here's my current nix expression:
<mpcsh> # in
<mpcsh> # buildFHSUserEnv {
<mpcsh> # name = "keybase-bin-env-${version}";
<mpcsh> # targetPkgs = pkgs: with pkgs; [
<mpcsh> # alsaLib
<mpcsh> # atk
<mpcsh> # cairo
<mpcsh> # cups
<mpcsh> # dbus
<mpcsh> # expat
<mpcsh> # fontconfig
<mpcsh> # freetype
<mpcsh> # gdk_pixbuf
<mpcsh> # glib
<mpcsh> # gnome2.GConf
<mpcsh> # gtk2
<mpcsh> # nspr
<mpcsh> # nss
<mpcsh> # pango
<mpcsh> # systemd
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus opened pull request #27818: alacritty: Don't use xclip from PATH (master...alacritty_xclip) https://git.io/v7Bnu
NixOS_GitHub has left #nixos []
<mpcsh> # xorg.libX11
<mpcsh> # xorg.libXScrnSaver
<mpcsh> # xorg.libXcomposite
<tilpner> mpcsh - Please use gist.github.com or a similar pastebin
<mpcsh> # xorg.libXcursor
<mpcsh> # xorg.libXdamage
<mpcsh> # xorg.libXext
<mpcsh> # xorg.libXfixes
<Infinisil> Nooo, don't paste it here
<mpcsh> # xorg.libXi
<mpcsh> # xorg.libXrandr
<mpcsh> # xorg.libXrender
<mpcsh> # xorg.libXtst
<mpcsh> # keybase-bin
<mpcsh> # ];
<mpcsh> # extraBuildCommands = ''
<mpcsh> # ln -s ${keybase-bin}/opt $out/opt
<mpcsh> # '';
alx741 has quit [(Quit: alx741)]
<mpcsh> # runScript = "bash";
<mpcsh> # }
<mpcsh> OH FUCK
<mpcsh> I'M SO SORRY
* mpcsh backs away from keyboard sheepishly
<Infinisil> Lol
<mpcsh> sorry everyone :(
<MP2E> it's alright.
<mpcsh> but ok so Infinisil, with that nix expression, I still don't get `keybase`, `run_keybase`, or `kbfsfuse`, all of which get installed to $out/bin
<tilpner> mpcsh - What's your weechat.look.paste_max_lines?
Myrl-saki has quit [(Ping timeout: 276 seconds)]
zeus_ has quit [(Read error: Connection reset by peer)]
<mpcsh> tilpner: huh, iset says it's 1
<tilpner> Then it should've asked for confirmation :/
zeus_ has joined #nixos
<Infinisil> mpcsh: I'll build it and have a look
bennofs1 has quit [(Ping timeout: 276 seconds)]
<mpcsh> tilpner: yeah it didn't! maybe one of my plugins disables that? that'd be really nice...
<tilpner> Try again in a dummy channel, ask #weechat if you can't get it to work
<Infinisil> mpcsh: Hmm so I can't build it, because of something I've been wondering for a while now
<mpcsh> Infinisil: oh? what's it say?
<Infinisil> Everytime I used bulitins.fetchurl it couldn't do it because "error: imported archive lacks a signature"
indi_ has joined #nixos
<Infinisil> Oh actually, nix-channel --update gives me the same error
<mpcsh> Infinisil: does this help? https://nixos.org/nix-dev/2015-August/017937.html
<tilpner> Did you enable nix.requireSignedBinaryCaches?
<tilpner> (Oh, default true. Nevermind)
Arcaelyx has joined #nixos
MP2E has quit [(Read error: Connection reset by peer)]
<Infinisil> mpcsh: Well the link there is dead :P
<tilpner> Did you fiddle with binary caches at all?
<Infinisil> tilpner: Don't think so
ison111 has quit [(Quit: WeeChat 1.7.1)]
<Infinisil> I can install other stuff fine, just builtins.fetchurl and apparently nix-channel --update now too fails
MP2E has joined #nixos
zeus_ has quit [(Read error: Connection reset by peer)]
<Infinisil> mpcsh: I'll just check out the keybase sources then, without building your nix package
zeus_ has joined #nixos
<mpcsh> Infinisil: ok lol yeah I don't know how to help with that problem :/
<NickHu> I'm trying to apply a patch with the patches list in a derivation, but I think I need to set -p0; what's the correct way to do this?
silver_hook has quit [(Ping timeout: 258 seconds)]
<tilpner> Infinisil - What happens when you do builtins.fetchTarball {url = https://github.com/nixos/nixpkgs/archive/9e5a13f6f1418700c9747da8dbbbff51d11c8dc0.tar.gz;sha256 = "0a6i79xl3y0j9w8k3b5ggsfkjskmia8sgasrdhrr83fbdk7f24b1";} in a repl?
<Infinisil> tilpner: Unsupported argument sha256 to fetchTarball
<tilpner> Aww, you have stable Nix :/
<Infinisil> tilpner: Heh
<tilpner> Searching nixpkgs for your error doesn't turn up anything either
<Infinisil> Ehh, whatever, I'll live with it for now
<tilpner> "Using nixUnstable also for the daemon solves that issue."
<tilpner> Perhaps try that?
markus1189 has joined #nixos
<Infinisil> mpcsh: So, I'm getting the error that etc/cron.daily is a directory
gnuhurd has quit [(Remote host closed the connection)]
gnuhurd has joined #nixos
<Infinisil> tilpner: I'm gonna try switching to nixos-unstable for my channel
<Infinisil> And then install nixUnstable
<Infinisil> tilpner: Oh wait, I should probably use nixpkgs-unstable for my channel
<tilpner> You may not have to switch (I'm on 17.03 with nixUnstable)
markus1199 has quit [(Ping timeout: 255 seconds)]
<mpcsh> Infinisil: oh, huh
<mpcsh> Infinisil: I guess just rm -rf?
<mpcsh> Infinisil: and where'd you see the error?
https_GK1wmSU has joined #nixos
<Infinisil> mpcsh: Not sure if -f is needed, but yes
cpennington has joined #nixos
<Infinisil> When I do nix-build
<mpcsh> Infinisil: ok yeah I see it too. Maybe I was running nix-shell wrong - should I be doing something different than just `nix-shell keybase.nix`?
https_GK1wmSU has left #nixos []
<Infinisil> mpcsh: Ahh
<Infinisil> nix-shell isn't useable just like that
<Infinisil> Bad wording before by me, you need to pass nix-shell some arguments to make it work like this
<mpcsh> Infinisil: got it, I'll RTFM
<Infinisil> just calling nix-shell just sets up the environment to build this package, but nothing more
ison111 has joined #nixos
systmkor_ has quit [(Quit: ZNC - http://znc.in)]
<Infinisil> Just rm -r etc/cron.daily is enough
<mpcsh> Infinisil: yeah I did that, it builds fine
<mpcsh> Infinisil: so how can I test it? nix-shell -p keybase-bin won't work since it's not in nixpkgs yet
<Infinisil> mpcsh: You can also just do mkdir -p "$out/bin" instead of mkdiring twice
<Infinisil> mpcsh: Just ./result/bin/<binary name> should work
rpifan has joined #nixos
<mpcsh> Infinisil: no sorry I'm trying to see whether or not it'll show up in $PATH
<Infinisil> mpcsh: Ah, well that works automatically for binaries in $out/bin, you could install it into your user env with nix-env -f . -i
<mpcsh> Infinisil: oh okay, got it! thanks!
systmkor has joined #nixos
<mpcsh> Infinisil: does stuff in $out/opt not appear?
Ivanych has quit [(Ping timeout: 260 seconds)]
erasmas has quit [(Quit: leaving)]
<Infinisil> mpcsh: Don't know, where should it appear?
joehh has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dalaing opened pull request #27820: nixos/piwik: clarifies setup documentation (master...piwik-install-doc-fix) https://git.io/v7B81
NixOS_GitHub has left #nixos []
<Infinisil> tilpner: I feel like my nix is generally kinda botched, can't do much with channels anymore
<Infinisil> Even with nix where everything is declarative, I manage to screw it up lol
<tilpner> Infinisil - Maybe switching to nixUnstable (not switching the channel) would fix it
qknight has quit [(Ping timeout: 240 seconds)]
<Infinisil> tilpner: Just nix-env -iA nixos.nixUnstable and use the `nix` command instead of `nix-<foo>`
<Infinisil> ?
<tilpner> No, nix.package = pkgs.nixUnstable;
<Infinisil> Ahh
<Infinisil> great, nix-channel --update gives me error: opening lock file ‘/home/infinisil/.cache/nix/tarballs/0qc8i3chclrwnciq07z9k1h2ybafh3ki1jqfhyjr56490z92gsiw-file.lock’: Permission denied
<Infinisil> tilpner:
<Infinisil> Maybe I should rm -rf ~/.cache/nix
<tilpner> Yeah, your permissions seem weird, but you shouldn't need to update
<Infinisil> or chmod actually
<mpcsh> Infinisil: the run_keybase script (which does indeed show up in $PATH) references /opt/keybase/Keybase (the GUI app), but when I run the run_keybase script, it says `/opt/keybase/Keybase: no such file or directory`
<Infinisil> mpcsh: Yeah, you probably need to patch it quite a bit
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 pushed 1 new commit to master: https://git.io/v7BBa
<NixOS_GitHub> nixpkgs/master 9b10fcc John Ericson: Add myself to CODEOWNERS, and use tab consistently
NixOS_GitHub has left #nixos []
<Infinisil> mpcsh: I think it would be better to build it from source actually
<mpcsh> Infinisil: what makes you say that?
<Infinisil> tilpner: A chown on my home did it
<Infinisil> mpcsh: Because these binaries have been prebuilt for debian. You could use patchelf to patch the binaries itself, but that's both more maintenance and more fragile
<Infinisil> Best would be to configure the proper install prefix when building it from source
<mpcsh> Infinisil: hm, fair point. The current keybase-gui in nixpkgs does some patchelf fuckery
<mpcsh> Infinisil: I think you're right. Maybe the best way is to just adapt the current keybase nixpkg to also include the gui and kbfs?
<Infinisil> mpcsh: Well the best would be to get a source build working, I'm not sure if that's feasible with keybase though
<mpcsh> Infinisil: ya sorry, I wasn't clear - the current keybase nixpkg is a source build
silver_hook has joined #nixos
silver_hook has quit [(Changing host)]
silver_hook has joined #nixos
<Infinisil> Ahh
<mpcsh> but it only does the CLI, not the GUI or kbfs
<Infinisil> pkgs/tools/security/keybase-gui/default.nix
<Infinisil> and pkgs/tools/security/kbfs/default.nix
<mpcsh> Right - I'd like to unify them, and also fix the broken systemd services for keybase and kbfs
<Infinisil> mpcsh: Ah
<Infinisil> I don't know about unifying them, they should all be separate, because not everybody needs everything
<mpcsh> Infinisil: hm, maybe. regardless I have a question: when I run nix-build default.nix on the existing one I linked above, I get "error: cannot auto-call a function that has an argument without a default value (‘stdenv’)" - what's that mean?
<Infinisil> mpcsh: That's because every package in nixpkgs takes arguments that let you configure every component of it. The files get called like this: `callPackage path/to/default.nix {}`
<Infinisil> callPackage then gives this function all the arguments that were configured or the defaults
Nobabs27 has quit [(Quit: Leaving)]
<Infinisil> You can build such a default.nix like this: `nix-build -E '(import <nixpkgs> {}).callPackage ./default.nix {}'
joehh has joined #nixos
<Infinisil> And ./default.nix could be replaced with ./., since default.nix is the default file used (duh)
<mpcsh> Infinisil: huh, okay. could I also just put `with import <nixpkgs> { };` at the top?
systmkor has quit [(Quit: ZNC - http://znc.in)]
<Infinisil> Or if you're int the nixpkgs top-directory you can probably do: `nix-build -A keybase-gui`
<Infinisil> mpcsh: Yup
systmkor has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bendlas opened pull request #27822: chromium: update to 60.0.3112.78 and add flags (master...update-chromium) https://git.io/v7B08
NixOS_GitHub has left #nixos []
mudri```` has quit [(Ping timeout: 246 seconds)]
systmkor has quit [(Quit: ZNC - http://znc.in)]
systmkor has joined #nixos
MP2E has quit [(Quit: be back later)]