<clever> sphalerite: you could use a modified form of my netboot config to boot them on a ramdisk, and just ignore the hdd, or use the hdd as swap only
<sphalerite> They have 240GB hard disks
<sphalerite> oooh using them purely as swap and having everything as tmpfs could be nice
<sphalerite> although that might involve a lot of downloading stuff from the netboot server
<petersjt014[m]> I posted about a thing earlier and then had to (soz).
<petersjt014[m]> I was wondering if anyone had any working configs for minimal iso on virtualbox?
<samueldr> clever: the issue needing a build machine for armv6 and one for armv7 stems from binfmt not discriminating between binaries, right?
ssmike has quit [(Ping timeout: 260 seconds)]
<clever> sphalerite: its something like 200mb download to boot, and then nix has to push the whole closure over
<petersjt014[m]> I get that one issue with grub+blocklists
<clever> samueldr: yeah, there is no way to tell them apart at binfmt-misc
jb55 has quit [(Ping timeout: 248 seconds)]
<clever> petersjt014[m]: what did you set the grub.rootDevice to?
davidak has quit [(Quit: Leaving.)]
<samueldr> looking at readelf, there's Tag_CPU_arch, but I'm guessing it's not at a good location for that... but could a binfmt wrapper read that and redirect to the proper qemu?
<clever> samueldr: its pretty deeply nested into the elf structure, a few pointers down
<sphalerite> clever: yeah… would be nice to have the downloaded stuff cached on the disk rather than redownloading it on every boot
digitus has quit [(Quit: digitus)]
<clever> samueldr: binfmt-misc only works on a fixed offset mask and value
<petersjt014[m]> so is that not taken from grub.device?
<sphalerite> clever: samueldr : a wrapper could do it though, no?
<clever> petersjt014[m]: you can get some blocklist related errors if you set the device wrong
<petersjt014[m]> also Is is meant to be on a a separate partition?
<sphalerite> clever: since you already have a wrapper in the process especially…
<clever> sphalerite: ah, the argv[0] thing could inspect every elf file, and pass the right args
<samueldr> register hacky-wrapper to binfmt, haky-wrapper looks at that elf structure, redirects then
ssmike has joined #nixos
<sphalerite> yeah that
<samueldr> I'll eat and look at that
<clever> samueldr: you know where the existing wrapper is?
<sphalerite> PR it to nix-misc once you've done it 😉
<samueldr> yes
<samueldr> definitely
<clever> samueldr: also, only the arm readelf can find that arch tag
<clever> the x86 readelf cant see it
<samueldr> it can, well, I think so
<samueldr> I've used the readelf on my x86 machine
<samueldr> qemu isn't registered yet to binfmt, so it definitely means (I think) that readelf can read that tag on x86_64
<clever> i think its more that support for it was compiled out of the x86 readelf
<tobiasBora> clever: by the way, for now I don't have any armv7 device, so how could I disable the build of armv7-optimized code?
Shados has quit [(Remote host closed the connection)]
<clever> [root@amd-nixos:~]# ./qemu-3/bin/qemu-arm -cpu help
<clever> tobiasBora: this lists off what cpu's it can emulate
<clever> i suspect you can modify qemu-wrap.c to insert one of those flags at the start of the argv list
<sphalerite> if you happen to want to get an ARMv7 machine, I can recommend the chromebook I have ;)
Shados has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
<sphalerite> https://lugn.sphalerite.org/ghotl/posts/2017-11-10-chromebook.html I also wrote about how I got nixos running on it (this post is a bit of a ramble, I'll write a more concise post on how to get there as quickly as possible soon)
<samueldr> tobiasBora: from what I read, -cpu arm1176 seems to be the usual option for armv6/rapi
<samueldr> raspi*
<petersjt014[m]> what was the exact name of the option you mentioned earlier? It [doesn't seem to be rootDevice](https://nixos.org/nixos/options.html#rootdevice)
<petersjt014[m]> I do have device in use
<clever> petersjt014[m]: https://nixos.org/nixos/options.html#boot.loader.grub.device
mizu_no_oto has joined #nixos
<petersjt014[m]> yeah, that one. I have it as /dev/sda, which is not working rn
<clever> petersjt014[m]: what partition scheme is on sda?
<petersjt014[m]> ext4
<petersjt014[m]> which i do have included in the extra modules list too
<clever> paritition table, not filesystem
<clever> "blkid /dev/sda"
slack1256 has quit [(Remote host closed the connection)]
pxc2 has joined #nixos
<petersjt014[m]> If It's supposed to tell me if it's gpt or mbr, I dont see that
<petersjt014[m]> name, label, uuid, type
<petersjt014[m]> is what It shows me
<clever> petersjt014[m]: what does "fdisk -l /dev/sda" say?
DerGuteMoritz has quit [(Ping timeout: 276 seconds)]
<clever> petersjt014[m]: and also "mount | grep sda"
Biappi has quit [(Ping timeout: 268 seconds)]
lassulus has quit [(Ping timeout: 268 seconds)]
DerGuteMoritz has joined #nixos
lassulus has joined #nixos
Biappi has joined #nixos
griff_ has quit [(Quit: griff_)]
<petersjt014[m]> the first one is gonna get super mangled by by ocr screen copier (need to edit it first), the second says /dev/sda on /mnt type ext4 (rw,relatime,data=ordered)
<clever> petersjt014[m]: yep, theres your problem
<clever> petersjt014[m]: you dont have any partition tables!
<clever> grub cant be installed on such a setup
akfp has quit [(Read error: Connection reset by peer)]
<petersjt014[m]> wat
jensens has quit [(Ping timeout: 248 seconds)]
akfp has joined #nixos
pxc2 has quit [(Ping timeout: 240 seconds)]
<clever> you formated sda as ext4, so there are no partition tables
<petersjt014[m]> I can have a filesystem w/o one of those?
<clever> you can, but grub wont install to it
SOO7 has quit [(Ping timeout: 255 seconds)]
<clever> so it wont boot
nalc has joined #nixos
<petersjt014[m]> so do I need a different filesystem? that seems like weird
<petersjt014[m]> a weird option
<clever> petersjt014[m]: you need to wipe the disk, make a partition table, and put the ext4 at sda1
jb55 has joined #nixos
<tobiasBora> clever: samueldr Ok thanks!
<tobiasBora> sphalerite: Interesting post! Just, when you say "Since Nix doesn’t provide binaries for ARMv7, I built it from source", you are talking about "nix", not "nixos" right?
<petersjt014[m]> where would I do that? I used grep and cant find anything that looks right in mkfs.ext4
drakonis has joined #nixos
<sphalerite> tobiasBora: well to be properly accurate I'm talking about cache.nixos.org/the official Hydra
<clever> petersjt014[m]: you would create the partition tables with "fdisk /dev/sda" then format it with "mkfs.ext4 /dev/sda1"
<tobiasBora> clever: And by the way, is it normal that it takes soooooo much time to compile? Is has not yet finished the first "./configure" !
<petersjt014[m]> ah
<clever> tobiasBora: fairly normal
<petersjt014[m]> that is way simpler than i thought it would be
<petersjt014[m]> thanks!
<clever> petersjt014[m]: you will also need to umount the drive before you repartition it, and any data on it will be lost
<petersjt014[m]> gotcha
<sphalerite> tobiasBora: yeah, I think a typical bootstrap up to building hello would take a couple of hours natively, and emulation makes it a lot slower
<tobiasBora> clever: and even with that speed, I can use it also in real life? I'll compile 30x slower than the raspberry pi...
oida has quit [(Ping timeout: 255 seconds)]
erictapen has joined #nixos
<tobiasBora> (and actually, I guess that 30x may be even a good thing)
<gchristensen> "copying 19 missing paths (774.90 MiB) to ..." it might be time to turn off debug builds when I deploy ofborg :D
<gchristensen> $
<clever> gchristensen: seperateDebugInfo = true; i think
<gchristensen> for rust stuff?
oida has joined #nixos
<clever> not sure how that interacts with rust
nalc has quit [(Read error: Connection reset by peer)]
erasmas has quit [(Quit: leaving)]
ylwghst has joined #nixos
<sphalerite> tobiasBora: as I mentioned in the blog post, I'd really like to get my old phone running as a build slave
<sphalerite> tobiasBora: I think a better solutino than throwing lots of emulated hardware at it is throwing cheap real hardware at it :p
<tobiasBora> sphalerite: hum, it's a pretty good idea...
pareidolia has quit [(Ping timeout: 240 seconds)]
<tobiasBora> sphalerite: and it shouldn't be that hard to do
cybrian has joined #nixos
<LnL> the packet host could build armv7 stuff no?
<sphalerite> LnL: I'd love one of those but that definitely doesn't qualify as cheap :D
<tobiasBora> you can use "Linux deploy" to get a debian chroot, and then install nix on it.
<clever> LnL: it might be aarch64 only
<sphalerite> tobiasBora: I want build sandboxing though, which takes some kernel features which aren't enabled in android iirc
<LnL> the host aarch64 but can't that build armv7 just like x86_64 can build i686
<clever> LnL: yeah, but that would be cross-compiling
<sphalerite> tobiasBora: plus I can't operate my old phone using the normal UI because the screen is shot
<clever> LnL: so when you do "nix-env -iA nixpkgs.hello" it asks for the natively built glibc, and has to rebuild everything all over
<tobiasBora> sphalerite: why do you mind sandboxing if it's an old phone?
<sphalerite> tobiasBora: for build purity
<LnL> clever: oh, then it's not the same
<sphalerite> it's not to stop the stuff inside from getting out, it's to stop the stuff outside from getting in ;)
<clever> LnL: oh, and also, when you do 32bit builds under nixpkgs, it runs a 32bit build of gcc, so the cpu needs 32bit support
<gchristensen> LnL: aarch64 can't natively run armv7 instructions
<clever> LnL: arm can be made without 32bit
<gchristensen> in the way an x86_64 bit cpu can run i686
qmm has quit [(Ping timeout: 260 seconds)]
<clever> gchristensen: depends on the chip
<petersjt014[m]> for partitioning I'd wanna use gdisk, right? any reason to give mbr the time of day?
<gchristensen> this one*
<clever> the raspberry pi can do v6, v7, and aarch64
qmm has joined #nixos
<clever> petersjt014[m]: fdisk can also make gpt tables
heath has quit [(Ping timeout: 252 seconds)]
<sphalerite> https://en.wikipedia.org/wiki/Comparison_of_ARMv8-A_cores only one of these is listed as not supporting 32-bit instructions. Not that that necessarily means anything
pareidolia has joined #nixos
lewo``` has joined #nixos
<clever> petersjt014[m]: also, if you want to use legacy booting on GPT, you must create a bios boot partition, about 1mb in size, no fs, dont mount it
jb55 has quit [(Ping timeout: 260 seconds)]
lewo`` has quit [(Read error: Connection reset by peer)]
<tobiasBora> By the way, I'm wondering by it's so hard to do efficient cross compiling. For me there is no link between the host language, and the compilation output. For example, why can't we imagine a program that is like gcc, armv6 version, except that all instructions are translated into 64 bits ? A program like "armv6_to_x86_64", that just do elf conversion
<clever> tobiasBora: nix doesnt understand that part though
<clever> tobiasBora: and there are impurities that would leak in if you tried to force it
<clever> ive even caused such impurities with qemu-user
<sphalerite> tobiasBora: normal cross-compilation is much faster, it's just that cross-compiled and natively-compiled stuff won't mix well
<clever> if you use a dynamicaly linked qemu-user, then the arm ldd will spit out x86 libraries
<clever> resulting in x86 libraries in your arm initrd!
<sphalerite> on the nix side, that is
<clever> yeah
<tobiasBora> so the "hard part" comes from the libraries?
<tobiasBora> And why cross-compiled and natively-compiled stuff don't mix well?
<clever> more that nix doesnt understand 2 different compilers being capable of producing the same output
<clever> so nix treats each compiler as a seperate task, producing different outputs
<tobiasBora> and it's not possible to let nix think that the compiler is the original one, but in fact we just replaced the exec file?
ssmike has quit [(Ping timeout: 260 seconds)]
<andi-> argh... RPi3 with nixos wont boot anymore (so no music before bed time), spent another evening trying to cleanup some mess (looking at you unix.h), emptied a bottle of local wine… still loving NixOS anyway <3
<clever> tobiasBora: basically, in nix, you have a set of environment variables, 2 of them being special, $builder and $args
<sphalerite> something something intensional store
<clever> tobiasBora: nix will then hash that entire set of builders, and use it to compute $out's path
<clever> tobiasBora: then to make $out, it runs $builder with $args
<clever> tobiasBora: if you change the gcc from a native to a cross-compiler, that affects the hashes in strings, and changes the $out
<tobiasBora> clever: the hash is on the name, not the real file no ?
<clever> the hash is in the storepath
<clever> so /nix/store/hash1-gcc and /nix/store/hash2-gcc
<tobiasBora> ok. And now, let's do a ugly hack. I manually put the content of /nix/store/hash2-gcc into /nix/store/hash1-gcc. Then nix will compile with the cross-compiler, and think that he is compiling with the native one no?
<samueldr> tobiasBora: on my armv7 board, a kernel build takes around 17h, on my E5-1660 (6 cores 12 HT) kernel takes around 4h to build using qemu-user
<clever> tobiasBora: all paths in the store are immutable, and must never be modified once built
<samueldr> pretty sure that your builds will be faster than on the raspberry pi
<clever> tobiasBora: and the whole design of nix relies on paths having been made by the script that was hashed to make the path
ilja_kuklic has quit [(Ping timeout: 248 seconds)]
<tobiasBora> samueldr: interesting... The thing is that in 1h, the ./configure of the first tool (bootstrap) has not even been finished... And it's the ./configure, not even the make! It takes like 6 seconds for each line like "checking whether printf supports infinite 'double' arguments... yes"
<LnL> that would break caching
yegortimoshenko has joined #nixos
<tobiasBora> clever: Ok I understand better now. But if as an experimentation I just try to do that, it could *in theory* work? And does that mean that cross-compiling will never be usable in nix? :'( It's so sad to have such a powerful build system, and not being able to do cross compiling.
pxc2 has joined #nixos
<clever> tobiasBora: you would also need to swap in all the libraries the gcc would be linking against
heath has joined #nixos
<tobiasBora> clever: ok thanks.
<clever> tobiasBora: oh, and swapping those libraries out will also break anything refering to them
ssmike has joined #nixos
<sphalerite> tobiasBora: cross-compilation can still be used very effectively with nix in principle if you don't need to natively compile stuff as well.
jb55 has joined #nixos
<sphalerite> tobiasBora: you could use nix with cross compilation to build system images for embedded devices very well for instance
<sphalerite> tobiasBora: this is in principle, I think nixpkgs's support for cross-compilation is still very much WIP, but Sonarpulse has been doing some awesome work on that
cybrian has quit [(Read error: Connection reset by peer)]
<Sonarpulse> sphalerite: summoned
<Sonarpulse> tobiasBora: what wants to be done?
<sphalerite> There's also the pie-in-the-sky intensional store stuff which may magically fix the issue if it ever happens, idk
<Sonarpulse> converting architecture post compilation?
<Sonarpulse> looked like first question
<tobiasBora> Sonarpulse: I'm trying to understand if it may be possible, one day, to generate a binary cache for nix using cross compiling.
<Sonarpulse> oh, sure
<clever> 2017-11-29 12:27:08 * dtzWill is using allexe-built terminal/shell/ssh/etc. to chat presently, many of which are JIT'd just because I can xD
<clever> this is about using llvm IR for all applications
<clever> and then specializing it to the cpu at runtime
<sphalerite> tobiasBora: that's already possible. It just won't be compatible with natively compiled stuff
<Sonarpulse> yeah
<sphalerite> oh crap it's almost 1am
<Sonarpulse> :D
<Sonarpulse> I just headed west
<tobiasBora> sphalerite: so you mean that either your raspberry pi will use *only* stuff compiled by a cross compiler, or *only* stuff compiled by a native armv6?
<clever> sphalerite: ive said that about 7am a few times this week :P
<LnL> exactly, nix makes the distinction which is arguably correct since one of the variants might not work, etc.
<Sonarpulse> so now I feel very mature; it's *earlier* than it feels for once!
<Sonarpulse> e.g. headers encode wrong bash
<Sonarpulse> the build time bash
<Sonarpulse> could sneak in dev output
<Sonarpulse> (not actually in header files)
<sphalerite> tobiasBora: it can use both, but you'll essentially have two completely different dependency trees, and it will take up twice the space correspondingly
<Sonarpulse> we could do a trust thing
<tobiasBora> sphalerite: ok yes, that what I thought after asking the question
mrkgnao has joined #nixos
<Sonarpulse> "beleive me, the output may not be at all fixed, but these two very different derivations produce the same thing"
<Sonarpulse> intensional store does make that nicer to implement
<Sonarpulse> but it could be hacked today with nars/substitutors
srdqty has quit [(Quit: WeeChat 1.9.1)]
jb55 has quit [(Ping timeout: 248 seconds)]
<sphalerite> what confused me a great deal is having two different derivations that produced the same output
<Sonarpulse> we technically do have that already with fixed output
ssmike has quit [(Ping timeout: 260 seconds)]
<tobiasBora> Do you have any reference on how to use/build a tool that first try to use the already available binary caches, then if not available try to ask to a cross-compiler in the network to build an equivalent program, and if no other cross-compiler is present, then it tries to compile it by itself?
<sphalerite> (fixed-output ones that downloaded sources; I copied an ARM one to my main laptop)
<sphalerite> yeah
<Sonarpulse> the "I changed URL but forgot to update hash and nix didn't do anything oh no!!"
<LnL> yeah that and different nix versions might generate different drv files
<sphalerite> tobiasBora: yes, that tool is called nix
<sphalerite> :D
<sphalerite> wait, except for the cross-compiler bit
dtzWill has quit [(Ping timeout: 252 seconds)]
<sphalerite> right I really need to sleep though. Gnight all!
<Sonarpulse> good night!
<Sonarpulse> tobiasBora: look up nix substitutors
<tobiasBora> good night, thanks for your help!
<Sonarpulse> / ask shlevy about the new cache C++ caches
<Sonarpulse> it isn't hard, just requires deep knowledge of the guts of Nix's *implementation* (as opposed to concept/ interface) to do today
<Sonarpulse> *new Cache/store C++ class
<Sonarpulse> I recall some disparate concepts were combined together
<gchristensen> is there as easy way to see closure size of a given path?
<clever> gchristensen: du -hc $(nix-store -qR path)
<clever> maybe |sort -h at the end
ssmike has joined #nixos
<gchristensen> 671M :(
<clever> gchristensen: the above will also show what the fat deps
<clever> are
<gchristensen> heh
<gchristensen> mkRustCrate never sheds dependencies
<tobiasBora> Sonarpulse: so if you need deep knowledge of the Nix's implementation, it may be considered as hard ^^ And I don't see lot's of references to nix substitutors, I just feel like people use substitutors instead of "binary cache" in the ML ^^'
<Sonarpulse> tobiasBora: sure it's hard, just not a lot of code to be changed
<Sonarpulse> that's what i meant
dan_b has quit [(Ping timeout: 260 seconds)]
<Sonarpulse> "substitutors" i think at one point was it's own concept
<Sonarpulse> then binary cache was the main type of substitutor
<Sonarpulse> then people decided binary cache was the only good notion of "substitutor"
<Sonarpulse> and the binary cache just became "remote" store, as opposed to local store
<Sonarpulse> in other words, a bunch of implementation rejiggering
<Sonarpulse> this is mainly me guessing though
<Sonarpulse> only shlevy and niksnut really know
<clever> gchristensen: wow
ris has quit [(Ping timeout: 248 seconds)]
<tobiasBora> Sonarpulse: Hum ok, but as a Nix newbie, I'm pretty sure I won't be able to code anything like this soon.
<gchristensen> yeah
<Sonarpulse> tobiasBora: last thing
<Sonarpulse> there is a wiki page for manual large file adding to the store
<Sonarpulse> it's sort of unsafe as the hash isn't checked perhaps
ssmike has quit [(Ping timeout: 255 seconds)]
<Sonarpulse> you could manually (ab)use this to fake cross builds as native builds
<Sonarpulse> or vice versa
<kini> hmm, enableParallelBuilding = true; doesn't seem to be working... should I be running $MAKE instead of make?
dtzWill has joined #nixos
<tobiasBora> Sonarpulse: ahah, it looks pretty ugly but it's good to know!
<Sonarpulse> tobiasBora: basically first we need an official hydra cross compilation one
<Sonarpulse> then I'd think it would be time to think about how to "splice" it with a native one
<clever> gchristensen: nice
<tobiasBora> Sonarpulse: But actually, I don't even know how I could do cross compilation even if I don't mind to have two nix trees
<Sonarpulse> as others have side
<kini> (it's a derivation that manually runs `make` during the install phase rather than letting the build phase take care of it)
<Sonarpulse> tobiasBora: yeah it's broken on master
<Sonarpulse> but works quite well on other branches
<Sonarpulse> use that for now ^
<Sonarpulse> by 18.03 I hope to be done
<Sonarpulse> hopefully by end of month
orivej has quit [(Ping timeout: 276 seconds)]
drakonis_ has joined #nixos
drakonis has quit [(Ping timeout: 260 seconds)]
<tobiasBora> Sonarpulse: it sounds great, please let me know when you'll have updates
<Sonarpulse> tobiasBora: follow https://github.com/NixOS/nixpkgs/projects/8
<tobiasBora> ok thanks
<tobiasBora> by the way, any program should "cross-buildable", or some of them can fail?
<tobiasBora> s/should /should be /
thc202 has quit [(Ping timeout: 248 seconds)]
griff_ has joined #nixos
<dhess> Sonarpulse: is the plan for Nixpkgs cross-compiling support to do something crazy for TemplateHaskell like running it in a QEMU VM for the host architecture? Or is TH just not going to work?
<samueldr> hmm, anyone has pointers (eh) for a documented-enough elf library that includes the arm attributes?
<Sonarpulse> dhess: angerman has out of process th working
<samueldr> elfutils/libelf seems to implement everything... but I can't seem to find any documentation
<clever> dhess: in theory, qemu-user can be used as an interperter for the TH daemon, the same way nodejs handles ghcjs TH
<Sonarpulse> you can use real external server!
<clever> dhess: and then you can do cross-compiled TH without binfmt-misc
<Sonarpulse> but no idea how that will work with nix's sandboxing
<Sonarpulse> the permenant solution though
<Sonarpulse> is to just....stop making template haskell need the target platform
<Sonarpulse> the semantics of the host platform are more correct anyways
<clever> Sonarpulse: ghcjs uses the out of process th under nodejs to deal with this issue
<clever> Sonarpulse: half the problem, is that TH can access modules you import, and what platform did ghc compile those modules for?
<Sonarpulse> clever: yeah TH is wrong :p
<Sonarpulse> $(import This.Is.How.It.Should.Work)
<Sonarpulse> (in practice $import is probably better)
<dhess> Sonarpulse: sure, that's a disastrous decision in retrospect, but I don't expect it to change anytime soon.
<Sonarpulse> dhess: I don't think anyone is actually against that
<clever> Sonarpulse: you still need to have a host build of that module available
<dhess> anyway if Nixpkgs can handle it through herculean efforts, it would be awesome
<Sonarpulse> clever: absolutely
<clever> Sonarpulse: which means building all of the deps twice
<Sonarpulse> sure
<Sonarpulse> well not *all* the deps
<dhess> Sonarpulse: who knows? So many people using it and it would be a pretty major breaking change.
<clever> at that point, its simpler to just build every module twice, and transparently pick the right variant
<johnw> I just started getting "cycle detected" when building the documentation of Haskell packages
<Sonarpulse> because you will have th-specific deps in cabal file
<clever> Sonarpulse: which is reminding me of how apple handles binaries
<johnw> I'll have to git bisect to find the culprit
<clever> Sonarpulse: apple can have multiple arches in the same binary, and the runtime linker picks the right one
<Sonarpulse> indeed that is similar
<Sonarpulse> basically my approach to nixpkgs was "fuck it; do the right thing at any cost"
<Sonarpulse> ....next up GHC!
<clever> lol
<Sonarpulse> but i need to really finish nixpkgs first
<Sonarpulse> which is close
<joepie91> I might be slightly crazy, but I'm experimentally designing a language that's loosely based off Nix...
<joepie91> an embeddable one :P
<joepie91> (also steals some concepts from Rust and JS)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vbGTq
<NixOS_GitHub> nixpkgs/master 5490e58 Tuomas Tynkkynen: v8: Fix aarch64 build...
NixOS_GitHub has left #nixos []
cybrian has joined #nixos
yegortimoshenko has quit [(Remote host closed the connection)]
nalc has joined #nixos
<Sonarpulse> joepie91: you had me until JS :p
pxc2 has quit [(Ping timeout: 248 seconds)]
Alchemical has quit [(Ping timeout: 268 seconds)]
<joepie91> Sonarpulse: what I'm stealing from JS is actually a feature that isn't *in* JS yet :P
<joepie91> (bind operator)
<joepie91> it's still a stage-not-enough proposal
m0rphism has quit [(Ping timeout: 268 seconds)]
srk has quit [(Ping timeout: 268 seconds)]
<joepie91> no idea when or if it will make it into the language
flyx|znc has joined #nixos
<joepie91> I don't think I'm using anything else that's really obviously part of JS
nwspk has quit [(Ping timeout: 276 seconds)]
flyx has quit [(Ping timeout: 258 seconds)]
flyx|znc is now known as flyx
m0rphism has joined #nixos
<joepie91> not yet, at least
Alchemical has joined #nixos
m0rphism is now known as Guest47064
Wizek_ has quit [(Quit: Leaving)]
<clever> joepie91: i always use .bind to deal with that, yet ive delt with libraries before, that always took 2 arguments for every callback, the func, and the 'this'
nwspk has joined #nixos
<joepie91> clever: mind that 'bind operator' in this context means something like `foo::bar(baz)` translating to `bar(foo, baz)` :P
<joepie91> which is a handy way to specify object-ish behaviour out of band
srk has joined #nixos
<joepie91> without messing about with prototype mutations (in the case of JS)
erictapen has quit [(Remote host closed the connection)]
<joepie91> hm
<joepie91> I think that in the case it actually sets the thing before :: as the context (`this`) but I'm not 100% sure on that
<clever> joepie91: i was thinking more along the lines of bar.bind(foo) causing 'this' to point to foo when the returned function is ran
<joepie91> been a while since I actually read the proposal
<joepie91> clever: ah yeah, no, that's not what the bind operator does
<clever> joepie91: and it can also prefix arguments into the function call
<joepie91> well it might be what it does behind the scenes, but that's not its purpose
<joepie91> sec
<clever> which roughly gives you partial function application
<joepie91> clever: yeah, for partial function application I just use .bind where necessary
<joepie91> anyway, that repo readme has some examples of the bind operator
<joepie91> as it is currently proposed
<joepie91> in my hypothetical language I don't have a concept of a special `this` variable so it's just passed as the first argument
<clever> behind the scenes, thats pretty much what c++ did to c
<jeaye> So we have foo.bind(f) (aka std::bind), monadic bind, and now some new other bind?
<clever> the compiler just invisibly treats that special object syntax as an extra arg
<joepie91> clever: anyway, I'm still experimenting with it, but in case you're curious what I've come up with so far: https://gist.github.com/joepie91/7d462acf74fd552103f48e8cca28f10a (context: imagine a HTTPd like nginx or Apache that allows specifying 'request hooks' using this embedded language, and that gist is an example of a 'require password for a certain directory and hostname' implementation)
<clever> joepie91: at that point your basically just rewriting php, lol
<joepie91> clever: no, this is just one example scenario - you might also think of typical cases where Lua is currently used like game scripting
<joepie91> it's meant as a general-purpose embeddable language where the builtins are provided by the embedding application, similar to how Lua is used
<angerman> clever, dhess, Sonarpulse: multi-target ghc will eventaully happen.
<joepie91> clever: a HTTPd request hook is just one of the simpler cases to try out that anybody can understand (unlike game scripting, which is often incredibly specific)
<joepie91> so that's what I started with :P
<clever> joepie91: when i got into nix, i was considering a game engine as an extension of nix, lol
<clever> joepie91: using the nix store to cache pure operations
<joepie91> heh
<joepie91> I feel like that may not end well :P
<joepie91> this embeddable language idea is actually a result of me liking the general ideas behind Nix (as a language), but being irritated with some of the quirks and realizing that it's really very specifically designed for NixOS-like scenarios
<joepie91> so I guess this is my closest thing to "using Nix for things it wasn't made for", except it'd be a variant
<joepie91> will probably take forever to actually get it to a usable point, but hey, fun project to have
mizu_no_oto has quit [(Quit: ["Textual IRC Client: www.textualapp.com"])]
pxc2 has joined #nixos
cement has quit [(Ping timeout: 260 seconds)]
<dhess> angerman: of course, for some value of "eventually" :)
<angerman> dhess: well. if you trust me persuing this :-)
<dhess> angerman: Are you zw3rk on Medium?
pxc2 has quit [(Ping timeout: 276 seconds)]
simpson has left #nixos ["WeeChat 1.0.1"]
<angerman> Yes, that’s me
<dhess> angerman: then I trust you more than anybody else, at least! :D
fiddlerwoaroof has quit [(Read error: Connection reset by peer)]
<angerman> Ha ;-)
<angerman> multi target ghc will not automatically give us peoper TH support though. And as TH stands the out of process approach is the only one that can give the correct result in every case.
<angerman> However TH is like a sledgehammer used for a lot of stitching.
fiddlerwoaroof has joined #nixos
<dhess> sure, I agree with all the dont-use-TH/TH needs to change/etc sentiment. I just don't think it's very realistic.
<clever> angerman: ive had projects fail to build because the TH cant find the git executable at compile time
<angerman> Most of the TH use cases I came across are just AST expansions.
<dhess> but the Haskell community is probably as agile as any so maybe it can happen sooner than later.
<clever> angerman: yeah, those are better ones, things like acid state and lenses
<angerman> dhess: it’s not realistically. If it was, I wouldn’t try to get a “workable” solution.
<dhess> clever: wow that's a bad one.
<angerman> clever: yes. For process logic we need the open PR to be integrated into ghc.
Sonarpulse has quit [(Ping timeout: 240 seconds)]
<dhess> I can't even imagine trying to use TH for something like that. What a bastardization of the intent
<angerman> So the gradual progress will be to be more explicit about build/host IO in TH.
<dhess> angerman: anyway that is not to denigrate your work. Thank you so much for doing all of this.
{^_^} has joined #nixos
{^_^} has quit [(Changing host)]
{^_^} has joined #nixos
<dhess> I look forward to being able to cross-compile for my ARM targets :D
<dhess> because even on a decent aarch64 box my Haskell builds take sooooooo loooooong.
<angerman> The next step might be trying to figure out how to restrict TH so that we know a splice is architecture/is independent. (Pure ast expansion)
<dhess> god I have to bump nixpkgs again soon and I am so not looking forward to it.
mbrgm has quit [(Ping timeout: 260 seconds)]
ma27 has quit [(Ping timeout: 255 seconds)]
<dhess> angerman: yeah I would imagine that will cover like 99.99% of all cases!
<angerman> dhess: i might have a fresh set of prebuilt relocatable ghc cross compiler binary distributions ready by the weekend
<dhess> angerman: wow, cool! With a nix expression?
<dhess> oh "prebuilt".
<angerman> No
<dhess> Yeah my whole build system is built around Nix so that won't help me for now.
<angerman> But they basically built with my hadrian fork and my ghc fork.
<angerman> dhess: nix can use binary blobs no?
<dhess> I guess I could try to package it. I did that for the Debian debs to get a GHC for ARMv7/v8
<dhess> angerman: sure, just a bit of work. Probably worth it for something like this. But then, it's not just ghc that needs work to get cross-compiling going on Nixpkgs
mbrgm has joined #nixos
<dhess> anyway it seems like that might be a lot better soon-ish.
laggy_wifi has joined #nixos
<angerman> Well at least you could use the binary dists to see what issues with you TH come up ;-)
hellrazo1 has joined #nixos
<gchristensen> !factoids
hellrazor has quit [(Ping timeout: 260 seconds)]
<gchristensen> !factoids
<{^_^}> Have a helpful Nix factoid? Send a PR! https://github.com/grahamc/ofborg/blob/master/factoids.toml
pxc2 has joined #nixos
hellrazo1 has quit [(Ping timeout: 248 seconds)]
sigmundv__ has quit [(Ping timeout: 248 seconds)]
<dhess> Does anyone here use OSSEC with NixOS?
hellrazo1 has joined #nixos
nalc has quit [(Read error: Connection reset by peer)]
pxc2 has quit [(Ping timeout: 255 seconds)]
<dhess> oh looks like disasm is/was
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
<adisbladis> lejonet: Did you use ossec on nixos?
Supersonic112_ is now known as Supersonic112
drakonis_ has quit [(Quit: Leaving)]
jsgrant has quit [(Ping timeout: 276 seconds)]
<Wizek> Anyone knows how where `enableLibraryProfiling = true` is being looked at in the end?
<Wizek> Is it consumed by some function in nixpkgs?
<clever> Wizek: generic-builder.nix
<clever> Wizek:
<clever> Wizek: i think it translates to the cabal flag --enable-library-profiling
<Wizek> clever: so this flag is specific to haskell from what I see in that file, right?
<clever> yeah
pxc2 has joined #nixos
lambdamu_ has joined #nixos
nuncanada has quit [(Read error: Connection reset by peer)]
nuncanada has joined #nixos
lambdamu has quit [(Ping timeout: 248 seconds)]
dieggsy has quit [(Quit: ERC (IRC client for Emacs 27.0.50))]
pxc2 has quit [(Ping timeout: 248 seconds)]
akfp has quit [(Read error: Connection reset by peer)]
nuncanada2 has joined #nixos
akfp has joined #nixos
nuncanada has quit [(Ping timeout: 255 seconds)]
akfp has quit [(Read error: Connection reset by peer)]
akfp has joined #nixos
<Wizek> clever: okay, thanks.
jsgrant has joined #nixos
vidbina has joined #nixos
jereem1 has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
vidbina has quit [(Ping timeout: 248 seconds)]
vidbina has joined #nixos
jb55 has joined #nixos
nuncanada2 has quit [(Read error: Connection reset by peer)]
nuncanada2 has joined #nixos
vidbina has left #nixos []
griff_ has quit [(Quit: griff_)]
vidbina has joined #nixos
laggy_wifi has quit [(Remote host closed the connection)]
pxc2 has joined #nixos
laggy_wifi has joined #nixos
vidbina has quit [(Ping timeout: 260 seconds)]
vidbina has joined #nixos
pxc2 has quit [(Ping timeout: 248 seconds)]
griff_ has joined #nixos
nuncanada2 has quit [(Quit: Leaving)]
ylwghst has quit [(Ping timeout: 260 seconds)]
<kini> in https://github.com/NixOS/nixpkgs/commit/0094ca20cc I changed the package "acl2-v6-5" to the package "acl2-7.4", but since the format of the version number has changed, users who had installed the former won't be able to upgrade to the latter, right?
<kini> if I'm not mistaken, in "acl2-v6-5", the package name is considered to be "acl2-v6" and the version number is considered to be "5"
<kini> what's the normal procedure for renaming a package in such a way that users will be able to upgrade across the name change?
danl1240 has quit [(Quit: My iMac has gone to sleep. ZZZzzz…)]
dieggsy has joined #nixos
akfp has quit [(Read error: Connection reset by peer)]
akfp has joined #nixos
nalc has joined #nixos
dieggsy has quit [(Quit: ERC (IRC client for Emacs 27.0.50))]
mizu_no_oto has joined #nixos
pie_ has quit [(Ping timeout: 255 seconds)]
babyflakes has quit [(Quit: Connection closed for inactivity)]
dieggsy has joined #nixos
dieggsy has quit [(Remote host closed the connection)]
pie_ has joined #nixos
pxc2 has joined #nixos
nalc has quit [(Quit: Textual IRC Client: www.textualapp.com)]
mrkgnao has quit [(Remote host closed the connection)]
vidbina has quit [(Ping timeout: 248 seconds)]
vidbina has joined #nixos
pxc2 has quit [(Ping timeout: 260 seconds)]
cybrian has joined #nixos
laggy_wifi_ has joined #nixos
laggy_wifi has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] benley opened pull request #32328: dropbox: fix version sort order (master...dropbox-wrapper) https://git.io/vbGmp
NixOS_GitHub has left #nixos []
vidbina has quit [(Ping timeout: 248 seconds)]
vidbina has joined #nixos
ryantrinkle has joined #nixos
dieggsy has joined #nixos
laggy_wifi has joined #nixos
laggy_wifi_ has quit [(Ping timeout: 276 seconds)]
pxc2 has joined #nixos
joshuaks has joined #nixos
vidbina has quit [(Ping timeout: 268 seconds)]
<joshuaks> Does Nix support BSD systems (other than Darwin)? The main page seems to hint at "other systems" but all I see is Linux and macOS.
pxc2 has quit [(Ping timeout: 268 seconds)]
akfp has quit [(Read error: Connection reset by peer)]
akfp has joined #nixos
mrkgnao has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fare opened pull request #32329: Gerbil (master...gerbil) https://git.io/vbGYb
NixOS_GitHub has left #nixos []
joshuaks has quit [(Ping timeout: 258 seconds)]
cybrian has quit [(Read error: Connection reset by peer)]
ryantrinkle has quit [(Ping timeout: 260 seconds)]
cybrian has joined #nixos
<Havvy> CMake is saying that /nix/store/wddj8cd8aq02m8zakqngc7605haahlki-gcc-wrapper-6.4.0/bin/gcc cannot compile a simple C test program.
<clever> Havvy: what commands did you run to start cmake?
<Havvy> clever: I have no clue. It's somewhere in the internals of rustc's build system.
<clever> ah, are you inside a nix-shell?
i-am-the-slime has joined #nixos
<Havvy> Yes.
<clever> not sure then
<Havvy> Build inputs are: python27, cmake, curl, file
<clever> are you using a stdenv.mkDerivation ?
<Havvy> Yes.
<clever> have you tried using cargo2nix?
<Havvy> I'm specifically working on the rust compiler.
<clever> Havvy: what about "nix-shell '<nixpkgs>' -A rustc" ?
ylwghst has joined #nixos
<Havvy> Gonna pull in the wrong source and bootstrap, but I can try.
<Havvy> And that seems to be working though.
endformationage has quit [(Quit: WeeChat 1.9.1)]
<Havvy> Nope, it also failed.
ylwghst has quit [(Ping timeout: 276 seconds)]
<clever> same or different error?
<Havvy> Same error.
<clever> cant think of anything else then
<Havvy> It's not even showing the "simple program" it's failing on anywhere. >_>
Harpalus has joined #nixos
fiddlerwoaroof has quit [(Ping timeout: 260 seconds)]
adamt has joined #nixos
adamt has quit [(Changing host)]
adamt has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
athan has joined #nixos
ma27 has joined #nixos
adamt has quit [(Ping timeout: 268 seconds)]
ma27 has quit [(Ping timeout: 255 seconds)]
akfp has quit [(Read error: Connection reset by peer)]
akfp has joined #nixos
Harpalus has quit [(Quit: Leaving)]
leat has quit [(Quit: WeeChat 1.9.1)]
kreetx has joined #nixos
reinzelmann has joined #nixos
asuryawanshi has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
griff_ has quit [(Quit: griff_)]
<fearlessKim[m]> when does nixops create the users ? I can't diagnostic why I don't have network access in Qemu if I can't login, and I am not sure why my users are not created :'(
pie_ has quit [(Ping timeout: 260 seconds)]
dieggsy has quit [(Ping timeout: 255 seconds)]
<lejonet> adisbladis: nope, not yet
cybrian has joined #nixos
orivej has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
laggy_wifi has quit [(Ping timeout: 260 seconds)]
pie_ has joined #nixos
leat has joined #nixos
jb55 has quit [(Ping timeout: 248 seconds)]
cybrian has quit [(Read error: Connection reset by peer)]
lewo``` has quit [(Read error: Connection reset by peer)]
lewo has joined #nixos
oahong has quit [(Ping timeout: 252 seconds)]
asuryawanshi has joined #nixos
<wmertens[m]> I'm not sure how to proceed with https://github.com/NixOS/nixpkgs/issues/31611 - if you use the sudo-via-sshagent setting, sudo authentication checking can be entirely circumvented. The easiest fix is a breaking change, and nobody is responding to the issue. Do I just merge the breaking change?
oahong has joined #nixos
jasom has quit [(Ping timeout: 240 seconds)]
georges-duperon has joined #nixos
asuryawanshi has quit [(Ping timeout: 260 seconds)]
jmeredith has quit [(Quit: Connection closed for inactivity)]
kreetx has quit [(Ping timeout: 240 seconds)]
digitalmentat has quit [(Quit: Leaving)]
reinhardt has joined #nixos
reinhardt has quit [(Remote host closed the connection)]
freusque has joined #nixos
ssmike has joined #nixos
ylwghst has joined #nixos
asuryawanshi has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos []
ylwghst has quit [(Ping timeout: 248 seconds)]
civodul has joined #nixos
akfp has quit [(Read error: Connection reset by peer)]
akfp has joined #nixos
das-g[m] has left #nixos ["User left"]
das-g[m] has joined #nixos
akfp has quit [(Read error: Connection reset by peer)]
akfp has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
<srhb> Can anyone test this out on a recent unstable that has a fqdn? Look up the fqdn with hostname -f. Does the domain appear? Then, try disabling services.nscd.enable and rerunning hostname -f. Does the domain name appear now?
<srhb> "has a fqdn" => networking.domain is set
jsgrant has quit [(Remote host closed the connection)]
Isorkin_ has joined #nixos
jsgrant has joined #nixos
georges-duperon has quit [(Ping timeout: 260 seconds)]
Isorkin has quit [(Ping timeout: 255 seconds)]
johann__ has joined #nixos
<sphalerite> clever gchristensen: I usually add -d0 to du when measuring closure size to keep the output a manageable size
i-am-the-slime has quit [(Ping timeout: 260 seconds)]
zzamboni has joined #nixos
tusj has quit [(Remote host closed the connection)]
dan_b has joined #nixos
<sphalerite> srhb: is there a difference between setting networking.hostname to a FQDN and setting networking.domain?
ssmike has quit [(Ping timeout: 255 seconds)]
notdaniel has joined #nixos
cybrian has joined #nixos
Stammon has joined #nixos
<sphalerite> because I've done the former on a couple of machines and could test it on there
zzamboni has quit [(Quit: Leaving.)]
freusque has quit [(Ping timeout: 255 seconds)]
<Stammon> My Polybar, which is started with home-manager, complains, that when executing a userscript,it can't find any interpreter. E.g: /usr/bin/env sh file not found. I assume, that sh is not in it's path variable. How can I change that?
<srhb> sphalerite: Debian-likes tend to say setting hostname to fqdn is wrong, while red hat-likes tend to say that's the right way.
<srhb> sphalerite: That's as far as my Google-fu has brought me.
<sphalerite> srhb: huh ok… I had no idea
<srhb> sphalerite: There's also some services that break on NixOS if you use fqdn for your hostname. avahi comes to mind.
<srhb> sphalerite: On the other hand, as far as I can tell, networking.domain is broken whenever nscd is enabled (which it is by default)
<sphalerite> that is, I didn't even know there was a distinct setting for domain until you mentioned it earlier
hotfuzz_ has joined #nixos
asuryawanshi has joined #nixos
<srhb> sphalerite: Setting networking.domain will (at least) set the sysctl kernel.domainname correctly.
<srhb> (I also discovered that that's impure, but meh)
<srhb> That is, if you go from domain unset to domain and back to unset, it will persist to the set version.
<srhb> At least until you reboot.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti opened pull request #32333: Revert "Revive multiple outputs for Haskell packages." (master...revert-32112-hask-split-out) https://git.io/vbGBL
NixOS_GitHub has left #nixos []
<srhb> I can't find heads or tails in this. I need a networking course. :-P
<sphalerite> Stammon: how are you enabling polybar?
hotfuzz has quit [(Ping timeout: 248 seconds)]
<sphalerite> i.e. what does your config look like
zzamboni has joined #nixos
pie_ has quit [(Ping timeout: 260 seconds)]
goibhniu has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
<sphalerite> eeeh it uses a systemd user service? something something systemd shouldn't manage X applications
<sphalerite> anyway
asuryawanshi has joined #nixos
<sphalerite> you can probably get it to work by setting systemd.user.services.polybar.Service.Environment
<MichaelRaskin> sphalerite: if you accept systemd, systemd will manage everything.
<sphalerite> MichaelRaskin: no this is systemd's own position iirc
zzamboni has quit [(Ping timeout: 260 seconds)]
zzamboni has joined #nixos
<MichaelRaskin> I guess the question is not whether you remember it correctly, but whether it has been updated.
<sphalerite> because the systemd user daemon has a lifetime independent of (longer than) the X session's, and so it can't manage stuff within the X session well. Or something.
cybrian has quit [(Read error: Connection reset by peer)]
<Stammon> maybe I should start the polybar somewhere in my X config instead?
<sphalerite> Stammon: yeah I'd put it in my .xsession script. Not sure how home-manager handles that stuff though
<MichaelRaskin> Well, given that systemd does track the lifetime of X session as it will start a new one when the current one ends…
<Stammon> There are other issues as well like it isn't able to list all my i3 workspaces. I'm not sure whether the right environment is enough to fix this.
<Stammon> there is xsession.initExtra which executes arbitrary commands
<sphalerite> Stammon: yeah I'd put it there, or maybe in your i3 config
<sphalerite> I'd leave that until you've fixed the actual issue though
<Stammon> I had it there previously, but then I wanted to manage it with home-manager.
cybrian has joined #nixos
vidbina has joined #nixos
<Stammon> The actual issue?
<sphalerite> the PATH one
<sphalerite> oh actually it's a systemd-specific solution… idk
zzamboni has quit [(Ping timeout: 258 seconds)]
zzamboni has joined #nixos
<Stammon> so the i3 solution works as expected, it's somewhat unclean though. Maybe I should fix the package instead
<Stammon> I have no experience in writing nixpackages. I'm not sure whether this is a big start or not
<sphalerite> in this case it's a module you want to fix, not a package
<sphalerite> https://nixos.org/nixos/manual/index.html#sec-writing-modules could be helpful, and should mostly be equally applicable to home-manager as it is to nixos since it's the same module system
<Stammon> You can see from that, that I'm inexperienced
<sphalerite> as far as I can see the polybar module isn't very complicated, so it should be good as a first thing to try :)
zzamboni has quit [(Ping timeout: 255 seconds)]
<Stammon> ok I will give it a try
<Stammon> If I succeed, I will probably write some new modules of my own, which I think should be in homemanager
zzamboni has joined #nixos
zzamboni has quit [(Client Quit)]
zzamboni has joined #nixos
zzamboni has quit [(Client Quit)]
cybrian has quit [(Read error: Connection reset by peer)]
zzamboni has joined #nixos
<Li[m]> question: how do I get `depsSha256` for a rust derivation?
thc202 has joined #nixos
zzamboni has quit [(Client Quit)]
zzamboni has joined #nixos
nschoe has joined #nixos
zzamboni has quit [(Client Quit)]
<Li[m]> or `cargoSha256` ?
ThatDocsLady has joined #nixos
zzamboni has joined #nixos
ThatDocsLady has quit [(Client Quit)]
zzamboni has quit [(Client Quit)]
<Li[m]> 'Currently it is obtained by inserting a
<Li[m]> fake checksum into the expression and building the package once. The correct
<Li[m]> checksum can be then take from the failed build'
<Li[m]> oh that sounds like fun. especially if it takes a few hours a non-insignificant amount of money to do so
<Li[m]> try that on a dial-up
davidak has joined #nixos
<srhb> Li[m]: Wouldn't the deps be cached first (since their individual hashes should be okay?)
<Li[m]> srhb: I dont know
<srhb> I don't know much about the cargo infrastructure either, so it's just a guess.
<Li[m]> nix wouldnt be caching them
<srhb> Hm, okay.
<Li[m]> since there's no expression for them
<srhb> Aaah.
<srhb> Okay.
<srhb> Yes, that would suck on dialup then. :-)
<Li[m]> theres an early tool to make nix expressions from a cargo file, ill try that
<Li[m]> im not on dial-up, but sometimes the GFW just doesnt want to let me through faster than a few kbs
<srhb> :(
<srhb> I guess you can nix-prefetch-url them beforehand, but without a tool, that might be annoying too.
<Li[m]> I try to see it as an opportunity
<Li[m]> thanks for the advice
<Li[m]> rust on nix is still infantile
<srhb> I'll have to try it at some point. Maybe Mozilla has some tools available?
davidak has quit [(Client Quit)]
<Li[m]> too bad the guys who made cargo hadnt really tried nix
__Sander__ has joined #nixos
zzamboni has joined #nixos
i-am-the-slime has joined #nixos
ThatDocsLady has joined #nixos
MichaelRaskin has quit [(Quit: MichaelRaskin)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andir opened pull request #32334: qemu: apply patch for CVE-2017-17381 (master...qemu-cve-2017-17381) https://git.io/vbGEy
NixOS_GitHub has left #nixos []
zzamboni has quit [(Ping timeout: 248 seconds)]
Avaq has joined #nixos
tpanum has joined #nixos
<Li[m]> this is the tool I was mentionning, which Ill try to use now https://nest.pijul.com/pmeunier/nix-rust:master
zzamboni has joined #nixos
<tpanum> How do I get foomatic printing drivers on NixOS? Adding foomatic-filters to services.printing.drivers does not seem to work :/
akfp has quit [(Read error: Connection reset by peer)]
Dr8128 has joined #nixos
akfp has joined #nixos
tpanum has quit [(Remote host closed the connection)]
davidak has joined #nixos
zzamboni has quit [(Ping timeout: 240 seconds)]
ilja_kuklic has joined #nixos
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
zzamboni has joined #nixos
townsend has joined #nixos
<srhb> Is there an unlines-analogue somewhere? ([String] -> String)
<srhb> Ah, concatMapStringsSep will do.
<tilpner> srhb - concatStringsSep "\n"
<srhb> tilpner: Thanks.
zzamboni has quit [(Client Quit)]
i-am-the-slime has quit [(Ping timeout: 248 seconds)]
FRidh has quit [(Remote host closed the connection)]
vidbina has quit [(Ping timeout: 255 seconds)]
zzamboni has joined #nixos
zzamboni has quit [(Client Quit)]
zzamboni has joined #nixos
tpanum has joined #nixos
i-am-the-slime has joined #nixos
ylwghst has joined #nixos
akfp has quit [(Read error: Connection reset by peer)]
akfp has joined #nixos
FRidh has joined #nixos
<magnetophon> how can I tell if a pkg needs fftw, fftwFloat, or one of the others?
laggy_wifi has joined #nixos
ylwghst has quit [(Ping timeout: 240 seconds)]
freusque has joined #nixos
<tpanum> I simply cannot get foomatic drivers to show up in CUPS, when I add it to services.printing.drivers. Anybody has a clue why that is? :/
joshuaks has joined #nixos
vidbina has joined #nixos
<sphalerite> Li: with nixUnstable you can also use nix-build --hash
thetet has joined #nixos
i-am-the-slime has quit [(Ping timeout: 240 seconds)]
joshuaks has quit [(Ping timeout: 260 seconds)]
ssmike has joined #nixos
phreedom has quit [(Ping timeout: 255 seconds)]
zzamboni has quit [(Quit: Leaving.)]
zzamboni has joined #nixos
phreedom has joined #nixos
zzamboni has quit [(Client Quit)]
zzamboni has joined #nixos
i-am-the-slime has joined #nixos
<Li[m]> Linus: thx
vidbina has quit [(Ping timeout: 260 seconds)]
vidbina has joined #nixos
Cheng has joined #nixos
Avaq has quit [(Quit: Leaving.)]
<Cheng> Hi, how do I get a <nixpkgs> with my /etc/nixos/configuration loaded as the config?
<Cheng> I know 'with import <nixpkgs> {}; something', but how do I get /etc/nixos/configuration.nix loaded as the config?
<Cheng> I tried 'with import <nixpkgs> { config = import /etc/nixos/configuration.nix; } something', but that doesn't work
cybrian has joined #nixos
oahong has quit [(Ping timeout: 255 seconds)]
ma27 has joined #nixos
<tpanum> b
tpanum has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
oahong has joined #nixos
johann__ has quit [(Quit: Leaving.)]
johann__ has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
phdoerfler has joined #nixos
sigmundv__ has joined #nixos
zzamboni has joined #nixos
vidbina has quit [(Ping timeout: 260 seconds)]
vidbina has joined #nixos
jensens has joined #nixos
tmaekawa has joined #nixos
ssmike has quit [(Ping timeout: 248 seconds)]
vidbina has quit [(Ping timeout: 248 seconds)]
vidbina has joined #nixos
vidbina has quit [(Client Quit)]
vidbina has joined #nixos
vidbina has quit [(Client Quit)]
vidbina has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] makefu opened pull request #32335: init devpi-server at 4.3.1, bump devpi-client (master...pkgs/devpi-common/update) https://git.io/vbGwV
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 opened pull request #32336: Vim codefmt (master...vim-codefmt) https://git.io/vbGwK
NixOS_GitHub has left #nixos []
<hedning[m]> Cheng: I might be mistaken here, but I'm pretty sure that the nixos-config only gets picked up by nixos-rebuild, in which case it happens automatically
vidbina has quit [(Ping timeout: 255 seconds)]
vidbina has joined #nixos
vidbina_ has joined #nixos
vidbina_ has quit [(Client Quit)]
erictapen has joined #nixos
vidbina has quit [(Ping timeout: 240 seconds)]
vidbina has joined #nixos
vidbina_ has joined #nixos
vidbina_ has quit [(Client Quit)]
zzamboni has quit [(Quit: Leaving.)]
civodul has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #32336: vim-codefmt: init at 2017-03-04 (master...vim-codefmt) https://git.io/vbGwK
NixOS_GitHub has left #nixos []
zzamboni has joined #nixos
vidbina_ has joined #nixos
zzamboni has quit [(Client Quit)]
zzamboni has joined #nixos
vidbina_ has quit [(Client Quit)]
gfixler has joined #nixos
zzamboni has quit [(Client Quit)]
b73_ has joined #nixos
<b73_> Hi, I'm using Nix on macOS. I'm attempting to use ruby bundler (`bundle install`) - but I get a `Could not verify the SSL certificate for https://rails-assets.org/.` error. Suggesting that I'm missing some OpenSSL certificate files on my system.
<b73_> I have installed the OpenSSL package from Nix
zzamboni has joined #nixos
ilja_kuklic has quit [(Remote host closed the connection)]
<thblt> b73_: it's probably worth filing a bug
<thblt> b73_: I can try reproducing on NixOS first if you can give me exact steps.
townsend has quit [(Ping timeout: 240 seconds)]
ilyaigpetrov has joined #nixos
<Cheng> hedning[m]: I digged into nixpkgs source codes, and found a way: with import <nixpkgs/nixos/lib/eval-config.nix> { modules = [ <nixos-config> ]; }; pkgs.SomePackage
zzamboni has quit [(Ping timeout: 268 seconds)]
<b73_> thanks @thblt - basically I'm running `ruby
zzamboni has joined #nixos
<b73_> ruby_2_1, bundler and openssl in a nix-shell.
<b73_> When I `bundle install` in a ruby project (with a Gemfile) I get the error.
johann__ has quit [(Quit: Leaving.)]
<b73_> The issue is I need to update my OpenSSL certs
orivej has quit [(Ping timeout: 255 seconds)]
<b73_> In the past I have done this using tools like RVM (Ruby Version Manager)
notdaniel has quit [(Quit: Leaving)]
<b73_> but I'm not using RVM on this machine - trying to just do it all with Nix
zzamboni has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] P-E-Meunier opened pull request #32338: Add optional MathJax support (master...patch-1) https://git.io/vbG6L
NixOS_GitHub has left #nixos []
cybrian has quit [(Read error: Connection reset by peer)]
zzamboni has joined #nixos
orivej has joined #nixos
tmaekawa has quit [(Quit: tmaekawa)]
ilja_kuklic has joined #nixos
zzamboni has quit [(Ping timeout: 248 seconds)]
Taneb has joined #nixos
erictapen has quit [(Remote host closed the connection)]
<Taneb> Hi! I'm using a multiuser nix installation on Ubuntu and I've somehow messed it up
<Taneb> When I try to run nix-env -i hello, I get an error message (nix-env -iA nixpkgs.hello works as expected)
<Taneb> The error message is error: syntax error, unexpected $undefined, expecting IND_STR or DOLLAR_CURLY or IND_STRING_CLOSE, at /nix/store/gg431ln3rc9jhdc2x1vbjifpmch1g0fz-nixpkgs-18.03pre120540.b8f7027360/nixpkgs/pkgs/applications/misc/hubstaff/default.nix:30:77
ilja_kuklic has quit [(Ping timeout: 248 seconds)]
<sphalerite> Taneb: generally, don't use nix-env -i without -A anyway
<sphalerite> But what does nix-info say?
<Taneb> Command not found?
pie_ has joined #nixos
stphrolland has joined #nixos
<sphalerite> Oh, maybe it only comes preinstalled on nixos
<sphalerite> What about nix-shell -p nix-info --run nix-info
<stphrolland> Hi. Do you do { system.autoUpgrade = true; } in your configurations ? DO you think it's good practice ?
<Taneb> system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 1.11.15, channels(christiaan): "nixpkgs-18.03pre118082.00e56fbbee", channels(root): "nixpkgs-18.03pre118082.00e56fbbee", warning: Nix search path entry ‘/home/nathan/.nix-defexpr/channels/nixpkgs’ does not exist, ignoring
<Taneb> nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixpkgs
<Taneb> Actually disregard that that was on a different computer (I have an ssh open and got mixed up)
<Taneb> This is the one on this computer:
<Taneb> system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 1.11.9, channels(nathan): "nixpkgs-18.03pre120540.b8f7027360", channels(basile): "nixpkgs-17.09pre108299.ec9a23332f", channels(jophish): "nixpkgs-17.09pre108299.ec9a23332f", channels(root): "nixpkgs-17.09pre108299.ec9a23332f", nixpkgs: /home/nathan/.nix-defexpr/channels/nixpkgs
townsend has joined #nixos
<sphalerite> Hm you seem to have used nix-channel as non-root users. In a normal setup that won't actually have any effect besides confusion
<sphalerite> What does ls -l ~/.nix-defexpr say?
<Taneb> lrwxrwxrwx 1 nathan nathan 46 Nov 16 13:11 channels -> /nix/var/nix/profiles/per-user/nathan/channels
<Taneb> lrwxrwxrwx 1 nathan nathan 44 Jul 11 14:14 channels_root -> /nix/var/nix/profiles/per-user/root/channels
ma27 has quit [(Ping timeout: 240 seconds)]
<sphalerite> Hm OK. Running nix-channel --update both as root and as nathan may fix it. Not sure though
<sphalerite> But yeah, as I said before — you shouldn't generally use nix-env -i without -A anyway
<Taneb> What's the reasoning for that?
<Taneb> (it seems to be fixed btw)
darlan has joined #nixos
<sphalerite> -i is less predictable and slower
<Taneb> OK, thanks a lot for your help!
<sphalerite> It searches through all packages by name, so it has to evaluate all of nixpkgs
Cheng has quit [(Quit: Leaving)]
<sphalerite> With -A, it selects by attribute path, which means it's very precise, and will only need to evaluate the package you actually want
darlan has quit [(Client Quit)]
<sphalerite> One day we will have `nix install` and everything will be wonderful
zzamboni has joined #nixos
ssmike has joined #nixos
<akfp> I'm interested in getting the ROCm code (OpenCL for AMDGPU) into nixpkgs working with the 4.15rc2 kernel. Anyone willing to do that for $$$?
cybrian has joined #nixos
<sphalerite> Ugh why do the imagemagick source tarballs keep disappearing
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
orivej has quit [(Ping timeout: 260 seconds)]
vidbina has quit [(Ping timeout: 260 seconds)]
vidbina has joined #nixos
<pstn> akfp: Pinging Corngood
pie_ has quit [(Remote host closed the connection)]
ylwghst has joined #nixos
pie_ has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
<corngood> philipp: hello, what's up?
<akfp> corngood: see my message above
<pstn> See the message from akfp I thought you might be interested, if anyone.
zzamboni has joined #nixos
<corngood> Sorry, I see... On my phone. I was thinking of taking a look at the recent amdgpu-pro problems
zzamboni has quit [(Client Quit)]
zzamboni has joined #nixos
<corngood> I could look at that as well.
ylwghst has quit [(Ping timeout: 240 seconds)]
drakonis has joined #nixos
<akfp> corngood: sounds good!
simukis has joined #nixos
<corngood> akfp: maybe make an issue on my nixpkgs fork with any info you have (corngood/nixpkgs)?
<gchristensen> is there a way to tell nix I really don't want a daemon restarted?
johbo_ has quit [(Quit: Bye)]
johbo has joined #nixos
<akfp> corngood: enable issues on your fork
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ttuegel pushed 2 new commits to master: https://git.io/vbG1T
<NixOS_GitHub> nixpkgs/master 7a9784c Benjamin Staffin: dropbox: fix version sort order...
<NixOS_GitHub> nixpkgs/master f3cf114 Thomas Tuegel: Merge pull request #32328 from benley/dropbox-wrapper...
NixOS_GitHub has left #nixos []
adamt has joined #nixos
adamt has quit [(Changing host)]
adamt has joined #nixos
akfp has quit [(Remote host closed the connection)]
akfp has joined #nixos
<stphrolland> not sure anyone saw my question. Do you think it's good practice to use {system.autoUpgrade = true;} ? Is it something that is needed for security updates or things like taht ?
adamt_ has joined #nixos
<gchristensen> stphrolland: I regularly run nixos-rebuild --switch --upgrade... once a week or so by hand
<gchristensen> stphrolland: but it should be safe to autoUpgrade
<corngood> akfp: done
adamt has quit [(Ping timeout: 240 seconds)]
<stphrolland> gchristensen: but the role of the --upgrade switch... it cannot change the configuration.nix file ?
<stphrolland> i'm a bit puzzled
<gchristensen> what do you mean?
<stphrolland> gchristensen: i don't see what the --upgrade does upgrade indeed...
<gchristensen> oh --upgrade updates the channels
<stphrolland> related to system.stateVersion ?
<pstn> Corngood: I'll have a look at at on thursday. If I can achieve anything, I'll send a PR on your fork but no promises.
<srhb> stphrolland: Have you used a Debian-like before? It's like apt-get update -- it fetches the newest nixpkgs for your channel (eg. the newest nixos-17.09 nixpkgs set)
vidbina has quit [(Ping timeout: 248 seconds)]
zzamboni has quit [(Quit: Leaving.)]
<stphrolland> yep I come from Ubuntu and Debian, so unless I call upgrade, it still relies on the last version on my system. got it. thanks
<srhb> stphrolland: It has nothing to do with system.stateVersion whatsoever, I should add. :)
vidbina has joined #nixos
<gchristensen> stphrolland: no, don't change stateVersion
pie_ has quit [(Read error: Connection reset by peer)]
pie__ has joined #nixos
<stphrolland> gchristensen: it's written in the comment :-) I would not have. But I thought it was the variable that made my system be on the channel 17.09 nixos
<gchristensen> it isn't.... I should have clarified!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vbGMf
<NixOS_GitHub> nixpkgs/staging 689d630 Vladimír Čunát: Merge branch 'master' into staging...
NixOS_GitHub has left #nixos []
pie__ has quit [(Remote host closed the connection)]
pie_ has joined #nixos
TweyII has joined #nixos
zzamboni has joined #nixos
jluttine has joined #nixos
TweyII is now known as Guest37228
gm152 has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
zzamboni has quit [(Ping timeout: 248 seconds)]
pie_ has quit [(Remote host closed the connection)]
pie_ has joined #nixos
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] oxij opened pull request #32339: uim: more options (master...pkg/uim) https://git.io/vbGM7
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] oxij opened pull request #32340: firmware-linux-nonfree: update (master...pkg/linux-firmware) https://git.io/vbGMh
NixOS_GitHub has left #nixos []
pie_ has quit [(Ping timeout: 260 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/fd7953d95f4 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #32338: nixos/gollum: add optional MathJax support (master...patch-1) https://git.io/vbG6L
NixOS_GitHub has left #nixos []
nix-gsc-io`bot has quit [(Client Quit)]
ylwghst has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] oxij opened pull request #32341: firefoxPackages: tor-browser: 52.3.0esr-7.0.1 -> 52.5.0esr-7.0-1 (master...pkg/tor-browser) https://git.io/vbGDq
NixOS_GitHub has left #nixos []
zzamboni has quit [(Ping timeout: 260 seconds)]
stphrolland has quit [(Quit: leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] oxij opened pull request #32342: pkgs: fix some metas (master...pkg/metas) https://git.io/vbGDs
NixOS_GitHub has left #nixos []
<corngood> philipp: sounds good. I'll do a bit of reading, but it'll probably be the weekend before I get to put any time into it.
zzamboni has joined #nixos
{^_^} has quit [(Remote host closed the connection)]
<AlanPearce[m]> How can I change the firefox package configuration when firefox is installed as a system package? I tried `nixpkgs.config.firefox.enableOfficialBranding = true;`, as indicated in the manual but it's still "Nightly"
{^_^} has joined #nixos
<AlanPearce[m]> I'm using the `firefox` attribute in my `environment.systemPackages`
<makefu> FRidh: regarding python-packages ordering, i really do not know where to put the new packages, ordering by name would be the most logical. however there are multiple beginnings and endings right now...
babyflakes has joined #nixos
gfixler has quit [(Quit: WeeChat 1.4)]
<etu> AlanPearce[m]: I use firefox-bin, then I get the official branding :)
<gchristensen> orivej I fixed it, and re-triggered evals for PRs from the last 8hrs which were incorrectly labeled. thanks for the heads up!
<gchristensen> oh orivej isn't here either... :)
<sphalerite> Alan Pearce: put (firefox.override {enableOfficialBranding = true;}) in systemPackages I think
<AlanPearce[m]> etu: I want some other options though :(
zzamboni has quit [(Ping timeout: 248 seconds)]
<etu> AlanPearce[m]: oh :/
<sphalerite> have fun building firefox :p
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/fd7953d95f4 (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
zzamboni has joined #nixos
<gchristensen> as of today, if a PR causes an evaluation error which prevents enumerating outputs, it'll provide a gist of that error output as well. previously, it would just say it failed to enumerate outputs.
<AlanPearce[m]> Hmm, now I get "attribute `override` is missing", which is weird, because I'm using the same syntax elsewhere
lsix has joined #nixos
<AlanPearce[m]> ah, possibly it's `firefoxPacakges.override`. Odd
<AlanPearce[m]> No, not even if I spell it correctly...
<Mic92> joachifm_: do you backport tor browser usually? https://github.com/NixOS/nixpkgs/pull/32341
zzamboni has quit [(Ping timeout: 248 seconds)]
<sphalerite> Alan Pearce: try `wrapFirefox (firefox-unwrapped.override {enableOfficialBranding = true;})`
<sphalerite> um
<gchristensen> Mic92: probably should backport all browser updates
<sphalerite> `(wrapFirefox (firefox-unwrapped.override {enableOfficialBranding = true;}) {})`
zzamboni has joined #nixos
a6a3uh has joined #nixos
<AlanPearce[m]> Linus: it started evaluating, thanks
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lheckemann opened pull request #32343: imagemagick: 6.9.9-23 -> 6.9.9-25 (master...imagemagick-6.9.9-25) https://git.io/vbGSe
NixOS_GitHub has left #nixos []
adamt_ is now known as adamt
zzamboni has quit [(Ping timeout: 240 seconds)]
<sphalerite> Bit of a fuss, that…
<AlanPearce[m]> Yeah, quite
<sphalerite> I suppose the neater way would be to have an overlay that just modifies firefox-unwwrapped
<AlanPearce[m]> Even more confusing is that I want to use `pkgs.unstable`, so I had to specify unstable twice
<thblt> Any idea where I should start troubleshooting "builder for ‘/nix/store/7viw4zcvnnsr2k3g52w0yjc4z2nyxxwk-nvidia-x11-384.90-4.14.3.drv’ failed with exit code 2" on nixos-rebuild switch --upgrade?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #32335: init devpi-server at 4.3.1, bump devpi-client (master...pkgs/devpi-common/update) https://git.io/vbGwV
NixOS_GitHub has left #nixos []
zzamboni has joined #nixos
<sphalerite> OK, I'm impressed
<sphalerite> it seems that the kernel driver or libinput or something along there in the stack has gained support for the DualShock 4's touchpad
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #32342: pkgs: fix some metas (master...pkg/metas) https://git.io/vbGDs
NixOS_GitHub has left #nixos []
<sphalerite> I was very surprised when touching it made my mouse move just now. It didn't do that 3 months ago x)
<srhb> sphalerite: The very special case of fixing issues by have sufficient patience. :P
<sphalerite> well I didn't actually consider it an issue
<sphalerite> the touchpad worked, it just didn't move the mouse cursor
ylwghst has quit [(Ping timeout: 240 seconds)]
zzamboni has quit [(Ping timeout: 248 seconds)]
<srhb> Ah!
joshuaks has joined #nixos
zzamboni has joined #nixos
pie_ has joined #nixos
joshuaks has quit [(Ping timeout: 260 seconds)]
gm152 has quit [(Quit: Lost terminal)]
zzamboni has quit [(Ping timeout: 260 seconds)]
johann__ has joined #nixos
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #32222: ddgr: init at 1.1 (master...ddgr) https://git.io/vbqmP
NixOS_GitHub has left #nixos []
jacob has joined #nixos
<sphalerite> heh, I've now set up my controller to control the mouse cursor in general
<sphalerite> it's pretty nice to use actually
<srhb> I've never managed to get the hang of controllers. I do need it for my in-bed-battlestation, of course. :-P
<srhb> (No, I don't have an in-bed-battlestation >_>)
<joepie91> ... yet
<srhb> yet :-P
<sphalerite> :D
<sphalerite> I set up the left joystick to move the cursor and the right one to scroll
<srhb> Oh, that's actually pretty nifty.
davidak has quit [(Ping timeout: 260 seconds)]
<thblt> Stupid question, because I'm confused. I've been fighting with configuring a stupid cheap samsung printer on my NixOS box, only to find there were a few samsung-linux-unified-driver packages waiting to be installed, which didn't appear in the online NixOS packages list <https://nixos.org/nixos/packages.html>
<thblt> Should I just distrust this list?
<srhb> thblt: Are they marked as unfree?
<srhb> thblt: The list doesn't show unfree drivers.
<gchristensen> thblt: where is that drivee
<gchristensen> oops
<srhb> (Or unfree packages in general)
<thblt> srhb: I haven't thought of that, thanks.
zzamboni has quit [(Quit: Leaving.)]
vidbina has quit [(Ping timeout: 260 seconds)]
ylwghst has joined #nixos
<thblt> I should just use nix-env -qa I guess
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 3 new commits to master: https://git.io/vbGHt
<NixOS_GitHub> nixpkgs/master 06edc9c Tim Steinbach: linux: 4.4.103 -> 4.4.104
<NixOS_GitHub> nixpkgs/master c0b09e9 Tim Steinbach: linux: 4.9.66 -> 4.9.67
<NixOS_GitHub> nixpkgs/master 93e68fd Tim Steinbach: linux: 4.14.3 -> 4.14.4
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to release-17.09: https://git.io/vbGHm
<NixOS_GitHub> nixpkgs/release-17.09 007a867 Tim Steinbach: linux: 4.4.103 -> 4.4.104...
NixOS_GitHub has left #nixos []
<thblt> Lesson learned, though: never use cheap printers.
vidbina has joined #nixos
<srhb> thblt: That will also only show them if you have unfree packages enabled though.
CrazedProgrammer has quit [(Quit: Ping timeout (120 seconds))]
CrazedProgrammer has joined #nixos
<thblt> So according to the internet, if you want something that's easy to configure under Linux, you should buy HP printers.
erictapen has joined #nixos
zzamboni has joined #nixos
<sphalerite> the controller is actually nicer to use than the touchpad on my laptop since I can bind buttons to back, forward, next tab, previous tab, etc
<sphalerite> the only thing that's more of a pain is switching to the keyboard to type
<joepie91> thblt: wellll sort of kind of
<joepie91> thblt: HP has a Linux version of their bloatware, but for *native, OSS* support iirc Brother(?) is the usual recommendation
<joepie91> if I'm not misremembering
<srhb> I've heard that as well and had the same experience, most of the time.
jaeckel has quit [(Ping timeout: 240 seconds)]
<joepie91> the problem with Brother is mostly that it's really difficult to find an affordable Brother printer
<joepie91> :P
<joepie91> at least around here
<thblt> joepie91: my Brother printer is usually easy to setup indeed, let me check if the drivers are free.
zzamboni has quit [(Ping timeout: 258 seconds)]
<thblt> yes they are
a6a3uh has quit [(Quit: Bye)]
zzamboni has joined #nixos
<magnetophon> I'mupdating a rust pkg, and get "error: the lock file needs to be updated but --locked was passed to prevent this" Google is not helpful. Ideas?
tomster has joined #nixos
<srhb> Wow, it seems like the Logstash people just didn't bother to update the docs for the 6.0 release..
<tomster> hi, i'm trying to use vagrant with nixos as a host system and using lxc as container but i cannot get vagrant-lxc installed
<tomster> i tried lxc.enable = true; and lxd.enable = true; in my configuration.nix
<tomster> but i still get the error "The provider 'lxc' could not be found, but was requested to
<tomster> back the machine 'default'. Please use a provider that exists.
<tomster> "
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 1 new commit to master: https://git.io/vbGQy
<NixOS_GitHub> nixpkgs/master 5e19122 Graham Christensen: gucharmap: fix meta
NixOS_GitHub has left #nixos []
<tomster> the same setup works fine with virtualbox as driver, but i want to use lxc because i need to work with a 10-node cluster and firing up 10 vbox instances froze my machine... o.O
vidbina has quit [(Ping timeout: 240 seconds)]
vidbina has joined #nixos
<tomster> oh, my bad. i should have read the README... "vagrant plugin install vagrant-lxc" does the trick :)
a6a3uh has joined #nixos
<tomster> ok, so how could i add that to my default.nix?
ryantrinkle has joined #nixos
b73_ has quit [(Quit: Connection closed for inactivity)]
cement has joined #nixos
dywedir has joined #nixos
Stammon- has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
Harpalus has joined #nixos
CrazedProgrammer has quit [(Quit: Ping timeout (120 seconds))]
zzamboni has joined #nixos
alsoStevenXL has joined #nixos
CrazedProgrammer has joined #nixos
<tomster> hm, still not working, now i get cannot create 'lxc/<redacted>: no such pool 'lxc'
zzamboni has quit [(Client Quit)]
<alsoStevenXL> Hi everyone. I am trying to get a Haskell web app to build. Unfortunately, I am getting an error related to a library called `hlibsass`. I opened a PR in the project itself, which includes logs of the errors that I'm getting, as well as "things" that I've tried (https://git.snowdrift.coop/sd/snowdrift/issues/40)
zzamboni has joined #nixos
<etu> tomster: If you get vagrant lxc to work well, tell me how. I can't wait to stop using vbox.
vidbina has quit [(Ping timeout: 240 seconds)]
<alsoStevenXL> One of the active users on that project suggested teh following: Without looking at it too hard, here is what I think is the problem. hlibsass is bundled with its own copy of libsass, which it builds via a custom Setup.hs/cabal build process. That process is fragile and does not work on OS X, as it uses compiler flags unknown to OS X's C compiler. Now, hlibsass should have a Cabal flag that specifies
<alsoStevenXL> to use the system install of libsass, rather than relying on the custom bundled copy. Using Nix, it should be quite possible to build hlibsass with a system-level install of libsass that is guaranteed to be compatible.
<alsoStevenXL> (Sorry for the wall of text)
mrkgnao has quit [(Ping timeout: 260 seconds)]
vidbina has joined #nixos
jaeckel has joined #nixos
townsend has quit [(Remote host closed the connection)]
mrkgnao has joined #nixos
iyzsong has joined #nixos
<srhb> alsoStevenXL: "Agreed." :-)
<srhb> alsoStevenXL: (As in, that sounds doable!)
<alsoStevenXL> srhb: cool!
<alsoStevenXL> I'm not sure how I would do it but I'm game to give it a try. I have about an hour before work.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vbG5A
<NixOS_GitHub> nixpkgs/master f38560a John Doe: oraclejdk8: support aarch64...
NixOS_GitHub has left #nixos []
orivej has joined #nixos
<srhb> alsoStevenXL: I'm at work right now, so I can't easily guide you right now. Perhaps someone else is available.
<alsoStevenXL> srhb: No problem. I'll give this a go on my own, but if someone else wants to help just ping me. ;-)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg closed pull request #32314: oraclejdk8: support aarch64 (master...oraclejdk8-aarch64) https://git.io/vbsvE
NixOS_GitHub has left #nixos []
vidbina has quit [(Ping timeout: 255 seconds)]
vidbina has joined #nixos
stphrolland has joined #nixos
mrkgnao has quit [(Ping timeout: 255 seconds)]
zzamboni has quit [(Quit: Leaving.)]
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] oxij reopened pull request #11529: [WIP, Needs Help] nixos: networking cleanup (master...nixos-networking-cleanup) https://git.io/vR61Q
NixOS_GitHub has left #nixos []
<stphrolland> Another noob question. I hope to understand and try with local dev environment this afternoon. As far as I have understood, I need to understand Nix Stores. I'm into reading the NixOs manual, I have only skimmed the beginning with installing and nix languages primitive. Do you think the manual will be sufficient for "mastering" nix stores, or are there any complementary resources you would advise ?
<srhb> stphrolland: It's a bit confusing to hear about "Nix Stores" in the plural at all.
<srhb> stphrolland: I would say you'll gradually gain an understanding of the Nix store (/nix/store) as you go on.
mrkgnao has joined #nixos
<stphrolland> srng: ok so there is one main nix store.
<srhb> stphrolland: the NixOS manual is probably not sufficient, though. The Nix and Nixpkgs manuals are also good resources.
<srhb> stphrolland: Usually, yes.
<tomster> etu: i'm giving up for now :( i'll focus on subsets of the cluster instead...
ma27 has joined #nixos
vidbina has quit [(Ping timeout: 248 seconds)]
vidbina has joined #nixos
a6a3uh has quit [(Quit: Bye)]
MP2E has quit [(Remote host closed the connection)]
roberth has quit [(Ping timeout: 248 seconds)]
i-am-the-slime has quit [(Ping timeout: 240 seconds)]
<tomster> damn, i just did a sudo nix-channel --update and now suddenly rebuilding fails with "error: attribute ‘linuxPackages_4_13’ missing,"
i-am-the-slime has joined #nixos
<tomster> has the 4.13 kernel been dropped for unstable?
<etu> yeah
<etu> 4.14 is in there now
<tomster> i tried building with 4_14 but that fails with a different error
<etu> 4.14 will be the new stable since it is an LTS kernel
Stammon| has joined #nixos
<etu> tomster: What error?
<etu> tomster: There's this thread for tracking issues with 4.14: https://github.com/NixOS/nixpkgs/issues/31640
<etu> tomster: yeah, you can't build vbox 5.1.x on 4.14, you need 5.2.1
<tomster> etu: how do i up to 5.2.1?
<etu> tomster: Which should be in nixos-unstable, I use it on 4.14 from there :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #32345: r2-cutter: init at 1.0(.0), radare2 qt gui (master...feature/r2-cutter) https://git.io/vbGbl
NixOS_GitHub has left #nixos []
<tomster> ah right
<tomster> i will try that
<srhb> The virtualbox modules should be 5.2.2 by default on unstable currently.
vidbina has quit [(Ping timeout: 276 seconds)]
<tomster> hm, i switched virtualbox to unstable.virtualbox but it's still trying to build 5.1.26?
<tomster> and fails of course
<etu> tomster: yeah, 5.2.x also broke vagrant for me, because vagrant needed updating, and that vagrant update broke for me but that is fixed in unstable :)
<tomster> i switched both vagrant and virtualbox to unstable but it's still building the old versions
<tomster> here's my nixinfo: system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 1.11.15, channels(root): "nixos-17.09.2281.b4a0c011e81, nixos-unstable-18.03pre121925.3eccd0b11d1", channels(tomster): "nixos-17.09.2281.b4a0c011e81, nixpkgs-18.03pre121983.fd7953d95f4, nixos-unstable-18.03pre121925.3eccd0b11d1", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
<tomster> seems like i should jump the gun and go all unstable, right?
<srhb> tomster: No one but you can answer that :-P
<tomster> i looked into that already but i'm not sure how to achieve that
ryantrinkle has quit [(Ping timeout: 260 seconds)]
<tomster> srhb: oh i'm ready to try it
<srhb> The nixos channel should point to nixos-unstable
<srhb> iirc
<tomster> i'm still figuring out how. i'm still very new to nixos
<tomster> srhb: so not inside my configuration.nix but simply by manipulating my channel setup?
<srhb> tomster: Yeah.
<tomster> as root, right?
<srhb> Yep!
thetet has quit [(Quit: Leaving.)]
<tomster> hm, nix-channel --add nixos-stable https://nixos.org/channels/nixos-17.09
<tomster> invalid channel URL ‘nixos-stable’ at /run/current-system/sw/bin/nix-channel line 68.
<tomster> i want to add the stable channel with a new name before removing it
<srhb> tomster: Looks like you flipped the arguments
<srhb> Notice that it's complaining that nixos-stable is not a valid channel URL
<tomster> indeed!
<tomster> thx
<tomster> now i get ok.error: Package ‘spl-kernel-0.7.3-4.14.3’ in /nix/store/1f7ryx474g7yygabbvnr42gs5b0m45r0-nixos-18.03pre121925.3eccd0b11d1/nixos/pkgs/os-specific/linux/spl/default.nix:49 is marked as broken, refusing to evaluate.
<tomster> should i allow broken or simply give up until this has been fixed?
<tomster> what the hell, i will go for it. all in, might as well
erictapen has quit [(Remote host closed the connection)]
asuryawanshi has quit [(Ping timeout: 264 seconds)]
a6a3uh has joined #nixos
<sphalerite> tomster: the nix pills at https://nixos.org/nixos/nix-pills/ are great for gaining a fairly in-depth understanding of how nix and nixpkgs work with very little prior knowledge
pie_ has quit [(Ping timeout: 255 seconds)]
<sphalerite> oops I meant stphrolland ^
<thblt> In case anyone interested, I drafted a small Emacs package to browse Nix package list. It's really, really basic right now, but it can be kinda useful (faster than nix-env -qa, at least). Here it is: https://github.com/thblt/nixpkgs-emacs
<stphrolland> sphalerite: thx
tomster has quit [(Remote host closed the connection)]
<civodul> thblt: maybe not directly useful to you, but you may like https://alezost.github.io/guix.el/
dieggsy has joined #nixos
dieggsy has quit [(Remote host closed the connection)]
<thblt> civodul: thanks! this seems *much* more sophisticated than my small toy. I just wrote this to be able to to quickly look up packages, since the list on the website is incomplete and nix-env -qa is extremely slow and is virtually unusable for searching.
<gchristensen> thblt: you might also be interested in `nox`, which does some caching.
dieggsy has joined #nixos
<thblt> gchristensen: thanks!
Harpalus has quit [(Remote host closed the connection)]
stphrolland has quit [(Quit: leaving)]
Taneb has left #nixos []
reinzelmann has quit [(Quit: Leaving)]
dieggsy has quit [(Quit: ERC (IRC client for Emacs 27.0.50))]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vbGpq
<NixOS_GitHub> nixpkgs/master de8f941 Peter Hoeg: syncthing: 0.14.40 -> 0.14.41
NixOS_GitHub has left #nixos []
roberth has joined #nixos
cnu- has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg pushed 1 new commit to master: https://git.io/vbGp8
<NixOS_GitHub> nixpkgs/master f649b04 Peter Hoeg: freerdp: 2.0.0-rc0 -> 2.0.0-rc1
NixOS_GitHub has left #nixos []
cnu- has joined #nixos
cybrian has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rycee pushed 1 new commit to master: https://git.io/vbGph
<NixOS_GitHub> nixpkgs/master 601c895 Robert Schütz: abcMIDI: 2017.06.10-> 2017.11.27
NixOS_GitHub has left #nixos []
thblt has quit [(Changing host)]
thblt has joined #nixos
<manveru> why would you use `nox` if you can use `nix search` ^^;
<tilpner> magnetophon - This channel is more appropriate :)
<manveru> thblt: btw, spacemacs has a nixos layer
adamt has quit [(Remote host closed the connection)]
<manveru> maybe you can add your functions there?
adamt has joined #nixos
<manveru> it's using https://github.com/travisbhartwell/nix-emacs under the hood
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rycee closed pull request #32281: abcMIDI: 2017.06.10-> 2017.11.27 (master...abcmidi) https://git.io/vbO86
NixOS_GitHub has left #nixos []
hotfuzz has joined #nixos
<thblt> manveru: I don't use spacemacs, so I'd rather not contribute code to them directly. But if the package becomes something more useful than a tabulated list of packages, I'll publish it somehow, so the Spacemacs people will be able to grab it :)
<thblt> (Also, IIUC, Spacemacs layers are just sets of preconfigured packages, there's no actual code to contribute)
<manveru> keybinds mostly :)
<manveru> but yeah, nix-emacs would be the better place
<drakonis> actually it is a helm layer
hotfuzz_ has quit [(Ping timeout: 255 seconds)]
<manveru> i just never used it...
mbrgm_ has joined #nixos
<thblt> manveru: this code is... strange
zzamboni has quit [(Quit: Leaving.)]
mbrgm has quit [(Ping timeout: 248 seconds)]
mbrgm_ is now known as mbrgm
magnetophon has quit [(Ping timeout: 255 seconds)]
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vbZee
<NixOS_GitHub> nixpkgs/master 0b84178 Frederik Rietdijk: librepo: add bindings to python-packages.nix
NixOS_GitHub has left #nixos []
peacememories has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
johann__ has quit [(Quit: Leaving.)]
fleaz has quit [(Remote host closed the connection)]
fleaz has joined #nixos
vidbina has joined #nixos
phdoerfler has quit [(Quit: Leaving.)]
ryantrinkle has joined #nixos
ylwghst has quit [(Ping timeout: 264 seconds)]
b73_ has joined #nixos
<b73_> @thblt: installing `nixpkgs.cacert` did the trick. It installs a bundle of CA certificates extracted from Mozilla
Mic92 has quit [(Ping timeout: 260 seconds)]
zzamboni has quit [(Quit: Leaving.)]
ylwghst has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #32346: radare2: 2.0.1 -> 2.1.0 (master...update/radare2-2.1.0) https://git.io/vbZJw
NixOS_GitHub has left #nixos []
zzamboni has joined #nixos
Aexoden has quit [(Ping timeout: 252 seconds)]
Aexoden has joined #nixos
dtulig has quit [(Ping timeout: 252 seconds)]
iyzsong has quit [(Ping timeout: 248 seconds)]
ylwghst has quit [(Quit: Lost terminal)]
vidbina has quit [(Quit: Reconnecting)]
a6a3uh has quit [(Quit: Bye)]
i-am-the-slime has quit [(Ping timeout: 260 seconds)]
a6a3uh has joined #nixos
leat has quit [(Quit: WeeChat 1.9.1)]
adamt has quit [(Ping timeout: 248 seconds)]
joshuaks has joined #nixos
spietz has joined #nixos
vidbina has joined #nixos
dtulig has joined #nixos
adamt has joined #nixos
adamt has quit [(Changing host)]
adamt has joined #nixos
joshuaks has quit [(Ping timeout: 260 seconds)]
vidbina has quit [(Ping timeout: 240 seconds)]
<gchristensen> what is the nixUnstable tool to pretty-print a drv?
vidbina has joined #nixos
cybrian has joined #nixos
orivej has quit [(Ping timeout: 246 seconds)]
chaker has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pbogdan opened pull request #32347: procmail: fix CVE-2017-16844 (master...procmail-cve-2017-16844) https://git.io/vbZTj
NixOS_GitHub has left #nixos []
nschoe has quit [(Ping timeout: 260 seconds)]
Harpalus has joined #nixos
vidbina has quit [(Quit: Reconnecting)]
zzamboni has quit [(Quit: Leaving.)]
<srhb> gchristensen: nix show-derivation I think?
<gchristensen> hmm cool
<gchristensen> I think the copy I have is too old :)
<srhb> Oh
AtnNn has quit [(Ping timeout: 240 seconds)]
<srhb> 1.12pre5721_fd10f6f2
<srhb> No...
i-am-the-slime has joined #nixos
<srhb> 1.12pre5732_fd10f6f2
<srhb> (Why didn't I copy paste that...)
AtnNn has joined #nixos
Guest37228 has quit [(Changing host)]
Guest37228 has joined #nixos
Guest37228 is now known as TweyII
bennofs has joined #nixos
vidbina has joined #nixos
<srhb> It needs an option to render multiline strings as Nix strings rather than JSON(?)
zzamboni has joined #nixos
Slabity has quit [(Remote host closed the connection)]
zzamboni has quit [(Ping timeout: 255 seconds)]
<gchristensen> Derivation technically
<gchristensen> that'd be nice
zzamboni has joined #nixos
<gchristensen> I just manually backtracked through drvs trying to figure out why one changed
zzamboni has quit [(Client Quit)]
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh opened pull request #32348: libcomps: init at 0.1.8 (master...libcomps) https://git.io/vbZLX
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] thoughtpolice pushed 1 new commit to master: https://git.io/vbZLD
<NixOS_GitHub> nixpkgs/master 827142a Austin Seipp: nixpkgs: add unicorn-emulator library 1.0.1...
NixOS_GitHub has left #nixos []
i-am-the-slime has quit [(Ping timeout: 240 seconds)]
<tilpner> gchristensen - Didn't you have a script that does nix-prefetch-git > stuff to update json files for fetchgit?
* tilpner can't find it anymore
<gchristensen> Bas did
<gchristensen> and I do now :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pbogdan opened pull request #32349: konversation: 1.7.2 -> 1.7.4 (master...update-konversation) https://git.io/vbZtT
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] woffs opened pull request #32350: extremetuxracer: 0.6.0 -> 0.7.4 (master...etr-0.7.4) https://git.io/vbZtm
NixOS_GitHub has left #nixos []
adamt has quit [(Ping timeout: 255 seconds)]
zzamboni has quit [(Ping timeout: 248 seconds)]
<sphalerite> manveru: re "why use nox": nox supports multiple queries, nix search doesn't :)
<tilpner> gchristensen - Thank you! :)
freusque has quit [(Quit: WeeChat 1.9.1)]
vidbina has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] shlevy pushed 1 new commit to master: https://git.io/vbZtH
<NixOS_GitHub> nix/master 11a7f8c Shea Levy: Merge branch 'fetchGit-fast-revision-update'
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] shlevy closed pull request #1698: fetchGit: Ignore tarballTtl if rev is set and not in the repo. (master...fetchGit-fast-revision-update) https://git.io/vFxxQ
NixOS_GitHub has left #nixos []
<srhb> gchristensen: Ugh, I disconnceted. Wouldn't the new nix-diff have made that easier? :)
<gchristensen> it would have! A)
nuncanada has joined #nixos
vidbina has joined #nixos
<srhb> :D
mrkgnao has quit [(Ping timeout: 276 seconds)]
slyfox_ has joined #nixos
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
slyfox has quit [(Ping timeout: 240 seconds)]
JosW has joined #nixos
Harpalus has quit [(Quit: Leaving)]
griff_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix opened pull request #32351: glpk: 4.63 -> 4.64 (master...update_glpk) https://git.io/vbZqF
NixOS_GitHub has left #nixos []
<joko> Hello, it appears that the lua-5.3 package depends on hostPlatform, is this right?
cybrian has quit [(Read error: Connection reset by peer)]
peacememories has joined #nixos
FRidh has quit [(Quit: Konversation terminated!)]
FRidh has joined #nixos
FRidh has quit [(Remote host closed the connection)]
FRidh has joined #nixos
FRidh has quit [(Remote host closed the connection)]
peacememories has quit [(Client Quit)]
mrkgnao has joined #nixos
johann__ has joined #nixos
vidbina has quit [(Ping timeout: 255 seconds)]
Synthetica has joined #nixos
adamt_ has joined #nixos
adamt_ has quit [(Changing host)]
adamt_ has joined #nixos
kreetx has joined #nixos
erasmas has joined #nixos
orivej has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Synthetica9 opened pull request #32353: Patch 4 (master...patch-4) https://git.io/vbZOb
NixOS_GitHub has left #nixos []
digitus has joined #nixos
jensens has quit [(Ping timeout: 260 seconds)]
peacememories has joined #nixos
a6a3uh has quit [(Ping timeout: 240 seconds)]
joshuaks has joined #nixos
peacememories has quit [(Client Quit)]
bennofs has quit [(Quit: WeeChat 1.9.1)]
dan_b has quit [(Ping timeout: 255 seconds)]
joshuaks has quit [(Ping timeout: 260 seconds)]
adamt_ has quit [(Ping timeout: 240 seconds)]
asuryawanshi has joined #nixos
peacememories has joined #nixos
peacememories has quit [(Client Quit)]
peacememories has joined #nixos
roberth has quit [(Ping timeout: 276 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/30391677ff5 (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
peacememories has joined #nixos
<tilpner> gchristensen - I ended up reimplementing fetchFromGitHub via git ls-remote and nix-prefetch-url :/
<gchristensen> ok
__Sander__ has quit [(Quit: Konversation terminated!)]
Stammon has quit [(Remote host closed the connection)]
adamt_ has joined #nixos
adamt__ has joined #nixos
danl1240 has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
asuryawanshi has joined #nixos
adamt_ has quit [(Ping timeout: 255 seconds)]
adamt__ is now known as adamt
adamt has quit [(Changing host)]
adamt has joined #nixos
asuryawanshi has quit [(Remote host closed the connection)]
nuncanada2 has joined #nixos
asuryawanshi has joined #nixos
chaker has quit [(Ping timeout: 260 seconds)]
<hyper_ch> tilpner: why?
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
nuncanada has quit [(Ping timeout: 268 seconds)]
pxc2 has joined #nixos
chaker has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 4 new commits to master: https://git.io/vbZC6
<NixOS_GitHub> nixpkgs/master 3d8260f SLNOS: Revert a part of "firefox: 56.0.2 -> 57.0"...
<NixOS_GitHub> nixpkgs/master d838fbe SLNOS: firefoxPackages: move old firefox flags under isTorBrowserLike
<NixOS_GitHub> nixpkgs/master d0eed98 SLNOS: firefoxPackages: tor-browser: 52.3.0esr-7.0.1 -> 52.5.0esr-7.0-1...
NixOS_GitHub has left #nixos []
<tilpner> hyper_ch - Because nix-prefetch-git has higher data usage for not-very-recent revs, and the JSON output wasn't directly compatible with fetchgit (and there was some weird hash mismatch)
<hyper_ch> ok :)
<clever> tilpner: why did it need ls-remote at all?
jluttine has quit [(Ping timeout: 248 seconds)]
<tilpner> clever - I needed to know the current rev to insert into the github.com archive URL
<tilpner> (branch -> rev)
<hyper_ch> nixos without needing to compile vbox is so much better :)
<clever> tilpner: ah, you mean for pre-fetching the tip of a branch and making it pure
jb55 has joined #nixos
<tilpner> clever - Yes. Previously I maintained a .json by hand, copying around hashes, now it's faster
goibhniu has quit [(Ping timeout: 250 seconds)]
<clever> nice
<tilpner> (The .json contained multiple repos, like nixpkgs-mozilla or riot-electron-nix)
<clever> have you played with jq before?
<tilpner> I'm aware of it, but I don't remember much of the syntax
<clever> its pretty powerful
<adamt> jq is neat.
<hyper_ch> I used jq a while back, don't recall what for but it's a nice tool for working with json
jtojnar has joined #nixos
<tilpner> How do I check why a package has no binary cache? Building wine gets annoying after a few hours :/
<clever> tilpner: are you building it with nixos-rebuild, nix-env, or nix-build?
cybrian has joined #nixos
<hyper_ch> how long does it take to build wine? it usually took me like 2h to compile vbox with extension.... I can't fathom wine taking longer
<tilpner> clever - nix-build --no-out-link '<nixpkgs/nixos>' -A system --keep-going
<tilpner> hyper_ch - You're right, one build doesn't take forever, but it gets rebuilt every time I update
<hyper_ch> oh, every update? that sounds weird
<clever> tilpner: what do you have in nixpkgs.config?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 2 new commits to master: https://git.io/vbZlD
<NixOS_GitHub> nixpkgs/master cb5ac6a Frank Doepper: extremetuxracer: 0.6.0 -> 0.7.4
<NixOS_GitHub> nixpkgs/master d8787a8 adisbladis: Merge pull request #32350 from woffs/etr-0.7.4...
NixOS_GitHub has left #nixos []
<tilpner> clever - I don't have nixpkgs.config, but <nixpkgs> is imported with { config = { allowUnfree = true; useSandbox = true; }; }
townsend has joined #nixos
<tilpner> Rather, <nixpkgs> is a .nix file that imports nixpkgs with that attrset
Isorkin_ has quit [(Ping timeout: 248 seconds)]
griff_ has quit [(Quit: griff_)]
<tilpner> The packages in question are wineFull and wineUnstable, both trigger a rebuild
Isorkin has joined #nixos
<clever> tilpner: can you gist all of the expressions involved?
erictapen has joined #nixos
jluttine has joined #nixos
sigmundv__ has quit [(Ping timeout: 260 seconds)]
<tilpner> It's not important enough for someone to read all that, it's quite a few files in a non-standard arrangement. I'm just making sure there's no easy checklist :)
<clever> tilpner: things like the state of the pulseaudio flag, and the arch
nevermind has joined #nixos
chaker has quit [(Quit: WeeChat 1.9.1)]
nevermind is now known as Guest29357
pxc2 has quit [(Ping timeout: 240 seconds)]
Shados has quit [(Remote host closed the connection)]
pxc2 has joined #nixos
townsend has quit [(Ping timeout: 260 seconds)]
<tilpner> system is "x86_64-linux", I don't know how to check the pulseaudio flag. I vaguely remember it being a nixpkgs thing, instead of nixos, right?
Shados has joined #nixos
<tilpner> So if my nixpkgs.config doesn't have anything pulse-related, what's the default?
<tilpner> Is there a list of used config options, like allowUnfree or firefox.enableAdobeFlash?
akfp has quit [(Read error: Connection reset by peer)]
akfp has joined #nixos
orivej has quit [(Quit: No Ping reply in 180 seconds.)]
pxc2 has quit [(Ping timeout: 255 seconds)]
orivej has joined #nixos
Sonarpulse has joined #nixos
cybrian has quit [(Read error: Connection reset by peer)]
phdoerfler has joined #nixos
leat has joined #nixos
berce has joined #nixos
townsend has joined #nixos
<hyper_ch> clever: sind you use zfs and nixos, have you ever pondered to do an auto zfs snapshot when running any nix-sensible command?
ma27 has quit [(Ping timeout: 250 seconds)]
marzzzello has joined #nixos
roberth has joined #nixos
georges-duperon has joined #nixos
ma27 has joined #nixos
<adamt> When using systemd.services.foo.script, how can i run something other than bash?
<adamt> (a shebang line pointing to bash is automatically prepended to the script)
<hyper_ch> what's wrong with bash? :)
<adamt> (i'll just pretend to ignore that question, despite not really ignoring it at all :p)
<hyper_ch> well, one simple way would be to point it to a script that then calls the actual script with your desired shell
<hyper_ch> and bash is one of the best inventions since sliced bread
tmaekawa has joined #nixos
<adamt> Yeah, but it's kinda neat that i can just add a one-line script directly in the unit, so i don't have to go create extra files for tiny scripts. I just really can't be bothered with bash.
<adamt> Besides, it's an artificial limitation if it can't be changed, it's just the shebang that needs changing anyways (as long as i add the desired interpreted to the path). :)
<hyper_ch> dunno
magnetophon has joined #nixos
<hiroshi> adamt: which shell do you have
cybrian has joined #nixos
<adamt> hiroshi: Not understood? I just want it to generate another shebang line, pointing to e.g. Python or Ruby.
<tilpner> Is nvidia broken on nixos-17.09? Upgrading fails on nvidia-x11-384. Full log: https://gist.github.com/62713aecd8a006b6b9fbd0df44ac9062
<hiroshi> zsh has bash compatibility
* tilpner tries downgrading Linux
<hiroshi> I see what are you saying now
pxc2 has joined #nixos
marzzzello has quit [(Quit: bb)]
szicari has joined #nixos
<adisbladis> tilpner: 4.14 compatibility should be fixed in nvidia 387.22 which was seemingly never backported
<tilpner> adisbladis - Do you know what packages are involved in that, so that I can commit the sin of creating a cross-channel overlay?
bennofs has joined #nixos
<hiroshi> adamt: just install python and copy the path . a systemd service config will read that
<symphorien> adamt: use execstart= instead of script= in the unit declaration
<tilpner> adisbladis - Thank you! :)
<adisbladis> No problem :)
<kini> repeating my question from yesterday:
<kini> <kini> in https://github.com/NixOS/nixpkgs/commit/0094ca20cc I changed the package "acl2-v6-5" to the package "acl2-7.4", but since the format of the version number has changed, users who had installed the former won't be able to upgrade to the latter, right?
<kini> <kini> if I'm not mistaken, in "acl2-v6-5", the package name is considered to be "acl2-v6" and the version number is considered to be "5"
<kini> <kini> what's the normal procedure for renaming a package in such a way that users will be able to upgrade across the name change?
<adamt> symphorien: yeah, but then i'll have to writeText to a file and exec that, instead of having it all neat inside the unit declaration.
<adamt> hiroshi: That doesn't change the fact that nix generates a systemd unit that has a bash shebang line in the way :-)
drakonis has quit [(Read error: Connection reset by peer)]
Guest29357 has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<adamt> Meh, i'll just use writeText and ExecStart.
<hiroshi> adamt: that is because it is the standar. you can install python and hack it
<clever> adamt: if you use serviceConfig.ExecStart, then the .service file points directly to the thing you gave it
<clever> adamt: but if you use .script, it will writeScriptBin it for you, and put that into ExecStart
<hiroshi> I don't understand why nixOS has nano in the base and not only vim -_- adamt but as I said . standars xD
<clever> adamt: so you need to remove the .script option
<adamt> clever: But there's really no reason that you couldn't change the interpreter from bash to something else. Somebody just has to hack the code together. I just wondered whether this was already possible.
<adamt> (like scriptInterpreter = ${pkgs.ruby}/bin/ruby; # you get the idea)
pierrec_ has joined #nixos
<clever> adamt: but at this point, its probably simpler to just serviceConfig.ExecStart = pkgs.writeScriptBin "foo-start" "#!{pkgs.ruby}/bin/ruby ... ";
<adamt> clever: 1) nice, the code looks quite hackable, if need be. 2) thanks, that's a neat alternative. :-)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis closed pull request #32334: qemu: apply patch for CVE-2017-17381 (master...qemu-cve-2017-17381) https://git.io/vbGEy
NixOS_GitHub has left #nixos []
<clever> adamt: oh, writeScript is probably better then writeScriptBin
<clever> adamt: the issue, is that ExecStart needs an absolute path to an executable, but writeScriptBin returns the path to a directory containing "bin/executable"
<clever> writeScript puts the script directly into /nix/store and makes it executable
ryantrinkle has quit [(Ping timeout: 268 seconds)]
<adamt> Yeah, i see. I'm gonna do that.
b73_ has quit [(Quit: Connection closed for inactivity)]
FRidh has joined #nixos
FRidh has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #32349: konversation: 1.7.2 -> 1.7.4 (master...update-konversation) https://git.io/vbZtT
NixOS_GitHub has left #nixos []
cybrian has quit [(Read error: Connection reset by peer)]
roberth has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to release-17.09: https://git.io/vbZu5
<NixOS_GitHub> nixpkgs/release-17.09 b5fb6a5 Piotr Bogdan: konversation: 1.7.2 -> 1.7.4...
NixOS_GitHub has left #nixos []
pxc2 has quit [(Quit: WeeChat 1.9.1)]
i-am-the-slime has joined #nixos
i-am-the-slime has quit [(Client Quit)]
orivej has quit [(Ping timeout: 258 seconds)]
orivej has joined #nixos
i-am-the-slime has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] berce opened pull request #32355: pcscd: add plugin for ACS ACR38U smartcard reader (master...libacr38u) https://git.io/vbZgv
NixOS_GitHub has left #nixos []
griff_ has joined #nixos
ryantrinkle has joined #nixos
detran` has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] tex opened pull request #32356: kitty 0.5.0 -> 0.5.1 (master...kitty) https://git.io/vbZ2m
NixOS_GitHub has left #nixos []
detran has joined #nixos
oida has quit [(Ping timeout: 268 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] tex opened pull request #32357: 0.4.6 -> 0.4.7 (master...freeorion) https://git.io/vbZ2R
NixOS_GitHub has left #nixos []
johann__ has quit [(Ping timeout: 260 seconds)]
johann__ has joined #nixos
i-am-the-slime has quit [(Ping timeout: 260 seconds)]
ylwghst has joined #nixos
oida has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor pushed 1 new commit to master: https://git.io/vbZao
<NixOS_GitHub> nixpkgs/master b8b7428 Bert Moens: pcscd: add plugin for ACS ACR38U smart card reader
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor closed pull request #32355: pcscd: add plugin for ACS ACR38U smartcard reader (master...libacr38u) https://git.io/vbZgv
NixOS_GitHub has left #nixos []
<berce> Thank you bjornfor, that was fast
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 4 new commits to python-unstable: https://git.io/vbZaj
<NixOS_GitHub> nixpkgs/python-unstable 3d10dfb Frederik Rietdijk: python.pkgs.backports_shutil_get_terminal_size: fix python 2 tests
<NixOS_GitHub> nixpkgs/python-unstable 5a3e12d Frederik Rietdijk: python.pkgs.cheetah: move and update expression
<NixOS_GitHub> nixpkgs/python-unstable 0c9dee4 Frederik Rietdijk: python.pkgs.pathlib2: fix tests
NixOS_GitHub has left #nixos []
markus1189 has quit [(Remote host closed the connection)]
szicari has quit [(Quit: szicari)]
roberth has joined #nixos
thblt` has joined #nixos
szicari has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vbZVD
<NixOS_GitHub> nixpkgs/master 69eb4db Milan Svoboda: kitty 0.5.0 -> 0.5.1
<NixOS_GitHub> nixpkgs/master 7087827 Frederik Rietdijk: Merge pull request #32356 from tex/kitty...
NixOS_GitHub has left #nixos []
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
thblt has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to python-unstable: https://git.io/vbZw6
<NixOS_GitHub> nixpkgs/python-unstable 8f289aa Frederik Rietdijk: python.pkgs.contextlib2: fix tests
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh force-pushed python-unstable from 8f289aa to 7b4d415: https://git.io/v5aIf
<NixOS_GitHub> nixpkgs/python-unstable 588cd4f Spencer Baugh: python.pkgs.setuptools: 36.7.1 -> 38.2.3
<NixOS_GitHub> nixpkgs/python-unstable 29c786f Frederik Rietdijk: python.pkgs.backports_shutil_get_terminal_size: fix python 2 tests
<NixOS_GitHub> nixpkgs/python-unstable 325dccc Frederik Rietdijk: python.pkgs.cheetah: move and update expression
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ryantrinkle closed pull request #32256: Add types.strMatching (master...add-strMatching-type) https://git.io/vbYEI
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vbZw9
<NixOS_GitHub> nixpkgs/master 92edbb0 adisbladis: virt-manager: 1.4.2 -> 1.4.3
<NixOS_GitHub> nixpkgs/master a2adaf2 Frederik Rietdijk: Merge pull request #32070 from adisbladis/virt-manager-1_4_3...
NixOS_GitHub has left #nixos []
peacememories has joined #nixos
ylwghst has quit [(Quit: Lost terminal)]
tmaekawa has quit [(Quit: tmaekawa)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis pushed 1 new commit to release-17.09: https://git.io/vbZrK
<NixOS_GitHub> nixpkgs/release-17.09 9e635ec Andreas Rammhold: qemu: apply patch for CVE-2017-17381...
NixOS_GitHub has left #nixos []
akfp has quit [(Read error: Connection reset by peer)]
akfp has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vbZon
<NixOS_GitHub> nixpkgs/master 11f6566 Lancelot SIX: glpk: 4.63 -> 4.64...
NixOS_GitHub has left #nixos []
ylwghst has joined #nixos
<sphalerite> I want to do some IFD stuff — specifically, use builtins.readFile on a derivation. How can I do this? Just doing `builtins.readFile foo` says "cannot read /nix/store/...-foo, since path /nix/store/...-foo.drv is not valid"
cybrian has joined #nixos
<Stammon|> Is there someone successfully running uim on nixos? I've got fcitx running, but now I want to replace it with uim. All my applications completely ignore uim.
<elvishjerricco> sphalerite: I don't know if you can `readFile` a derivation. I know you can `import` from one
JosW has quit [(Quit: Konversation terminated!)]
vcunat has joined #nixos
<sphalerite> elvishjerricco: so I have to convert the file to a nix expression containing the string of its contents? What a pain
<ryantrinkle> sphalerite: reading the acutal .drv isn't right
<ryantrinkle> it should probably be reading derivation.outPath
<ryantrinkle> though i'm a bit surprised that didn't happen automatically
<sphalerite> ryantrinkle: it's trying to read the out path correctly
nix-gsc-io`bot has joined #nixos
<elvishjerricco> Looks like I was wrong.
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/f38560a17b8 (from 6 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<clever> sphalerite: what about builtins.readFile "${foo}" ?
nix-gsc-io`bot has quit [(Client Quit)]
<elvishjerricco> Here's a silly example that works
<sphalerite> note that the first path in the error message is the out path, the second one is the drv
<elvishjerricco> nix-build -E 'with import <nixpkgs> {}; runCommand "foo" {name=builtins.readFile (builtins.toFile "bar" "baz");} "echo $name > $out"'
akfp has quit [(Read error: Connection reset by peer)]
<sphalerite> clever: same error
<elvishjerricco> That exact command line ran for me
<elvishjerricco> oh wait you were responding to clever. my bad
akfp has joined #nixos
<sphalerite> elvishjerricco: I don't think toFile involves a derivation though
<elvishjerricco> I think it does
<elvishjerricco> Oh you may be right
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 5 new commits to master: https://git.io/vbZKK
<NixOS_GitHub> nixpkgs/master d7d8b76 Peter Simons: LTS Haskell 9.16
<NixOS_GitHub> nixpkgs/master 1e027f1 Peter Simons: hackage-packages.nix: automatic Haskell package set update...
<NixOS_GitHub> nixpkgs/master 8737c96 Peter Simons: haskell-Cabal: update overrides for new 2.0.1.1 release
NixOS_GitHub has left #nixos []
<elvishjerricco> urgh
<sphalerite> huh, it works substituting writeText for builtins.toFile though
<sphalerite> maybe it's failing to build the derivation?
<clever> sphalerite: i think its that readFile doesnt force the derivation to build
<sphalerite> ooooh it just refuses to build stuff from nix-instantiate --eval
<sphalerite> I suppose that makes sense
<clever> sphalerite: readFile doesnt trigger the building, but import from derivation does
<sphalerite> clever: yes it does trigger it, it just won't happen with nix-instantiate --eval
<clever> amd writeText is just another derivation that properly depends on it
TweyII has quit [(Ping timeout: 248 seconds)]
nevermind has joined #nixos
bennofs has quit [(Quit: WeeChat 1.9.1)]
nevermind is now known as Guest99960
jgeerds has joined #nixos
roberth has quit [(Ping timeout: 260 seconds)]
<sphalerite> so nix-instantiate --eval fails with that error message but nix-build doesn't (although the thing I'm trying to build isn't a derivation so it ends up failing later on)
dywedir has quit [(Remote host closed the connection)]
tempeh has joined #nixos
Mic92 has joined #nixos
roberth has joined #nixos
<sphalerite> With a Haskell program, I'm getting `<stdout>: commitBuffer: invalid argument (invalid character)` in a nix build and in a pure nix shell, and it works fine in an impure nix shell. Which env vars might cause this difference?
<Stammon|> So there is nobody around using uim?
civodul has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-17.09: https://git.io/vbZiR
<NixOS_GitHub> nixpkgs/release-17.09 561425b Vladimír Čunát: nvidia-x11: 384.90 -> 384.98...
NixOS_GitHub has left #nixos []
<sphalerite> tilpner: it sounds like you reimplemented this https://github.com/lheckemann/nix-prefetch
slyfox_ is now known as slyfox
jb55 has quit [(Ping timeout: 248 seconds)]
<sphalerite> Stammon|: ask your specific question rather than asking if anybody uses xyz. You're just increasing latency for solving your problem, and potentially excluding people who can help you in spite of never having touched uim.
tempeh has quit [(Ping timeout: 260 seconds)]
<sphalerite> I need to add that to…
<sphalerite> !factoids
<{^_^}> Have a helpful Nix factoid? Send a PR! https://github.com/grahamc/ofborg/blob/master/factoids.toml
<Havvy> Your factoids DB isn't modifiable from IRC?
<gchristensen> it could be if someone wanted to make it so
<Stammon|> sphalerite: you are right, giving a more specifig problem descripion will help solving the problem.
<sphalerite> Havvy: Have a helpful improvement for our bot? Send a PR! https://github.com/grahamc/ofborg/
<sphalerite> :D
jmeredith has joined #nixos
ssmike has quit [(Ping timeout: 258 seconds)]
cybrian has quit [(Read error: Connection reset by peer)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/d8787a8aaca (from 3 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
<Havvy> sphalerite: I've my own coding hands tied with getting the Rust reference into a usable state.
<Stammon|> So more specifically: I'm starting uim-xim and and uim-toolbar-gtk-systray in my .xsession. Also Im exporting the GTK_IM_MODULE, the XMODIFIERS and QT_IM_MODULE Environment variables(they are set in the environment). However no application seems to accept uim as the input method, as no application shows the uim input window.
cybrian has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vbZXY
<NixOS_GitHub> nixpkgs/master 94dbb3a Tuomas Tynkkynen: linuxPackages.phc-intel: Only works on x86...
NixOS_GitHub has left #nixos []
georges-duperon has quit [(Ping timeout: 260 seconds)]
<Stammon|> Someone told me that on other distributions it is sometimes necessary to run "gtk-query-immodules-3.0 --update-cache" to make uim work. This changes the systems global state which ,I think, is against the design of nixos. Also it isn't available on nixos
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<woffs> sphalerite: LANG=en_US.UTF-8
griff_ has quit [(Quit: griff_)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
<sphalerite> I've finally tried X on my chromebook after 6 months of owning it and 1 month of having nixos on it. It works!
griff_ has joined #nixos
<sphalerite> woffs: nope, doesn't help
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
<woffs> sphalerite: maybe LC_something too
<sphalerite> LC_ALL=en_US.UTF-8 also doesn't help
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
orivej has quit [(Ping timeout: 240 seconds)]
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
Isorkin has quit [(Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)]
griff_ has quit [(Client Quit)]
Synthetica has quit [(Quit: Connection closed for inactivity)]
griff_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 5 new commits to release-17.09: https://git.io/vbZ1o
<NixOS_GitHub> nixpkgs/release-17.09 a8b76c4 Vladimír Čunát: nvidia_x11_legacy340: patch to support kernel 4.14...
<NixOS_GitHub> nixpkgs/release-17.09 422f786 Vladimír Čunát: nvidia_x11_legacy304: 304.135 -> 304.137...
<NixOS_GitHub> nixpkgs/release-17.09 120ebc0 Vladimír Čunát: nvidia_x11_legacy304: fix build with kernel 4.14...
NixOS_GitHub has left #nixos []
griff_ has quit [(Client Quit)]
ilja_kuklic has joined #nixos
griff_ has joined #nixos
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
<woffs> sphalerite: and LANG=de_DE.UTF-8 ? just in case ...
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
<sphalerite> woffs: nope
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
roberth has quit [(Ping timeout: 248 seconds)]
griff_ has quit [(Client Quit)]
griff_ has joined #nixos
<sphalerite> gchristensen: made a factoids PR
griff_ has quit [(Client Quit)]
tempeh has joined #nixos
jgeerds has quit [(Quit: Leaving)]
<gchristensen> nice wiki links
<gchristensen> I'll merge in ~1hr
luigy has left #nixos []
<sphalerite> thanks :D
tempeh has quit [(Client Quit)]
<sphalerite> although the links themselves could be prettier.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c closed pull request #32210: wrapGAppsHook: use it for some more packages (master...gapps) https://git.io/vbLdw
NixOS_GitHub has left #nixos []
AllanDaemon[m] is now known as AllanDaemon
townsend has quit [(Ping timeout: 258 seconds)]
pierrec_ has quit [(Quit: pierrec_)]
dan_b has joined #nixos
pierrec_ has joined #nixos
pierrec_ has quit [(Client Quit)]
Mateon3 has joined #nixos
phdoerfler has quit [(Quit: Leaving.)]
<tilpner> sphalerite - Yes, that would have been nicer, if it was packaged c.c
<sphalerite> >.>
Mateon1 has quit [(Ping timeout: 260 seconds)]
Mateon3 is now known as Mateon1
leat has quit [(Quit: WeeChat 1.9.1)]
jensens has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c closed pull request #32346: radare2: 2.0.1 -> 2.1.0 (master...update/radare2-2.1.0) https://git.io/vbZJw
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vbZSd
<NixOS_GitHub> nixpkgs/master a86d746 Tuomas Tynkkynen: thermald: Only works on x86...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 3 new commits to master: https://git.io/vbZSj
<NixOS_GitHub> nixpkgs/master d75594e Francois-Rene Rideau: gambit: 4.8.8-300db59 -> 4.8.8-415-g29ed48bb
<NixOS_GitHub> nixpkgs/master 6293517 Francois-Rene Rideau: gerbil: 0.12-DEV-777-gd855915 -> 0.12-DEV-836-gcde6802
<NixOS_GitHub> nixpkgs/master b04040c Michael Raskin: Merge pull request #32329 from fare-patches/gerbil...
NixOS_GitHub has left #nixos []
cybrian has quit [(Read error: Connection reset by peer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vbZ9o
<NixOS_GitHub> nixpkgs/master 53bf3cc Tuomas Tynkkynen: pipelight: Only works on x86...
NixOS_GitHub has left #nixos []
<sphalerite> woffs: it was LOCALE_ARCHIVE that was missing
jensens has quit [(Ping timeout: 250 seconds)]
phreedom has quit [(Remote host closed the connection)]
mkoenig has quit [(Ping timeout: 255 seconds)]
ssmike has joined #nixos
jb55 has joined #nixos
<DIzFer[m]> anyone awake that can help me debug what's probably a silly mistake on a package? I'm trying to substituteInPlace in an installPhase, but I'm consistently getting an Operation not Permitted with it
<puckipedia> egh. I've been struggling for multiple days to get my multi-GPU multi-screen setup to work and I just can't ...
<puckipedia> I have two screens, HDMI1 and DP1, on an intel GPU, and they work fine for all intents and purposes, even when using the nixos monitor configuration thing ... but then I try to add a third screen, HDMI-1-1, on the other GPU
mkoenig has joined #nixos
pSub_ has quit [(Remote host closed the connection)]
ati-radeon has joined #nixos
pSub has joined #nixos
pSub has quit [(Changing host)]
pSub has joined #nixos
orivej has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar opened pull request #32358: gnome3.gnome_online_accounts: enable more backends (master...goa-last.fm) https://git.io/vbZQl
NixOS_GitHub has left #nixos []
<ati-radeon> I just bought a second-hand video card so I could use my new 4k display, it is an ATI Radeon HD7870 XT Boost, which apparently does not work with the "ati" driver like my previous ATI Radeon HD5850 was able to do
mkoenig has quit [(Remote host closed the connection)]
jacob has quit [(Quit: Lost terminal)]
<ati-radeon> So I tried "amdgpu_pro" instead, which failed to build due to xfont missing
<ati-radeon> Then I tried "amd_unfree", which too failed to compile
hiroshi has quit [(Ping timeout: 248 seconds)]
mkoenig has joined #nixos
<ati-radeon> Does anybody else has a similar video card?
<DIzFer[m]> shouldn't there be a "radeon" driver?
<vcunat> "ati" is the free one
<vcunat> that might be preferable, or without any specified (probably ending up the same)
ris has joined #nixos
<DIzFer[m]> oh
<DIzFer[m]> why doesn't it work then? it should AFAIK
<vcunat> and there's free "amdgpu" - actually the best free choice probably (I'm not sure)
<vcunat> "ati" is probably just for the older cards now
<akfp> how should the ROCK kernel (modified 4.9) which is used by the ROCm project (AMD hetregeneous computing thing) be packaged?
<vcunat> ati-radeon: if you want proprietary one, did you use the default kernel branch? (4.9)
adamt has quit [(Ping timeout: 255 seconds)]
hiroshi has joined #nixos
<ati-radeon> vcunat: I do not mind which version I use, as long as the hardware works properly, I have not tried a specfic kernel version
<vcunat> ati-radeon: and which nixos version?
<ati-radeon> vcunat: But I was unable to build any other than "ati"
hiratara has quit [(Ping timeout: 255 seconds)]
<ati-radeon> vcunat: 17.09
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 1 new commit to master: https://git.io/vbZ5s
<NixOS_GitHub> nixpkgs/master d3acb06 Orivej Desh: avr8burnomat: rehash...
NixOS_GitHub has left #nixos []
<woffs> sphalerite: never heard LOCALE_ARCHIVE before
<ati-radeon> So, is "radeon", one of the non-free versions, or does it simply not exist? I will try "amdgpu" (without the pro), once the updates are done
hiratara has joined #nixos
Dr8128 has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jtojnar pushed 3 new commits to master: https://git.io/vbZ5u
<NixOS_GitHub> nixpkgs/master 3514af8 Jan Tojnar: gnome3.gnome_online_accounts: clean up
<NixOS_GitHub> nixpkgs/master 29121b6 Jan Tojnar: gnome3.gnome_online_accounts: build devdocs
<NixOS_GitHub> nixpkgs/master 3f45966 Jan Tojnar: gnome3.gnome_online_accounts: enable more backends
NixOS_GitHub has left #nixos []
gerschtli has joined #nixos
sdhand has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<vcunat> ati-radeon: there is "amdgpu" and "amdgpu-pro"
<vcunat> (dash and not underscore)
<joepie91> oh
<joepie91> well there's more than that
<joepie91> there's ati ('radeon'), ati-unfree ('fglrx'), amdgpu, and amdgpu-pro
<joepie91> ati-unfree and amdgpu-pro are proprietary, ati and amdgpu are OSS
<joepie91> exact driver you need depends on your card
phreedom has joined #nixos
<joepie91> I *think* a HD7870 should work with ati/ati-unfree, possibly also with amdgpu or it might be a little bit too old
<vcunat> ati-radeon: if you get build problems after updating the channel, write some more details
<vcunat> I can't reproduce those
<ati-radeon> ati does not work for me (simply crashes with some artifacts) and ati-unfree failed to build
Dr8128 has joined #nixos
<joepie91> ati-radeon: at what point does it crash?
<ati-radeon> joepie91: when my desktop tries to load, when the GUI starts, you will see artificats and shortly after it crashes
Tucky has quit [(Quit: WeeChat 1.9.1)]
berce has quit [(Quit: leaving)]
<ati-radeon> it crashes to the display manager
<joepie91> ati-radeon: with 'desktop tries to load', do you mean *after* logging into a user, or before?
<ati-radeon> after
<joepie91> hmm
<joepie91> okay, then it's not the SDDM issue
<joepie91> ati-radeon: are you trying to run KDE by any chance?
<joepie91> KDE/Plasma
<ati-radeon> nope, bspwm
<joepie91> hrm
<joepie91> ati-radeon: have you checked your journalctl for anything weird>?
<ati-radeon> I saw a clear error related to my driver
<joepie91> I don't know anything about bspwm, but I know that eg. Plasma doesn't like certain ATI cards
<joepie91> ati-radeon: can you gist the error? https://gist.github.com./
<joepie91> err
<joepie91> ati-radeon: can you gist the error? https://gist.github.com/ *
<joepie91> with as much detail as possible
<ati-radeon> joepie91: I will try, but first the upgrade has to finish (first not enough disk space, then the manual JDK thing) and damnit, still not enough space on disk even after nixos GC of 5G
babyflakes has quit [(Quit: Connection closed for inactivity)]
<ati-radeon> joepie91: radeon failed to sync rings (-22)
<joepie91> ati-radeon: is that the *only* error in the log?
<ati-radeon> joepie91: drm.radeon_gem_va_ioctl [radeon]] *ERROR* Couldn't update BO_VA (-22)
<joepie91> okay, I'll need a full gist then :P
<joepie91> to see everything in context
ris has quit [(Read error: Connection reset by peer)]
ris has joined #nixos
<ati-radeon> ok, I will get a USB stick or something to get it out
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej pushed 1 new commit to master: https://git.io/vbZd7
<NixOS_GitHub> nixpkgs/master 4b3df44 Orivej Desh: neard: 0.15-post-git-20510929 -> 0.16
NixOS_GitHub has left #nixos []
griff_ has joined #nixos
<sphalerite> I'm probably more proud of myself than I should be for having set up a bunch of servers which are named after pokemon to display pictures of themselves in the terminal when you log in to them
<joepie91> sphalerite: I'm quite okay with this :P
* sphalerite uploaded an image: 2017-12-05-220854_736x640_scrot.png (31KB) <https://matrix.org/_matrix/media/v1/download/matrix.org/ZTKLqyXUcIwqYgEeJsNjaGIr>
<joepie91> sphalerite: what's this imageToAnsi thing>?
<sphalerite> it doesn't display 100% perfectly but I'm pretty happy with it
<joepie91> heh, neat
simukis has quit [(Ping timeout: 260 seconds)]
<tnks> I just started getting this warning: warning: dumping very large path (> 256 MiB); this may run out of memory
<tnks> is there a likely suspect?
<sphalerite> I wrote a simpler version originally which just used spaces, making pixels 2×1 character cells rather than 1×0.5 https://gitlab.strathtech.co.uk/Society/nixos-config/blob/0fbc4b4088a686e35ba295d5308e5399cbd4e552/motds/pxl.hs
<sphalerite> the code was delightfully small
<tnks> I didn't think I was doing much unexpected.
<sphalerite> tnks: aah that one… could really do with some more detail on the error message. I wonder if there's an issue for it in nix yet
<tokudan[m]> is there a decent way to explore the nixpkgs namespace? nix-instantiate with some options?
<tnks> sphalerite: there is... but I didn't see much progress on it.
<sphalerite> tokudan: nix-repl
<sphalerite> tokudan: nix-repl '<nixpkgs>' + tab completion. Or you can use the general nix tab completion available at least in zsh
<tnks> sphalerite: what paths are being dumped?
<tokudan[m]> Linus: thanks, exactly what i was looking for :)
<tokudan[m]> Linus: I'm not going to switch to zsh ;)
<vcunat> tnks: very often it's some src = ./.;
<tnks> vcunat: okay, I'll look for that kind of thing.
<tnks> vcunat: okay, I might have found it.
<vcunat> (I assume it's about your code, not nixpkgs)
<tnks> I need to filter the source.
<vcunat> that probably won't help
<tokudan[m]> Linus: can i find the packages in there somewhere?
<vcunat> I think filtering happens after importing to nix store
<vcunat> (because all path literals get imported)
<sphalerite> tokudan: for extra fun you could `nix-env -qa --json | jq -r keys[] | fzf` :D
<sphalerite> tokudan: what do you mean by finding them?
<joepie91> ati-radeon: ugh, GPU lockups, hold on
<sphalerite> vcunat: nope, builtins.filterSource is exactly for that purpose
<ati-radeon> joepie91: will do, thanks for looking into it :)
<sphalerite> tnks: often pkgs.lib.cleanSource can just do what you want directly
<tokudan[m]> Linus: trying to find out where in nixpkgs rustPlatform can be found (as mentioned in the nixpkgs manual)
<joepie91> ati-radeon: something you can try is to turn off DPM in the kernel flags; one sec
<clever> vcunat: another fun thing with paths in nix, "${src}/foo.txt" will import all of the src
<clever> vcunat: but "${src + "/foo.txt"}" will import just foo.txt
<sphalerite> tokudan: uh, in nixpkgs…
<sphalerite> it's in the top level
<clever> keep the path as a path as long as possible, and you will import as little as possible
<joepie91> ati-radeon: boot.kernelParams = [ "radeon.dpm=0" ];
<joepie91> ati-radeon: try to rebuild with that setting, and see if it solves the problem; I've had some really bizarre issues with DPM on AMD cards
<joepie91> (dynamic power management)
<ati-radeon> joepie91: I will try that
<tokudan[m]> Linus: hmm... then i guess I don't understand the difference between what nix-repl shows me and what nix-env -qaP display
<joepie91> ati-radeon: if you have an AMD CPU, you may also need to disable the CPU equivalent in your BIOS/UEFI
<joepie91> ati-radeon: it'll be called something-PM
<joepie91> DPM, APM
<joepie91> something along those lines
<ati-radeon> joepie91: I have an i7 920 (overclocked)
<joepie91> I had to disable both to get things to run stable on my system
<joepie91> okay, then you're probably fine on that (hopefully)
<clever> joepie91: what are the symptons of those PM problems? i happen to have amd all over my box
<sphalerite> tokudan: the names available in nix-repl '<nixpkgs>' are the same as those from `nix-env -qaP` without the nix{pkgs,os}. at the beginning
<joepie91> clever: memory corruption primarily leading to all kinds of bizarre crashes as well as GPU lockups, the symptoms changed depending on desktop env, kernel version, Xorg version, exact drivers...
<joepie91> clever: I'd be talking for an hour if I dug up all the symptoms
<joepie91> it was a proper mess
<joepie91> been debugging it for months :P
<sphalerite> tokudan: to work with the same stuff as you get with nix-repl '<nixpkgs>' when using nix-env, you can pass -f '<nixpkgs>' to nix-env. So nix-env -qaPf '<nixpkgs>' should get you the same info as nix-repl '<nixpkgs>'
<joepie91> clever: the one consistent thing was that it was somehow corrupting data in working memory - the exact affected region varied by driver
<tokudan[m]> Linus: then shouldn't "nix-repl> <nixpkgs>" + hitting tab show me "pkgs" somewhere?
<clever> !ping
<joepie91> I can tell you, debugging memory corruption issues is the worst thing :D
<clever> joepie91: that sounds a lot like some of my things
<sphalerite> clever: !pong
jtojnar has quit [(Remote host closed the connection)]
asuryawanshi has quit [(Ping timeout: 240 seconds)]
<clever> joepie91: ive been seeing memory corruption in the framebuffer that runs deep enough that i can capture it in a screenshot
<joepie91> clever: so yeah, if you get these issues, disable APM/DPM on the CPU in the BIOS/UEFI, disable DPM in the radeon driver (fglrx does not allow you to do this), and it will likely magically go away
<joepie91> I still need to complain at AMD about this
<sphalerite> tokudan: putting pkg and pressing tab in nix-repl suggests pkgs.
<clever> joepie91: ive seen heavy signs of the gpu rendering tooltips before the buffer is filled, causing it to render undefined data
<joepie91> clever: you're running fglrx I suspect?
<clever> joepie91: amd-gpu now
cybrian has joined #nixos
<joepie91> clever: also with the visual artifacts?
jtojnar has joined #nixos
<joepie91> because I found that fglrx was the only driver for me that kept the memory corruption contained to the framebuffer, mostly leading to weird flickering in chrome and agmes
<joepie91> games*
<tokudan[m]> Linus: when i have "nix-repl> pkg" and hit tab nothing happens
<joepie91> all the other drivers just wrote random shit into application and kernel memory
<clever> tokudan[m]: nix-repl '<nixpkgs>'
<joepie91> crashing random processes in the process
<clever> joepie91: amd-gpu has the random corruption in one area of the screen after a few months of uptime, and the machine hard-locks if i unplug a monitor
griff_ has quit [(Quit: griff_)]
<clever> joepie91: the closed-source driver hard-locks if i enable any extra monitors
<joepie91> hm, might be a different issue, although DPM is somewhat notorious for being buggy
<tokudan[m]> clever: that did the trick, thanks!
<joepie91> in more than one way
alexteves has joined #nixos
<joepie91> no idea if amdgpu has a flag to disable it
<clever> joepie91: the "ati" driver mostly works, but hard-locks if i unplug a monitor before disabling it
<sphalerite> tokudan: did I write nix-repl without '<nixpkgs>' anywhere?
<sphalerite> my bad
<joepie91> fun :P
<clever> [root@amd-nixos:~/nixcfg]# modinfo amdgpu | grep dp
<clever> parm: dpm:DPM support (1 = enable, 0 = disable, -1 = auto) (int)
<joepie91> right, yeah, that
<joepie91> you want to explicitly disable that
<ati-radeon> joepie91: it crashed again, I will try amdgpu now
<clever> joepie91: also, the default driver from a few months ago, it would vsync after every character in xterm, leading to horid draw rates
<joepie91> ati-radeon: hmm, hold on
ylwghst has quit [(Quit: Lost terminal)]
<alexteves> Is there a way to check which binary caches the nix-daemon is using? Have a script that adds a cache and am trying to figure out when I need to restart the daemon (at least os x, it seems)
<tokudan[m]> Linus: i probably overlooked it. your tips helped me a lot. thanks :)
<joepie91> ati-radeon: probably not related, but nevertheless the workaround here may be worth a try: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1571416
<joepie91> (the agpmode flag)
<clever> joepie91: and now for some fun kernel + nix debugging, can amdgpu.dpm be turned off at runtime!
<ati-radeon> joepie91: Maybe it is a hint, but the fans seems to go awfully fast on boot, which it does not on Windows 7 or with my old card
<clever> [root@amd-nixos:~]# modinfo amdgpu
<clever> filename: /run/current-system/kernel-modules/lib/modules/4.9.57/kernel/drivers/gpu/drm/amd/amdgpu/amdgpu.ko.xz
<joepie91> clever: hah. that's almost russian roulette
<clever> [root@amd-nixos:~]# realpath /run/current-system/kernel-modules/lib/modules/4.9.57/kernel/drivers/gpu/drm/amd/amdgpu/amdgpu.ko.xz
<clever> /nix/store/q7jkkkgvdv936qqf8wygzglrxqlbmfjl-linux-4.9.57/lib/modules/4.9.57/kernel/drivers/gpu/drm/amd/amdgpu/amdgpu.ko.xz
<joepie91> ati-radeon: might just be fan control getting loaded late
<clever> joepie91: ok, the source is inside the linux package
peacememories has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<clever> [clever@amd-nixos:~/apps/linux]$ find -name amdgpu
<clever> ./drivers/gpu/drm/amd/amdgpu
<clever> joepie91: source located
<joepie91> ati-radeon: it's *possible* that it's an overheating problem though
<joepie91> though it'd be very weird
radivarig_ has joined #nixos
<clever> [clever@amd-nixos:~/apps/linux/drivers/gpu/drm/amd/amdgpu]$ grep -r --color dpm | grep MOD
<clever> amdgpu_drv.c:MODULE_PARM_DESC(dpm, "DPM support (1 = enable, 0 = disable, -1 = auto)");
<ati-radeon> joepie91: Would it then not also overheat in Windows 7? I might also try kernel 4.9 (I am on latest now)
<clever> joepie91: and its bound to c variable called dpm in this file
szicari has quit [(Quit: szicari)]
<joepie91> ati-radeon: theoretically possible that the Windows and Linux driver send slightly different initialization commands
<clever> module_param_named(dpm, amdgpu_dpm, int, 0444);
radivarig_ has quit [(Client Quit)]
<clever> joepie91: correction, amdgpu_dpm
hiratara has quit [(Quit: ZNC - http://znc.in)]
<clever> -r--r--r-- 1 root root 4.0K Dec 5 18:29 /sys/module/amdgpu/parameters/dpm
radivarig has joined #nixos
<clever> joepie91: and it lacks the write bit
<clever> so i would have to rmmod to change it
ylwghst has joined #nixos
<clever> joepie91: a quick skim thru the source confirms, the option is only read in several init functions
<joepie91> :(
<clever> it may also leave it in the current state at rmmod, and fbcon makes rmmod difficult
<joepie91> also, wtf is up with missing binary builds for WINE in nixpkgs
cybrian has quit [(Quit: cya)]
<ati-radeon> joepie91: I just tried, amdgpu is worse, it keeps resolution at 800x600, so I will read the link you gave me to see if that fixes the ati driver
hiratara has joined #nixos
<clever> joepie91: what is the value of the hydraPlatforms option on it?
<joepie91> ati-radeon: that might just be a config setting
<clever> absent
ylwghst has quit [(Client Quit)]
<clever> nix-repl> wineFull.meta.hydraPlatforms
<clever> [ ]
<clever> joepie91: aha, this package is specially flag for hydra to ignore
<joepie91> but... why?
<joepie91> these builds take forever...
<joepie91> locally
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] romildo opened pull request #32359: adapta-backgrounds: 0.4.0.6 -> 0.5.1.1 (master...upd.adapta-backgrounds) https://git.io/vbZA6
NixOS_GitHub has left #nixos []
<clever> joepie91: why are you on wineFull rather then wine?
Wieke[m] has joined #nixos
<joepie91> clever: huh? I get the same for wineUnstable
<joepie91> which is what I'm trying to install
sdhand has joined #nixos
sdhand has quit [(Changing host)]
sdhand has joined #nixos
<clever> thats puzzling
<clever> nix says dontDistribute was applied to wineUnstable
<clever> but not how
<sphalerite> What is it about dumping a store path that makes it take a lot of memory?
erictapen has quit [(Ping timeout: 276 seconds)]
<tokudan[m]> clever: kicad has the same issue, as far as i can tell
<clever> sphalerite: you need to hash the NAR form of the entire thing before you know where to put it in the store
<clever> sphalerite: and the old code just did that via a char[]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] gleber opened pull request #32360: parcellite: wrap to add runtime deps (master...wrap-parcellite-runtime-deps) https://git.io/vbZxi
NixOS_GitHub has left #nixos []
<joepie91> sphalerite: basically, it loads the entire thing into memory for hashing :P
<joepie91> clever: still does, no?
<joepie91> or at least still loads into memory
<joepie91> (judging from the memory use I saw)
<clever> it might be fixed in master, not sure
<joepie91> def not in stable though
<joepie91> had nix-daemon eating 2GB recently :P
<clever> nix-daemon isnt usually involved
<sphalerite> It does still print the warnings in unstable anyway
<clever> its nix-store that hashes it, then tells nix-daemon the hash, and streams it over
<joepie91> then I don't know why nix-daemon is ballooning memory :P
<gchristensen> maybe they both do it for good measure
<sphalerite> Maybe dumping and hashing a path after a build, for the registration?
<sphalerite> Oh yeah that too would make sense
<gchristensen> as my grandpa always said, measure twice and trust once
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 opened pull request #32361: gcc: Simplify conifgure flags (master...gcc-simplify-flags) https://git.io/vbZp3
NixOS_GitHub has left #nixos []
<gchristensen> !-A
<{^_^}> You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ#Why_not_use_nix-env_-i_foo.3F for details.
detran has left #nixos ["Killed buffer"]
detran has joined #nixos
<sphalerite> Yay!
<akfp> can nix resume failed downloads of large files? I'm having trouble downloading 150M files on a bad line.
<clever> akfp: not on its own, youll have to manually download it with something else, then nix-store --add-fixed sha256 ./foo.tar.gz
<clever> and that only works for fixed-output things, not nar's
<gchristensen> I have two bugs in {^_^}: one is that since the gateway and the factoid daemons are in the same cargo project, nixops wants to restart the gateway more often than it really needs to, since it rebuilds the gateway a lot. (2) the amqp library is kind of slow, causing multi-second delays in replies :(
<joepie91> it's the happiest bot around, though
<gchristensen> yeah it is!
<clever> "D
<clever> :D
<gchristensen> poor [0__0], always so shocked
<akfp> clever: does it work for github downloads?
gm152 has joined #nixos
<clever> akfp: depends on which fetch function nix is using
Guest99960 has quit [(Quit: Textual IRC Client: www.textualapp.com)]
<sphalerite> clever: for nars it should be doable by downloading them manually and using nix-store --restore though, right?
<clever> sphalerite: you will need to know the original name, and have root
<sphalerite> Related: does nix not preserve signatures when fetching paths from a binary cache?
<clever> sphalerite: --restore is like `tar -xf` and lacks the <hash>-<name> part of the paths
<clever> all signatures are lost after download
<sphalerite> Oh right
<clever> and all hydra's re-sign everything they share
<sphalerite> Ugh that's a pain
<sphalerite> Why would it work like that?
<clever> the signatures look like a tacked-on extra
<clever> and are only checked in one or 2 spots
zraexy has quit [(Ping timeout: 276 seconds)]
<clever> and once verified, they go into the trash
<sphalerite> That's silly. It makes nix-serve so much less practical
<sphalerite> Idk if this is only in unstable, but the nix store can store signatures
<clever> ive also had another idea on improving it further
<clever> if you store the signatures after downloading, you can verify that a given storepath hasnt been tamperd with
<clever> given root, i could trojan every binary in your store, then fix db.sqlite to claim they are perfectly fine
<clever> but if you keep the signatures, you can verify those hashes at a later date, and detect that
<tobiasBora> Hello,
<sphalerite> clever: yeah the store already allows storing sigs, at least in unstable
<sphalerite> So that's already feasible
martinklepsch has quit [(Ping timeout: 246 seconds)]
<sphalerite> Just that imports from bianry caches don't seem to copy the sigs in
pie_ has joined #nixos
<clever> ah
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] caugner opened pull request #32362: phpPackages.mailparse: init at 3.0.2 (master...php-pecl-mailparse) https://git.io/vbZjK
NixOS_GitHub has left #nixos []
<alexteves> Is there a way to check which binary caches the nix-daemon is using? Have a script that adds a cache and am trying to figure out when is it needed to restart the daemon (at least on os x, it seems)
<sphalerite> clever: there is nix copy-sigs though which can retrieve signatures after the fact
pie_ has quit [(Read error: Connection reset by peer)]
pie__ has joined #nixos
Dr8128 has quit [(Ping timeout: 276 seconds)]
<sphalerite> Oh silly me. I did nix copy-sigs --all -s https://cache.nixos.org on my Chromebook. The Chromebook that everything builds locally on because cache.nixos.org doesn't have ARMv7 binaries.
spietz has quit [(Ping timeout: 268 seconds)]
<ati-radeon> joepie91: I will try Ubuntu tomorrow, to see if it does work and what driver it is using to make it work, if it does, which then hopefully helps me figure out what I need to do in NixOS to get it to work. Thanks for all the help you have given me! I am going to sleep now, goodnight
<sphalerite> alexteves: very hacky, but maybe looking into /nix/var/nix/binary-cache-v3.sqlite could be helpful. Not sure though.
<sphalerite> You may also need to remove that file when actually restarting the daemon because it's a bit finicky with that stuff (the file is safe to remove)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] tokudan opened pull request #32363: firefox-bin: 57.0 -> 57.0.1 (release-17.09...ff5701) https://git.io/vbnvk
NixOS_GitHub has left #nixos []
<tobiasBora> Just one question, how can I check if which version of nix I'm using? (nix-unstable/nix-stable)
<joepie91> ati-radeon: good luck, please let me know if you end up figuring it out :)
cement has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rycee opened pull request #32364: Gwrap/parcellite (master...gwrap/parcellite) https://git.io/vbnvZ
NixOS_GitHub has left #nixos []
<sphalerite> tobiasBora: nix-env --version
<sphalerite> If it has pre in it, it's unstable. Otherwise it's stable. That rule should always apply
<sphalerite> Currently, 1.11.x is stable and 1.12 is unstable
<sphalerite> If you don't know you're probably on stable.
<tobiasBora> sphalerite: ok thank you!
griff_ has joined #nixos
<tobiasBora> And 17.09 is stable ?
ma27 has quit [(Ping timeout: 260 seconds)]
ati-radeon has quit [(Ping timeout: 260 seconds)]
<alexteves> sphalerite: thanks, I'll try that
<sphalerite> tobiasBora: 17.09 is a nixos version, not a nix version
<sphalerite> But yes, that's stable
<tobiasBora> sphalerite: oh sorry. So my question is in fact how to know which nixos version I'm running
<sphalerite> nixos-version
<tobiasBora> Simple. Thanks, so I guess that 18.03 is unstable
<sphalerite> Yeah. Again the time-invariant way to tell is whether it has "pre" in it
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat opened pull request #32365: check meta, treewide (master...p/check-meta) https://git.io/vbnfT
NixOS_GitHub has left #nixos []
dieggsy has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 2 new commits to release-17.09: https://git.io/vbnfO
<NixOS_GitHub> nixpkgs/release-17.09 0b1af97 taku0: firefox-bin: 57.0 -> 57.0.1...
<NixOS_GitHub> nixpkgs/release-17.09 66f2d6a Michael Raskin: Merge pull request #32363 from tokudan/ff5701...
NixOS_GitHub has left #nixos []
schoppenhauer has joined #nixos
ryantrinkle has quit [(Ping timeout: 248 seconds)]
joshuaks has joined #nixos
jb55 has quit [(Ping timeout: 255 seconds)]
zraexy has joined #nixos
<tobiasBora> sphalerite: for the nixos, I don't see pre: "18.03.git.66b63d2f5a (Impala)
ryantrinkle has joined #nixos
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
Olgierd has quit [(Ping timeout: 255 seconds)]
drakonis has joined #nixos
<gchristensen> do we really need like 11 years of dutch tax return software?
dan_b has quit [(Ping timeout: 248 seconds)]
<joepie91> gchristensen: mind that Dutch tax return software is a bit weird in that each year has its own version that can't interact with tax returns from any of the previous years
<joepie91> gchristensen: so if you want to be able to access your past tax returns, you *need* the old software
<gchristensen> lol
<joepie91> (at least it used to be that way)
jb55 has joined #nixos
<joepie91> the Dutch tax return software predates the ability to file taxes online, even
<joepie91> you used to get it on a floppy disk, and you'd fill it in
<joepie91> and ship back the floppy
<gchristensen> that is so cool
<joepie91> it is :D but the idea of each year having its own non-interoperable software version lived on for a bit too long, heh
<Ralith> anyone have a home theater config to share?
<Ralith> currently trying to work out how kodi plugins are managed, but that is just for starters