<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>
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
<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
<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
<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
<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..
<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
<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>
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>
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?
<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
<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
<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 :)
<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>
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 ...
<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...
<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>
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 :)
<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
<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?
<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>
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
<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__>
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/?
<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.
<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?
<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
<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?
<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
<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>
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."
<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.
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
<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? :/
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
<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?
<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?
<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
<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)
<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.
<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?
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
<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!)
<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
<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?
<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
<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?
<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
<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
<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."
<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>
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?
<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
<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)"]
<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
<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
<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>
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?