<simpson> Hi.
<TiltMeSenpai> how do you specify additional kernel parameters for nixos
<TiltMeSenpai> fucking amd, so my server doesn't boot unless I nomodeset
<lambdamu> boot.kernelParams
<TiltMeSenpai> just boot.kernelParams = [ "nomodeset"];?
<lambdamu> takes a list of of strings
<lambdamu> yes
<TiltMeSenpai> awesome, thanks
<xcmw> Anyone know what this error means? http://lpaste.net/7776513952741064704
estewei has quit [(Quit: Quit)]
TiltMeSenpai has quit [(Client Quit)]
<MichaelRaskin> Illegal instruction? You have an old CPU that lacks some of the instructions used in the build in the binary cache?
<MichaelRaskin> Not sure, just looks like that
<xcmw> MichaelRaskin: I have a MacBook Pro (Retina, 15-inch, Mid 2015)
<xcmw> So I think that is unlikely
<lambdamu> xcmw: i doubt this is nix specific
<spacekitteh> xcmw: is it the same error location every time?
<greymalkin> Bork! neither services.mysql with package=mysql57 or package=mariadb succeed to start.
<spacekitteh> it could be a ram failure
<xcmw> Same thing everytime
digitus has quit [(Quit: digitus)]
nathan7 is now known as edef
seanz has quit [(Quit: Leaving.)]
<lambdamu> xcmw: can you enter nix-shell?
<xcmw> lambdamu: No
<lambdamu> same error?
<xcmw> Yes
<xcmw> builder for ‘/nix/store/isbryz447ai922ziw37x49q6pdpwz53k-cabal2nixResult.drv’ failed due to signal 4 (Illegal instruction: 4)
<clever> xcmw: does osx have anything like dmesg, which may say which process exactly is failing?
<xcmw> clever: No idea what dmesg is
takle has quit [(Remote host closed the connection)]
<Acou_Bass> eey guys, i asked about this earlier but i had to shoot, the joys of having a job -_- im trying to upgrade the linux kernel in nixos using boot.kernelPackages = pkgs.linuxPackages_latest - for whatever reason the nvidia driver refuses to build its modules to this kernel... has anyone gotten this to work?
<greymalkin> Okay, nm. It was my "initialScript" that failed to run... though I don't know why that would be.
<clever> xcmw: is dmesg a valid command, what happens when you try to run it?
<xcmw> clever: A bunch of random crap is printed
<clever> xcmw: is there anything near the end relating to illegal instructions?
<xcmw> clever: No
calvertvl has joined #nixos
<pikajude> clever, xcmw: it would be in console.app
<xcmw> Nothing there
markus1189 has joined #nixos
<gchristensen> Acou_Bass: currently, in stable, the latest nvidia driver is not compatible with the latest linux kernel
markus1199 has joined #nixos
<Acou_Bass> ahhh ok
calvertvl has quit [(Quit: Page closed)]
<gchristensen> and IIRC the nvidia driver in unstable isn't really stable yet? not sure
<Acou_Bass> ill cope with it for now :P my wifi card doesnt like 4.4 for some reason (works fine on 4.9 if i disable nvidia) but ive got a spare i can use for now hehe
calvertvl has joined #nixos
markus1219 has quit [(Ping timeout: 260 seconds)]
markus1209 has quit [(Ping timeout: 260 seconds)]
systemfault has joined #nixos
<LnL> xcmw: it seems they are using a custom version of nixpkgs, perhaps they don't have some of the stuff we introduced to support sierra
<peterhoeg> Acou_Bass: you could also try nouveau instead although it may not work for your use-case(s)
<Acou_Bass> nah i play gamez :P
<Acou_Bass> like i said its no problem for now, i can use my spare wifi card for now
<Acou_Bass> chances are at the very most all ill have to do is wait for the next nixos release, or possibly just keep my eye on the nvidia nixpkg to see if it does start building correctly against latest linux
takle has joined #nixos
<gchristensen> Acou_Bass: next nixos release is in about 1 month :)
<Acou_Bass> does nixos have a similar release cycle to ubuntu then, ie. every ~6 months?
xcmw has quit [(Quit: Lost terminal)]
<gchristensen> yeah
seanz has joined #nixos
<Acou_Bass> ive only actually been using nixos since 16.03 so havent really paid attention to things like this
<gchristensen> March(.03) and September(.09)
<Acou_Bass> hehe so a month 'behind' ubuntu :D though similar 'major' numbers i suppose
takle has quit [(Ping timeout: 260 seconds)]
<gchristensen> "We've discovered (and purged) cached pages that contain private messages from well-known services, PII from major sites that use cloudflare, and even plaintext API requests from a popular password manager that were sent over https (!!).
<gchristensen> oh my gosh.
<Acou_Bass> lovely
sellout- has quit [(Quit: Leaving.)]
takle has joined #nixos
<Ralith> lmao
m0rphism has quit [(Quit: WeeChat 1.4)]
<Acou_Bass> a few of my slightly more 'tinfoil hat' oriented friends have described cloudflare as an NSA honeypot to catch tor users... im starting to think they are wrong, its just a mess from top to bottom
AllanEspinosa has quit [(Ping timeout: 260 seconds)]
takle has quit [(Ping timeout: 260 seconds)]
erasmas has quit [(Quit: leaving)]
seanz has quit [(Quit: Leaving.)]
jsgrant- has joined #nixos
mkoenig has quit [(Ping timeout: 240 seconds)]
AllanEspinosa has joined #nixos
mudri has quit [(Quit: WeeChat 1.7)]
systemfault has quit [(Quit: Bye!)]
ibrahims has quit [(Ping timeout: 255 seconds)]
AllanEspinosa has quit [(Ping timeout: 240 seconds)]
<greymalkin> Is there any nix-level support for composer packages?
<greymalkin> (php)
dbmikus has quit [(Ping timeout: 268 seconds)]
<gchristensen> I don't know of any, greymalkin, but I would like that to be changed
mkoenig has joined #nixos
<greymalkin> Acou_Bass: Have you seen US government websites? They're all a mess. I wouldn't use that as evidence that it's not government run...
<Acou_Bass> XD true
AllanEspinosa has joined #nixos
<gchristensen> globin: if I rewrote the configuration doc, would I be at risk of it not merging? :P
<gchristensen> configuration.xml
Rotaerk has joined #nixos
ibrahims has joined #nixos
<clever> greymalkin: the main website for a datacenter i use, has an ssl cert that expires 130 days ago
<clever> greymalkin: and judging by what i saw in tcpdump when debuging network issues, i suspect i can mitm any box in the datacenter, potentialy including the main website
<clever> and if it already has ssl warnings, is anybody going to notice a self-signed cert?......
mkoenig has quit [(Ping timeout: 255 seconds)]
mkoenig has joined #nixos
ibrahims has quit [(Ping timeout: 260 seconds)]
AllanEspinosa has quit [(Ping timeout: 260 seconds)]
mkoenig has quit [(Ping timeout: 240 seconds)]
<lambdamu> The lack of a navigation/toc sidebar makes the nix/nixpkgs docs unwieldy to read
<lambdamu> or is it just me?
georges-duperon has quit [(Ping timeout: 255 seconds)]
mkoenig has joined #nixos
hopio3151 has quit [(Remote host closed the connection)]
<Acou_Bass> it never really bothered me but i do see what you mean
ibrahims has joined #nixos
<Acou_Bass> im a bit scatter-brained anyway so it works for me
<gchristensen> there is a ToC
ibrahims has quit [(Ping timeout: 240 seconds)]
<lambdamu> at the top?
<lambdamu> i thought of a sidebar toc
<greymalkin> gchristensen: I think lambdamu means placing the ToC in a sidebar so that it is visible, even when you're in the depths of NixOS Appendix A (configuration options)
<lambdamu> yep
<gchristensen> I see
<gchristensen> that is probably doable, we use docbook
<greymalkin> I will have to agree... my browser has about 20 nix-related windows open, because I ctrl-click on the entries so that I don't lose my place... which means I can't find the right tab so I go back to the ToC tab and ctrl-click again.
<greymalkin> s/windows/tabs/
<lambdamu> yes i saw a sphinx rendering somewhere which had a sidebar
<gchristensen> I'm not sure sphinx and docbook are the same?
<gchristensen> or how they relate to each other
<lambdamu> i'm not sure either but i was under the impression that sphinx is not coupled with a specfic markup lang
<lambdamu> hm nah im wrong
<lambdamu> the mention restructured text on the website
davidak has quit [(Quit: Leaving.)]
ibrahims has joined #nixos
masia[m] has left #nixos ["User left"]
AllanEspinosa has joined #nixos
<greymalkin> clever: Re SSL warnings, I think I'm about the only person I know who checks *why* a cert is invalid before adding a temporary exception.
<clever> greymalkin: i also check it, but my browser doesnt remember the exception for that long, and i sometimes skip checking the next time it comes up
<clever> but i do try avoiding entering anything secret on the site anyways
ibrahims has quit [(Ping timeout: 268 seconds)]
mkoenig has quit [(Ping timeout: 260 seconds)]
mkoenig has joined #nixos
<gchristensen> clever: how do I build nixpkgs' docs again?
<clever> nix-build '<nixpkgs/doc>'
<clever> gchristensen: i'm guessing
<clever> 2016-12-14 18:46:18< LnL> gchristensen: nixpkgs manual is pretty simple nix-build '<nixpkgs/doc>'
<clever> grep confirms
<gchristensen> hah ...
<gchristensen> great
<gchristensen> thank you :)
takle has joined #nixos
nh2 has joined #nixos
<nh2> hi, does nixos have a patch for CVE-2017-6074? It seems like the upstream fix is only in Linux 4.10 so far
takle has quit [(Ping timeout: 240 seconds)]
<clever> 2017-02-23 19:45:13 -NixOS_GitHub:#nixos- nixpkgs/master 1d68edb Graham Christensen: linux kernels: patch against DCCP double free (CVE-2017-6074)
<clever> 2017-02-23 19:45:41 < gchristensen> *sigh* I did this wrong.
<clever> 2017-02-23 19:49:09 < gchristensen> back in a bit, clearing my head, then going for try 2
ibrahims has joined #nixos
<clever> gchristensen: how has try#2 gone?
<clever> nh2: i believe you can also use boot.blacklistedKernelModules as a short-term fix
<clever> nh2: if the kernel cant load the module, then the buggy code will never be in ram
<clever> you simply loose dccp support, though ive never seen anything that used it
<gchristensen> nh2: ah, I'm running build tests for DCCP right now
<gchristensen> nh2: patches will be released within the next few hours, sorry for the delay
<nh2> gchristensen: thank you!
lambdamu_ has joined #nixos
<gchristensen> you're welcome :) glad to hear there are some concerned users about it!
<gchristensen> clever: if you can write up an email about it, I would like that. I will forward it to the security announcement email list.
<nh2> gchristensen: CVEs are what makes me do lots of stuff at 3 am :D
<clever> i'm not that good with formal things like that
ibrahims has quit [(Ping timeout: 260 seconds)]
<gchristensen> clever: if you can write instructions, I'll write the formal stuff :)
<gchristensen> nh2: you're telling me :P
lambdamu has quit [(Ping timeout: 268 seconds)]
<NixOS_GitHub> [nixpkgs] benley opened pull request #23129: qemu-vm: Make it possible to adjust RAM allocation at runtime (master...qemu-vm) https://git.io/vyfuJ
<gchristensen> whoa^
<clever> nh2: gchristensen: hmmm, boot.blacklistedKernelModules did nothing to stop a python script from loading dccp_ipv4 and dccp
<unlmtd[m]> I have libinput enabled. which on other distros gives me the trackpoint scrolling, but with nixos not
<nh2> clever: I'm also testing it at the moment
<clever> nh2: acording to the man page, blacklist makes the kernel ignore the special pci:123 aliases on a module
<clever> but does nothing to actualy stop loading
<clever> so it just stops auto-loading, because a driver claimed support at compile-time
<nh2> clever: I can confirm, it doesn't prevent a modprobe
<clever> and now that i have made a single dccp socket, the module is in-use, and i cant unload it
digitalmentat has quit [(Ping timeout: 268 seconds)]
ibrahims has joined #nixos
<clever> nh2: https://gist.github.com/cleverca22/a2e6e79a041d1f7d256a9f183d1681b7 i have used this in the past to enable things
<clever> in theory, you can also just "IP_DCCP n\nINET_DCCP n\nNF_NAT_PROTO_DCCP n\nNETFILTER_XT_MATCH_DCCP n"
<clever> and turn all dccp support off
<nh2> clever: uh, how comes my /etc/static/nixos.conf already contains "blacklist dccp"?
<nh2> sorry, I mean /etc/modprobe.d/nixos.conf
ibrahims has quit [(Ping timeout: 260 seconds)]
seagreen has quit [(Ping timeout: 240 seconds)]
<clever> nh2: not sure how it got there
mbrgm has quit [(Ping timeout: 240 seconds)]
<nh2> ah most likely that's simply what blacklistedKernelModules does.
<clever> ah, yeah, thats what it does
<nh2> However, there is a workaround for this behaviour; the install command instructs modprobe to run a custom command instead of inserting the module in the kernel as normal, so you can force the module to always fail loading with:
<nh2> /etc/modprobe.d/blacklist.conf
<nh2> install module_name /bin/false
<clever> ah yeah
<clever> boot.extraModprobeConfig = "install dccp /run/current-system/sw/bin/false";
mbrgm has joined #nixos
mkoenig has quit [(Ping timeout: 240 seconds)]
systemfault has joined #nixos
<clever> [root@amd-nixos:~]# nixos-rebuild build-vm
<clever> nh2: and now for my next trick!, messing with kernel module stuff, without rebooting!
<clever> nh2: yep, that works
<clever> nh2: gchristensen: https://gist.github.com/cleverca22/21ce2134bd507af19996eac5613d2fb3#file-gistfile1-txt-L21 adding this line leaves my system unable to load dccp.ko
calvertvl has quit [(Quit: Page closed)]
ibrahims has joined #nixos
derjohn_mob has quit [(Ping timeout: 240 seconds)]
seagreen has joined #nixos
Kendos-Kenlen has quit [(Quit: Konversation terminated!)]
<gchristensen> clever: I just left a comment. like that?
ibrahims has quit [(Ping timeout: 260 seconds)]
<clever> yeah, that looks good
<clever> you can also use a normal doublequote, "..."; and put it all on one line
<gchristensen> nice
<clever> double-single is mainly of use when you want to put more then 1 line
<gchristensen> right
<clever> and i happen to need the other line to stop alsa from trying to output audio on HDMI
<clever> there is no tv plugged in and it messed things up
<greymalkin> MySQL is not starting correctly: https://gist.github.com/greyson/ccf69409524df8810990c115c65881f8
s33se_ has joined #nixos
batdog has quit [(Remote host closed the connection)]
Sonarpulse has quit [(Ping timeout: 260 seconds)]
<gchristensen> clever: does this require rebooting?
mizu_no_oto has joined #nixos
<clever> shouldnt need a reboot to take affect
<clever> but because i tested dccp sockets earlier, the module got loaded and is now stuck in ram
s33se has quit [(Ping timeout: 255 seconds)]
<clever> so it depends on if dccp has been used previously or not, "lsmod | grep dccp"
<gchristensen> hmm
batdog has joined #nixos
<gchristensen> can you by chance test that on one of your machines?
derjohn_mob has joined #nixos
ibrahims has joined #nixos
<clever> gchristensen: i did a quick test in a build-vm, and /etc/modprobe.d/nixos.conf does update after a switch
<gchristensen> nice
<gchristensen> clever: just sent the mail, thank you :)
<clever> yep :)
<c74d> does NixOS support the ~/.XCompose configuration file?
takle has joined #nixos
ibrahims has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to master: https://git.io/vyfgj
<NixOS_GitHub> nixpkgs/master d36b1cc Graham Christensen: Revert "Revert "linux kernels: patch against DCCP double free (CVE-2017-6074)""...
takle has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to release-16.09: https://git.io/vyf2m
<NixOS_GitHub> nixpkgs/release-16.09 4d006d3 Graham Christensen: Revert "Revert "linux kernels: patch against DCCP double free (CVE-2017-6074)""...
sibi has quit [(Quit: Connection closed for inactivity)]
hexagoxel has quit [(Ping timeout: 260 seconds)]
hexagoxel has joined #nixos
ibrahims has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vyf27
<NixOS_GitHub> nixpkgs/master 8e3d0b8 Peter Hoeg: awless: 0.0.13 -> 0.0.14
ibrahims has quit [(Ping timeout: 240 seconds)]
batdog has quit [(Ping timeout: 240 seconds)]
mkoenig has joined #nixos
sellout- has joined #nixos
batdog has joined #nixos
<nh2> clever: works for me, thank you (I rebooted though)
<nh2> gchristensen clever: I appreciate the quick work on security updates a lot. It's been my main concern in the past whether nixos can handle it swiftly, and it seems that it can. That's great
<nh2> although with the CloudFlare exploit just now there may be even bigger things to worry about ;)
ibrahims has joined #nixos
<gchristensen> nh2: you're welcome! I'm glad to hear it. May I ask where you're using NixOS? also, I must invite you to participate in the next week's bug h,nt by commenting here and I'll ping you:https://github.com/NixOS/nixpkgs/issues/23072
<gchristensen> oohh ...
<gchristensen> clever: using `builtins.pathExists` I can make a allowUnfreePredicate function which allows unfree software as long as it is already installed
<clever> gchristensen: neat
<gchristensen> what an abuse :P
ibrahims has quit [(Ping timeout: 260 seconds)]
roconnor has quit [(Ping timeout: 260 seconds)]
takle has joined #nixos
slack1256 has joined #nixos
ibrahims has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
takle has joined #nixos
ibrahims has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub> [nixpkgs] grahamc opened pull request #23130: nixpkgs: allow packages to be marked insecure (master...insecure-packages-with-docs) https://git.io/vyfVB
<gchristensen> ok I'm way past my bedtime, but I got curl done, kernel done, that email sent, docs done...
<gchristensen> good night :)
MP2E has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
<spacekitteh> nite
sellout- has quit [(Ping timeout: 240 seconds)]
<nh2> gchristensen: I'm using it on the server for some projects I run. I commented there to be CC'd
eacameron has quit [(Remote host closed the connection)]
<nh2> gchristensen: what would be nice to have is some tool that can intersect the software I've installed on my nixos with the software that has security vulns in release-16.09, and can tell me accordingly
nh2 has left #nixos []
mguentner has quit [(Quit: WeeChat 1.7)]
mkoenig has quit [(Ping timeout: 240 seconds)]
nh2 has joined #nixos
sellout- has joined #nixos
lambdamu_ has quit [(Ping timeout: 260 seconds)]
lambdamu has joined #nixos
justan0theruser has quit [(Ping timeout: 255 seconds)]
justanotheruser has joined #nixos
mguentner has joined #nixos
nh2 has quit [(Ping timeout: 240 seconds)]
mkoenig has joined #nixos
takle has joined #nixos
alx741 has quit [(Quit: alx741)]
roygbiv has joined #nixos
takle has quit [(Ping timeout: 240 seconds)]
mkoenig has quit [(Ping timeout: 260 seconds)]
<bendlas> gchristensen: thanks and good night!
ibrahims has joined #nixos
eacameron has joined #nixos
<bendlas> nh2: for that, we'd first have to implement a reliable mapping of seclist package names to ours. see https://github.com/NixOS/nixpkgs/issues/22826#issuecomment-280106497
<copumpkin> I'm trying to figure out switch-to-configuration.pl is supposed to start new units
<copumpkin> so https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/activation/switch-to-configuration.pl#L146 grabs currently active units by asking systemd about them
<copumpkin> then it iterates over those and looks to see if any of them need to be started/stopped/restarted/etc.
<copumpkin> what code path starts brand new units that never existed before?
ibrahims has quit [(Ping timeout: 240 seconds)]
<clever> copumpkin: my first guess, systemd polls /etc/systemd/system/ and starts any units that appear?
<copumpkin> but /etc/systemd/system still contains the old units at that point
<copumpkin> $out/etc/systemd/system is the new one
* copumpkin very confused :)
<copumpkin> it even calls them activePrev for the return value
mkoenig has joined #nixos
mguentner2 has joined #nixos
takle has joined #nixos
mguentner has quit [(Ping timeout: 240 seconds)]
<clever> bendlas: i'm guessing the script records its state to those files as it runs
<clever> bendlas: and if you ctrl+c the script, it can do sane things upon the next run
<bendlas> Looks like something would write `/run/systemd/start-list` before calling `switch-to-configuration.pl`
<clever> bendlas: line 176 appears to write to it
<copumpkin> yeah, they write out units they find as they go along so they can pick up if it crashes
<copumpkin> I think
<copumpkin> the only occurrence of that path seems to be in that file
<bendlas> oh, so you're saying s-t-c.pl writes that itself
<copumpkin> so I don't think anyone else is filling those in
<copumpkin> yeah
<copumpkin> the comment suggests that at least
<copumpkin> and I can't find anyone else using that path
endformationage has quit [(Quit: WeeChat 1.6)]
takle has quit [(Ping timeout: 260 seconds)]
<copumpkin> it's weird, right?
<copumpkin> I mean we all know that it starts new units
<copumpkin> I just can't see how
takle has joined #nixos
<clever> copumpkin: checking something on this end...
alx741 has joined #nixos
<clever> stopping the following units: snmpd.service
<clever> the following new units were started: snmpd.service
<bendlas> is it possible that systemd would auto-start new unit files, but not restart changed ones or stop removed ones?
<clever> copumpkin: it appears to be tied to the @new variable, on lines 419, 436, and 441
<clever> bendlas: the message that appears is part of switch-to-configuration.nix
<clever> bendlas: so i'm thinking its not systemd doing it
takle has quit [(Ping timeout: 240 seconds)]
<copumpkin> the @new variable looked like some post-facto book-keeping though
<bendlas> oh, right, it calls getActiveUnits a second time at 420
<copumpkin> like "hey systemd what'd you just start up? I wanna tell my friends"
<copumpkin> yup
<copumpkin> I added a bunch of debug prints to my switch-to-configuration.pl and the new unit I'm requesting never gets printed
<copumpkin> which would explain why it's not starting
<copumpkin> but I don't understand what's going wrong :)
<clever> how are you requesting new units?
<copumpkin> (this is the context, https://github.com/NixOS/nixpkgs/issues/23121)
<copumpkin> like, reading the code, I can see why the second call to nixos-rebuild switch would start the new service
<copumpkin> because systemd now knows about it and it's in the stopped state
<copumpkin> but I have no idea how it's supposed to start it
<copumpkin> maybe it's in the activation script managed by the systemd module...
<copumpkin> but I see nothing there either
<spacekitteh> wtf, $700 to preorder the new ryzen 1800x chip
ibrahims has joined #nixos
ibrahims has quit [(Ping timeout: 260 seconds)]
<clever> heading off to bed now
Drakonis_ has joined #nixos
<copumpkin> alright, thanks for the help :) I'll continue staring
slack1256 has quit [(Ping timeout: 240 seconds)]
athan has joined #nixos
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
mkoenig has quit [(Ping timeout: 260 seconds)]
alx741 has quit [(Ping timeout: 260 seconds)]
AllanEspinosa has quit [(Ping timeout: 240 seconds)]
sellout- has quit [(Quit: Leaving.)]
roconnor has joined #nixos
ibrahims has joined #nixos
ibrahims has quit [(Ping timeout: 240 seconds)]
<eacameron> Is there a way to run nix expressions on the command line and get results printed to stdout? I have some very simple config nix files and I'd like to run something like "nix-eval '(import ./config.nix).name" and have the value of that attr printed to stdout.
ibrahims has joined #nixos
jsgrant has joined #nixos
<lambdamu> eacameron: there is nix-instantiate
<lambdamu> eacameron: also i really like nix-repl for these things
<eacameron> lambdamu: Hmm...I've never used that directly
<eacameron> lambdamu: How would nix-repl help?
<eacameron> I get that I can do it in the repl
<eacameron> But I want to use this in a script
phreedom has quit [(Ping timeout: 240 seconds)]
<lambdamu> eacameron: ah ok in that case that doesn't help
ibrahims has quit [(Ping timeout: 255 seconds)]
<lambdamu> nix-instantiate should do, though
edef is now known as nathan7
nathan7 is now known as edef
<lambdamu> you need the --eval flag if you don't want to build a derivation
<lambdamu> nix-instantiate --eval --strict -E 'let foo = 1; bar = 2; in { result = foo + bar; }'
<eacameron> lambdamu: Aha! That looks exactly what I need!
phreedom has joined #nixos
<eacameron> lambdamu: Yes that works great. Thanks so much!
jsgrant has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg@jsgrant.io & I'll try to get back to you within 36 hours.)]
hexagoxel has quit [(Ping timeout: 240 seconds)]
<lambdamu> eacameron: you're welcome
ibrahims has joined #nixos
hexagoxel has joined #nixos
ibrahims has quit [(Ping timeout: 260 seconds)]
layus__ has joined #nixos
layus_ has quit [(Read error: Connection reset by peer)]
jsgrant has joined #nixos
systemfault has quit [(Quit: Bye!)]
Wizek has quit [(Ping timeout: 260 seconds)]
ibrahims has joined #nixos
<NixOS_GitHub> [nixpkgs] ljli opened pull request #23131: wlc: 0.0.5 -> 0.0.8 (master...wlc-update) https://git.io/vyfPb
ibrahims has quit [(Ping timeout: 268 seconds)]
<NixOS_GitHub> [nixpkgs] ljli opened pull request #23132: rnv: init at 1.7.11 (master...rnv-init) https://git.io/vyfPx
<NixOS_GitHub> [nixpkgs] ljli opened pull request #23133: ghcjs: no longer broken (master...ghcjs-unbreak) https://git.io/vyfXJ
<NixOS_GitHub> [nixpkgs] ljli opened pull request #23134: earlyoom: init at 0.11 (master...earlyoom-init) https://git.io/vyfXU
<NixOS_GitHub> [nixpkgs] ljli opened pull request #23135: earlyoom service: init (master...earlyoom-service-init) https://git.io/vyfX4
eacameron has quit [(Remote host closed the connection)]
MercurialAlchemi has joined #nixos
ibrahims has joined #nixos
<copumpkin> anyone familiar with the nixos systemd magic in switch-to-configuration.nix?
xeviox has joined #nixos
ibrahims has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub> [nixpkgs] ljli opened pull request #23136: global: support universal-ctags (master...global-enhance) https://git.io/vyf1Z
fabian_a has joined #nixos
timor has joined #nixos
jluttine has quit [(Ping timeout: 268 seconds)]
griff_ has joined #nixos
reinzelmann has joined #nixos
ibrahims has joined #nixos
griff_ has quit [(Quit: griff_)]
mk-fg has quit [(Quit: o//)]
katyucha_ has joined #nixos
katyucha has quit [(Killed (verne.freenode.net (Nickname regained by services)))]
katyucha_ is now known as katyucha
katyucha_ has joined #nixos
fre has joined #nixos
ibrahims has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vyfDC
<NixOS_GitHub> nixpkgs/master 4588f94 Peter Hoeg: sensu: 0.17.1 -> 0.28.0
MichaelRaskin has quit [(Quit: MichaelRaskin)]
indi_ has quit [(Remote host closed the connection)]
eacameron has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub closed pull request #23136: global: support universal-ctags (master...global-enhance) https://git.io/vyf1Z
<NixOS_GitHub> [nixpkgs] pSub pushed 2 new commits to master: https://git.io/vyfDD
<NixOS_GitHub> nixpkgs/master 3211ff1 Leon Isenberg: global: support universal-ctags
<NixOS_GitHub> nixpkgs/master 3af0672 Pascal Wittmann: Merge pull request #23136 from ljli/global-enhance...
eacameron has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub> [nixpkgs] volth closed pull request #22692: test-driver: remove old statedir (master...test-driver-remove-old-statedir) https://git.io/vDwiT
systemfault has joined #nixos
systemfault has quit [(Remote host closed the connection)]
eacameron has joined #nixos
<sphalerite> I still don't really know what the best way to write a project-specific default.nix is. What I currently do is { pkgs ? import <nixpkgs> {} }: let inherit (pkgs) stdenv dep1 dep2...; in stdenv.mkDerivation {...} — but is there a better way?
takle has joined #nixos
<copumpkin> why not just with pkgs?
<copumpkin> I usually do something like that, except version-locked
derjohn_mob has quit [(Remote host closed the connection)]
<LnL> or callPackage, if you want something that looks more like the definitions in nixpkgs
<sphalerite> copumpkin: so it's clear exactly which deps I'm using — because buildDeps isn't the only place that other packages can be referred to
eacameron has quit [(Ping timeout: 260 seconds)]
<copumpkin> fair enough
takle has quit [(Ping timeout: 240 seconds)]
<LnL> something like { pkgs ? ... }: let drv = { stdenv, hello }: stdenv.mkDerivation ...; in pkgs.callPackage drv {}
<sphalerite> Ah yes, that's nice
<sphalerite> I think I'll move to that, thanks
<LnL> and for more complex things I sometimes move the drv part to a separate file
eacameron has joined #nixos
ibrahims has joined #nixos
pi3r has joined #nixos
<sphalerite> also, why does nix-shell not allow both -p and -E?
eacameron has quit [(Ping timeout: 268 seconds)]
<sphalerite> or both -p and using shell.nix
<sphalerite> (use case: I want a mostly-pure shell, with inotify-tools so I can use a script that watches files for changes and rebuilds)
phreedom has quit [(Ping timeout: 260 seconds)]
<sphalerite> ooh, I could use nix-shell --run in the watch script instead
<sphalerite> that also means any new deps will get pulled in as necessary
takle has joined #nixos
Drakonis_ has quit [(Quit: Leaving)]
thc202 has joined #nixos
bennofs1 has joined #nixos
goibhniu has joined #nixos
jluttine has joined #nixos
romildo has joined #nixos
<copumpkin> sphalerite: -p can behave a bit like -E
<copumpkin> in that you can put an arbitrary expression inside its parameter
<copumpkin> nix-shell -p "(import ./path/to/expression).foo" for example
phreedom has joined #nixos
ericsagnes has quit [(Ping timeout: 255 seconds)]
ambro718 has joined #nixos
mk-fg has joined #nixos
mk-fg has quit [(Changing host)]
mk-fg has joined #nixos
indi_ has joined #nixos
zraexy has quit [(Quit: Leaving.)]
indi_ has quit [(Ping timeout: 255 seconds)]
indi_ has joined #nixos
wangoe has joined #nixos
bennofs1 has quit [(Ping timeout: 255 seconds)]
DutchWolfie has joined #nixos
indi_ has quit [(Remote host closed the connection)]
zraexy has joined #nixos
bennofs1 has joined #nixos
jensens has joined #nixos
ambro718 has quit [(Ping timeout: 240 seconds)]
fabian_a has quit [(Quit: Leaving)]
<NixOS_GitHub> [nixpkgs] romildo opened pull request #23137: blackbird: 2016-07-04 -> 2017-02-20 (master...upd.blackbird) https://git.io/vyfQ9
kampfschlaefer has quit [(Ping timeout: 260 seconds)]
pi3r has quit [(Ping timeout: 240 seconds)]
pi3r has joined #nixos
nschoe has quit [(Quit: Program. Terminated.)]
nschoe has joined #nixos
<NixOS_GitHub> [nixpkgs] leenaars opened pull request #23138: quickder: 1.0-RC1 -> 1.0-RC2 (master...quickd) https://git.io/vyf5J
edvorg has joined #nixos
indi_ has joined #nixos
the-kenny has quit [(Quit: Gonna leave)]
xeviox has quit [(Ping timeout: 260 seconds)]
the-kenny has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #23139: moka-icon-theme: 2016-10-06 -> 2017-02-13 (master...upd.moka-icon-theme) https://git.io/vyf5E
indi_ has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub> [nixpkgs] leenaars opened pull request #23140: hexio: unstable -> 1.0-RC1 (master...hexio) https://git.io/vyf5o
MP2E has quit [(Quit: leaving)]
ThatDocsLady has joined #nixos
viric has quit [(Changing host)]
viric has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vyfdW
<NixOS_GitHub> nixpkgs/master 9e59945 Peter Hoeg: calibre: 2.79.1 -> 2.80.0
<NixOS_GitHub> [nixpkgs] romildo opened pull request #23141: greybird: 2016-11-15 -> 2017-02-17 (master...upd.greybird) https://github.com/NixOS/nixpkgs/pull/23141
mkoenig has joined #nixos
derjohn_mob has joined #nixos
wkennington has joined #nixos
_habnabit has quit [(Ping timeout: 264 seconds)]
_habnabit has joined #nixos
eacameron has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #23142: jwm: 1580 -> 1582 (master...upd.jwm) https://git.io/vyfdp
<viric> veracity included 256-bit cryptohashes for the paranoid :)
derjohn_mob has quit [(Ping timeout: 260 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
mk-fg has quit [(Quit: o//)]
eacameron has joined #nixos
mk-fg has joined #nixos
mk-fg has quit [(Changing host)]
mk-fg has joined #nixos
edvorg has quit [(Remote host closed the connection)]
Jnsaff has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #23143: numix-icon-theme: 2016-11-13 -> 2017-01-25 (master...upd.numix-icon-theme) https://git.io/vyfbT
derjohn_mob has joined #nixos
edvorg has joined #nixos
<Jnsaff> good morning, is there an easy way of finding out and visualizing the "tree" of packages that went into building/installing a specific package?
eacameron has quit [(Ping timeout: 260 seconds)]
<Jnsaff> I see a list of stuff in /nix/store but I don't really know who requires what
<goibhniu> hi Jnsaff, you can see it on hydra and you can also query nix-store locally in various ways
<goibhniu> Jnsaff: check out nix-store --query, in the man page
<Jnsaff> cool, thank you
<goibhniu> you're welcome
<obadz> copumpkin: sorry to hear :-D
<obadz> copumpkin: it makes sense though, don't you think?
pi3r2 has joined #nixos
pi3r has quit [(Ping timeout: 260 seconds)]
jgertm has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #23144: numix-gtk-theme: 2016-11-19 -> 2017-02-15 (master...upd.numix-gtk-theme) https://git.io/vyfNG
takle has quit [(Remote host closed the connection)]
dbmikus has joined #nixos
Jnsaff has quit [(Ping timeout: 260 seconds)]
dbmikus has quit [(Ping timeout: 240 seconds)]
sibi has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #23145: paper-icon-theme: 2016-11-05 -> 2017-02-13 (master...upd.paper-icon-theme) https://git.io/vyfAC
roconnor has quit [(Ping timeout: 260 seconds)]
Itkovian has joined #nixos
wkennington has quit [(Read error: Connection reset by peer)]
takle has joined #nixos
takle has quit [(Ping timeout: 260 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
takle has joined #nixos
ericsagnes has joined #nixos
georges-duperon has joined #nixos
timor has quit [(Ping timeout: 255 seconds)]
edvorg has quit [(Remote host closed the connection)]
griff_ has joined #nixos
edvorg has joined #nixos
indi_ has joined #nixos
mguentner2 is now known as mguentner
indi_ has quit [(Ping timeout: 268 seconds)]
<NixOS_GitHub> [nixpkgs] romildo opened pull request #23146: xdgmenumaker: 1.1 -> 1.4 (master...upd.xdgmenumaker) https://git.io/vyfhL
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
m0rphism has joined #nixos
xadi has joined #nixos
<NixOS_GitHub> [nixpkgs] rickynils pushed 1 new commit to release-16.09: https://git.io/vyfhA
<NixOS_GitHub> nixpkgs/release-16.09 05eb31f Dan Peebles: google-compute-image.nix: fix evaluation failure...
<NixOS_GitHub> [nixpkgs] edolstra closed pull request #23117: nix service: try to downgrade schema (master...nix-downgrade) https://git.io/vyvnQ
eacameron has joined #nixos
Seichi has joined #nixos
Seichi has quit [(Client Quit)]
eacameron has quit [(Ping timeout: 260 seconds)]
obadz has quit [(Ping timeout: 240 seconds)]
obadz has joined #nixos
RchrdB has quit [(Ping timeout: 240 seconds)]
ThatDocsLady is now known as ThatDocsLady_brb
<NixOS_GitHub> [nixpkgs] romildo opened pull request #23147: zuki-themes: 2016-10-20 -> 2017-02-17 (master...upd.zuki-themes) https://git.io/vyJeB
griff_ has quit [(Quit: griff_)]
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 268 seconds)]
phreedom has quit [(Ping timeout: 240 seconds)]
ThatDocsLady_brb is now known as ThatDocsLady
phreedom has joined #nixos
<sphalerite> romildo: Just wondering, what did you go for in the end with your cmake/ncurses issue?
mudri has joined #nixos
sheenobu has quit [(Quit: Leaving)]
<NixOS_GitHub> [nixpkgs] jgeerds closed pull request #23143: numix-icon-theme: 2016-11-13 -> 2017-01-25 (master...upd.numix-icon-theme) https://git.io/vyfbT
mudri has quit [(Ping timeout: 240 seconds)]
<romildo> sphalerite, I have learned that software development should be done with nix-shell. Just adding compilation tools and libraries to environment.systemPackages is not enough, because some hooks are not run.
mudri has joined #nixos
<sphalerite> I see, good to know :) it's not the only way, as I indicated on the issue (I'm lheckemann), but yeah it does seem the most sensible way
<romildo> sphalerite, therefore I solved my issue with cmake not finding ncurses with the nix-shell:
<romildo> nix-shell -p cmake ncurses --command clion
<sphalerite> yeah, that makes sense
<romildo> In this case I was using the CLion IDE for development.
<sphalerite> for greater simplicity and to encode your dependencies in a file, you may also want to add a shell.nix or default.nix, then you can just use nix-shell --run clion (or --command clion)
gilligan_ has joined #nixos
<gilligan_> hi
griff_ has joined #nixos
<romildo> sphalerite, thank you for the tips you gave in the issue tracker.
ilyaigpetrov has joined #nixos
<sphalerite> np
ibrahims has quit [(Ping timeout: 260 seconds)]
m0rphism has quit [(Quit: WeeChat 1.4)]
m0rphism has joined #nixos
derjohn_mob has quit [(Ping timeout: 255 seconds)]
<romildo> The packages included in the nix-shell depends on the project. Is it possible to define different set of dependencies in shell.nix or default.nix to use with nix-shell for the different projects I work on?
mkoenig has quit [(Ping timeout: 260 seconds)]
<sphalerite> yes, nix-shell will look for shell.nix and then default.nix in the current working directory
pi3r2 has quit [(Ping timeout: 260 seconds)]
<gchristensen> globin: ping
<sphalerite> the contents you'd want would be something like with import <nixpkgs> {}; stdenv.mkDerivation {name = "projectName"; src = lib.cleanSource ./. ; buildInputs = [cmake ncurses ...]; }
ibrahims has joined #nixos
<romildo> sphalerite, what is the purpose of src = lib.cleanSource ./. in your example?
<sphalerite> romildo: mkDerivation requires a src attribute. lib.cleanSource filters out git repos and such
ibrahims has quit [(Ping timeout: 260 seconds)]
derjohn_mob has joined #nixos
nadley has quit [(Remote host closed the connection)]
FRidh has joined #nixos
m0rphism has quit [(Quit: WeeChat 1.4)]
m0rphism has joined #nixos
xadi has quit [(Quit: Leaving.)]
m0rphism has quit [(Quit: WeeChat 1.4)]
m0rphism has joined #nixos
ibrahims has joined #nixos
nh2 has joined #nixos
m0rphism has quit [(Client Quit)]
MoreTea has joined #nixos
m0rphism has joined #nixos
<MoreTea> hiya
<MoreTea> builtins.derivation and builtins.toFile are obviously having side effects. Are there other builtins that have side effects?
mudri has quit [(Ping timeout: 268 seconds)]
ibrahims has quit [(Ping timeout: 240 seconds)]
derjohn_mob has quit [(Ping timeout: 255 seconds)]
<nh2> bendlas: I meant at the nixos package level. E.g. when the nixos team identifies nixos packages with security issues, not only write it into the security-announce email, but also provide those package names in a parseable format so I can ask my nixos machine which of those packages it uses; then I can set up a notification (e.g. email) to ping me when I use an affected package
<srhb> When deploying an example with nixops to libvirtd, I get stuck on: could not connect to ‘root@192.168.122.208’ -- anyone know the solution?
<gchristensen> MoreTea: fetchTarball maybe?
m0rphism has quit [(Quit: WeeChat 1.4)]
<gchristensen> MoreTea: builtins.fetchurl
m0rphism has joined #nixos
<srhb> Looks like there's an unmerged fix for that...
<gchristensen> srhb: which one?
<MoreTea> @gchristensen, ah yes. of course.
<srhb> It's so much easier to do actual deployments with NixOps on gce etc., the virtual backends are obnoxiously broken at time. :-P
<gchristensen> I agree :(
<gchristensen> that is tough, I can't help with that PR
<srhb> No problem, thanks anyway. :)
<srhb> I'll just switch to virtualbox instead for now.
<MoreTea> @srhb, be aware that running vbox is not possible if you're using KVM at the same time (which you probably are if you're trying to work with libvirt)
m0rphism has quit [(Client Quit)]
<srhb> MoreTea: Thanks! I wasn't aware.
<srhb> Hmm, tricky.
ericsagnes has quit [(Ping timeout: 268 seconds)]
m0rphism has joined #nixos
m0rphism has quit [(Client Quit)]
m0rphism has joined #nixos
ibrahims has joined #nixos
<srhb> Protip: Remember to disable the gui when you deploy 10+ vms
<gchristensen> lol
ibrahims has quit [(Ping timeout: 260 seconds)]
<LnL> srhb: yeah, and don't run your vbox commands to quickly
obadz has quit [(Ping timeout: 255 seconds)]
<gchristensen> LnL: can you review some docs I wrote?
obadz has joined #nixos
<LnL> sure, but probably in a couple of hours after work
<gchristensen> cool :)
<srhb> Isn't chromium supposed to install its chromium.desktop somewhere when installed system wide?
<srhb> Or well, symlink it into a profile
m0rphism has quit [(Quit: WeeChat 1.4)]
m0rphism has joined #nixos
<LnL> srhb: where you talking about compiling without gui support or just not running the ui at the same time?
<srhb> LnL: deploying. I'm all over the place now though. :-)
<srhb> It's fine, just needed to set headless.
<LnL> oh you mean the vms themselves?
ibrahims has joined #nixos
<srhb> Yes
<NixOS_GitHub> [nixpkgs] edolstra pushed 1 new commit to master: https://git.io/vyJm7
<NixOS_GitHub> nixpkgs/master 8e1fa01 Eelco Dolstra: nix: 1.11.6 -> 1.11.7
<NixOS_GitHub> [nix] edolstra tagged 1.11.7 at 1331a5e: https://git.io/vyJmx
ibrahims has quit [(Ping timeout: 255 seconds)]
<globin> gchristensen: in the example you wrote foobar and in the explanation hello
<gchristensen> globin: lol.
<NixOS_GitHub> [nixpkgs] Mic92 opened pull request #23148: lxc: fix glibc 2.25 incompatibility (master...lxc-glibc-fix) https://git.io/vyJYY
<gchristensen> globin: just the once, right?
<globin> gchristensen: yes, and could you add a sentence + link to the 17.03 rl-notes?
<NixOS_GitHub> [nix] edolstra pushed 1 new commit to master: https://git.io/vyJYW
<NixOS_GitHub> nix/master 668fef2 Eelco Dolstra: nix-shell: Overwrite environment variables...
<gchristensen> globin: done and done
pi3r has joined #nixos
arrais has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 3 new commits to master: https://git.io/vyJY9
<NixOS_GitHub> nixpkgs/master a9c875f Graham Christensen: nixpkgs: allow packages to be marked insecure...
<NixOS_GitHub> nixpkgs/master 30cea5f Graham Christensen: libplist: mark as insecure...
<NixOS_GitHub> nixpkgs/master 8f60b43 Robin Gloster: Merge pull request #23130 from grahamc/insecure-packages-with-docs...
<gchristensen> globin: woohoo! and hopefully the configuration make more sense now :P
<arrais> hello! first time here...
ibrahims has joined #nixos
<arrais> can i find a list of Nixpkgs packages somewhere?
<MoreTea> @gchristensen, nice docs!
<arrais> thanks, @gchristensen!
<LnL> but that's not *everything*, some things are hidden
<gchristensen> MoreTea: <3 :)
ixxie has joined #nixos
eacameron has joined #nixos
griff_ has quit [(Quit: griff_)]
pi3r has quit [(Ping timeout: 255 seconds)]
ibrahims has quit [(Ping timeout: 240 seconds)]
<MoreTea> That would be a pretty OK alternative to prevent old channels from building.
pi3r has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
indi_ has joined #nixos
dannyg has joined #nixos
eacameron has joined #nixos
<dannyg> when a 'nixos-rebuild switch' is not showing any progress, how can i figure out what it's doing or waiting for?
<arrais> can I find any writeups somewhere on integrating with language-specific package managers (npm, rubygems, cpan, maven)?
indi_ has quit [(Ping timeout: 255 seconds)]
eacameron has quit [(Ping timeout: 260 seconds)]
ibrahims has joined #nixos
m0rphism has quit [(Quit: WeeChat 1.4)]
m0rphism has joined #nixos
dbmikus has joined #nixos
ibrahims has quit [(Ping timeout: 240 seconds)]
ThatDocsLady is now known as ThatDocsLady_afk
dbmikus has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub> [nixpkgs] bjornfor pushed 1 new commit to master: https://git.io/vyJsC
<NixOS_GitHub> nixpkgs/master 0eefe9b Jörg Thalheim: lxc: fix glibc 2.25 incompatibility
<jophish_> shlevy: It's important to note that Hercules isn't quite ready yet!
<NixOS_GitHub> [nixpkgs] bjornfor closed pull request #23148: lxc: fix glibc 2.25 incompatibility (master...lxc-glibc-fix) https://git.io/vyJYY
sellout- has joined #nixos
timor has joined #nixos
eacameron has joined #nixos
<MoreTea> @arrais, I'm working on workshop material for that right now.
m0rphism has quit [(Quit: WeeChat 1.4)]
m0rphism has joined #nixos
<MoreTea> will be at https://github.com/moretea/nix-workshop in a few hours. I'll at least show a complete walkthrough for a ruby + bundler example.
timor has quit [(Ping timeout: 260 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
<MoreTea> (it's the third part)
ibrahims has joined #nixos
<greymalkin> Why is nixops suddenly getting authentication errors on a new virtualbox instance? I've destroyed and deployed three times now and can't make it work again, even though the network and "hardware" configurations haven't changed.
<greymalkin> Actually, they have ... I changed a shared folder from readOnly to rw... I'm testing to see if that caused it.
<greymalkin> Nope.
<greymalkin> Still getting authentication errors out of the blue.
<Baughn> Anyone got an up-to-date, not overly clever XMonad config I could borrow? I'm a bit unsure how to make it all work with NixOS today.
mkoenig has joined #nixos
phreedom has quit [(Quit: No Ping reply in 180 seconds.)]
phreedom has joined #nixos
ixxie has quit [(Ping timeout: 240 seconds)]
globin_[m] has joined #nixos
c0bw3b has joined #nixos
mizu_no_oto has joined #nixos
romildo has quit [(Quit: Leaving)]
ibrahims has quit [(Ping timeout: 260 seconds)]
fadenb has quit [(Quit: WeeChat 1.7)]
<MoreTea> greymalkin, did you delete your deployment? that might help
<manveru> btw, installing nixos on hetzner with https://github.com/elitak/nixos-infect was pretty nice, just had to remove the eth1 device :)
sellout- has quit [(Quit: Leaving.)]
fadenb has joined #nixos
dmi3y has joined #nixos
fadenb has quit [(Client Quit)]
fadenb has joined #nixos
fadenb has quit [(Client Quit)]
fadenb has joined #nixos
ibrahims has joined #nixos
fadenb has quit [(Read error: Connection reset by peer)]
fadenb has joined #nixos
fadenb has quit [(Client Quit)]
ThatDocsLady_afk is now known as ThatDocsLady
fadenb has joined #nixos
fadenb has quit [(Client Quit)]
fadenb has joined #nixos
fadenb has quit [(Client Quit)]
fadenb has joined #nixos
ibrahims has quit [(Ping timeout: 240 seconds)]
fadenb has quit [(Client Quit)]
cpennington has joined #nixos
<LnL> arrais: there's also some stuff in the manual http://nixos.org/nixpkgs/manual/#chap-language-support
Wizek has joined #nixos
bennofs1 has quit [(Ping timeout: 255 seconds)]
mkoenig has quit [(Ping timeout: 260 seconds)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
sellout- has joined #nixos
<NixOS_GitHub> [nixpkgs] mogria opened pull request #23149: findutils: updatedb now uses writable database outside of nix-store by default (master...updatedb-standalone) https://git.io/vyJ8O
ibrahims has joined #nixos
<NixOS_GitHub> [nixpkgs] manveru opened pull request #23150: crystal: 0.20.5 -> 0.21.0 (master...crystal-21) https://git.io/vyJ8W
davidak has joined #nixos
ibrahims has quit [(Ping timeout: 268 seconds)]
zml has quit [(Ping timeout: 240 seconds)]
mudri has joined #nixos
mizu_no_oto has joined #nixos
ixxie has joined #nixos
zml has joined #nixos
wizeman has joined #nixos
<viric> What is worst? No use of gnupg signing at all, or constant use with a key not-super-safe? gpg-agent running all the time, in a server used through ssh.
<viric> I tend to switch between paranoid key safety and no usage at all
<viric> as if someone expected from me to be really careful about my key
dramforever has joined #nixos
<viric> or I'm kicked out of the tinfoil-hat club
mudri has quit [(Ping timeout: 260 seconds)]
<viric> I once created an always-offline gpg master key, to have short-lived (few months) signing subkeys.
georges-duperon has quit [(Ping timeout: 255 seconds)]
<viric> at first renewal of subkey I noticed I forgot the password of the master key
eacameron has joined #nixos
roconnor has joined #nixos
ibrahims has joined #nixos
uwap has quit [(Quit: ZNC 1.6.3 - http://znc.in)]
contrapumpkin has joined #nixos
<Mic92> I prefer ephermal keys like in use by OMEMO/OTR compared to gpg
<viric> I talk more about signing commits, or e-mail
Rotaerk has quit [(Quit: Leaving)]
<Mic92> I have my key on my laptop with full disk encryption. This must be sufficient.
<viric> Right, my problem is that I think that's not sufficient, if the key can be stolen by a bypasser when I forgot to lock screen
<viric> or woke the sleeping computer
uwap has joined #nixos
shlevy has quit [(Ping timeout: 240 seconds)]
ibrahims has quit [(Ping timeout: 268 seconds)]
<Mic92> viric: I would be probably more concerned about my ssh key
<viric> If "suspend" made gpg-agent forget all... if I could lock screen on suspend...
dbmikus has joined #nixos
<Mic92> viric: you can write a service file to suspend your gpg-agent.
<viric> I wish that was easy to achieve in nixos
<Mic92> viric: systemd has a sleep.target for that
pi3r has quit [(Ping timeout: 255 seconds)]
<viric> do you mean some kind of pkill in a service file?
<viric> exactly that. Greta!
<viric> great
<viric> And now... vlock -an on sleep. Can be done?
shlevy has joined #nixos
<viric> Mic92: that should be in nixos as a boolean
<Mic92> viric: the same repo contains an example for slock
<Mic92> viric: you can make that happen, I guess
<viric> I will spend some time on it later
<viric> that slock looks like single-session lock
ibrahims has joined #nixos
<viric> better than nothing, and maybe that can call vlock -an
<viric> what is that of calling sudo from services? I hadn't seen that before
<Mic92> viric: it should be not done like that, systemd services support a User parameter.
<goibhniu> how do you start gpg agent? (it used to work for me when it was an option in configuration.nix)
<Mic92> Is there an ubuntu package for multiuser nix?
ibrahims has quit [(Ping timeout: 240 seconds)]
<Mic92> goibhniu: the release changelogs states, that this should be done in your shell configuration (bashrc etc)
<Mic92> gpg-agent now uses a static socket path
IITaudio has joined #nixos
<IITaudio> Hi, what package on nixos provides the linux header module.h?
<Mic92> IITaudio: linuxHeaders maybe?
<IITaudio> Mic92: i installed it but find /nix/store -name "module.h" does not return anything
<goibhniu> Mic92: thanks, I tried to follow that, but failed
ibrahims has joined #nixos
<IITaudio> Mic92: excpet some android things or other non-kernel module.h files
xadi has joined #nixos
<contrapumpkin> any switch-to-configuration.pl gurus around? I'm trying to understand which code path starts completely new systemd services
<arrais> wow, @MoreTea! ruby is exactly what I'm interested in
<Mic92> IITaudio: that one maybe linuxPackages.kernel.dev ?
<Mic92> this what out-of-tree modules uses
<Mic92> *this is
<arrais> thanks, LnL! (sorry for the delay)
<IITaudio> Mic92: yep! How have you found it?
pi3r has joined #nixos
<Mic92> IITaudio: I followed the kernel parameter which was passed to the wireguard package
ibrahims has quit [(Ping timeout: 240 seconds)]
Sonarpulse has joined #nixos
<Mic92> IITaudio: linuxPackages points to the default linux version in nixos, so you have to select a different package if you select a different kernel.
<IITaudio> Mic92: yes I'm using the default, thanks!
cpennington has quit [(Ping timeout: 240 seconds)]
<contrapumpkin> is the binary-caches nix configuration option a prioritized list? as in it'll try the first one, then the second one, then the third one, then build from source?
<contrapumpkin> or does it try them in parallel
ibrahims has joined #nixos
<ikwildrpepper> contrapumpkin: I always assumed it was
MercurialAlchemi has quit [(Ping timeout: 260 seconds)]
<contrapumpkin> yeah it looks like the nix source code traverses them in order
<contrapumpkin> cool
<contrapumpkin> yup, thanks!
<gchristensen> might like having extra-binary-caches prioritized first, actually
<gchristensen> since those are likely more specific to the operation
Dezgeg has quit [(Ping timeout: 268 seconds)]
ibrahims has quit [(Ping timeout: 255 seconds)]
georges-duperon has joined #nixos
ibrahims has joined #nixos
danharaj has joined #nixos
xadi has quit [(Ping timeout: 268 seconds)]
cpennington has joined #nixos
ibrahims has quit [(Ping timeout: 260 seconds)]
erasmas has joined #nixos
mkoenig has joined #nixos
ibrahims has joined #nixos
danharaj has quit [(Ping timeout: 260 seconds)]
xadi has joined #nixos
ibrahims has quit [(Ping timeout: 260 seconds)]
dmi3y has quit [(Quit: dmi3y)]
xadi has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub> [nixpkgs] mogria closed pull request #23149: [WIP]findutils: updatedb now uses writable database outside of nix-store by default (staging...updatedb-standalone) https://git.io/vyJ8O
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
taeradan has quit [(Remote host closed the connection)]
ibrahims has joined #nixos
dramforever has quit [(Quit: Leaving)]
dmi3y has joined #nixos
xadi has joined #nixos
DutchWolfie has quit [(Quit: Konversation terminated!)]
<contrapumpkin> niksnut: if you're around, can you point me at the snippet of code that starts up brand new units in switch-to-configuration.pl? I'm kind of stumped at how it happens in a normal system, mostly because I think I understand the flow of the code and still don't see where it would happen :)
ibrahims has quit [(Ping timeout: 240 seconds)]
<avn> Folks, does this `du: cannot read directory '/nix/store/x8jp6f32nj2l7hv96gdlaw75lviwjpp1-firefox-unwrapped-51.0.drv.chroot': Permission denied` a bug?
<contrapumpkin> gchristensen: that's inside a loop that runs over all units that existed prior to the new configuration being activated, so a brand new unit wouldn't get covered by that (my understanding and confusion outlined here: https://github.com/NixOS/nixpkgs/issues/23121#issuecomment-282224026)
<contrapumpkin> (see the `activePrev` that the loop is running over)
<gchristensen> ahh
<NixOS_GitHub> [nixpkgs] Profpatsch opened pull request #23151: git-dit: init at 0.1.0 (master...git-dit-0.1) https://git.io/vyJoR
<niksnut> contrapumpkin: iirc, we just do "systemctl start multi-user.target", which will start new units pulled in by multi-user.target
<contrapumpkin> oh!
<contrapumpkin> but, hmm
jluttine has quit [(Ping timeout: 240 seconds)]
<Profpatsch> musicmatze: hehe ^
ibrahims has joined #nixos
kampfschlaefer has joined #nixos
<Profpatsch> Can you test it out? I might have missed something, but at least stuff like git-dit-list doesn’t throw errors on invocation.
<Profpatsch> Had to do a bit of sedding.
jluttine has joined #nixos
<niksnut> add most active targets to unitsToStart
<contrapumpkin> oh! okay I see
alx741 has joined #nixos
<niksnut> "This should start most changed units we stop here as well as any new dependencies"
<contrapumpkin> the line I linked to is only if multi-user.target changes
<niksnut> right
<contrapumpkin> I see
<contrapumpkin> okay, that gives me something to test, thank you
<contrapumpkin> really puzzling bug (not sure if you caught the issue with my new EC2 userdata thing, but it completely broke EC2 service start)
xadi has quit [(Quit: Leaving.)]
<contrapumpkin> but I'll track it down and fix before 17.03 branch-off :P
jmiven has quit [(Quit: co'o)]
<gchristensen> domenkozar: I caved and ordered the xps 15 ... it should arrived today
ibrahims has quit [(Ping timeout: 260 seconds)]
jmiven has joined #nixos
fadenb has joined #nixos
fadenb has quit [(Client Quit)]
dmi3y has quit [(Quit: dmi3y)]
ibrahims has joined #nixos
Ivanych has quit [(Ping timeout: 240 seconds)]
pi3r has quit [(Ping timeout: 260 seconds)]
fadenb has joined #nixos
fadenb has quit [(Client Quit)]
fadenb has joined #nixos
fadenb has quit [(Client Quit)]
reinzelmann has quit [(Quit: Leaving)]
fadenb has joined #nixos
estewei has joined #nixos
<NixOS_GitHub> [nixpkgs] mogria opened pull request #23152: findutils: updatedb now uses writable database outside of /nix/store by default (staging...updatedb-standalone) https://git.io/vyJiv
pi3r has joined #nixos
wangoe has quit [(Ping timeout: 255 seconds)]
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vyJXZ
<NixOS_GitHub> nixpkgs/master eae1866 Peter Hoeg: sensu: 0.17.1 -> 0.28.0
danharaj has joined #nixos
jsgrant- has quit [(Ping timeout: 260 seconds)]
c0bw3b has left #nixos []
pi3r has quit [(Ping timeout: 240 seconds)]
<18VAAM5LY> [nixpkgs] globin closed pull request #23125: nodejs: 7.2.1 -> 7.6.0 (master...update/nodejs-v7) https://git.io/vyfTN
<NixOS_GitHub> [nixpkgs] globin pushed 2 new commits to master: https://git.io/vyJ1j
<NixOS_GitHub> nixpkgs/master e20575c Maximilian Bosch: nodejs: 7.2.1 -> 7.6.0
<NixOS_GitHub> nixpkgs/master bb486ff Robin Gloster: Merge pull request #23125 from Ma27/update/nodejs-v7...
<NixOS_GitHub> [nixpkgs] matthiasbeyer opened pull request #23153: hr: init at 1.2 (master...add-hr) https://git.io/vyJMU
peterhoeg has quit [(Remote host closed the connection)]
<NixOS_GitHub> [nixpkgs] vcunat deleted mast at c160454: https://git.io/vyJMI
<contrapumpkin> niksnut: also, unrelated note, but any more feedback on the changes I made to the Nix option barf/warn/accept code?
katyucha has quit [(Quit: leaving)]
FRidh has quit [(Remote host closed the connection)]
<niksnut> contrapumpkin: not right now, sorry
<contrapumpkin> no problem, not urgent (since it wouldn't appear until 1.12 anyway) just didn't want it to fall off the radar :)
<contrapumpkin> thanks though
derjohn_mob has joined #nixos
pi3r has joined #nixos
fre has quit [(Quit: WeeChat 1.7)]
ixxie has quit [(Remote host closed the connection)]
fre has joined #nixos
<contrapumpkin> is there a hacky way for me to write indiscriminately to the store on a NixOS box in default configuration?
<NixOS_GitHub> [nix] edolstra pushed 4 new commits to master: https://git.io/vyJyF
<NixOS_GitHub> nix/master 1c718f8 Eelco Dolstra: Verify content-addressability assertions at registration time
<NixOS_GitHub> nix/master e76df9b Eelco Dolstra: Register content-addressability assertion for fixed outputs
<NixOS_GitHub> nix/master d3e1aad Eelco Dolstra: nix-shell: Better error message when the shell can't be started
<contrapumpkin> I'm trying to debug something :)
<contrapumpkin> aha, nix.readOnlyStore
<niksnut> sure, just remount
mkoenig has quit [(Remote host closed the connection)]
<niksnut> mount -o remount,rw /nix/store
pi3r has quit [(Ping timeout: 240 seconds)]
indi_ has joined #nixos
derjohn_mob has quit [(Ping timeout: 268 seconds)]
<contrapumpkin> ah, I thought there was something that tried to guard against that
<contrapumpkin> but readOnlyStore worked fine
joachifm has quit [(Ping timeout: 240 seconds)]
ertes has quit [(Ping timeout: 240 seconds)]
<contrapumpkin> or maybe not :)
pi3r has joined #nixos
indi_ has quit [(Ping timeout: 268 seconds)]
puffnfresh has quit [(Ping timeout: 245 seconds)]
pi3r has quit [(Ping timeout: 255 seconds)]
ronny has quit [(Ping timeout: 255 seconds)]
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #23142: jwm: 1580 -> 1582 (master...upd.jwm) https://git.io/vyfdp
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vyJ72
<NixOS_GitHub> nixpkgs/master 1872f24 romildo: jwm: 1580 -> 1582
<NixOS_GitHub> nixpkgs/master 9110164 Joachim F: Merge pull request #23142 from romildo/upd.jwm...
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #23137: blackbird: 2016-07-04 -> 2017-02-20 (master...upd.blackbird) https://git.io/vyfQ9
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://github.com/NixOS/nixpkgs/compare/91101645e7c2...2646d314ff7e
<NixOS_GitHub> nixpkgs/master 5b2199f romildo: blackbird: 2016-07-04 -> 2017-02-20
<NixOS_GitHub> nixpkgs/master 2646d31 Joachim F: Merge pull request #23137 from romildo/upd.blackbird...
joachifm has joined #nixos
mudri has joined #nixos
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
eacameron has quit [(Quit: Leaving...)]
<NixOS_GitHub> [nixpkgs] fpletz pushed 4 new commits to master: https://git.io/vyJ5d
<NixOS_GitHub> nixpkgs/master 7cc86f7 Franz Pletz: mumble: 1.2.17 -> 1.2.19
<NixOS_GitHub> nixpkgs/master 114ae6b Franz Pletz: unbound: 1.6.0 -> 1.6.1
<NixOS_GitHub> nixpkgs/master f15cebd Franz Pletz: jool: 3.5.0 -> 3.5.2
pi3r has joined #nixos
jgertm has quit [(Ping timeout: 260 seconds)]
ryanartecona has joined #nixos
rmrfroot has joined #nixos
jensens has quit [(Ping timeout: 260 seconds)]
ronny has joined #nixos
<rmrfroot> can someone tell how to change `security.setuidPrograms = [ "firejail" ];` to work with the new security.wrapper thing?
dannyg has quit [(Quit: dannyg)]
JagaJaga has joined #nixos
endformationage has joined #nixos
<rmrfroot> using `security.wrappers = { firejail.source = "${pkgs.firejail}/bin/firejail"; };` instead fixed it for me
mudri has quit [(Ping timeout: 240 seconds)]
mudri has joined #nixos
digitus has joined #nixos
<NixOS_GitHub> [nixpkgs] zraexy opened pull request #23154: qsyncthingtray: 0.5.5rc2 -> 0.5.7 (master...qsyncthingtray) https://git.io/vyJNJ
goibhniu has quit [(Ping timeout: 240 seconds)]
[0x4A6F] has joined #nixos
wangoe has joined #nixos
pi3r has quit [(Ping timeout: 240 seconds)]
Ivanych has joined #nixos
eacameron has joined #nixos
mudri has quit [(Ping timeout: 240 seconds)]
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #23096: f2fs module: add crc32 dependency to initrd kernel modules, closes #2… (master...f2fs) https://git.io/vDjud
[0x4A6F] has quit [(Ping timeout: 260 seconds)]
[0x4A6F] has joined #nixos
chakerbenhamed has joined #nixos
mauricio1 has joined #nixos
<chakerbenhamed> Hey, is there a way to test a nixops build locally (ubuntu 14.04) instead of deploy it to ec2?
<lambdamu> chakerbenhamed: there is virtualbox backend
[0x4A6F] has quit [(Ping timeout: 260 seconds)]
chakerbenhamed has quit [(Ping timeout: 260 seconds)]
mudri has joined #nixos
ThatDocsLady has quit [(Quit: Arma-geddin-outta-here!)]
nschoe has quit [(Quit: Program. Terminated.)]
<viric> domenkozar: aszlig: why do you use Signed-off-by?
mudri has quit [(Ping timeout: 255 seconds)]
<gchristensen> viric: do you know the history of it?
<viric> the linux sco thing?
<gchristensen> yeah
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #23147: zuki-themes: 2016-10-20 -> 2017-02-17 (master...upd.zuki-themes) https://git.io/vyJeB
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #23145: paper-icon-theme: 2016-11-05 -> 2017-02-13 (master...upd.paper-icon-theme) https://git.io/vyfAC
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vyJjR
<NixOS_GitHub> nixpkgs/master 9ae7fb4 romildo: numix-gtk-theme: 2016-11-19 -> 2017-02-15
<NixOS_GitHub> nixpkgs/master ad0770f Joachim F: Merge pull request #23144 from romildo/upd.numix-gtk-theme...
<viric> but that's a linux-only thing
<gchristensen> beyond that, I don't know :)
phreedom has quit [(Quit: No Ping reply in 180 seconds.)]
<LnL> gchristensen: still want me to look at something or was that for the insecure packages pr?
<viric> gchristensen: so if I copy some procedure from Arch in a package, I shouldn't Signoff?
<gchristensen> it was reading the docs for the PR :) you're still invited! http://gsc.io/nixpkgs/manual.html#chap-packageconfig
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #23138: quickder: 1.0-RC1 -> 1.0-RC2 (master...quickd) https://git.io/vyf5J
<lambdamu> so anyone running the ck-patched kernel? SCHED_AUTOGROUP and RT_GROUP_SCHED need to be made optional in common-config.nix in order to make it work, would there be interest to make that work out of the box?
<viric> gchristensen: What's the purpose, if everything in a repository is Signed-off-by?
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #23141: greybird: 2016-11-15 -> 2017-02-17 (master...upd.greybird) https://git.io/vyUeL
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vyUeY
<NixOS_GitHub> nixpkgs/master 767e508 romildo: xdgmenumaker: 1.1 -> 1.4
<NixOS_GitHub> nixpkgs/master 5bf8047 Joachim F: Merge pull request #23146 from romildo/upd.xdgmenumaker...
<gchristensen> viric: I have no idea
HappyEnte has joined #nixos
<viric> Isn't the purpose of a Signed-off-by line that there may be commits without it?
ambro718 has joined #nixos
obadz has quit [(Ping timeout: 240 seconds)]
pi3r has joined #nixos
<LnL> gchristensen: looks good, but you forgot to change the first sentence to insecure
[0x4A6F] has joined #nixos
<gchristensen> LnL: where?
<gchristensen> oh.
<gchristensen> but also LnL I rewrote the whole chapter :)
obadz has joined #nixos
<contrapumpkin> obadz: ???
mauricio1 has left #nixos ["WeeChat 1.4"]
ibrahims has quit [(Ping timeout: 260 seconds)]
[0x4A6F] has quit [(Ping timeout: 240 seconds)]
ilyaigpetrov has joined #nixos
nckx has quit [(Quit: ☭ + 🐧 + GNU Guix)]
roygbiv has quit [(Quit: ™)]
nckx has joined #nixos
<LnL> gchristensen: the point about meta.broken also doesn't mention platforms
<gchristensen> LnL: true. would you like to PR that improvement? I'm not familiar with it so much
cpennington has quit [(Ping timeout: 240 seconds)]
<LnL> I do like that you clarified the conditions
<gchristensen> I was sad to erase my favorite line from all the manuals: "Nix packages can be configured to allow or deny certain options."
ibrahims has joined #nixos
hotfuzz_ has joined #nixos
ericsagnes has joined #nixos
hotfuzz has quit [(Ping timeout: 260 seconds)]
pi3r has quit [(Ping timeout: 260 seconds)]
<pikajude> lol
<domenkozar> viric: git cherry-pick -s
<domenkozar> gchristensen: mine is still not here :D
<simpson> gchristensen: Wait, packages can't be overridden now?
<gchristensen> simpson: sorry?
<domenkozar> that's what we get for living in EU
<gchristensen> domenkozar: yikes ...!
<simpson> gchristensen: Why did that line get removed? I don't understand.
<gchristensen> simpson: what?
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #23131: wlc: 0.0.5 -> 0.0.8 (master...wlc-update) https://git.io/vyfPb
<gchristensen> oh
<gchristensen> simpson: I rewrote that section of the manual, is why that line isn't there (that line doesn't make sense.)
<simpson> Ah.
<simpson> Nice.
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #23113: opera: 42.0.2393.517 -> 43.0.2442.991 (master...opera) https://git.io/vyvvq
<viric> domenkozar: why do you use -s on cherry-pick alone?
<viric> domenkozar: is there any chery-pick you dont' sign-off-by?
<gchristensen> viric: probably because merging via the website doesn't do sign-of-by or signatures
<viric> are there signed commits in nixpkgs? as in pgp signatures
<LnL> urgh, I need to fix my stuff not to use /run/keys
<gchristensen> lots
<LnL> what do you guys use for secret files like rsa keys and such?
cpennington has joined #nixos
<viric> LnL: other than having them in the gnupg keyring?
<viric> gchristensen: why I don't see any of that?
<viric> --show-signature, ok
danharaj has quit [(Ping timeout: 240 seconds)]
<gchristensen> viric: you can also page through https://github.com/NixOS/nixpkgs/commits/master
<NixOS_GitHub> [nix] edolstra created impure-derivations (+1 new commit): https://git.io/vyUIU
<NixOS_GitHub> nix/impure-derivations 647291c Eelco Dolstra: Add basic impure derivations...
fadenb is now known as fadenb-test
<viric> gchristensen: the verified thing?
fadenb-test is now known as fadenb
<gchristensen> viric: yeah
tg has quit [(Remote host closed the connection)]
<contrapumpkin> niksnut: omg very excited, will look more carefully in a few
<gchristensen> niksnut: you have some of the _best_ commit messages (and some of the worst, see: "Grr" ;) )
phreedom has joined #nixos
<contrapumpkin> I loved the Grr one
<contrapumpkin> I even complimented him on it
<contrapumpkin> niksnut: very cool. I'll need to think through how this building block applies to #520 but it definitely seems helpful
tg has joined #nixos
<pikajude> emoji-only commit messages from now on
<contrapumpkin> niksnut: main thing I'm curious about is how you plan on using this for builtins.fetchurl and builtins.fetchTarball. It seems very close to being feasible to do what I want, but those two would violate "pure derivations can't depend on impure ones" rule today
<contrapumpkin> I think the main difference between what you do and what I want is just that you say "pure can't depend on impure" and I say "pure can depend on impure, but do so very loudly in a way you can keep an eye on"
<contrapumpkin> niksnut: re: the caching mechanism, that's where I was suggesting a UUID (which is a UX nightmare but I don't have a better idea)
<contrapumpkin> I'll write questions/points on the commit :)
<contrapumpkin> easier to track probably
sellout- has quit [(Quit: Leaving.)]
tg has quit [(Quit: Leaving)]
adfaure has joined #nixos
<adfaure> Hello, I decided to use nixos with plasma 5. It works well, but can someone help me to deactivate kwallet please ? It pops up each time I need a password...
<sphalerite> contrapumpkin: fixed-output derivations are an exception according ot the commit message
<contrapumpkin> sphalerite: that's the other direction
<contrapumpkin> that says FO can depend on impure
<contrapumpkin> I'm wondering whether impure can depend on everything
digitalmentat has joined #nixos
<sphalerite> oh whoops, I misread
<sphalerite> why wouldn't it?
<contrapumpkin> I hope it can!
<contrapumpkin> that'd be amazeballs
<contrapumpkin> but it complicates evaluation/build I significantly I think
FRidh has joined #nixos
<contrapumpkin> since normally we can spit out all .drv files at once and then build them
<contrapumpkin> whereas this would force some to be deferred
<contrapumpkin> I think?
<contrapumpkin> oh never mind
<FRidh> adfaure: have you checked the settings with kwalletmanager5 ?
<contrapumpkin> due to the other restriction we can still do that
tg has joined #nixos
<adfaure> Hi FRidh, no I dont have this command, it seems not installed
<lambdamu> https://github.com/NixOS/nix/pull/1119 https://github.com/NixOS/nix/pull/1120 could these prs be merged or is something missing?
<adfaure> FRidh: okay, I guess i'll give up plasma
<niksnut> contrapumpkin: well, there already is a UUID, namely the "virtual" output path
<contrapumpkin> niksnut: the issue is for it to be a persistent handle for humans to ask for it to be blown away/expired. Say we replace channels with fetchTarball and I don't always want to update at tarball-ttl frequency, then I need some sort of consistent handle to be able to identify the tarball-fetching instance to ask Nix to expire it and grab me another one. And of course "lockfiles" would get identified by the same thing...
<contrapumpkin> or am I missing something?
<jophish_> copumpkin: I think the ticket you're referring to is #666
* contrapumpkin shrieks
<contrapumpkin> the devil!
<contrapumpkin> (but thanks :))
<jophish_> no problem :) I'd quite like to get #666 closed for hercules
<jophish_> although the NIX_BUILD_HOOK hackery seems to be working for now
dingen has joined #nixos
adfaure has quit [(Quit: Page closed)]
dingen is now known as dreamer
dreamer has quit [(Changing host)]
dreamer has joined #nixos
mudri has joined #nixos
dreamer has left #nixos []
Ivanych has quit [(Ping timeout: 240 seconds)]
Ivanych has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 3 new commits to master: https://git.io/vyU3j
<NixOS_GitHub> nixpkgs/master 71739f3 Vincent Laporte: Revert "ocamlPackages.spacetime: only build with ocaml-4.04"...
<NixOS_GitHub> nixpkgs/master 9493ced Vincent Laporte: ocamlPackages.{ojquery,tuntap,uri}: adds ocamlbuild as dependency
<NixOS_GitHub> nixpkgs/master 690968d Vincent Laporte: ocamlPackages.utop: 1.19.2 -> 1.19.3
<NixOS_GitHub> [nixpkgs] benley closed pull request #23129: qemu-vm: Make it possible to adjust RAM allocation at runtime (master...qemu-vm) https://git.io/vyfuJ
bennofs1 has joined #nixos
fre has quit [(Quit: WeeChat 1.7)]
adfaure has joined #nixos
xwvvvvwx_ has joined #nixos
<adfaure> Hello I have a lot of trouble desactivating kwallet for plasma 5 with nixos
<adfaure> Someone did it please ?
roygbiv has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
arrais has quit [(Quit: Page closed)]
<NixOS_GitHub> [nixpkgs] doshitan opened pull request #23155: prometheus service: fix basic auth option (master...fix-prometheus-basic-auth) https://git.io/vyUZs
<adfaure> FRidh: I was able to launch kwalletmanager, but i cant save the configuration from my user and I cant launch kwalletmanager as root
ibrahims has quit [(Ping timeout: 255 seconds)]
IITaudio has quit [(Ping timeout: 260 seconds)]
takle has quit [(Remote host closed the connection)]
<contrapumpkin> niksnut: I think something wonky is happening with startup filesystem resizing, probably unrelated to my ec2 startup commit
<contrapumpkin> I reverted my commit there and my instance starts up with a tiny filesystem. journalctl -k shows that resize2fs wants me to e2fsck the filesystem and refuses to touch it, despite tune2fs setting check interval/count to never
chakerbenhamed has joined #nixos
ibrahims has joined #nixos
<chakerbenhamed> thanks lambdamu I will check it out ;)
<lambdamu> adfaure: did you try "security.pam.services.kdm.enableKwallet = false;"
pi3r has joined #nixos
<lambdamu> adfaure: I do not use kde, so this is a guess, also assuming you have kdm as display manager
<adfaure> Hi, will it works if I put that in my configuration.nix ?
<lambdamu> yes that is were you can change the setting
<adfaure> (lambdamu: yeah I am totally lost)
<lambdamu> i do not know if it has the intended effect
<FRidh> adfaure: how come you cannot save?
<FRidh> what happens
<adfaure> FRidh: from the settings panel of kwaletmanager5 it says `KDE Wallet Configuration You are not allowed to save the configuration`
<niksnut> contrapumpkin: maybe the filesystem was not shutdown cleanly during AMI generation?
chakerbenhamed has quit [(Quit: WeeChat 0.4.2)]
sellout- has joined #nixos
danharaj has joined #nixos
takle has joined #nixos
johnw has quit [(Ping timeout: 276 seconds)]
takle has quit [(Ping timeout: 240 seconds)]
<FRidh> adfaure: That's mean, and odd.
xwvvvvwx_ has quit [(Quit: WeeChat 1.7)]
<FRidh> Could you open an issue?
<contrapumpkin> niksnut: tune2fs on the image right before I take my EBS snapshot says this: Filesystem state: clean
<contrapumpkin> is that the field I'm looking for?
<FRidh> Did you upgrade from kde4? If so, could you remove your whole configurattion (yes, not nice, but it tends to make a big difference with kde)
<dmj`> is expipiplus1 here?
<FRidh> that's jophish_ I think
<contrapumpkin> niksnut: i.e., http://lpaste.net/11683337542303744
<adfaure> I raised an issue https://github.com/NixOS/nixpkgs/issues/23156, rigt now I need to go but I wont give up ^^
<dmj`> FRidh: ah, thanks
<contrapumpkin> niksnut: that's the state right before the snapshot (it's unmounted, that's the result of reading the raw device), and when it boots up, it complains that I need to e2fsck
<FRidh> adfaure: great, thanks
<NixOS_GitHub> [nixpkgs] benley pushed 2 new commits to master: https://git.io/vyU8E
<NixOS_GitHub> nixpkgs/master b846ce5 Tanner Doshier: prometheus service: fix basic auth option...
<NixOS_GitHub> nixpkgs/master 1c555e7 Benjamin Staffin: Merge pull request #23155 from doshitan/fix-prometheus-basic-auth...
<adfaure> FRidh: thanks for your help
jsgrant- has joined #nixos
adfaure has quit [(Ping timeout: 260 seconds)]
<dmj`> jophish_: ping
takle has joined #nixos
<contrapumpkin> niksnut: https://github.com/tytso/e2fsprogs/blob/master/resize/main.c#L439-L441 suggests that it'll always ask to check if last check time is less than last mount time?
<contrapumpkin> oh, did the mounting behavior change recently perhaps
<clever> contrapumpkin: resize2fs always wants an fsck, even if the filesystem was shutdown cleanly
<clever> contrapumpkin: its paranoid about disk errors
<contrapumpkin> clever: this used to work though...
<contrapumpkin> :P
<clever> the ami image generation scripts had an fsck in them
<contrapumpkin> the only thing I see is a tune2fs that sets check to 0
<clever> oh right
<clever> that fakes fsck having been ran
adfaure has joined #nixos
<contrapumpkin> not even in this case
<contrapumpkin> it just says don't impose a time limit on it
<contrapumpkin> and dont impose a mount limit
<contrapumpkin> we could use tune2fs to lie, but I'm more puzzled why this would have changed recently
<contrapumpkin> the only thing I can think of is that we used to mount the root fs earlier, and that triggered the "online" codepath rather than this unmounted codepath
<contrapumpkin> even though frankly I'd expect the online codepath to be even more paranoid
<contrapumpkin> (but maybe it expects that whoever mounted it already checked it?)
<clever> only change i see is one i helped with back in dec, it was fudging the number before it umounted
<contrapumpkin> ah yes
<contrapumpkin> is that enough though?
<contrapumpkin> given the check, it doesn't seem like the mount count is the issue
<jophish_> dmj`: hi
<jophish_> I should change my irc nick probably
<dmj`> jophish_: hello!
<jophish_> thanks FRidh :)
<jophish_> dmj`: What's up? :)
<contrapumpkin> I suppose I could add the fsck back
<contrapumpkin> that's probably the difference...
<contrapumpkin> not sure why it would work in the VM test and not in practice
<dmj`> jophish_: Not much :) I’ve noticed the great changes you’ve made to hydra in your branch (per that reddit post). I’m trying to incorporate them onto a nixos machine, but get errors about a missing JSONObject class in hydra-eval-jobs.cc. It seems like a newer nix dep. is needed (since I believe that’s where it’s installed).
<jophish_> oh cool. If by "great changes" you mean "quirky hacks" I understand :D
<dmj`> all the same to the end user :)
<dmj`> cloning private repos is a nice touch, iirc that was added (and submodule fetching)
xwvvvvwx has joined #nixos
<jophish_> dmj`: What I'm doing is running a branch called fixes-and-features on a nixops managed machine. When I set this up Hydra was very difficult to compile (not sure if that's changed), so it probably only compiles with a particular (old) version of nixpkgs
hotfuzz_ is now known as hotfuzz
<jophish_> I believe that version is b341de8
johnw has joined #nixos
<jophish_> my philosophy is "try not to break anything" and wait for hercules to land"
<jophish_> on the other hand, this setup has been ticking over as an internal hydra server for the better part of a year without any major peoblems
xwvvvvwx_ has joined #nixos
xwvvvvwx_ has quit [(Client Quit)]
<dmj`> jophish_: ah, I see. I will try that commit then. Have been keeping an eye on hercules as well. Very exciting work being done there.
Dezgeg has joined #nixos
<jophish_> It's a shame that they didn't get merged when they still applied cleanly, in fact one got closed today, I'm sure the other PRs will follow :(
xwvvvvwx_ has joined #nixos
xwvvvvwx has quit [(Ping timeout: 240 seconds)]
<jophish_> dmj`: I think that's from June last year, and hydra was of a similar vintage when I forked fixes-and-features
<jophish_> I'm sorry that there's not a nicer answer to your needs
indi_ has joined #nixos
xwvvvvwx_ has quit [(Client Quit)]
<dmj`> jophish_: yes, was sad to see all those commits go to the wayside. Not that they couldn’t be salvaged. Allowing hydra to fetch private github repos w/o leaking credentials is def. ideal. Current plan of attack is to make a server that receives webhooks and updates a local mirror on the hydra box itself.
<jophish_> dmj`: I'd invite you to contribute to Hercules. Although it's not usable at the moment
<jophish_> so Hydra + hacks is probably best for getting something going quickly
<pi3r> Does someone know by any chance what is the name of the `ghc` package (not the compiler ?)
indi_ has quit [(Ping timeout: 260 seconds)]
<dmj`> jophish_: I accept :) being hydra backwards compatible is a smart move in the interim. Hydra + hacks will do for now :) will let you know if I can get fixes-and-features working w/ a more current nixpkgs.
<jophish_> yeah, that'd be great thanks!
<jophish_> although I wouldn't try too hard if I were you :)
oida has quit [(Read error: Connection reset by peer)]
hiratara has quit [(Read error: Connection reset by peer)]
<dmj`> heh :] we’ll see what happens
hiratara has joined #nixos
tokudan has joined #nixos
oida has joined #nixos
oida has quit [(Read error: Connection reset by peer)]
<jophish_> I've got to go now, dmj`. Keep me posted!
<dmj`> jophish_: Will do! and thank you.
oida has joined #nixos
phreedom has quit [(Ping timeout: 260 seconds)]
oida has quit [(Read error: Connection reset by peer)]
mizu_no_oto has joined #nixos
<gilligan_> hey folks - I could use some suggestion here. I'm trying to write a derivation that takes as `src` another derivation and just needs to overwrite the content of one file. At first I thought I could just `echo ${data} > $src/some/file` but my src is in the /nix/store which is the first thing I am confused about right now x__X - I am expecting it to be copied to somewhere
<viric> This facebook compressor, zstd, looks quite good
adfaure has quit [(Ping timeout: 260 seconds)]
<contrapumpkin> gilligan_: $sourceRoot
<contrapumpkin> gilligan_: you might want to look at overrideDerivation though...
Vorpal has quit [(Ping timeout: 240 seconds)]
oida has joined #nixos
<gilligan_> contrapumpkin, well no.. overrideDerivation does not do what I want/need
<contrapumpkin> otherDerivation.overrideDerivation (_: { prePatch = "echo ${foo} > some/file"; })
<contrapumpkin> oh
<NixOS_GitHub> [nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vyUuv
<NixOS_GitHub> nixpkgs/master 7eb7126 Franz Pletz: Revert "lxc: fix build for glibc-2.25"...
<gilligan_> contrapumpkin, oh
<gilligan_> contrapumpkin, ok that is not something I thought of. I was actually *hoping* that there would be a better way than my rather dull approach ;)
<gilligan_> contrapumpkin, thanks!
<contrapumpkin> my main problem with those prePatch approaches is that they work fine until the inner derivation also defines prePatch
<contrapumpkin> as in, the patchiness needs to compose more nicely
<contrapumpkin> but oh well
<contrapumpkin> it's usually fine :)
<gilligan_> contrapumpkin, in this case it is a small project in which i have everything under my control so it'll be fine
ronny has quit [(Ping timeout: 260 seconds)]
<LnL> can't you just extend the prePatch
Jackneill_ has joined #nixos
<LnL> like hello.overrideDerivation (drv: { prePatch = drv.prePatch + "..."; })
puffnfresh has joined #nixos
<gilligan_> the thing is that i have a scenario in which building derivation A is quite time consuming and I need to later build a derivation A' that just has a minor change in one of the files
Vorpal has joined #nixos
Vorpal has quit [(Changing host)]
Vorpal has joined #nixos
<gilligan_> so actually now that I think about it using any kind of overrideDerivation does not make sense because then I would have evaluate (build) the whole thing again
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<LnL> I thought overrideDerivation required the derivation to be evaluated not built, does it?
<gilligan_> well i'll just give this a try now then
rmrfroot has quit [(Remote host closed the connection)]
takle has quit [(Remote host closed the connection)]
ronny has joined #nixos
johnw has quit [(Ping timeout: 255 seconds)]
<contrapumpkin> niksnut, clever: it was this https://github.com/NixOS/nixpkgs/commit/e5cca82d7969879c1b50f1cd9325ebbbfa76839f, you're right
phorse has quit [(Ping timeout: 256 seconds)]
<gchristensen> issue #1 :o
<gilligan_> LnL, actually let me make this more concrete - I have a derivation `app` which builds a nodejs app (and the build is bloody slow). The result will be used for some testing and later on is the input to creating a docker image - however I need a modified app as input to docker. I need to alter some version file (all a bit complicated to explain ;) - But I doesn't seem to me that overrideDerivation would do the job for me in that
<gilligan_> case
<contrapumpkin> gchristensen: yeah I see that in a few places, not sure how it happens
<LnL> gilligan_: ah, can't you make a new derivation for the app that just copies it and applies some patches
<LnL> or do you need to go through the build again?
<clever> contrapumpkin: i think tune2fs -C 0 would be equal to the fsck
<contrapumpkin> yeah
<contrapumpkin> little c sets the max
<contrapumpkin> I might switch to that
<clever> and capitol C sets the current count
<gilligan_> LnL, yeah no i defnitely do not want to build anything again ;) i'm creating a simple derivation that just modifies the file during the buildPhase now
<clever> contrapumpkin: and if C > c, it needs a check
<contrapumpkin> yeah
<copumpkin> okay I'll do that in my commit instead of an actual fsck, since the fsck seems kinda unnecessary in practice
<contrapumpkin> whoa there's two of me
<copumpkin> contrapumpkin: go away
contrapumpkin has quit [(Quit: Page closed)]
<clever> lol
johnw has joined #nixos
systemfault has joined #nixos
fiddlerwoaroof has quit [(Ping timeout: 260 seconds)]
pi3r has quit [(Ping timeout: 255 seconds)]
eacameron has quit [(Remote host closed the connection)]
eacameron has joined #nixos
fiddlerwoaroof has joined #nixos
<viric> great
<viric> I'm playing with gpg... trying to check my download of twrp https://dl.twrp.me/falcon/
<viric> gpg: BAD signature from "TeamWin <admin@teamw.in>" [unknown]
RchrdB has joined #nixos
<viric> ah bad download
johnw has quit [(Ping timeout: 240 seconds)]
jackneill__ has joined #nixos
hiratara has quit [(Ping timeout: 255 seconds)]
Jackneill_ has quit [(Ping timeout: 240 seconds)]
hiratara has joined #nixos
<copumpkin> clever: I haven't tested this, but I don't think -C 0 will help
<copumpkin> it looks like the main thing resize2fs seems to care about is the timestamp
<copumpkin> I'd have to use something like -T
pi3r has joined #nixos
<copumpkin> -T now or the like
jsgrant- has quit [(Remote host closed the connection)]
jsgrant- has joined #nixos
cpennington has quit [(Remote host closed the connection)]
<gchristensen> domenkozar: I'll take notes for you. ... :|
ryanartecona has joined #nixos
johnw has joined #nixos
<copumpkin> ?
phreedom has joined #nixos
eacameron has quit [(Remote host closed the connection)]
<gchristensen> domenkozar: setting up a Dell XPS 15, 9560
eacameron has joined #nixos
<gchristensen> copumpkin: ^
<copumpkin> oh
<copumpkin> fun :)
<NixOS_GitHub> [nixpkgs] cstrahan pushed 1 new commit to master: https://git.io/vyUis
<NixOS_GitHub> nixpkgs/master 4abbe3c Charles Strahan: gocode: 20150904 -> 20170219...
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #23132: rnv: init at 1.7.11 (master...rnv-init) https://git.io/vyfPx
eacameron has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vyUi1
<NixOS_GitHub> nixpkgs/master f67a097 romildo: idea.clion: 2016.3.2 -> 2016.3.3
<NixOS_GitHub> nixpkgs/master e2f837f Joachim F: Merge pull request #23119 from romildo/upd.idea...
eacameron has joined #nixos
<gchristensen> copumpkin: sort of :) I don't usually like paving the way on these matters :P
eacameron has quit [(Ping timeout: 260 seconds)]
<gchristensen> I wonder how we get Microsoft to sign our bootloader
wizeman has quit [(Quit: Connection closed for inactivity)]
<clever> gchristensen: there is a bug in a binary MS signed, that allows it to run unsigned code from the EFI bootloader context
<clever> gchristensen: so any box that trusts the M$ certs pretty much doesnt even have secureboot enabled
<gchristensen> I can disable SecureBoot just fine
<gchristensen> I'm just wondering what it'd take to also be S.B. compatible
<clever> the bootloader and kernel would have to be signed by MS, or a cert MS has approved
<clever> and because nixos can rebuild those with patches, the end-user must have the signing keys
<viric> gchristensen: that xps15 is our office laptop I think
<clever> and there goes the entire trust system
<gchristensen> the end user wouldn't be able to compile their own kernels in this case
<viric> gchristensen: S.B. is soundblaster?
<gchristensen> SecureBoot :)
<viric> I'm trying to migrate from cm to lineage...
<gchristensen> cm?
hiratara has quit [(Quit: ZNC - http://znc.in)]
<viric> cyanogenmod
<gchristensen> ahh
<viric> gchristensen: I had troubles with the wifi card on tails, in that xps 15.
<gchristensen> whoa, the "bios" has a "Peak Shift" functionality which stops using A/C power as much as possible during "peak hours"
<viric> maybe a newer tails fixes that
<gchristensen> viric: this is also the 9560 which just came out
<viric> gchristensen: peak hours?
hiratara has joined #nixos
<gchristensen> like my utility charges more for electricity from 9am to 3pm
<viric> o_O
<viric> how much power does it drain?
<gchristensen> I don't know
<viric> do you also have different price depending on the hour?
jsgrant- has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg@jsgrant.io & I'll try to get back to you within 36 hours.)]
<viric> some have that here too... but you can only know the price-per-hour of the next day
<viric> not further
jsgrant- has joined #nixos
<lambdamu> i'm running on xps 13 with broadcom wifi, has no ethernet connective and nixos install cd requires internet, that was fun for a whole night :D
<gchristensen> it is just 2 different costs, the peak cost and the night cost
<viric> ahh
<viric> bearable
<pi3r> pkgs.haskellPackages seems to come with a bunch of available packages (mtl,lens,text,vector,...).
<pi3r> How do I know when one package is not there and need to use ghcWithPackages ?
danharaj has quit [(Ping timeout: 240 seconds)]
sellout- has quit [(Ping timeout: 260 seconds)]
<lambdamu> pi3r: the haskell.packages.ghc* come with all sensible packages in scope
ttuegel has joined #nixos
phreedom has quit [(Ping timeout: 260 seconds)]
<pi3r> lambdamu: do you know where I can find the list ? I guess it is somewhere in the source but I can't find it
Sonarpulse has quit [(Ping timeout: 240 seconds)]
gilligan_ has quit [(Ping timeout: 255 seconds)]
<lambdamu> pi3r: wait i think what i said makes no sense, what are you trying to do?
FRidh has quit [(Remote host closed the connection)]
<lambdamu> you can load a ghc with nix-shell and ask for the available packages via ghc --show-packages
<lambdamu> but per default there are only the packages that come with ghc
<pi3r> I am trying to write a release.nix file that makes so sense https://github.com/CIRB/devbox/blob/v3/release.nix
<lambdamu> mtl shouldnt be there for instance
<lambdamu> those are the packages
<lambdamu> that come by default
<lambdamu> for everything else you have to use ghcWithPackages
<pi3r> In my list for instnace there is no lens but I am using it and it does not fail ...
takle has joined #nixos
mizu_no_oto has joined #nixos
<pi3r> but if I remove turtle then it is going to fail
JagaJaga has quit [(Ping timeout: 240 seconds)]
BramD_ has quit [(Ping timeout: 240 seconds)]
romildo has joined #nixos
seanparsons has quit [(Ping timeout: 245 seconds)]
<pi3r> I can also remove text and vector without problem
<lambdamu> the linked file makes sense to me
phreedom has joined #nixos
BramD_ has joined #nixos
<pi3r> And something even more puzzling if I want to use the package 'ghc' (not the compiler) I can put it there in the ghcWithPackages list but it won't find it
<lambdamu> ghc gets 4 additional packages one is processes adhoc with callCabal2nix which i can only guess what it does and the resulting ghc is passed as buildinput
seanparsons has joined #nixos
romildo has quit [(Client Quit)]
<lambdamu> the ghc that is in scope in the builder knows about those 4 packages then
romildo has joined #nixos
<pi3r> I did try that with nix-shell --pure to be sure I don't use a global ghc which would know about these packages
<lambdamu> so regarding ghc that is a package that is always known to the compiler
<lambdamu> it is in the boot list i linked earlier
derjohn_mob has joined #nixos
<pi3r> well whenever I import (Util) from the ghc package it does complain when I try a script with runghc
ambro718 has quit [(Ping timeout: 260 seconds)]
<pi3r> telling me that ghc-8.0.2 is an hidden package ...
MoreTea has quit [(Ping timeout: 260 seconds)]
<lambdamu> hm ok in that case it should probably be in the list passed to ghcWithPackages
<pi3r> but it just won't work. Here is the script: https://github.com/CIRB/devbox/blob/local/user/setenv.hs (the last import is the problem)
<pi3r> cabal or stash will compile that without trouble
bennofs1 has quit [(Ping timeout: 255 seconds)]
feepo has quit [(Read error: Connection reset by peer)]
BramD_ has quit [(Ping timeout: 255 seconds)]
seanparsons has quit [(Ping timeout: 255 seconds)]
<pi3r> maybe this is because it it called 'ghc'. Anyhow I can easily write the (<||>) myself ;-) It is just puzzling
carter has quit [(Ping timeout: 264 seconds)]
<lambdamu> ok use p.ghc
<pi3r> ah thanks I will try that
gleber_ has quit [(Ping timeout: 240 seconds)]
<pi3r> no luck ;-)
<viric> I'd say that zstd beats xz
<viric> and it is much faster
ibrahims has quit [(Ping timeout: 268 seconds)]
ndowens08 has joined #nixos
<lambdamu> hm it's strange the file doesn't look wrong
<lambdamu> ill clone it and try it
<viric> approx same compression size, what xz unpacks in 1m18s, zstd unpacks in 7s (4s cpu)
montag451_ has joined #nixos
<pi3r> lamdamu: PS: the local branch is using buildEnv instead of mkDerivation in release.nix which I believe is wrong
<pi3r> I haven't quite undertood yet when to use 'buildEnv' ...
BramD_ has joined #nixos
romildo has left #nixos ["Leaving"]
<ndowens08> SO when is the new nixos UI or the new "nix" command suppose to be in the unstable repo
<pi3r> lambdamu: I am running this with 'make user' on the root folder
seanparsons has joined #nixos
gleber_ has joined #nixos
<ndowens08> nix
<ndowens08> woops wrong window
johnw has quit [(Ping timeout: 240 seconds)]
<lambdamu> so far it compiles for me
feepo has joined #nixos
<lambdamu> nix-build --no-out-link release.nix
<lambdamu> the make file says something slightly different
<lambdamu> are you on mac, nixos or other distro?
<pi3r> I know it compile but the call nix-shell release.nix --run 'runghc user/setenv.hs' won't work
<lambdamu> so im not going to run the file :D but it compiles
montag451_ has quit [(Ping timeout: 260 seconds)]
<lambdamu> user/setenv.hs compiles too
<lambdamu> that means that the release nix is fine
<pi3r> I am actually trying to run setenv.hs without compiling it (with runghc)
carter has joined #nixos
<pi3r> In my editor (that do the compile check) it does work
<lambdamu> the same packages should be in scope for runghc though
tokudan has quit [(Quit: Leaving)]
<viric> meh. I can't make "open-hook" work in neomutt. https://www.neomutt.org/feature/compress
endformationage has quit [(Quit: WeeChat 1.6)]
<pi3r> well the only problem I have is related to the last import https://github.com/CIRB/devbox/blob/local/user/setenv.hs#L30
<NixOS_GitHub> [nixpkgs] NeQuissimus opened pull request #23157: git: 2.11.1 -> 2.12.0 (master...git_2_12_0) https://git.io/vyUSH
<pi3r> If I remove that import and write (<||>) myself everything is back to normal
<pi3r> It is a kind of mystery. Not a big deal. I don't really need to use 'Util' from ghc just for that bit
<NixOS_GitHub> [nixpkgs] NeQuissimus opened pull request #23158: curl: 7.53.0 -> 7.53.1 (master...curl_7_53_1) https://github.com/NixOS/nixpkgs/pull/23158
johnw has joined #nixos
nand0p has quit [(Ping timeout: 240 seconds)]
<pi3r> lambdamu: in case you want to try you can comment all the lines in https://github.com/CIRB/devbox/blob/local/user/setenv.hs#L235-L242
<lambdamu> what eactly is the error?
<lambdamu> *exactly
MichaelRaskin has joined #nixos
MP2E has joined #nixos
ibrahims has joined #nixos
nand0p has joined #nixos
<lambdamu> well in that case try --package ghc
<lambdamu> add it to the makefile
<lambdamu> this might be just a little odd behavior on behalf of runghc
<pi3r> I think it does not want me to pass --package because I am using a nix file
<lambdamu> well ok i just checked that you were on a different branch
<lambdamu> so yeah you have to pass -package ghc
<lambdamu> to ghc and to runghc
<lambdamu> since you have cabal file and dont use cabal which would do that for you if you had specified it you have to do it manually
<lambdamu> ghc ist just hidden per default even if it is available
<lambdamu> or maybe because it is always available who know
<lambdamu> @nix-shell release.nix --run 'runghc -package ghc user/setenv.hs' | tee /vagrant/last_run.log
<lambdamu> should work
<lambdamu> i meant you *dont* have a cabal file btw, sorry its getting late
<lambdamu> the release.nix is fine by the way, you just decided to import from hidden packages without making them available :P
ndowens08 has quit [(Quit: WeeChat 1.7)]
Sonarpulse has joined #nixos
thc202 has quit [(Ping timeout: 240 seconds)]
<pi3r> lambdamu: now I am lost ;-) https://www.refheap.com/125152
<NixOS_GitHub> [nixpkgs] titanous opened pull request #23159: Update libcec (master...update-libcec) https://git.io/vyUQd
<pi3r> lambdamu: I believe I am going to write '(<||>) = liftA2 (||)' and go to bed ;-)
<lambdamu> that is probably the smart move :D
johnw_ has joined #nixos
<pi3r> thanks for the help !
<lambdamu> no problem
<NixOS_GitHub> [nixpkgs] viric pushed 1 new commit to release-16.09: https://git.io/vyU78
<NixOS_GitHub> nixpkgs/release-16.09 e1874d0 Lluís Batlle i Rossell: Revert "neomutt: update to 20170206"...
<viric> perfect, commit to wrong branch.
<viric> I thought I was in master. reverted.
samae has joined #nixos
johnw has quit [(Ping timeout: 240 seconds)]
Kendos-Kenlen has joined #nixos
samae has left #nixos ["#okthxbye"]
<ekleog> hmmm... is there any reason why https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/virtualisation/qemu-vm.nix appears nowhere in the list of configuration options?
<lambdamu> pi3r: I don't why you are using buildEnv on the local branch
<Kendos-Kenlen> Hi :)
<lambdamu> i never used that
<lambdamu> pi3r: it works with mkDerivation and buildInputs instead of paths
<Kendos-Kenlen> I'm preparing a pull request to add hack as dependency to kde (https://github.com/Kendos-Kenlen/nixpkgs/commit/b65cc5c59ed39338d764e00e13a79a953a85004a) and I would like to know how can I test this ?
<pi3r> Yeah somehow I believe it was better than makeDerivation but it looks like a mistake. I have reverted to makeDerivation
<pi3r> lamdamu: I don't really know when to use buildEnv really ...
<Kendos-Kenlen> Also, noto and hack shouldn't also be kde dependencies ? (not only for NixOS configuration but also for the package itself)
<lambdamu> https://www.refheap.com/125152 that command actually works with mkDerivation and buildInputs
<pi3r> Well locally I do have mkDerivation and buildInputs
<lambdamu> i meant local vs v3 branch
<lambdamu> Kendos-Kenlen: do you know nixos-rebuild build-vm?
<pi3r> On local I have just commit my local changes now
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<Kendos-Kenlen> lambdamu: yes (but never used)
MP2E has quit [(Quit: brb)]
<lambdamu> Kendos-Kenlen: usually I do nixos-rebuild build-vm -I nixpkgs=<your-nixpkgs-fork> -I nixos-config=<your-test-config>
<lambdamu> build a qemu vm that you can launch
MP2E has joined #nixos
digitalmentat has quit [(Ping timeout: 260 seconds)]
<spacekitteh> holy shit, the webkit repo is fucked
johnw has joined #nixos
<Kendos-Kenlen> lambdamu: if, on my system, I already use kde5, I don't need to specify "nixos-config", right ?
<lambdamu> Kendos-Kenlen: on my system i have it set explictly to /etc/nixos/configuration.nix
<lambdamu> but it probably defaults to that
Sonarpulse has quit [(Ping timeout: 240 seconds)]
<lambdamu> so if that config activates the changes you want to test it should be fine
johnw_ has quit [(Ping timeout: 240 seconds)]
acarrico has quit [(Ping timeout: 240 seconds)]
estewei has quit [(Quit: Quit)]
<Kendos-Kenlen> Okay thanks, I'll try :)
acarrico has joined #nixos
jensens has joined #nixos