samueldr changed the topic of #nixos to: NixCon 2018 - 25-27 Oct In London https://nixcon2018.org/ || NixOS 18.09 released https://discourse.nixos.org/t/1076 || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon
<Church-> Great question, I hope so
<Church-> Because I don't plan to install it unless I know basic graphics work
<ryantm_> samueldr: You could make it get passed a attrset instead, so that in the future we don't need a new function to keep the api compatible
<samueldr> the installer image is read-only; rebooting isn't an option, don't think everything would be ready to kexec
<clever> samueldr: thats why i prefer installing to a usb, rather then using the iso
<Church-> Fuck
<samueldr> :)
<clever> then you can just nixos-rebuild and changes persist
<samueldr> maybe we need sd-image-but-for-usb-and-x86_64
<Church-> So, install and hope for the best then? God damnit
<worldofpeace> It would be nice to do what opensuse does with their installers
<Church-> clever: Define install to a usb? Have / live on the usb?
<samueldr> worldofpeace: explain, never used openSUSE
<Church-> Not as a live cd
<clever> Church-: yep
<Church-> Sigh.... how'd you do it?
<clever> Church-: just go thru the normal install procedure, but use the blockdev of your usb stick, not a sata disk
<worldofpeace> samueldr: Things can persist in one type of their images
<Church-> Gotcha, guess I'll try that next.
<clever> worldofpeace: ive messed around with that before on gentoo, created a custom initrd that let me tar up the tmpfs and persist it to the next boot
<clever> worldofpeace: for several months, i lived like that, entirely in ram :P
<clever> if i wanted anything to persist, i had to tar it up and put it back on the usb, at shutdown
<samueldr> clever: I'm assuming only the system files were like that, right?
jperras has quit [Ping timeout: 268 seconds]
<clever> samueldr: everything, including $HOME
<samueldr> though since you said USB, maybe not
<samueldr> yeah
<clever> hard drive optional! :P
<{^_^}> [nixpkgs] @volth opened pull request #48244 → [wip] meson: fix cross compilation of systemd → https://git.io/fx8VQ
<worldofpeace> that poor usb
<clever> it was VERY noticable when i accidentally plugged it into a usb 1.0 hub
mekeor has quit [Remote host closed the connection]
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/3cff2fbc0a3 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f84cfdf02a4 (from 89 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<clever> samueldr: one min
<clever> samueldr: line 501 uses a tmpfs for /
<clever> line 524 has another tmpfs for /nix/.rw-store
<clever> and 530 union's the ro-store and rw-store together
* samueldr knows that file quite well
<clever> if you allowed 501 and 524 to refer to disk image files on the usb, or normal partitions, then all changes would persist
<Church-> Ugh guess I need to run nix livecd from ram to install to usb
<Church-> Sigh
<clever> the tricky part, is that you cant just put an if statement into the initrd, because nixos auto-generates a list that goes into a for loop
<clever> Church-: that is a boot option
<Church-> Eyep
<clever> line 62 of the above file adds "copytoram" to the boot menu
<clever> yuck!
<clever> that muates the for loop i just mentioned, so it copies whatever /iso was mounting!
jperras has joined #nixos
<samueldr> yeah, when I was poring over the details of stage-1 I uh, backed away and told myself it could be improved
<clever> not-os has its own stage1 and stage2
<samueldr> didn't look at the stage-2 I think
<samueldr> but stage-1 was useful to figure out mobile-nixos' stage-1
<worldofpeace> Church-: I'd build you an iso, but I wouldn't really trust anyone to do that :P
LysergicDreams has quit [Ping timeout: 252 seconds]
<Church-> Heh thanks! I'm good.
<Church-> I've invested enough time. I'ma fix this
<Church-> What little pride I have from adminspotting demands it
<samueldr> clever: mine's a mess since it's exploded over multiple files as discrete ordered options https://github.com/samueldr/mobile-nixos/tree/master/modules
mayhewluke has quit [Ping timeout: 245 seconds]
<Church-> I fucking swear updating to a new kernel better fucking fix it
<samueldr> well, I say mess, but I should say: wildly different
LysergicDreams has joined #nixos
<Church-> So after I install to usb. What's the best way to update the kernel without building from source?
<clever> samueldr: i also have a 3rd stage-1 using nix: https://github.com/cleverca22/nix-tests/blob/master/haskell-init/hello_world.hs
<clever> samueldr: this one, has zero bash
<samueldr> using haskell you meant?
<worldofpeace> Church-: I would be really careful and try to understand why it was working in pop os already. What kernel were they using?
<samueldr> clever: mine's not using bash ;)
<clever> samueldr: yeah
mayhewluke has joined #nixos
<Church-> worldofpeace: 4.15 I believe
<samueldr> (busybox ash!)
<clever> samueldr: i'm not counting the pre-nix stage1's i did in gentoo
<clever> samueldr: one of my gentoo stage1's did network boot, over wifi
<clever> the fun part, is loading firmware, without udev
Rusty1 has joined #nixos
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/d592f291ed2 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
<Church-> 4.15.0-34-generic
<samueldr> Church-: worldofpeace: the installer image uses latest LTS, which is 4.14
jperras has quit [Ping timeout: 250 seconds]
<samueldr> so it is a possibility that a newer kernel helps
<worldofpeace> samueldr: Yeah we came to that since Church- intel graphics support is alpha there
<samueldr> great :)
<Church-> Great community here.
<clever> samueldr: in theory, you could take my haskell-init idea, and just forkIO every single process on the machine, and run your entire distro from pid 1, lol
jonreeve has joined #nixos
<Church-> Now we just people to do docs. :P
<samueldr> clever: well, don't everyone run their whole distro from PID1
<drakonis_> Church-, told ya
<drakonis_> next year's gsoc should have a project for doing docs
<jonreeve> So, this is really a beginner question, but how can I install a package I've just build with nix-build?
<clever> jonreeve: nix-env -i ./result
<jonreeve> Awesome, thanks!
<worldofpeace> Church-: So `boot.kernelPackages = pkgs.linuxPackages_latest;`
<Church-> Okay thought so
<worldofpeace> Church-: See https://nixos.org/nixos/options.html#boot.kernelpackages
<samueldr> if you needed it for the installer
<worldofpeace> Ahh forgot about that one.
judson has quit [Ping timeout: 252 seconds]
<samueldr> well, it isn't really advertised
<samueldr> oh wait
<samueldr> I didn't check which one I linked I think
<samueldr> and it's staging
<worldofpeace> yeah was looking for the 18.09 one :P
<samueldr> (I misclicked the row in the search results)
<lopsided98> That's the minimal ISO, though
<samueldr> from that statement I undertand the graphical iso was wanted?
<lopsided98> the original problem was that X wasn't starting in the graphical ISO
<samueldr> (sorry, didn't go back up to the problem)
<worldofpeace> having #42846 in 18.09 probably would have been helpful
<{^_^}> https://github.com/NixOS/nixpkgs/pull/42846 (by ambrop72, 14 weeks ago, merged): nixos/xserver: Implement configuration of NVIDIA Optimus via PRIME
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/3cff2fbc0a3 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<lopsided98> There is https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/installer/cd-dvd/installation-cd-graphical-kde-new-kernel.nix for the graphical ISO, but it doesn't look like Hydra builds it
<worldofpeace> I suggested removing that because it wasn't built
* samueldr is thinking about integrating both LTS and Latest into the iso
<drakonis_> yes please do that
<samueldr> other than closure size increase, any unforeseen consequences?
<drakonis_> nothing really?
<worldofpeace> ^
<drakonis_> how much would the closure increase?
<samueldr> (though I think it shouldn't be done before a slimming)
<drakonis_> other than increasing adoption?
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fx8rs
<drakonis_> the closure size goes up and the adoption goes too
<samueldr> the images took on a lot of weight between 18.03 and 18.09
<drakonis_> that was when kde was updated?
<worldofpeace> yep
<samueldr> minimal too IIRC
<drakonis_> why not use a lightweight DE for the images for the graphical install
<worldofpeace> Yeah that's battle waiting to happen :p
<drakonis_> since all you need is a browser and a terminal
<samueldr> I think it's also a "look here KDE works fine"
<samueldr> (though I don't know for sure)
endformationage has quit [Ping timeout: 252 seconds]
LysergicDreams has quit [Ping timeout: 245 seconds]
<worldofpeace> I honestly don't think 1.1 gb is too big compaired to some distros even pushing on 4 gb
<Church-> And this usb is too fucking small somehow
<Church-> Bah
<Church-> Fuck it, time to be dangerous
<Church-> Right to my laptop.
* Church- gets ready to be super pissed.
<samueldr> inb4 "name your axes"
LysergicDreams has joined #nixos
<samueldr> (and it's misleading how far unstable is from 18.09)
<samueldr> size of the latest iso built for each of thoe releases
<drakonis_> Church-, bah humbug?
<Church-> Maybe. Let's see
<Church-> I have a recovery partition at least.
jperras has joined #nixos
<Church-> Alright installing and with the newest kernel
<{^_^}> [nixpkgs] @volth opened pull request #48245 → bootStage1: fix cross build → https://git.io/fx8rF
<Church-> Let's see
<worldofpeace> Church-: did you set `hardware.nvidiaOptimus.disable`
<Church-> I did not. I can do it after the install though
<worldofpeace> Church-: If x isn't working be sure to disable autorun
<Church-> Yep
<Church-> And getting a boot error during nixos-install
<worldofpeace> services.xserver.autorun = false;
<clever> Church-: what error did you get?
<Church-> Never mind fixed it. /boot got deleted somehow
<Church-> Huh...
<Church-> So x11 is running.
<Church-> Now how the hell do I spawn a gui. systemctl start display-manager does nothing
<clever> that should start x11, and launch a login manager
<Church-> It's running.
<Church-> But does nothing
<clever> what about the journal?, `journalctl -u display-manager`
<worldofpeace> ^
<{^_^}> [nixpkgs] @volth opened pull request #48246 → perlPackages.NetDBus: fix cross-compilation → https://git.io/fx8oW
<Church-> One second
<Church-> Restarting it.
<Church-> Which is taking forever...
<clever> Church-: when the gpu drivers on my desktop die, X crashes hard, and if i attempt to restart X, the entire machine crashes, even harder
jperras has quit [Quit: WeeChat 2.2]
<Church-> And there is no nmtui or wpa on a fresh nix install?
<Church-> The fuck
<lopsided98> I've never used X on NixOS - do you need to set an option to enable a display manager?
<Church-> Yes
<worldofpeace> it defaults to lightdm
sir_guy_carleton has joined #nixos
<worldofpeace> assuming you enabled a desktopManager
<samueldr> "Type: list of string (with check: non-empty)s" <- ouch
jasongrossman has joined #nixos
<samueldr> description = "list of ${elemType.description}s";
<Church-> worldofpeace: I enabled plasma and ssdm
<worldofpeace> please just paste all of your current configuration.nix
<samueldr> (in a pastebin)
<Church-> Attempting to get networking going since I didn't enable networking.wireless
<worldofpeace> was about to say that :P
<Church-> samueldr: Course lol
<samueldr> :) just saying in case
<{^_^}> [nixpkgs] @volth opened pull request #48247 → shared-mime-info: fix cross build → https://git.io/fx8oF
<Church-> Bah, so no wpa
<Church-> Guess I have to use ip?
<worldofpeace> samueldr: I think you've explained this issue sufficently before :D
<clever> Church-: wep or wpa?
<Church-> No wpa_supplicant
<Church-> So trying to get eth up. Rather then reinstall
<gchristensen> Church-: there should be wpa_supplicant: https://nixos.org/nixos/manual/#sec-installation-booting-networking
<samueldr> if you haven't enabled any wireless options I believe the only way out is to use non-wireless networking or using the nixos installation media to add the option and "re-install" over
<clever> Church-: you can still connect to open and wep networks without wpa_supplicant
<clever> Church-: ethernet is much simpler, and dhcpcd will auto-detect the moment you insert any cable
<gchristensen> oh, this isn't the install environment?
<samueldr> fresh install
<gchristensen> may be easier to just reboot in to the install environment, it isn't so annoying and nixos-install is idempotent
<samueldr> do hopefully the usb drive hasn't been chucked away
<samueldr> so*
<Church-> Nope. Just gonna do that
<samueldr> you don't re-format, simply mount as previously done, edit, re-run nixos-install
LysergicDreams has quit [Ping timeout: 252 seconds]
<samueldr> I personally do the simple thing and just enable network manager; nmtui is a fine enough interface imho
<gchristensen> same
<samueldr> well, simple UX, not simple code :)
<gchristensen> +1
<samueldr> even here on my workstation without wireless
<clever> samueldr: ive been avoiding NM like the plague :P
lassulus_ has joined #nixos
Supersonic has quit [Ping timeout: 250 seconds]
LysergicDreams has joined #nixos
<samueldr> I mean, look at the simple icon network-manager gives me :) https://stuff.samueldr.com/screenshots/2018/10/20181011211053.png
<Church-> Huh does copy to ram wipe the usb drive?
<samueldr> it shouldn't?
<samueldr> that'd be worrying... did you format it trying to install to if from copytoram earlier?
<Church-> Well apparently it did.
<gchristensen> samueldr: which ... one?
<samueldr> (I think you spoke about it briefly)
<Church-> Nopee
<samueldr> gchristensen: the arrows, wired networking
<samueldr> (probably should use a "dark" icon theme to have lighter tray icons in that darker tray)
<Church-> Well I have networking now at least.
<Church-> One config coming up
lassulus has quit [Ping timeout: 244 seconds]
lassulus_ is now known as lassulus
<disasm> I only use network manager on my laptop and that's just because it's easier to deal with wireless when your jumping across a bunch of networks.
<clever> disasm: i just run wpa_passphrase as root, and restart the service!
<disasm> I still hate it, but nmtui makes it bearable.
<Church-> And there's the hardware config
<worldofpeace> Church-: At this point you just want intel to work (forgot nvidia) ?
<Church-> Eyep
<disasm> clever: maybe when we're in London we'll hack at my laptop wireless setup. I'd love to kill network manager. It's not my favorite tool by far.
Supersonic has joined #nixos
<Church-> And here is the display manager log: https://paste.rs/BaK
<samueldr> I wouldn't let that clever touch a computer of mine... it might end up with a weird setup
<Church-> disasm: I use wicd personally
<clever> samueldr: it may suddenly sprout another 4 ways of booting nixos, lol
<Church-> Man nix is running my cpu hot too. Christ
<samueldr> I already picked my cleverly-made configurations thankyouverymuch
<samueldr> https://gitlab.com/samueldr/nixos-configuration/tree/master/vendor/cleverca22 (and the qemu user shenanigans I have to move to vendor)
<disasm> ooh, that looks cool, I'll have to try it out!
<worldofpeace> Church-: have you tried `hardware.nvidiaOptimus.disable` ?
<samueldr> it is cool!
<Church-> I will as soon as nixos-rebuild stops lagging
<clever> samueldr: oh, here is a random library i made, and then never used, lol: https://github.com/cleverca22/nix-tests/tree/master/ip-magic
<Church-> Just sitting there hunf
<Church-> hung.*
<clever> samueldr: this allows you to manipulate IP's (v4 and v6) in nix
<clever> samueldr: it can do things like generate a PTR record for dns
<Church-> Wanna install top and see the fuck is up
Shados has joined #nixos
<{^_^}> [nixpkgs] @volth opened pull request #48248 → use buildPackages in environment.extraSetup → https://git.io/fx8K0
<Church-> And cursing again. Apologies
silver has quit [Read error: Connection reset by peer]
<clever> samueldr: my original plan, was to auto-generate dns and dhcp config, to assign IP's to macs, and map names to ip, and back
<worldofpeace> Church-: It's just language, people use it differently :)
<Church-> Okay genuinely curious why everything is lagging and running my cpu ragged?
<clever> Church-: it might be low on ram
<worldofpeace> there should be `top`
<Church-> clever: 32GB?
<Church-> Taking all of it?
<samueldr> you said "hot" earlier; are the fans running fine?
<samueldr> might be thermal throttling?
<clever> Church-: not likely, but i have gotten ghc to max out 32gig, lol
<samueldr> (though shouldn't be that bad?)
<Church-> They're running fine
<Church-> Lagging after a reboot and getting dmseg errors about cpu tasking lagging
<Church-> This is amazing
<Shados> I've noticed that if I build something like an iso via `config.system.build.isoImage` using a remote builder, nix will end up copying intermediate products (like a squashfs image) back to the local system, which is a bit wasteful in terms of network and storage. What causes this to happen? Are these somehow incorrectly marked as run-time dependencies of the final iso image derivation, or does Nix need the dependencies to exist locally to coordinate the build of
<Shados> each derivation...?
drakonis1 has quit [Ping timeout: 250 seconds]
<Church-> Alright so nix-env is sorta working
<clever> Shados: nix doesnt know which things are going to build locally, which remotely, and which on a different remote slave
<acowley> I have a builder that needs to download things and I'm getting unknown host errors. I can't remember what I need to do to help it out. Is this ringing a bell for anyone?
<acowley> The build works fine in (a non-pure) nix-shell
<Church-> Christ might as well go back to ubuntu and just use nix/home-manager
<clever> Shados: if you want to force the entire build to happen remotely, you can use tricks like nix-instantiate, nix-copy-closure the drv over, nix-store -r the drv remotely, then nix-copy-closure the result back
<clever> Shados: nix-build --store ssh-ng://remote may also work, but ive not played with it enough yet
<Church-> But yeah nothing works. Just a blinking cursor and nada.
<Shados> Hmmm. It does seem like Nix could plan out the query builders and plan out the build process to avoid this, but I guess that would probably be more complexity than it would be worth...
<Church-> This definitely isn't my graphics card
<Shados> Er, missed a few backspaces there
Synthetica has quit [Quit: Connection closed for inactivity]
<Shados> *could query the builders and plan out the build process to avoid this
drakonis1 has joined #nixos
<clever> Shados: and also nix requires that all runtime deps of a package exist, before the given package can exist
Purple-mx has quit [Ping timeout: 250 seconds]
<worldofpeace> Church-: What steps did you take now?
Purple-mx has joined #nixos
<{^_^}> [nixpkgs] @aanderse opened pull request #48249 → apacheHttpd: add lynx binary path to apachectl → https://git.io/fx86T
<Shados> clever: These *should* be build-time deps really
<clever> Shados: nix doesnt know if its runtime or buildtime until after the build is done
<clever> Shados: and also, what if the remote machine GC's something you where just about to use, but didnt save locally?
<Church-> worldofpeace: Just trying to install a package or run nixos-rebuild causes it to hang
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
<acowley> Oh, hm, building in a nix-shell --pure also works
halfbit has quit [Ping timeout: 252 seconds]
<Church-> And now I can't reach out to the net. The hell
<worldofpeace> Church-: You corrected your networking via nixos-install?
jasongrossman has joined #nixos
<Church-> worldofpeace: Nope, usb was empty. But was able to get dhcp up with ethernet
<Church-> And the usb doesn't even show up in /dev anymore... christ I regret today
<Church-> Well lets try a reboot shall we
<Church-> Always have my recovery partition
<Shados> clever: Neither of those are show-stopping problems. For the latter, Nix already has both gc roots and locks. For the former, Nix would 'just' need to interrogate remote stores about intermediate build outputs? The larger problem would be that you'd have to implement an algorithm to work out when it is worthwhile to move the dependencies to another builder vs. building on the builder that already has the deps, and that'd be painful. As I said, I don't think it'd
<Shados> be impossible to automate a solution, just probably more complexity than worth in doing so...
<clever> Shados: when nix is doing remote builds, it usually disconncts from the slave (and releases all locks) between each derivation
<clever> and thats when the remote box could nuke your things
<acowley> I guess I need to disable the sandbox. How do I do that for a single build?
<clever> Shados: and if you did hold the lock, your running more risks, for when the remote machine goes away, and you loose half of what you had built, because you didnt keep a local copy
<clever> acowley: one sec
<clever> acowley: add the following to your derivation, outputHashAlgo = "sha256"; outputHash = "d20f20e45d519f54fae5c61d55eadcf53e6d7cdbde9870eeec80d499f9805165";
<clever> outputHashMode = "recursive";
<Shados> clever: Yes, the idea would need other changes/additions to Nix as well. Like I said, too much complexity. Although the "remote builder goes away" thing is honestly not a huge problem, if you lose work you lose work. Still going to be faster and smaller (in disk space) most of the time, unless you have some hella dodgy build machines.
<clever> acowley: if you have those 3 attributes, then you will get full network access
<acowley> clever: ah, geese, I saw something like that and couldn't find any reference so ignored it
<clever> acowley: (and your build will fail if your output doesnt have the defined hash)
<Church-> I almost think my ram and swap got changed...
<acowley> clever: the hash is computed of what directory at what point?
<acowley> clever: (thank you)
<clever> acowley: nix will basically `nix-store --dump $out | sha256`, the `nix-hash` util can also do the hashing
<acowley> Oh, interesting
<clever> acowley: and you can also just put a purposely wrong hash, let it fail, and nix will tell you the current hash
<acowley> Wow the odds of this being stable are probably below zero, then
<clever> acowley: when outputHashMode = "recursive";, nix uses a nix-store --dump, which generates a NAR over the dir
<Church-> And no more recovery partition. Sigh.
<clever> when outputHashMode = "flat"; then it just uses the raw sha256 of the file at $out
<worldofpeace> Church-: Try the opposite of this https://www.monkeyuser.com/2018/compromise/
<Church-> Time to grab my thinkpad
<Church-> Heh
<clever> acowley: why exactly do you need network access?
<acowley> It'a bazel being bezel
<acowley> bazel
<worldofpeace> Church-: Why did you try nixos today?
pie___ has joined #nixos
<acowley> It wants to download things, and its fetch command is utterly broken for tensorflow
<Church-> I've been meaning to switch over for a while
<Church-> I love the idea of it
<acowley> If you fetch tensorflow's pip target it starts trying to hit up dependencies of android builds, etc.
<clever> acowley: can you somehow modify bazel to run in offline mode, and to just point it to a dir of pre-fetched things?
<acowley> I don't know how to pre-fetch
<acowley> I might be able to hack it by building it in nix-shell and then inspecting its cache
<acowley> But it's annoying that it has this fetch command that is currently broken for this project
<worldofpeace> Church-: Did you inspect your hardware-configuration.nix and verify it?
<drakonis_> relevant ^^
<jonreeve> Anyone here use ever use node2nix?
<jonreeve> I can't figure out how to get a node CLI tool running in a nix-shell.
<Church-> worldofpeace: No, no I did not
pie__ has quit [Ping timeout: 252 seconds]
<Church-> Time to make a new stick
<jonreeve> I ran node2nix -i node-packages.json, where that file only contains `["elmstatic"]`,
<worldofpeace> Church-: Anything improper in there can be really destructive on install.
<jonreeve> And that successfully generates a bunch of nix files...
<jonreeve> And I can enter a shell then, with `nix-shell`...
<jonreeve> But when I try to run the CLI tool provided by that node package, i.e. `elmstatic`, it says the command is not found.
<jonreeve> What am I missing?
<Church-> worldofpeace: Yep, gonna do it slow and run it by you guys this time
<acowley> I often feel like we should market nix as a kind of baseline for packagers: "If it works here, it will work anywhere!"
<Church-> I swear I think my ram was registering as swap and vice versa
<acowley> It's very rare that the changes I need to make to build something on nix would be wrong to make on another system
<Church-> But that's crazy...
<worldofpeace> Church-: Thanks, we love to use our informed perspective to help
<Church-> Heh aye
<jonreeve> I'm trying the instructions I found on this SO answer: https://unix.stackexchange.com/a/381797/33341
nbardiuk has quit [Ping timeout: 252 seconds]
<Shados> clever: I gave `nix-build --store` a shot trying to build a system tarball, but I just get back 'error: requested operation is not supported by store ssh://<a valid builder>', that traces back to https://github.com/NixOS/nixpkgs/blob/60ae563293ec956d683e3b9a62dbdef46f71437e/pkgs/stdenv/generic/make-derivation.nix#L177. I guess I'll just write a build wrapper around your other suggested approach.
<jonreeve> But I don't know if those are up-to-date instructions
<{^_^}> [nixpkgs] @samueldr opened pull request #48251 → lib/types: enhances separatedString's description. → https://git.io/fx86N
<clever> Shados: you may need to use ssh-ng:// rather then ssh://
<gchristensen> samueldr: ^ nice
<samueldr> gchristensen: the other discussion was derived from that :)
<gchristensen> :)
<worldofpeace> Church-: So to start, was installation more or less successful than you expected it to be? (x wasn't working at all in installer)
<Church-> Less
<Church-> Especially since it seems I can't boot via usb on this laptop anymore now...
<Church-> Lets try two other usbs then
<Ashy> Church-: I ran nixos on a spare machine for a few weeks before putting it on my main machines
<Church-> Yep
<Church-> Okay so it's only the one drive... the heck?
<Ashy> Highly recommend doing that, it's quite different from all the "normal" distros
<worldofpeace> Church-: You did say earlier that it wasn't working correctly after some destructive operation
<{^_^}> [nixos-homepage] @samueldr opened pull request #246 → options: Adds type information to the options list → https://git.io/fx8iR
<worldofpeace> samueldr++
<{^_^}> samueldr's karma got increased to 33
<samueldr> I spent way too much time opining on the colour of the paint instead of painting the damn thing :)
<samueldr> ryantm_: ^
<samueldr> you were successful in nerd sniping me :)
sigmundv has quit [Ping timeout: 252 seconds]
<Church-> Yeah copy to ram
<Church-> Okay new drive is almost ready
<jonreeve> I guess what I'm asking is, what's the nixos equivalent of `npm install -g elmstatic`?
<worldofpeace> samueldr: Now that I know you're susceptible I could make an attempt like ryantm_ in the future :P
<samueldr> I try not to get engrossed, but I knew that one was simple :)
<samueldr> (I often look, which is a bad idea)
<worldofpeace> But I might give my self away early on with the pinging and all
<samueldr> ah, found it
<samueldr> jonreeve: someone had success with `npm config set prefix '~/.npm-global'` https://logs.nix.samueldr.com/nixos/2018-08-28#1518812;
<samueldr> though what I personally do is not use -g
<samueldr> and `nix-shell -p nodejs` and then create a new temporary project only to run node_modules/.bin/whatever-exe
<samueldr> (don't have a full example ready, and it's been a while since I did that)
LysergicDreams has quit [Ping timeout: 250 seconds]
LysergicDreams has joined #nixos
o1lo01ol1o has joined #nixos
<Church-> Okay nixos livecd part 2
<Church-> Electric boogaloo
<drakonis_> huzzah
<drakonis_> but run it with nomodeset ty
<drakonis_> for ezpz startup
<worldofpeace> ^
<jonreeve> samueldr: thanks, I'll try that. The best I can get so far is "could not find elm compiler elm-make--is it installed?"
<jonreeve> But I definitely have it instalaled
<jonreeve> *installed
andersk has joined #nixos
<Church-> Okay my hardware config look normal? https://paste.rs/sKQ
<worldofpeace> Two "/"
<worldofpeace> no swapDevices
<Church-> That's
<Church-> .
<Church-> Odd.
<Church-> Config.nix is here: https://paste.rs/wGn
<Church-> So how to fix this... hmm.
<worldofpeace> Everything is mounted correctly, you did 'swapon'
<Church-> Yeah just did swapon and reran nixos-gen
<Church-> So swap is there.
<Church-> Still a second fs though...
mvnetbiz has quit [Ping timeout: 245 seconds]
<worldofpeace> UEFI or BIOS ?
<worldofpeace> That looks like an like an esp
<Shados> clever: ssh-ng:// sort-of works... with nix-build it builds it on the remote, leaves it there, and prints the store path. With `nix build` it does the same, except doesn't print the store path. So I guess I still need to wrap it to nix-copy-closure the result back. Is there a way to get the `nix build` to also report the path?
<worldofpeace> Ahh UEFI (didn't read the config.nix)
<worldofpeace> can you paste the output of `lsblk` and `blkid`
<worldofpeace> Also can you get the current `hardware-configuration.nix` on the installed system? Just to see what destruction happened :D
<Church-> I can not, already over wrote. Sorry
<worldofpeace> Ok, I'm assuming that it tried to install root to your esp too :(
<Church-> Maybe
<Church-> lsblk and blkid
<worldofpeace> Please mount /dev/sda3 to /mnt/boot and check if it's still alive
<jasongrossman> NP. I've been trying to use the exwm window manager, with a very simple NixOS configuration, and I get all sorts of bugs - all sorts of things that don't work the way the manual says they should. The reason that's strange is that I can't find anything on the web that suggests that exwm is particularly buggy. Anyone know whether there's any interaction with NixOS?
<Church-> Sure one sec
<Church-> worldofpeace: Already mounted there
<Church-> Empty but mounted
<worldofpeace> Empty? So a complete wipe of /dev/sda is fine right
boomshroom has joined #nixos
<boomshroom> !
<boomshroom> Hello!
<boomshroom> I asked earlier and got an answer, but I forgot and didn't get around to doing it until now, but I'm trying to get Steam working again.
<jasongrossman> Hello boomshroom.
<boomshroom> It's saying "glXChooseVisual failed"
<worldofpeace> Church-: I would just repartiton if you haven't already. Just be sure to create the esp correctly and mount it right as well. https://nixos.org/nixos/manual/index.html#sec-installation-installing
<clever> Shados: if you use `nix-instantiate` locally, you can get the final output path in a few ways
<boomshroom> Last time I asked, I was told to delete the runtime and have Steam redownload it. I deleted the 2 ubuntu folders and steam.sh and had Steam reinstall. It doesn't seem to have worked.
<clever> Shados: nix-instantiate -E 'with import <nixpkgs> {}; "${hello}"' just gives you the path of a drv, without building it
<clever> Shados: nix-instantiate file.nix -A attr, then nix-store --query --binding out /nix/store/foo.drv gets you the $out of something
<o1lo01ol1o> clever: you'll be thrilled to know that I got Hydra running and cloning my project.
<clever> o1lo01ol1o: nice
<o1lo01ol1o> clever: yes, it was due to user error in my hydra fork
<clever> ah
<Shados> clever: Yeah, that works. Thanks for your help, should save me a nice chunk of time and disk space, as I'm building a bunch of images for something currently
<o1lo01ol1o> in anycase, are there any examples around of how to write nixexpressions that hydra can understand? I currently just have a shellHook = '' nix-build -etc” in my hydrabuild.nix but it doesn't look like it does what hydra expects
<clever> o1lo01ol1o: generally, you have a release.nix, that contains a set of derivations, without any shell hooks, such that you can nix-build release.nix -A thing
<Church-> worldofpeace: So just remake /mnt/boot and remount /dev/... ?
gspia has joined #nixos
<o1lo01ol1o> kk
<o1lo01ol1o> thanks!
<Church-> Did that, /mnt/boot is there, /dev/sda3 is mounted, /mnt/boot is still empty however
orivej has quit [Ping timeout: 252 seconds]
<worldofpeace> Church-: Partiton setup looks good, . Just rerun `nixos-generate-config --root /mnt` and verify it
<boomshroom> Anyone have Steam working recently?
<clever> boomshroom: yeah, but i havent updated my channel in a bit
<boomshroom> So you're saying I might need to rollback?
<clever> [clever@amd-nixos:~]$ nixos-version
<clever> 18.09pre150708.083220867c7 (Jellyfish)
<clever> boomshroom: you could maybe try a bisect on nixpkgs, to find out when it broke
<clever> it is working on the above rev
<boomshroom> I'm currently on 19.03pre154487.0a7e258012b (Koi)
<clever> oh wait, steam is in nix-env!
<clever> so it doesnt have any relation to the above rev
<worldofpeace> Church-: From then on please ensure that you have the proper network configuration.
<boomshroom> You use a separate channel for nix-env?
<clever> it uses the same channel, but it doesnt update every time i nix-channel --update
LysergicDreams has quit [Ping timeout: 268 seconds]
<clever> so the steam is potentially older
<boomshroom> I don't bother with nix-channel --update. I don't even have any user channels.
<clever> i only have nixos-unstable on root
ajs124 has quit [Read error: Connection reset by peer]
<boomshroom> Same.
<Church-> worldofpeace: Yep verified and network is good
<clever> boomshroom: just nix-env -iA'd steam from the rev i previously stated, and it still works
<worldofpeace> Church-: Can you paste then one more time so it's certain :D
LysergicDreams has joined #nixos
<Church-> Just started.
<Church-> Welp
<Church-> I didn't load from ram this time.
<Church-> So my usb is good at leasr.
<drakonis_> are things working?
<Church-> Let's see. Installing rn
sb0 has quit [Ping timeout: 245 seconds]
sb0 has joined #nixos
rprije has quit [Read error: Connection reset by peer]
rprije has joined #nixos
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
<Church-> And we're booting...
<drakonis_> noice
<boomshroom> Hmm... I checked out the commit you gave and built the steam version from it, but it's giving me the sail failure.
<clever> boomshroom: the problem might be your xorg opengl stuff then, what is the failure?
<Church-> And now it's hanging directly after starting x11 server
<boomshroom> `glXChooseVisual failedMain.cpp (326) : Assertion Failed: Fatal Error: glXChooseVisual failed`
<clever> boomshroom: does glxgears work? what fps does it get?
<boomshroom> Whatever version of glxgears that was installed on my machine runs. How to I view the FPS?
<clever> boomshroom: it prints fps to stdout at regular intervals
* Church- goes back to the livecd
<boomshroom> 60 FPS
<clever> boomshroom: sounds like everything works
<boomshroom> Very consistent
<worldofpeace> Church-: That's because you have `services.xserver.autorun = true;` and x doesn't work
<clever> boomshroom: thats vsync, which means the gpu drivers are generally working
<clever> boomshroom: reverse to what you would expect, 300 fps means the gpu drivers are not working
<Church-> Bollocks
<Church-> Not a biggie. Quick reinstall and check
<worldofpeace> Church-: I think you can do `systemd.mask=display-manager.service ` on the kernel
<Church-> Which does what?
<clever> stops systemd from running that service
<worldofpeace> Church-: masks `display-manager` service so x doesn't start automatic
<Church-> Gotchaa
<worldofpeace> Then you can change the config in the running system
<Church-> worldofpeace: Con.nix - https://paste.rs/d10
<Church-> Oh doy
<worldofpeace> :P
<Church-> Hard - https://paste.rs/zN0
<worldofpeace> Church-: Sorry I wasn't clear. `services.xserver.autorun = true;` is what you want. systemd.mask=display-manager.service is for kernel command line
<worldofpeace> Hah `false` not true
<Church-> Gotchaaa. services.xserver autorun = false; Anything else?
<worldofpeace> Probably want `hardware.nvidiaOptimus.disable` too. (it blacklists the nvidia card among other things)
<worldofpeace> Looks good
mayhewluke has quit [Ping timeout: 246 seconds]
<Church-> Alright let's hit it
mayhewluke has joined #nixos
<Church-> worldofpeace: Okay I'm up and running.
<worldofpeace> Church-: any errors in journal after starting `display-manager.service`
<Church-> Haven't started it yet
<Church-> Hold on
<Church-> worldofpeace: Immediate hang
<Church-> System is frozen
<Church-> Rebooting
<drakonis_> :|
<worldofpeace> Weird that the installer doesn't do that.
<Church-> Not sure if I did this with the nomodetest installer now.
<Church-> Hmm
<worldofpeace> You can still view the journal from the last boot I suppose
<Church-> Let me check if i915 driver is there
endformationage has joined #nixos
<Church-> worldofpeace: Nothing about display
worldofpeace has quit [Remote host closed the connection]
<Church-> Seems i915 is loaded from dmesg
worldofpeace has joined #nixos
<worldofpeace> back :)
<Church-> And froze again starting it
<worldofpeace> You should paste the log now since it's probably different
<Church-> Let me check, there wasn't a log last time
isHavvy has joined #nixos
<Church-> worldofpeace: Just paste journalctl -xe?
PolarIntersect has quit [Ping timeout: 244 seconds]
NickHu has quit [Ping timeout: 244 seconds]
ashkitten has quit [Ping timeout: 244 seconds]
nbathum has quit [Ping timeout: 244 seconds]
<worldofpeace> Church-: I think `journalctl -b1 -u display-manager.service` will show last boots
<Church-> Ah one sec
PolarIntersect has joined #nixos
aiwakura has quit [Ping timeout: 244 seconds]
<Church-> worldofpeace: No entries
aiwakura has joined #nixos
acarrico has quit [Ping timeout: 244 seconds]
Havvy has quit [Ping timeout: 244 seconds]
<Church-> Remove -b1 no entries
<Church-> Doesn't seem to be generating configs.
acarrico has joined #nixos
<worldofpeace> Church-: correction `journalctl -b -1 -u display-manager.service`
ashkitten has joined #nixos
<Church-> worldofpeace: Even jist doing journalctl -u display-manager.service gives dquat
<Church-> squat*
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/60ae563293e (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<worldofpeace> ahh journal must be volitile
<Church-> Bollocks
<worldofpeace> Church-: Try `services.journald.extraConfig = "Storage=persistent";`
<Church-> This is an... interesting issue, innit?
<Church-> One sec
<{^_^}> [nixpkgs] @jluttine opened pull request #48253 → nano-wallet: 16.1 -> 16.2 → https://git.io/fx81A
<worldofpeace> that in configuration.nix with `sudo nixos-rebuild switch`
<worldofpeace> to realize it
<Church-> Okay done
<Church-> Run x11 again and then reboot?
<worldofpeace> did it restart `systemd-journald.service` ?
<Church-> Yep
<worldofpeace> ok do that
<Church-> Alright old on a mo'
<Church-> worldofpeace: Still nothing
<Church-> The frack
reinzelmann has joined #nixos
<jluttine> i thought i had a lot of open pull requests for nixos (7) but looking at the total number of pull requests (937) i can feel that some people are having quite a lot of work going through them :D
<worldofpeace> Church-: I'm not sure about this, but you could try the new NVIDIA optimus config here.
<worldofpeace> Church-: Also how new is your machine again? (output of lspci)
<Church-> New
<Church-> Sec
<Church-> worldofpeace: What package is lspci in?
<worldofpeace> pciutils
<worldofpeace> ,locate bin/lspci
<{^_^}> Found in packages: busybox, pciutils
<worldofpeace> yeah
<Church-> Thanms
<worldofpeace> oneliner is `nix run nixpkgs.pciutils -c "lspci"`
<Church-> Weird. Running it twice froze my top
<Church-> worldofpeace: But yeah it's new. Cannon lake processor
<Church-> 6core, bla bla bla
o1lo01ol1o has quit [Remote host closed the connection]
<Church-> worldofpeace: https://paste.rs/h55
<drakonis_> yup its too new
<drakonis_> you don't actually get working graphics until 4.17
<Church-> I'm running 4.18
<drakonis_> oh ok
<Church-> 4.18.12
<drakonis_> fair enough
<worldofpeace> I think you should run a local checkout of nixpkgs with the NVIDIA OPTIMUS commit
<Church-> Yeah I'd be more understanding if buntu and arch weren't also working.
<Church-> worldofpeace: So how do I do this?
<Church-> And also why?
<Church-> Oh doy. For that optimus branch?
<worldofpeace> It's merged just not in 18.09
<Church-> Gotcha so how do I do this?
<Church-> Just add the unstable channel?
hiroshi has quit [Read error: Connection reset by peer]
<worldofpeace> nope, requires some git manipulation
endformationage has quit [Quit: WeeChat 1.9.1]
aiwakura has quit [Ping timeout: 244 seconds]
jeaye has quit [Ping timeout: 244 seconds]
dkibi has quit [Ping timeout: 244 seconds]
<Church-> Ah, so how do I do it then?
aiwakura has joined #nixos
<worldofpeace> finding it :)
jeaye has joined #nixos
<Church-> Thanks thanks. :)
ZeDestructor has quit [Ping timeout: 252 seconds]
hiroshi has joined #nixos
<worldofpeace> Church-: this should be good https://hastebin.com/okadelayoj.txt
<worldofpeace> do that in a directory preferable non-volitile :)
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<worldofpeace> actually we can set nixPath to urls now
<Church-> Yep. Somehow my manifest is broken... hmm.
<Church-> Rollback time
<YellowOnion_> Is there a go-to method for pulling (via git) in some home dir stuff with configuration.nix?
<Church-> And still on gen 1
<Church-> Bollocks
<Church-> Hmm.
<worldofpeace> Did you rebuild switch? That's just to get a local checkout not use it
<Church-> Let me try that, nix-env is failing due to a bug in a non existent manifest
<Church-> Okay, let me check it out
astronavt has joined #nixos
Rusty1 has quit [Quit: Konversation terminated!]
astronavt_ has joined #nixos
drakonis_ has quit [Read error: Connection reset by peer]
<Church-> worldofpeace: Done
astronavt has quit [Ping timeout: 252 seconds]
<worldofpeace> Church-: great then you should try this https://hastebin.com/arifebizoy.bash
<worldofpeace> the `BusId` is from the output from lspci
<Church-> Gotcha
<worldofpeace> !!! also be sure to remove hardware.nvidiaOptimus.disable
<colemickens> Is anyone familiar with meson and "wraps" ?
<colemickens> I'm trying to build something that relies on fmtlib, but fmtlib needs a wrapper to work with meson.
<colemickens> And it looks like it might be failing? I'm guessing Nix blocks access to the network during the build process?
<Church-> worldofpeace: Heh noted. Those pci values are from my lspci output? Or generic?
<Church-> And replace them with mine.
astronavt_ has quit [Quit: Leaving]
jackdk has quit [Ping timeout: 246 seconds]
<worldofpeace> Church-: I took those from your lspci output and normalized them according to the description here https://github.com/NixOS/nixpkgs/blob/f26153754a1b6ac0d72adde9c75e1473463b4dbb/nixos/modules/hardware/video/nvidia.nix#L80 . But I would stil double check :)
<Church-> Yeah looks good.
jasongrossman has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Church-> worldofpeace: Running fine so far.
<Church-> Reboot once done?
<worldofpeace> Yes since `nixos-rebuild boot` doesn't activate it, it sets it as boot default
<Church-> Gotcha
orivej has joined #nixos
dhess has quit [Ping timeout: 252 seconds]
<Church-> worldofpeace: Booted, time to flip the switch
* Church- turns on the x11 death ray
<worldofpeace> :D
<Church-> Ayyyyyy
<Church-> Jesus fucking christ this was an adventure
<worldofpeace> It works?
<Shados> colemickens: if you have Nix's sandbox option turned on, then yes, build processes will not have network access. IIRC it defaults to on under NixOS, but off for Nix itself (so if you're running Nix on another distro, it should be off).
rprije has quit [Ping timeout: 250 seconds]
<worldofpeace> The suspense
<Church-> Yep
jonreeve has quit [Ping timeout: 246 seconds]
<Church-> Can you pm me those two hastebins?
<Church-> Since I will inevtiably break this tomorrow. :P
<worldofpeace> Hah sure I safeguard them
<worldofpeace> And demand someone backports that fix ASAP
<Church-> worldofpeace: Last stupid question, what package is nmapplet and nmtui in?
<Church-> Yeppp
<Church-> Who should I talk to? Willing to offer cash for this.
<worldofpeace> I think `networking.networkmanager.enable` will do
<Church-> Oh yeah. Doy.
<Church-> I'm tired. This has been a day.
<worldofpeace> I'll ask on the pr on github
<Church-> Going to sleep. Ta' I owe you a beer mate
<Church-> Truly do
<worldofpeace> Your welcome (nudges to solicit karma)
Ariakenom has joined #nixos
<jasongrossman> worldofpeace++
<{^_^}> worldofpeace's karma got increased to 4
<worldofpeace> :)
<Church-> worldofpeace++
<{^_^}> worldofpeace's karma got increased to 5
<Church-> worldofpeace++
<{^_^}> worldofpeace's karma got increased to 6
orivej has quit [Ping timeout: 252 seconds]
<Church-> Now I just need to get set up my app configs with home-manager
<worldofpeace> I use it in nixos configuration and it's nice
<Church-> Yep I have a basic config set up. Just need to get it setting up my i3 config and what not
<Church-> Wonder if I can have it pull configs down from github...
Lisanna has joined #nixos
<Lisanna> Is there a viable strategy for having two modules contributing to the same configuration string? e.g., services.udev.extraRules
<Lisanna> i.e., If module A and module B both want to set extra udev rules, what can they do?
LysergicDreams has quit [Ping timeout: 252 seconds]
<Lisanna> Oh, nvm, there's a special "lines" type, that makes them mergable
<worldofpeace> ^ Was about to say
xenog_ has joined #nixos
smolboye has quit [Quit: WeeChat 2.2]
xenog has quit [Ping timeout: 252 seconds]
smolboye has joined #nixos
drakonis1 has quit [Ping timeout: 272 seconds]
drakonis1 has joined #nixos
LysergicDreams has joined #nixos
hyper_ch2 has joined #nixos
slack1256 has joined #nixos
Ariakenom_ has joined #nixos
Ariakenom_ has quit [Read error: Connection reset by peer]
Ariakenom has quit [Ping timeout: 244 seconds]
vasiliy_san has joined #nixos
<colemickens> I have a patch for a package that adds a source file
<colemickens> but it's not available under $src, because thats the unpatched source?
<{^_^}> [nixpkgs] @fpletz merged pull request #48093 → cfssl: allow building on all platforms → https://git.io/fxnJE
<{^_^}> [nixpkgs] @fpletz pushed commit from @edude03 to master « cfssl: allow building on all platforms (#48093) »: https://git.io/fx8Sg
<colemickens> how do I reference it to the output?
<colemickens> I checked `env` in a nix-shell for the package, but nothing seems to point at the patched source location?
<vasiliy_san> Hi all, I need help with installing `mist` package (Ethereum wallet). I see that package is in the packages list https://nixos.org/nixos/packages.html#mist and on github https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/altcoins/mist.nix but I cant install it. Details: https://pastebin.com/wBxLEUee
<vasiliy_san> A ha, and I am using `nixos-18.03` and probably should've been using `nixos-18.09`
<etu> vasiliy_san: 18.09 is recently released
<etu> :)
dhess has joined #nixos
<vasiliy_san> I guess I can google it, but probably you will give me a quick hint how to properly switch to a newer version ?
<etu> vasiliy_san: Update your channel
<etu> nix-channel --list
<etu> If you're on nixos you'll have to run it as root
trevthedev has joined #nixos
<trevthedev> hi
Ariakenom has joined #nixos
<trevthedev> im currently trying to install nixos through ubuntu 18.04
<trevthedev> when trying to generate the config, it says read_file 'proc_swap' - sysopen: Permission denied at /home/trev/.nix-profile/bin/nixos-generate-config line 318
<trevthedev> im running the command straight out of the manual for installing nixos in place of another linux distro
<srhb> trevthedev: No access to /proc/swaps I guess?
<trevthedev> how can i fix that?
<srhb> trevthedev: Are you root?
<srhb> Actually I think it should be world readable normally...
<trevthedev> i ran the generate config file as sudo yes
<etu> trevthedev: ls -l /proc/swaps
<etu> Just curios about the permissions on that
<trevthedev> sudo 'which nixos-generate-config' --root /
<trevthedev> alright
<etu> curious*
<trevthedev> hmm wtf...
<trevthedev> as root:
<{^_^}> [nixpkgs] @nlewo merged pull request #48133 → pythonPackages.atom: init at 0.4.1 → https://git.io/fxcQZ
<{^_^}> [nixpkgs] @nlewo pushed 2 commits to master: https://git.io/fx89y
<trevthedev> /bin/ls: cannot access 'proc/swaps': Permission denied
nD5Xjz has quit [Ping timeout: 268 seconds]
<etu> uh, that sounds weird :D
Diagon has quit [Quit: Leaving]
<trevthedev> yea
<trevthedev> ill deal with this tomorrow, is nearly 3am if it isnt already, gn
trevthedev has quit [Quit: WeeChat 2.2]
ZeDestructor has joined #nixos
nD5Xjz has joined #nixos
brejoc has joined #nixos
leothrix has quit [Ping timeout: 252 seconds]
ThatDocsLady has quit [Remote host closed the connection]
Itkovian has joined #nixos
Synthetica has joined #nixos
ThatDocsLady has joined #nixos
orivej has joined #nixos
mayhewluke has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
<jonge> hi there. when i build some dynamically linked executable on nixos, it IS possible to use a "series of patchelf calls" to make this executable runnable on any linux system, right? i think of throwing all the libs and the executable into a folder, use patchelf to make the executable search for them in its CWD and then make a tarball from it. that is completely doable, right?
hyper_ch2 has quit [Ping timeout: 256 seconds]
drakonis1 has quit [Ping timeout: 245 seconds]
Havvy has joined #nixos
isHavvy has quit [Ping timeout: 252 seconds]
hyper_ch2 has joined #nixos
<Yaniel> jonge: it's usually done the other way but yes
<srhb> jonge: It's doable. Sounds like more work than just copying the closure, though.
<makefu> jonge: since this year there is a autoPatchelfHook
<makefu> it should do just that
<srhb> makefu: How so? That sounds like the other way around.
<jonge> Yaniel: srhb: makefu: The thing is that i am working on a client project and would REALLY like to use nix for the whole building and testing etc. etc. - the problem is that the client would never accept it if i am not able to give him a self-contained tarball that can be used for their existing crufty processes.
<jonge> so i am owning a linux component now and my hope is that they don't care how i build it if in the end something drops out that is 100% nix agnostic and looks like they are used to.
<Yaniel> didn't someone make an appimage-ish thing for nix
<Yaniel> that literally gives you a tarball that you can run anywhere
<jonge> Yaniel: i looked into these, but there is a chance of 0% that the client would accept it.
<jonge> it has to look like the silly stuff they have been building before, unfortunately...
<Yaniel> and they specifically want a binary?
alex`` has joined #nixos
reinzelmann has quit [Ping timeout: 250 seconds]
<Yaniel> I mean nix-bundle doesn't require anything from the host system
<jonge> Yaniel: their current build process looks like a docker image (based on centos 6.0 wtf) that builds the whole project, compiles all the dependencies themselves (although they have no patches on them) and then throws it all into a tarball.
<jonge> this tarball is then picked up by their strangely configured teamcity foo infrastructure etc. and i have to match exactly that.
<Yaniel> can you just give them something with a remotely sane build system that they can build on whatever abomination they want?
slack1256 has quit [Ping timeout: 245 seconds]
<jonge> because then it vanishes in their enterprise infrastructure and i have no control over that. so it would be easier to apply rocket science to my own nix scripts that results in the format they need - compared to discussing with their build system admins and architects.
orivej has quit [Ping timeout: 268 seconds]
<makefu> srhb, jonge: ah the other way round, sorry i misinterpreted that
<joko> Hey, is it possible to add nix channels in nixos?
<srhb> joko: Yes.
<joko> eeem, meant declaratively
<joko> :S
<srhb> joko: All the channels are just nixpkgs from some branch, at some level of testedness
<Yaniel> jonge: sounds like a static binary would be what you want then?
<srhb> joko: "ish" -- by not using channels.
<Yaniel> with just the ELF interpreter rewritten with patchelf
<jonge> Yaniel: that would be the nicest way. but the dependencies are GPL and the product is proprietary, so it would be illegal to distribute a static binary from that
<srhb> joko: I prefer a local git checkout, personally.
<joko> srhb: I meant to declare them in nixos configuration instead of running nix-channel --add
<srhb> joko: Yes, I got that. :)
<joko> srhb: the drawback with pinning is that I need to update the hash of the channel, I would like the update process to be more flexible
<joko> And this is not for the nixos channel, I would like to have additional ones
<srhb> joko: There's a lot of ways to do this. I tend to prefer having the "main channel" (that which is known as "pkgs" to NixOS modules) be a local git checkout.
<Yaniel> jonge: would they accept something like a .rpm
<srhb> joko: And every additional channel is an overlay.
<joko> srhb: so you update revisions and hashes every time?
thc202 has joined #nixos
<Ke> if I am using toFile to create a store, is there a way to make the name of the store exclusively dependent of the file contents?
<Ke> seems to have a dependency on the origin of the string
<srhb> joko: I update them when I want to, using scripts that generate the new definition from nix-prefetch-url and nix-prefetch-git
<Ke> which is ovbiously stupid, as the file is absolutely defined by the string
<joko> srhb: are any of those scripts publically available? :D
<srhb> joko: right now they're in my private config repo I'm afraid, but there are tons of them out there. The usual method for eg nix-prefetch-git is that it can dump a json blob, which you can then builtins.fromJSON i nix
<srhb> in nix*
<joko> right, right
<jonge> Yaniel: i think an .rpm would be great. but that would not be enough. i would need to create everything that they create in their crufty infrastructure. that would be .debs also etc. etc
<jonge> Yaniel: does nix support creating such things out-of-the-nixpkgs or are there any fancy 3rd party projects?
<Yaniel> well deb/rpm is a matter of preference
<Yaniel> the point is that it's a tarball with the fs structure your package needs
reinzelmann has joined #nixos
<jonge> Yaniel: _i_ understand that. and i guess the individual people i work with would understand it, too. but when you have a group of enterprise-process-driven people, it's hard to convince people about "nice fancy new tools like nix", do you know what i mean?
<Yaniel> sure
<jonge> Yaniel: so i hope to get the foot into the door with nix with the stupid plain tarball that is 100% as they like to have it. and then longterm evolve from that...
<{^_^}> [nixpkgs] @srhb merged pull request #48226 → nix-index: 0.1.1 -> 0.1.2 → https://git.io/fx8Yi
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fx8dr
<Yaniel> looks like makerpm is in nixpkgs
<jonge> Yaniel: my hope is that as soon as they give me some baremetal linux machine with access to the git repos, it should be feasible to blow them away with a demo hydra server that executes integration tests on their product on new pull requests. this is something they have never seen.
<{^_^}> [nixpkgs] @srhb merged pull request #48253 → nano-wallet: 16.1 -> 16.2 → https://git.io/fx81A
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fx8dX
drakonis1 has joined #nixos
siers has joined #nixos
srid has quit [Quit: Connection closed for inactivity]
elgoosy has joined #nixos
jasongrossman has joined #nixos
<{^_^}> [nixpkgs] @srhb merged pull request #48079 → pythonPackages.av: 0.4.1 -> 0.5.3 → https://git.io/fxZoG
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fx8Fu
<{^_^}> [nixpkgs] @FRidh merged pull request #48132 → python: update documentation → https://git.io/fxcHK
<{^_^}> [nixpkgs] @FRidh pushed 2 commits to master: https://git.io/fx8F1
nD5Xjz has quit [Ping timeout: 244 seconds]
<{^_^}> [nixpkgs] @srhb merged pull request #48198 → rfc-bibtex: init at 2.2.1 → https://git.io/fxlJu
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fx8Fy
boomshroom has quit [Quit: WeeChat 2.1]
worldofpeace has quit [Ping timeout: 252 seconds]
nD5Xjz has joined #nixos
LysergicDreams has quit [Ping timeout: 244 seconds]
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
LysergicDreams has joined #nixos
jasongrossman has joined #nixos
<Taneb> :( doctest doesn't seem to build with GHCJS which means I can't build some dependencies of reflex-dom without some effort
drakonis1 has quit [Ping timeout: 268 seconds]
<cocreature> Taneb: shouldn’t it be as simple as applying dontCheck to these deps?
<Taneb> cocreature: I count that as "some effort" :P
<cocreature> fair enough :)
<Taneb> And if I'm doing that I'd want to get it into nixpkgs
<{^_^}> [nixpkgs] @periklis opened pull request #48256 → minikube: bump version 0.29.0 -> 0.30.0 → https://git.io/fx8N0
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/6ab21f44861 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
jasongrossman has quit [Ping timeout: 272 seconds]
patrl has joined #nixos
devx has quit [Quit: . .. ...]
devx has joined #nixos
leothrix has joined #nixos
worldofpeace has joined #nixos
LysergicDreams has quit [Ping timeout: 272 seconds]
drakonis1 has joined #nixos
patrl has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @srhb merged pull request #48256 → minikube: bump version 0.29.0 -> 0.30.0 → https://git.io/fx8N0
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fx8xC
<{^_^}> [nixpkgs] @srhb pushed 2 commits to release-18.09: https://git.io/fx8x0
<hyper_ch2> who's using plex? /me eyes sphalerit
<{^_^}> [nixpkgs] @xeji pushed to release-18.09 « nixos/network-interfaces-scripted: fix container networking bug »: https://git.io/fx8xK
<{^_^}> [nixpkgs] @pmiddend opened pull request #48257 → fcppt: 2.5.0 -> 2.9.0 → https://git.io/fx8x6
joseph-gl has quit [Ping timeout: 260 seconds]
sigmundv has joined #nixos
cryptix has joined #nixos
civodul has joined #nixos
<cryptix> hey, can somebody tell me the difference between setting my user shell to /run/current-system/sw/bin/$shell and ${pkgs.$shell}/bin/$shell - they both seem to work but since i'm trying to modify the packge of my shell the current-sys way seems better but maybe my module code is just wrong and now everything is a bit broken somehow... can some1 give me a nice example of modules for zsh or fish? i tried to
<cryptix> browse the wiki page with all the user configs but I got lost in all the repos
Tucky has joined #nixos
<hyper_ch2> cryptix: using /run/c-s/sw7bin/$shell will just use wahtever version is currently loaded in the profile. using the other option will use that exacte same version of the shell
<cryptix> okay - so with the /run/curr.. i could have an unusable system if I don't also include that in my env. good do know.. I should make sure my module overrides the package regardless (like, i want my editor and shell across the system, not just in my user)
<hyper_ch2> in other words, the first one will just use whatever /run/c-s/sw/bin/$shell points to while the second one will use something like /nix/store/[hash]-shell-[version]/bin/shell
<hyper_ch2> if you ls -al /run/c-s/sw/bin/$shell you'll see its store path... depending on the loaded environment it could be e.g. bash 3 or bash 4 (as example)
<cryptix> thanks hyper_ch2 I got it
<sphalerit> hyper_ch2: I tend not to use nonfree stuff like that :p I do use kodi
<hyper_ch2> sphalerit: I see
<hyper_ch2> kodi requires to install a desktop :(
<cryptix> I recently wondered how hard it would be to clone what libreelec is doing on nixos
<hyper_ch2> no idea waht libreelec is
<cryptix> "just enough OS to run kodi" is the tagline
<cryptix> I _think_ it was based on rasbian at one point but never looked that deep into the build process
<cryptix> thy have raspi images and it just boots into kodi, no desktop env or anything
<andi-> depends on java... if we have a JDK/JRE on aarch64 these days it might work ;)
<goibhniu> cryptix: I recently set up a kodi box (not on arm though) ... but it boots straight into kodi, without any desktop
<goibhniu> ... with tvheadend too
<cryptix> goibhniu: good to know - yea having written system nixos configs myself now for servers and i3 desktops I also don't imagine it as beeing to hard
<cryptix> andi-: huh - kodi is java? sigh.. i just knew the plugins where python
* goibhniu is also surprised to hear kodi requires java somehow
<andi-> cryptix: no it is not but the build dpendencies have java as a build dependency somewhere
<srhb> I think it's only a build-time dependency
<srhb> Right..
<cryptix> hehe... just sprinkle some ants in somehwere for the warm and fuzzies.. ;)
<hyper_ch2> I wonder if I should post my nginx plexe reverse proxy config into the wiki
LysergicDreams has joined #nixos
<cryptix> is it all/mostly nix? personally i'm always interested in _how others do_...
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/68e1e0e5feb (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<hyper_ch2> LnL: should I post my nginx reverse proxy config for plex into the wiki?
drakonis1 has quit [Ping timeout: 244 seconds]
drakonis1 has joined #nixos
<{^_^}> [nixpkgs] @volth opened pull request #48258 → perlPackages: cross-compilation fixes → https://git.io/fx4vw
<{^_^}> [nixpkgs] @volth closed pull request #48246 → perlPackages.NetDBus: fix cross-compilation → https://git.io/fx8oW
<{^_^}> [nixpkgs] @volth closed pull request #48241 → perlPackages.LWP: support cross-compilation → https://git.io/fx80R
<{^_^}> [nixpkgs] @volth closed pull request #48242 → perlPackages.XMLParser: fix cross-compilation → https://git.io/fx80M
orivej has joined #nixos
hamishmack has joined #nixos
viric has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @volth opened pull request #48259 → shared-mime-info: fix cross build → https://git.io/fx4fm
<{^_^}> [nixpkgs] @volth closed pull request #48247 → shared-mime-info: fix cross build → https://git.io/fx8oF
<LnL> hyper_ch: dunno, why are you asking me?
<hyper_ch2> LnL: because you're a maintainer
<rawtaz> a role model :)
__monty__ has joined #nixos
<rawtaz> hmm. in https://nixos.wiki/wiki/NixOS_on_ZFS#Encrypted_ZFS it says this feature will come in 18.03. if it's currently in stable 18.09 we could update the text
nD5Xjz has quit [Ping timeout: 250 seconds]
simukis has joined #nixos
<goibhniu> hyper_ch2 do eeet!
<goibhniu> the wiki is a great place for sharing interesting/obscure integration config IMO
ajs124 has joined #nixos
<hyper_ch2> goibhniu: but where?
<hyper_ch2> rawtaz: it has been in there since 18.03 - if you use the zfs Unstable option
nD5Xjz has joined #nixos
<goibhniu> hyper_ch2 pop in to #nixos-wiki
<{^_^}> [nixpkgs] @bendlas pushed 4 commits to master: https://git.io/fx4Ur
<rawtaz> hyper_ch2: okay, i will try to update the text then. thank you!
<hyper_ch2> rawtaz: you're also using native zfs encryption?
<rawtaz> hyper_ch2: it's the boot.zfs.enableUnstable i presume
<rawtaz> hyper_ch2: no, not using zfs in nixos at all right now
<hyper_ch2> rawtaz: yes, that's the option required
<hyper_ch2> becuase encryption is will be included in zol 0.8
<hyper_ch2> and unstable uses (semi-latest) master
<rawtaz> i guess i have to register an account to edit the wiki?
<rawtaz> making it a somewhat fake wiki :P
<hyper_ch2> why would that make it a fake wiki?
<hyper_ch2> no, you don't have to register an account
<hyper_ch2> you could just login with github account
<rawtaz> to me a true wiki is one that everyone can edit without having to login at all. like on wikipedia
<rawtaz> thats the original spirit of a wiki IMO
<hyper_ch2> you have to login on wikipedia
<rawtaz> okay, but if i dont want to login with a github account i need to register to edit, right?
<rawtaz> hyper_ch2: no, you can edit a page without registering or logging in
<rawtaz> anyone can
nD5Xjz has quit [Ping timeout: 244 seconds]
<hyper_ch2> I thought they changed it
<rawtaz> if they did it was just a couple of weeks ago or something like that, i edited a page very recently :)
<rawtaz> do you know if one can change username in the wiki oneself after registration if needed?
<srhb> I think the definition of wiki is irrelevant to our wiki. You can always just take it to mean "that NixOS domain that has wiki in the name" :-)
<rawtaz> hehe yeah
<goibhniu> rawtaz: an earlier incarnation of the wiki got destroyed by bots
<rawtaz> yeah understood
<hyper_ch2> https://en.wikipedia.org/wiki/Wiki -- doesn't say needs to be able to be edited by everyone without registration first
<__monty__> Also, if registration is free it's not really a barrier.
<hyper_ch2> __monty__: there's a cost involved with registration
<{^_^}> [nixpkgs] @Mic92 merged pull request #48224 → coreutils-full: fix cross build → https://git.io/fx8tQ
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fx4kt
<__monty__> It's negligible compared to writing a good contribution though.
<rawtaz> hyper_ch2: no, it doesnt mention it as a requirement, and there probably isnt one either as this is not a defined thing of a wiki so to speak. doesnt take away that the one and original wiki, i'd argue, has that characteristic
<rawtaz> to me it's a given part of a wiki, otherwise it's just like any other documentation system
<rawtaz> each to their own though :)
<rawtaz> __monty__: there's a cost to requiring registration :P
<rawtaz> eitehr way, this is a pointless discussion
<rawtaz> some people dont mind having to register, some do.
<hyper_ch2> "A wiki (/ˈwɪki/ ( listen) WIK-ee) is a website on which users collaboratively modify content and structure directly from the web browser. In a typical wiki, text is written using a simplified markup language and often edited with the help of a rich-text editor."
jasongrossman has joined #nixos
<rawtaz> but the interesting thing is that the ability to edit without an account is leading to misuse, but the ease of editing without an account also leads to moderation. a friend of mine did a test many eyars back where they added an incorrect statement in a wiki article (i think it was about pokemons :P), and it was corrected by someone else within 30 minutes. neither of these seemed to be a moderator
<infinisil> hyper_ch2: rawtaz: -> #nixos-chat
<rawtaz> bah.
orivej has quit [Ping timeout: 246 seconds]
reinzelmann has quit [Ping timeout: 250 seconds]
orivej has joined #nixos
jasongrossman has quit [Remote host closed the connection]
<hyper_ch2> it's not like anyone is asking a nix/nixos related question anyway right now
nD5Xjz has joined #nixos
mayhewluke has quit [Ping timeout: 268 seconds]
mayhewluke has joined #nixos
<CMCDragonkai> it seems like to use ecryptfs, you need to enable security.pam.enableEcryptfs. Without it, all the commands fail because they are looking for the `/run/wrappers/bin/mount.ecryptfs_private` file which won't exist without that option on NixOS.
vasiliy_san has quit [Quit: Connection closed for inactivity]
reinzelmann has joined #nixos
drakonis1 has quit [Ping timeout: 246 seconds]
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/589d270ce44 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
drakonis1 has joined #nixos
<{^_^}> [nixpkgs] @volth opened pull request #48260 → dos2unix: fix cross build → https://git.io/fx4I6
kiloreux has quit [Ping timeout: 252 seconds]
kiloreux_ has quit [Ping timeout: 252 seconds]
silver has joined #nixos
<{^_^}> [nixpkgs] @fgaz opened pull request #48261 → termbox: init at 1.1.2 → https://git.io/fx4Ix
jbgi has joined #nixos
elgoosy has quit [Remote host closed the connection]
lunik1 has joined #nixos
<{^_^}> [nixpkgs] @romildo opened pull request #48262 → deepin.dde-api: init at 3.1.30 → https://git.io/fx4Ll
<lunik1> Hi, I'm trying to install nix with no root permissions. How do I install nix so I can run nix run --store?
<{^_^}> [nixpkgs] @romildo closed pull request #46833 → dde-api: init at 3.1.30 [WIP] → https://git.io/fAyiW
<__monty__> lunik1: A regular single user install doesn't work?
<lunik1> __monty__: I don't have root permissions
viric has joined #nixos
<lunik1> so I can't create a /nix
kiloreux has joined #nixos
kiloreux_ has joined #nixos
<__monty__> lunik1: Hmm, that's a pretty big problem. I think you'll want to ask an administrator to create it for you then. If the store is not in /nix/store you won't be able to use any binary caches. Which means you'll need to build *everything*.
<lunik1> well was running pkgsrc before so I'll live, just wanted to switch to nix since I'm already running nixos elsewhere and it has a couple more thing packaged that I need
<srhb> If you can live with no binary cache for your base store, you can do it with a source build. You could then use nix run --store for everything else to still get binary caches for that.
<lunik1> ok I'll check it out, thank you
bitmapper has joined #nixos
effsquared has joined #nixos
<LnL> hyper_ch2: anybody can edit the wiki I think so add it if you think it might be useful for people
Acou_Bass has quit [Ping timeout: 252 seconds]
<hyper_ch2> LnL: just did
<LnL> :)
<effsquared> Good afternoon. Has anyone here ever tried to override cmake to be build with SSL/HTTPS support?
effsquared has left #nixos [#nixos]
effsquared has joined #nixos
jbgi has quit [Ping timeout: 260 seconds]
<LnL> effsquared: why would you want that, nix builds don't have network access
<Church-> Man nix has so many neat options
doublescale has joined #nixos
<effsquared> LnL: That is a very good point. I did not even think of that. I trying to building Slicer (github.com/Slicer/Slicer), which does some kind of "super build".
<effsquared> LnL: I am fully aware that the idea of a "super build" conflicts with core idea of nix.
xenog_ has quit [Remote host closed the connection]
xenog_ has joined #nixos
drakonis1 has quit [Ping timeout: 252 seconds]
kiloreux_ has quit [Ping timeout: 268 seconds]
kiloreux has quit [Ping timeout: 268 seconds]
drakonis1 has joined #nixos
doublescale has quit [Remote host closed the connection]
Tucky has quit [Quit: WeeChat 2.2]
<pepesza> is the rule about "Make sure libraries build for all Python interpreters" a hard one? I.e. I have a lib that is for python3 only.
jasongrossman has joined #nixos
abcrawf has quit [Remote host closed the connection]
<pepesza> symphorien: awesome, thank you! :)
xenog_ has quit [Ping timeout: 276 seconds]
abcrawf has joined #nixos
<{^_^}> [nixpkgs] @Infinisil merged pull request #48023 → Fix NetworkManager patches with fetchpatch and updated hashes → https://git.io/fxsbm
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to staging: https://git.io/fx43R
LysergicDreams has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @Infinisil merged pull request #45890 → buildbot: Python 3 support and other improvements → https://git.io/fAWKr
<{^_^}> [nixpkgs] @Infinisil pushed 11 commits to master: https://git.io/fx436
LysergicDreams has joined #nixos
<{^_^}> [nixpkgs] @srhb merged pull request #48097 → envdir: init at 1.0.0 → https://git.io/fxnLE
<{^_^}> [nixpkgs] @srhb pushed 2 commits to master: https://git.io/fx43b
<lunik1> doesn't look like building from source is going to work. gcc is too old and there's no package for brotli. is there no way to have a custom store using a binary installation?
<Myrl-saki> lunik1: There is.
<Myrl-saki> lunik1: OTOH, what do you mean brotli won't work?
<Myrl-saki> This eists.
<Myrl-saki> Since 2016.
m0rphism has quit [Quit: WeeChat 2.2]
m0rphism has joined #nixos
<{^_^}> [nixpkgs] @volth opened pull request #48264 → nmap: fix cross-build → https://git.io/fx4sK
<lunik1> Myrl-saki: I'm trying to build nix itself from source, and the distro I'm building on has no brotli package. Sorry for the confusion.
<Myrl-saki> Oh.
<Myrl-saki> lunik1: Are you pretty much bootstrapping Nix?
<lunik1> yes
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/2434a2ee3a2 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
<gchristensen> lunik1: you can pass --store to nix-daemon and all the other nix tools I think, without recompiling
LysergicDreams has quit [Ping timeout: 272 seconds]
EarlDeLaWarr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LysergicDreams has joined #nixos
nbardiuk has joined #nixos
halfbit has joined #nixos
random_yanek has quit [Quit: random_yanek]
random_yanek has joined #nixos
reinzelmann has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @volth opened pull request #48266 → p7zip: fix cross-compilation → https://git.io/fx4nV
simukis has quit [Quit: simukis]
<symphorien> lunik1: do you have user namespaces ?
<{^_^}> [nixpkgs] @Infinisil merged pull request #43865 → futhark: init at 0.6.2 → https://git.io/fNWYn
<{^_^}> [nixpkgs] @Infinisil pushed 6 commits to master: https://git.io/fx4cw
LysergicDreams has quit [Ping timeout: 250 seconds]
LysergicDreams has joined #nixos
<{^_^}> [nixpkgs] @volth opened pull request #48267 → ntp: fix cross-build → https://git.io/fx4CG
<{^_^}> [nixpkgs] @bendlas closed pull request #48090 → chromium/update.sh: don't use remote builders, lots of copying for work → https://git.io/fxZdm
LysergicDreams has quit [Ping timeout: 252 seconds]
LysergicDreams has joined #nixos
cryptix has quit [Ping timeout: 250 seconds]
Mateon1 has quit [Ping timeout: 268 seconds]
Mateon2 has joined #nixos
fragamus has joined #nixos
Mateon2 is now known as Mateon1
LysergicDreams has quit [Ping timeout: 246 seconds]
fragamus has quit [Client Quit]
o1lo01ol1o has joined #nixos
LysergicDreams has joined #nixos
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @bendlas pushed commit from @dtzWill to release-18.09 « chromium: update to 69.0.3497.100 (and others), ran update.sh »: https://git.io/fx4W0
<{^_^}> [nixpkgs] @bendlas closed pull request #47492 → chromium: update to 69.0.3497.100 (and others), ran update.sh → https://git.io/fxv2i
<{^_^}> [nixpkgs] @Infinisil merged pull request #48007 → update Kokkinizita packages → https://git.io/fxsot
<{^_^}> [nixpkgs] @Infinisil pushed 8 commits to master: https://git.io/fx4WQ
<{^_^}> [nixpkgs] @volth opened pull request #48268 → psmisc: fix cross-compiling → https://git.io/fx4Wd
orivej has quit [Ping timeout: 268 seconds]
EarlDeLaWarr has joined #nixos
<shreyansh_k> Hi, I'm trying to add rst support to the Hugo package. It requires only adding path to python's docutils & pygments package in the env. I've tried many approaches like adding the buildInputs, nativeBuildInputs... etc and even trying to use wrapper with mkwrapper and also tried using wrapProgram.
<shreyansh_k> Could somebody show me how to do this?
<shreyansh_k> Nix won't record the python deps as it's path in not stored in the binary after compilation. So, it thinks it's only a build dep.
orivej has joined #nixos
<shreyansh_k> Here is the current nix expression for hugo that I'm using: https://github.com/NixOS/nixpkgs/pull/47600/commits/d4f88f1d0c8b3d80f2b1b9a15a6cb91786be8076
<shreyansh_k> I'm currently trying to wrap hugo like in the case of neovim-qt so that it includes python3Packages.{docutils, pygments} but I'm all out of ideas.
<{^_^}> [nixpkgs] @Mic92 merged pull request #48266 → p7zip: fix cross-compilation → https://git.io/fx4nV
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fx4l6
<{^_^}> [nixpkgs] @Mic92 merged pull request #48268 → psmisc: fix cross-compiling → https://git.io/fx4Wd
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fx4ld
<Myrl-saki> That sounds... complicated.
<{^_^}> [nixpkgs] @volth opened pull request #48269 → screen: fix cross-compiling → https://git.io/fx4lN
<{^_^}> [nixpkgs] @Mic92 merged pull request #48267 → ntp: fix cross-build → https://git.io/fx4CG
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fx48Z
<{^_^}> [nixpkgs] @lopsided98 closed pull request #45763 → sphinx-jinja: 0.2.1 -> 1.1.0, Python 3 support → https://git.io/fAZzr
<{^_^}> [nixpkgs] @lopsided98 closed pull request #39692 → tempita: 0.5.2 -> 0.5.3-2016-09-28, Python 3 support → https://git.io/vpBg9
<{^_^}> [nixos-hardware] @yegortimoshenko pushed 2 commits to master: https://git.io/fx48o
<{^_^}> [nixpkgs] @Mic92 merged pull request #48260 → dos2unix: fix cross build → https://git.io/fx4I6
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fx486
orivej has quit [Ping timeout: 252 seconds]
halfbit has quit [Ping timeout: 250 seconds]
halfbit has joined #nixos
<shreyansh_k> Myrl-saki: don't know... I've just started with nix so maybe I'm doing it all wrong.
<symphorien> shreyansh_k: instead of using python, use python.withPackages(ps: with ps; [docutils])
<symphorien> (if I understand correctly)
<symphorien> hum scratch that
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fx44X
<{^_^}> [nixpkgs] @Mic92 merged pull request #48230 → fastlane: disable update check → https://git.io/fx8ZR
<{^_^}> [nixpkgs] @Mic92 pushed commit from @nicknovitski to release-18.09 « fastlane: disable update check »: https://git.io/fx44S
<{^_^}> [nixpkgs] @Mic92 merged pull request #48269 → screen: fix cross-compiling → https://git.io/fx4lN
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fx44Q
<effsquared> Are there any rules on capitalization? E.g. why is it gnome2.GConf but gnome2.gconfmm ?
<{^_^}> [nixpkgs] @Mic92 merged pull request #48240 → perl-cross: 1.2 -> gitmaster → https://git.io/fx84N
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fx4BW
<{^_^}> [nixpkgs] @Mic92 merged pull request #48236 → rust-bindgen: 0.40.0 -> 0.42.2 → https://git.io/fx8C7
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fx4Rk
<lunik1> symphorien: yes
<{^_^}> [nixpkgs] @Mic92 merged pull request #48245 → bootStage1: fix cross build → https://git.io/fx8rF
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fx4Rm
<symphorien> then in a mount user namespace you can bind mount ~/foo to /nix
<symphorien> then install nix from the binary installer
<symphorien> then use this (bootstrapping) nix to compile a nix elsewhere
<lunik1> aha
<lunik1> could I just keep using the nix from the binary installer?
<symphorien> yes but then you must stay in the mount namespace to use sotfware in then nix store
<lunik1> ok, I think I need to read up on user namespaces a bit. thanks for pointing me in the right direction.
jabranham has joined #nixos
<{^_^}> [nixpkgs] @jtojnar merged pull request #42562 → Use a NixOS module for generating the gdk-pixbuf loaders cache. → https://git.io/f491L
<{^_^}> [nixpkgs] @jtojnar pushed 2 commits to master: https://git.io/fx40A
patrl has joined #nixos
infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
LysergicDreams has quit [Ping timeout: 245 seconds]
hyper_ch2 has quit [Quit: Page closed]
kiloreux has joined #nixos
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/b72998bbfc9 (from 60 minutes ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
kiloreux_ has joined #nixos
LysergicDreams has joined #nixos
jperras has joined #nixos
infinisil has joined #nixos
Ariakenom has quit [Ping timeout: 252 seconds]
infinisil has quit [Client Quit]
<{^_^}> [nixpkgs] @Melkor333 opened pull request #48270 → wpgtk: init at 5.7.4 → https://git.io/fx4u6
infinisil has joined #nixos
<elvishjerricco> symphorien: Why couldn't lunik1 just use the binary installer like normal?
<symphorien> they don't own /nix
<elvishjerricco> Ohh
Mateon1 has quit [Ping timeout: 252 seconds]
<lunik1> while I remember should brotli be added to https://nixos.org/nix/manual/#sec-prerequisites-source ?
<gchristensen> sure
shabius has quit [Remote host closed the connection]
astrofog has joined #nixos
astronavt has joined #nixos
fendor has joined #nixos
iyzsong has joined #nixos
<apeyroux> hello, howto list "options" for exemple emacs have withX, withGTK2 ... I can't figure out how to list the options that are available properly. I tried with emacs.drvAttrs
<effsquared> Can anybody point me to a in depth guide to package gtk apps, incl. the gsettings schema path stuff.
YellowOnion__ has joined #nixos
Synthetica has quit [Quit: Connection closed for inactivity]
astrofog has quit [Remote host closed the connection]
<lunik1> looks like I can't unshare the mount namespace anyway, ah well
<typetetris> I have nix shell for some haskell library, how can I determine, why it needs a different one. I would try `nix why-depends` but I don't know how to use it and I don't know, how to get the store path of the haskell library, which is reported to me by `ghc-pkg list`?
mayhewluke has quit [Ping timeout: 244 seconds]
lewo has joined #nixos
YellowOnion_ has quit [Ping timeout: 268 seconds]
mayhewluke has joined #nixos
LysergicDreams has quit [Ping timeout: 250 seconds]
<nikivi> does anyone know if anyone packaged https://github.com/creationix/nvm with nix?
<{^_^}> [nixpkgs] @c0bw3b merged pull request #47701 → wavebox: 3.14.10 -> 4.3.0 → https://git.io/fxIEB
<{^_^}> [nixpkgs] @c0bw3b pushed commit from @r-ryantm to master « wavebox: 3.14.10 -> 4.3.0 (#47701) »: https://git.io/fx4g1
<nikivi> couldnt find it nixpkgs
<manveru> i doubt it'd work on nixos...
LysergicDreams has joined #nixos
ryantrinkle has joined #nixos
<Taneb> manveru: it seems similar to rustup and that's in nixpkgs
thibm has joined #nixos
<manveru> depends on what binaries nvm downloads
<Taneb> Yeah, true
<nikivi> with nvm it's hard to do dev with node
<nikivi> without*
infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
<manveru> how so?
<manveru> i use nix-shell for node
infinisil has joined #nixos
infinisil has quit [Remote host closed the connection]
infinisil has joined #nixos
<nikivi> well I just need to use node of 10.4.0 ver.
<nikivi> when I currently have v10.10.0
<nikivi> and on nixpkgs there is nodejs-10_x, nodejs-8_x but no way to specify minor version
<manveru> the minor version is determined by the nixpkgs version
<manveru> that's 18.09
<nikivi> how would I get nix-shell with node of 10.4.0 ver.
<thibm> I'm trying to install NixOS on a Hetzner physical machine. I'm using nixops as it seems to be the simple path to get a running nixos on the server. But I get the following error (ran with --debug): http://sprunge.us/fxgDgm
<thibm> I'm using nixops 1.6.1 but it did not work with 1.6 neither
<manveru> nikivi: you can pass specific versions to the derivation in pkgs/development/nodejs/v10.nix, afaict
<manveru> and it'll build them for you
<thibm> does anyone know what's going wrong?
<nikivi> manveru pass in how?
<manveru> there's a buildNodejs function
<manveru> lemme try it :)
<thibm> The network specification is the simple nixops' example with a httpd serving valgrind's documentation.
kiloreux_ has quit [Ping timeout: 252 seconds]
kiloreux has quit [Ping timeout: 252 seconds]
endformationage has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b closed pull request #46284 → freetds: 1.00.94 -> 1.00.97 → https://git.io/fAz0t
<manveru> that should do it
xenog_ has joined #nixos
infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
infinisil has joined #nixos
<nikivi> thanks manveru
<manveru> it'll compile it anyway, if you want to share the binaries, you can push them to cachix :)
<nikivi> how can I run that into nix-shell?
<nikivi> so I get a shell env with node of that ver.
infinisil has quit [Client Quit]
LysergicDreams has quit [Ping timeout: 268 seconds]
infinisil has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b closed pull request #38731 → flatbuffers: 1.8.0 -> 1.9.0 → https://git.io/vxb7B
<manveru> something like that
<nikivi> yeah but how would I run this?
orivej has joined #nixos
simukis has joined #nixos
<nikivi> save it to a file like derivation.nix?
<manveru> make it a file called shell.nix, and run `nix-shell`
<nikivi> manveru error: syntax error, unexpected '=', expecting ';'
LysergicDreams has joined #nixos
<manveru> add the `;` i forgot
<nikivi> in here /api/shell.nix:6:15
<manveru> on line 5
<nikivi> 6 is line number and 15 is char num right?
<nikivi> oh okay it lies
<nikivi> the error was on line 5 but it said
<nikivi> 6
<clever> its confused about line 6, because the missing ; caused 5&6 to merge into a single statement
<manveru> it noticed the error when it came to line 6 :)
<clever> and it was expecting 5 to just end a statement
<manveru> and yeah... god knows why nix needs semicolons :(
<{^_^}> [nixpkgs] @avnik opened pull request #48272 → nixos/rmilter: don't enable by default, if rspamd enabled → https://git.io/fx4aH
<nikivi> this is taking so long
<nikivi> I was thinking nix was smart and it would reuse my node ver.10 installantion
<nikivi> I read something about it reusing dependencies
<manveru> it's a different version, right?
<nikivi> yeah 10.10.10
<nikivi> I am downloading 10.10.4
<manveru> anyway, 10.4.0 failed to build here
<nikivi> 10.4.0*
<nikivi> its probably going to fail here too
ixxie has joined #nixos
<nikivi> im on darwin
<manveru> yes
kiloreux_ has joined #nixos
<nikivi> is it safe to stop nix compilation midway?
<manveru> sure
<nikivi> I guess I'll just use homebrew and nvm
kiloreux has joined #nixos
<nikivi> seems like a better solution for this
<nikivi> thanks manveru
<manveru> np
<nikivi> as with npm you can just choose the version
<nikivi> nvm*
<nikivi> with nix you'd have to write a derivation for each that might fail
<{^_^}> [nixpkgs] @volth opened pull request #48273 → fetchgit: use buildPackages's git → https://git.io/fx4Vl
<nikivi> and it takes like 5 min to even find out if it failed
<manveru> well, i usually stick to the versions in nixpkgs so i don't need to compile node
<manveru> but if you need one that nobody has built before, then yeah
<{^_^}> [nixpkgs] @vcunat pushed to master « knot-dns: 2.7.2 -> 2.7.3 (minor update) »: https://git.io/fx4Vu
<manveru> on darwin you can use nvm, since others built the versions for your OS already
<manveru> i don't have that luxury :)
<nikivi> I wonder how easy it would be to modify the node derivation to build 10.4
<nikivi> as I do want to use nix only on this machine
<nikivi> how do you test such huge derivations without going through minutes of compiling each time
<nikivi> I mean node is huge due to v
<nikivi> v8*
infinisil has quit [Quit: Configuring ZNC, sorry for the joins/quits!]
<manveru> well, there's a version for 10.4.1
infinisil has joined #nixos
<nikivi> oh I can try that
<nikivi> will that build on darwin?
<nikivi> how would I get a nix-shell running with 10.4.1?
xenog_ has quit [Ping timeout: 244 seconds]
ryantrinkle has quit [Ping timeout: 244 seconds]
Tucky has joined #nixos
<qyliss^work> I don't see a node 10.4.1 derivation in nixpkgs?
<manveru> it was in nixpkgs in the past, so you can just an old nixpkgs :)
<infinisil> Any ZNC users here? If you've been frustrated with the ZNC NixOS module's flexibility, please check out my #45470. While I tested it myself, it would be nice to have some others test it as well and to have some review
<{^_^}> https://github.com/NixOS/nixpkgs/pull/45470 (by Infinisil, 7 weeks ago, open): nixos/znc: More flexible module, cleanups
LysergicDreams has quit [Ping timeout: 246 seconds]
<manveru> this is the commit right before the upgrade to 10.5
o1lo01ol1o has quit [Remote host closed the connection]
Tucky has quit [Client Quit]
ggp0647 has joined #nixos
LysergicDreams has joined #nixos
<manveru> not sure if it'll work on newer macos, since i guess some of its dependencies are impure there :|
<{^_^}> [nixpkgs] @ljli opened pull request #48274 → Cargo vendor multi sources → https://git.io/fx4rD
<gchristensen> is there a way to have the nix store import a file which already exists on disk, where the file is greater than available ram?
<infinisil> gchristensen: Why does Nix load the full file into memory to begin with anyways?
ryantrinkle has joined #nixos
<elvishjerricco> gchristensen: I could have swore that issue was fixed in some version of Nix...
<infinisil> Not sure if there's a reason or just because it's not implemented yet
<infinisil> elvishjerricco: I think it only got fixed when copying closures around, not when importing stuff into the store, probably
<LnL> infinisil: to know what it's store path should be
<infinisil> LnL: Hashing it shouldn't require all of the bytes in memory
asdfjkljkl has joined #nixos
<gchristensen> it just wasn't implemented yet.
<gchristensen> it was fixed for some stuff but evidently not this thing.
asdfjkljkl has quit [Quit: WeeChat 1.4]
<LnL> oh that, isn't it fine now with 2.1?
<gchristensen> doesn't seem to be
<sphalerite> gchristensen: so nix-store --imt?
asdfjkljkl has joined #nixos
<gchristensen> --imt?
jasongrossman has quit [Quit: ERC (IRC client for Emacs 26.1)]
erasmas has joined #nixos
mkoenig has quit [Read error: Connection reset by peer]
<gchristensen> this is with nix-store (Nix) 2.1.1
<sphalerite> gchristensen: import, sorry. bad connection :p
<sphalerite> it seems mosh just gave up on those letters in between
ixxie has quit [Ping timeout: 252 seconds]
<gchristensen> doesn't --import require a nar? I just have a big ol'file
<{^_^}> [nixpkgs] @chessai opened pull request #48275 → Glob093 doesnt exist → https://git.io/fx4op
<sphalerite> oooh right so you mean the automatic importing that happens for ${./path}
<LnL> is this copyToStore or nix-store --add-fixed?
<LnL> not sure if those use the same implementation
<sphalerite> LnL: --add-fixed doesn't seem to exist, at lst it's not int he manpage
mkoenig has joined #nixos
<LnL> yeah but, nix-store --add-fixed sha256 ./foo.txt :D
<gchristensen> yeah so I'm doing a nix-build with "${./my-big-file}..." in there somewhere, and it fails when copying that file to the store
<sphalerite> LnL: --add maybe?
<LnL> that's something different
effsquared has quit [Quit: Time to go.]
<sphalerite> ah ok so it does exist but it's not documented :|
<dhess> infinisil: I'm a ZNC user and wrote my own (hacky) module because I was unhappy with the upstream one. My input on your PR is that the password/password hash should not be inlined in the config because then it gets written to the store.
<dhess> that's the main reason i wrote my own, to avoid that problem.
<dhess> It should be loaded at start time somehow, maybe the config is copied from the store to /etc/znc or something and the secret is templated in at that time.
<LnL> sphalerit: one of the prefetch* tools use it IIRC
<dhess> Anyway I see that as the main issue with your proposed change, otherwise it looks good to me.
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/d308e698f90 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
<Taneb> gchristensen: thanks for documenting some of the nixpkgs library functions! :D
<Taneb> I'd like to do what I can to help
<gchristensen> :) you're welcome! great! my suggestion would be to pretty much copy the structure of an existing function, and copy-paste the docs from the .nix file in to the .xml
<gchristensen> it isn't so hard
siers has quit [Ping timeout: 245 seconds]
<Taneb> :)
iyzsong has quit [Ping timeout: 268 seconds]
LysergicDreams has quit [Ping timeout: 246 seconds]
<schmittlauch[m]> What's the best way to get the sha256 has for usage in FetchFromGitHub? Just download the zip and sha256sum it?
<schmittlauch[m]> Or are there more convenient helpers for that?
<symphorien> ,tofu schmittlauch[m]
<{^_^}> schmittlauch[m]: To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
LysergicDreams has joined #nixos
<symphorien> also you can use nix-prefetch-url
<schmittlauch[m]> ah, thx
Itkovian has joined #nixos
elgoosy has joined #nixos
typeggzero has joined #nixos
<typeggzero> yo
<jabranham> How do I start dunst on nixos? It errors with "BadAccess (attempt to access private resource denied)"?
<thibm> Well, I start it in my WM starting script
<infinisil> dhess: thanks, yeah that's a good point, but i think that's orthogonal to my PR, maybe I'll implement this another time
siers has joined #nixos
elgoosy has quit [Remote host closed the connection]
patrl has quit [Ping timeout: 244 seconds]
<jabranham> thibm: how? Just "dunst &"?
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/d308e698f90 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<infinisil> dhess: (I'd appreciate a review checkmark on the PR if the changes look good to you so others can see that it got looked at)
<thibm> jabranham: yes
<{^_^}> [nixpkgs] @c0bw3b merged pull request #47822 → eccodes: 2.8.2 -> 2.9.0 → https://git.io/fxtGJ
<{^_^}> [nixpkgs] @c0bw3b pushed commit from @r-ryantm to master « eccodes: 2.8.2 -> 2.9.0 (#47822) »: https://git.io/fx4PB
elgoosy has joined #nixos
o1lo01ol1o has joined #nixos
<thibm> jabranham: it looks like a X error
o1lo01ol1o has quit [Remote host closed the connection]
<jabranham> thibm: apparently I have a .dunst-wrapped process running so yeah this is apparently elsewhere...
<jabranham> ah, I'm missing libnotify
<jabranham> after installing that everything works as expected
<thibm> wtf? libnotify is a dependency of dunst. How did you installed dunst ?
<clever> ,library
<{^_^}> Don't install libraries through nix-env or systemPackages, use nix-shell instead. See https://nixos.wiki/wiki/FAQ/Libraries for details.
<clever> jabranham: installing things like that shouldnt fix things, lol
<jabranham> thibm: nix-env -i dunst
<thibm> clever: well, libnotify comes with a binary (notify-send)
<thibm> but I guess dunst uses the actual library
<jabranham> clever: but I want dunst to be available for all applications when logged in. nix-shell isn't for that sort of stuff, right? I'm new to nix/nixos, so perhaps I'm misunderstanding things
<manveru> jabranham: i use dunst via home-manager, if i don't know it yet :)
<clever> jabranham: for dunst, yeah, but libnotify shouldnt really be installed like that
<jabranham> clever: that was my understanding, but dunst doesn't work without libnotify :-(
<clever> then the dunst package needs to be fixed
<{^_^}> [nixos-hardware] @seppeljordan closed pull request #79 → purism/librem/13v3: disable wifi hardware crypt → https://git.io/fx8kM
<thibm> libnotify *is* a buildInputs of dunst
<thibm> jabranham: did it really fixed the problem to install libnotify that way?
<clever> thibm: buildInputs are not runtime inputs, so it may still need the package being fixed
drakonis1 has quit [Ping timeout: 252 seconds]
babic has joined #nixos
drakonis1 has joined #nixos
<jabranham> thibm: well it worked in the sense that before dunst notifications from Emacs weren't working but now they are
<jabranham> thibm: looks like the alert package relies on having the notify-send binary. So not a dunst problem.
<gchristensen> fyi infinisil, elvishjerricco, sphalerite: there were some ideas on ways to do it, but I'm going to just use `zfs send` to ferry the file around and not manage it with Nix.
o1lo01ol1o has joined #nixos
<thibm> jabranham: and that not because emacs relied on the notify-send binary package?
<infinisil> gchristensen: What are you referring to?
<thibm> oh, too late
<gchristensen> infinisil: my question about referring to a very big file during a nix evaluation
<infinisil> Ah
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<o1lo01ol1o> when I tell nixos to `nix-build -opts paths` how is paths resolved? I'm looking at a nix-build that calls a value in path I don't recognize and I want to know where it comes from.
<gchristensen> o1lo01ol1o: does it start with `<` and end with `>`?
<pareidolia> I'm having trouble building a package "orc" on a Rpi2, can someone take a look at my output? https://pastebin.com/satN8cch
<o1lo01ol1o> gchristensen: no, it's just foo.bar.baz
<gchristensen> we'll need an actual example
<infinisil> pareidolia: sidenote: pastebin is usually discouraged because of its bloatedness and ads
<infinisil> ,paste
<{^_^}> Use a website such as http://nixpaste.lbr.uno/ or https://gist.github.com/ to share anything that's longer than a couple lines
<o1lo01ol1o> gchistensen: it's in a shell script: $(nix-build nix-build --no-out-link -A completeServer.aws.system --args)
<o1lo01ol1o> sorry, one too many nix-builds there
<Church-> So who do I bug about getting a pr excepted into mainline? :P
<lopsided98> pareidolia: I just disabled the tests and it seems to work fine
<pareidolia> lopsided98: Is there anything I can do about it as an end-user?
<infinisil> Church-: Just ask in this chat :)
halfbit has quit [Quit: WeeChat 1.9.1]
<lopsided98> pareidolia: I added an override to disable the tests on ARM: https://github.com/lopsided98/nixos-config/blob/master/pkgs/default.nix#L153
<elvishjerricco> Urgh. nix why-depends doesn't work on .drv files...
<infinisil> elvishjerricco: You want it to build the .drvs and then do why-depends on the outPaths?
<elvishjerricco> infinisil: No, I want to see why one derivation is a build-time dep of another
<elvishjerricco> Because the dependency is failing to build, and I don't think it should be a dep at all
phreedom has quit [Ping timeout: 256 seconds]
<infinisil> elvishjerricco: You mean like a transitive inputDrvs?
phreedom has joined #nixos
<Church-> infinisil: Heh fair point. Let me go find the branch, s'patch for nvidia optimus to allow graphics on my laptop
<elvishjerricco> infinisil: inputDrvs?
<elvishjerricco> Is that a useful attr I didn't know about? :P
<infinisil> elvishjerricco: nix show-derivation /nix/store/foo.drv | jq
<pareidolia> lopsided98: Can I override this for my system?
<infinisil> elvishjerricco: All deps are in the inputDrvs attribute
<pareidolia> lopsided98: All I can find in documentation is about user-based overrides
drakonis1 has quit [Read error: Connection reset by peer]
drakonis1 has joined #nixos
<lopsided98> pareidolia: You can use an overlay like I do, or use nixpkgs.config.packageOverrides (https://nixos.org/nixpkgs/manual/#how-to-override-a-python-package-from-configuration.nix)
<pareidolia> Ah, it was hidden in the Python section :P Thanks!
<Church-> Hmmm, stupid question is there a package just containing gnome-terminal?
<Church-> Trying to get it working under i3
<Church-> Oh nevermind
<Church-> Was an error.
orivej has quit [Ping timeout: 252 seconds]
<siers> it would be really odd if there wasn't
<{^_^}> [nixpkgs] @c0bw3b closed pull request #32040 → nghttp2: 1.24.0 -> 1.28.0 + split lib and apps → https://git.io/vFjTT
<o1lo01ol1o> gchristensen: typo above: it's in a shell script: $(nix-build --no-out-link -A completeServer.aws.system --args)
<gchristensen> -A means it is build the attribute completeServer.aws.system and there is no file being declared.
<gchristensen> so it uses the default, ./default.nix
<o1lo01ol1o> right, that's what I thought. But I can't find "completeServer.aws.system" anywhere in the codebase.
<gchristensen> can you find completeServer?
<Church-> Man it feels like I'm running gentoo again almost.
fendor has quit [Quit: Leaving]
<infinisil> ,locate bin gnome-terminal
<o1lo01ol1o> gchristensen: doh, yes, I can.
<{^_^}> Found in packages: gnome3.gnome-terminal
<infinisil> Church-: ^
<o1lo01ol1o> gchristensen: thanks, still adapting to the nix syntax
<infinisil> ,locate
<{^_^}> Use ,locate <filename> to find packages containing such a file. Powered by nix-index (local installation recommended).
<pareidolia> /quit
<Church-> infinisil: Yeah I found it. :P
<Church-> Kinda odd, what group should a regular user be in to run nix-env and what not?
Mateon1 has joined #nixos
<gchristensen> by default, any
<gchristensen> see allowed-users in `man nix.conf`
<Church-> Thanks.
<Church-> Hmm, more errors...
* Church- is having fun again
<mpickering> If I want to install agda I have to refer to it as `haskellPackages.Agda`?
<mpickering> There is an attribute called agda which doesn't contain the compiler
<mpickering> and then a bunch of libraries but no top level definition which contains the compiler itself
drakonis has joined #nixos
drakonis1 has quit [Ping timeout: 252 seconds]
LysergicDreams has quit [Ping timeout: 252 seconds]
LysergicDreams has joined #nixos
<sphalerite> gchristensen: hahaha
<gchristensen> sphalerite: hm? :)
<sphalerite> gchristensen: using zfs send to solve your problem
<gchristensen> hehe
<gchristensen> well it makes sense, I'd be using nix to copy a file just so I could load the contents in to a zfs zvol anyway
<gchristensen> so skipping nix and xfering the zvol directly is just fine with me
nDuff has joined #nixos
<mightybyte> How do you find the sha of nixpkgs for use with builtins.fetchTarball?
<nDuff> Where would I look for documentation on activation scripts in NixOS?
<nDuff> I'm particularly interested in knowing exactly when they run -- if they're guaranteed to happen before systemd services on boot, f/e (or if they happen on boot at all, or only during a nixos-rebuild)
LysergicDreams has quit [Ping timeout: 245 seconds]
drakonis has quit [Ping timeout: 260 seconds]
drakonis has joined #nixos
LysergicDreams has joined #nixos
<sphalerite> mightybyte: easiest to put in the wrong one and copy the one in the error message
<gchristensen> nDuff: https://nixos.org/nixos/manual/options.html#opt-system.activationScripts is a bit limited on docs
<infinisil> sphalerite: I don't think this works with builtins.fetchTarball
<clever> mightybyte: nix-prefetch-url --unpack
<infinisil> I'm using this ^^
<sphalerite> infinisil: builtins.fetchTarball does accept a hash, surely it should complain if you give it the wrong one
<clever> nDuff: activation scripts run before systemd starts, and on every nixos-rebuild switch/test
<mightybyte> sphalerite: That's what I usually do, but in this case I'm getting a different error.
<mightybyte> error: store path mismatch in file downloaded from 'https://github.com/NixOS/nixpkgs/archive/6cbd1ec4b043df6f9f6e7c59c79e1025b66d5faa.tar.gz'
<infinisil> sphalerite: .. have you tested it?
<clever> nDuff: if you have any error in the activation script (like trying to do network), it can break stage-2.sh, causing systemd to not even be in PATH, and lead to confusing boot errors
<sphalerite> infinisil: I haven't, I'm on a very poort internet connection curently
<infinisil> sphalerite: It does in fact not report the correct hash, only the error mightybyte showed
<mightybyte> sphalerite: I can confirm definitively that that does not work with builtins.fetchTarball
<sphalerite> damn
<sphalerite> time to file a bug? :D
<mightybyte> I just got the hash right and it works now.
<nDuff> clever, thank you. I'm trying to build a module for a service that wants to use filesystem UUIDs as keys for its configuration, but for a declarative configuration, making the user specify a UUID that is intentionally assigned at instantiation time seems like a Really Bad Idea. My current thought is to use a higher-level id like fs label when writing configuration from the nixos module, and then go from that to a config file in the format it expects (with
<nDuff> the actual UUID) from the activation script.
<clever> mightybyte: did you use --unpack?
<mightybyte> Yes
drvirgilio has joined #nixos
<infinisil> sphalerite: It's such an obvious oversight that I feel like there might even be some reason behind it
<infinisil> Not sure though
<clever> mightybyte: what is the exact expression you used?
Itkovian has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mightybyte> , nixpkgsHash ? "6cbd1ec4b043df6f9f6e7c59c79e1025b66d5faa"
<mightybyte> , pkgs ? import (builtins.fetchTarball {
<mightybyte> url = "https://github.com/NixOS/nixpkgs/archive/${nixpkgsHash}.tar.gz";
<mightybyte> sha256 = "0i2ahdilnb8p4gafyqfzzr85n7pghw295bya1y7c1kpvc7hf5mhp"; }) {
<mightybyte> config.allowUnfree = true;
<mightybyte> }
kiloreux_ has quit [Read error: Connection reset by peer]
kiloreux has quit [Read error: Connection reset by peer]
<mightybyte> ...those being arguments at the top of my default.nix
<{^_^}> [nixpkgs] @timokau merged pull request #48235 → pcsctools: 1.4.25 -> 1.5.3 → https://git.io/fx8C0
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/fx4Qo
thibm has quit [Quit: WeeChat 2.0]
<clever> mightybyte: that works when i run it locally
<clever> mightybyte: copy/pasted from irc into nix repl
<mightybyte> Yeah, I got it working.
<mightybyte> But it didn't work when I had the wrong sha
<clever> that is also the hash from nix-prefetch-url --unpack
<mightybyte> ...and it also didn't tell me which one to use
<mightybyte> Right
<clever> yeah, the api for fetchTarball needs work
asdfjkljkl has quit [Ping timeout: 252 seconds]
<infinisil> Well not the API, but rather the UX
<{^_^}> [nixpkgs] @timokau merged pull request #48261 → termbox: init at 1.1.2 → https://git.io/fx4Ix
<{^_^}> [nixpkgs] @timokau pushed 2 commits to master: https://git.io/fx4Qb
<emily> does anyone have advice for using NixOS without a display manager? should I just install xinit and write my own .xinitrc in the usual way?
<emily> (I'd like to run Xorg as non-root, too, preferably)
<infinisil> emily: You can just put a ~/.xsession file
<infinisil> That's where I have my window manager started
<infinisil> Along with some systemd stuff
<infinisil> Managed via home-manager
<infinisil> emily: The NixOS xserver config will prefer that file over all its DE/WM settings
<emily> infinisil: ah, cool. the display manager shell preamble seemed to have a bunch of stuff I don't want though (like assuming that $XDG_DATA_HOME is $HOME/.local/share)
<emily> I guess I could patch it
<infinisil> emily: Yeah that could use some work
<infinisil> Honestly, this X session stuff should all be user managed to begin with, not globally in the nixos config
<emily> just not super inclined to patch this stuff when I'm planning to jump ship to wayland once some packages make it into master
<infinisil> Ohh I wanna get on the wayland train too eventually
<emily> and sway configuration involves none of this nonsense
<emily> infinisil: the main problem is that right now you need a meson update for sway alpha
<gchristensen> infinisil: how do I use ,tell again?
<emily> so it rebuilds the world ;w;
<infinisil> ,tell
<{^_^}> infinisil: Use `,tell john Remember to do the laundry` to send this to john next time he's talking in this channel
<gchristensen> ,tell vcunat ping me about your mac =)
<{^_^}> gchristensen: I'll pass that on to vcunat
revtintin has joined #nixos
drvirgilio has quit [Quit: drvirgilio]
<gchristensen> thanks, {^_^}. thanks, infinisil
drvirgilio has joined #nixos
ambro718 has joined #nixos
pie___ has quit [Ping timeout: 245 seconds]
drakonis has quit [Ping timeout: 252 seconds]
jperras_ has joined #nixos
jperras has quit [Ping timeout: 252 seconds]
ThatDocsLady has quit [Quit: Leaving]
<{^_^}> [nixpkgs] @rycee pushed to master « cloc: 1.78 -> 1.80 »: https://git.io/fx454
drakonis has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b merged pull request #48003 → pwsafe: 0.99BETA -> 1.06BETA → https://git.io/fxsaC
<{^_^}> [nixpkgs] @c0bw3b pushed to master « pwsafe: 0.99BETA -> 1.06BETA (#48003) »: https://git.io/fx45w
<Taneb> I've really been struggling to get GHCJS and reflex working with nixpkgs
LysergicDreams has quit [Ping timeout: 250 seconds]
nDuff has quit [Read error: Connection reset by peer]
<srhb> Taneb: Did you notice the reunification work on reflex-platform? (Using upstream nixpkgs with patches rather than a fork now)
<srhb> Taneb: So if you want to roll your own, it might be a good source of inspiration
alex`` has quit [Ping timeout: 276 seconds]
<Taneb> srhb: no, I hadn't
<{^_^}> [nixpkgs] @LnL7 opened pull request #48276 → nix-index: fix darwin build → https://git.io/fx4dG
drakonis_ has joined #nixos
xenog_ has joined #nixos
ZeDestructor has quit [Ping timeout: 252 seconds]
xenog_ is now known as xenog
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/2434a2ee3a2 (from 7 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
LysergicDreams has joined #nixos
xenog has quit [Client Quit]
xenog has joined #nixos
<mpickering> I am trying to package something where the build program tries to write files into the source directory
<mpickering> what's the usual way to work around this?
[0x4A6F] has joined #nixos
fpob has quit [Max SendQ exceeded]
MichaelRaskin has joined #nixos
fpob has joined #nixos
LysergicDreams has quit [Ping timeout: 268 seconds]
<srhb> mpickering: What do you mean by source directory exactly? Usually, the source is unpacked into a mutable area and most builds do indeed modify that.
<LnL> fix the program
LysergicDreams has joined #nixos
<{^_^}> [nixpkgs] @c0bw3b opened pull request #48277 → warmux: 11.04.1 -> unstable-2017-10-20 → https://git.io/fx4bW
<Church-> So, any chance I could get the branch/commit in this paste backported? https://hastebin.com/awubegohem.bash
<mpickering> Ah right this is probably my fault then
<mpickering> It is probably a symlink I made
sigmundv has quit [Ping timeout: 252 seconds]
<Church-> srhb: Ah lovely, world of peace really is a charm.
<Church-> Owe them a brew.
ZeDestructor has joined #nixos
babic has quit [Quit: Page closed]
<{^_^}> [nixpkgs] @Infinisil merged pull request #48276 → nix-index: fix darwin build → https://git.io/fx4dG
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fx4Ac
jbgi has joined #nixos
judson has joined #nixos
<judson> Is it weird to be building an overlay for unsupported versions of Ruby? Should it be a more common practice as things get retired?
<judson> Would anyone else use such and overlay?
<judson> *an overlay
<gchristensen> doesn't seem weird
jbgi has quit [Ping timeout: 252 seconds]
samrose has joined #nixos
mayhewluke has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
<infinisil> samrose: Ahh pkgconfig and systemd to build inputs
brejoc has quit [Ping timeout: 250 seconds]
<emily> what's the easiest way to review the Xorg config file?
<srhb> emily: systemctl status display-manager iirc should show you the conf file path
<emily> sadly no, because I'm not using a display manager ^^;
<emily> I'm thinking I just want to use nix-eval or something?
<srhb> emily: I guess you can evaluate the value of services.xserver.config
wpcarro has joined #nixos
<emily> *nod* nix eval -f '<nixpkgs/nixos>' system.config.services.xserver.config or something, I guess
<{^_^}> [nixpkgs] @acowley opened pull request #48278 → avrgcc: rename to avrgcc-unwrapped; add wrappers → https://git.io/fx4ps
Izorkin has joined #nixos
wpcarro has quit [Client Quit]
<jabranham> In Emacs, C-h i doesn't display the info manuals installed at ~/.nix-profile/share/info. Anyone else have this problem?
elgoosy has quit [Remote host closed the connection]
elgoosy has joined #nixos
alex`` has joined #nixos
jbgi has joined #nixos
jperras_ has quit [Quit: WeeChat 2.2]
elgoosy has quit [Remote host closed the connection]
elgoosy has joined #nixos
yosslid has joined #nixos
elgoosy has quit [Remote host closed the connection]
elgoosy has joined #nixos
<Zajcev_> guys, could somebody explain what is system.stateVersion exactly for ?
pointfourone has joined #nixos
trevorriles has joined #nixos
<infinisil> > nixos.options.system.stateVersion.description
<{^_^}> "Every once in a while, a new NixOS release may change\nconfiguration defaults in a way incompatible with stateful\ndata. For instance, if the default version of PostgreSQL\nchanges, the new version w...
elgoosy has quit [Remote host closed the connection]
<infinisil> I guess it's cut off, but you can see the full description
<infinisil> online or so
elgoosy has joined #nixos
<Zajcev_> ok I see, nad how is it related with containers? should I declare stateversion in every container?
<Zajcev_> and
elgoosy has quit [Remote host closed the connection]
elgoosy has joined #nixos
<o1lo01ol1o> I have an expression question. I'm trying to set a new value on a single attribute from an imported set (while maintaining the rest of the attributes). what's the syntax for this? I have something that looks like: `let foo = import foo-path {}; in foo{baz=NewValue}`
<clever> Zajcev_: yeah, i would define it for all nixos evals, including containers
<{^_^}> [nixpkgs] @bjornfor opened pull request #48279 → lib.version: change from "pre-" to "post-" → https://git.io/fxBvI
<Zajcev_> ok, I thought so, but ... when I want to upgrade system to next version?
<Zajcev_> I think, main problem could be databases
<{^_^}> [nixpkgs] @Ekleog opened pull request #48280 → nheko: mark as insecure → https://git.io/fxBv3
<{^_^}> [nixpkgs] @Ekleog opened pull request #48281 → nheko: drop package, no longer maintained → https://git.io/fxBvn
<Zajcev_> or only one problem?
<hodapp> "hey, let's do an upgrade on a Friday afternoon", thought hodapp, as he started the upgrade to 18.09
<infinisil> > let foo = { bar = 10; }; in foo // { baz = 20; }
<{^_^}> { bar = 10; baz = 20; }
<infinisil> o1lo01ol1o: Like that?
<hodapp> I am setting myself up for failure, aren't I
<cocreature> hodapp: at least you have all weekend to fix it!
<hodapp> but I'm at work >_>
orivej has joined #nixos
<hodapp> I'll do my home machine later
<cocreature> I guess you have to stay at work for a while :)
<o1lo01ol1o> infinisil: potentially, what's the difference between that and .override
Acou_Bass has joined #nixos
<infinisil> .override is for overriding function arguments where specifically supported
<infinisil> E.g.
<hodapp> cocreature: a certain US president might be in a certain nearby city this evening, so if I don't get out of here in about 2 hours, I'm gonna be here probably all evening
<cocreature> if a license used by a package is not already in lib/licenses.nix should I just add it?
<cocreature> also is there a convention for licenses not in spdx?
<hodapp> because they're shutting down stretches of US-71 and nearby overpasses/underpasses
<cocreature> hodapp: ouch :/
<hodapp> er, I-71
<infinisil> > let myfun = { bar }: { result = bar + 1; }; foo = lib.makeOverridable myfun { bar = 10; }; in foo
<{^_^}> { override = <CODE>; overrideDerivation = <CODE>; result = <CODE>; }
<infinisil> > let myfun = { bar }: { result = bar + 1; }; foo = lib.makeOverridable myfun { bar = 10; }; in foo.result
<{^_^}> 11
<infinisil> > let myfun = { bar }: { result = bar + 1; }; foo = lib.makeOverridable myfun { bar = 10; }; in (foo.override { bar = 2; }).result
<{^_^}> 3
<infinisil> o1lo01ol1o: ^
<o1lo01ol1o> got it, thanks
<infinisil> > let myfun = { bar }: { result = bar + 1; }; foo = lib.makeOverridable myfun { bar = 10; }; in foo // { bar = 2; }
<{^_^}> { bar = 2; override = <CODE>; overrideDerivation = <CODE>; result = <CODE>; }
<cocreature> also what is the policy wtr to the unfree licenses? if there is a specific license being used that’s not osi compliant but allows for redistribution should I just use unfreeRedistributable or add a new license?
<MichaelRaskin> I would just put «unfree» and put a comment with a license link.
<clever> you could also just put an attrset of this style directly into the derivation
<clever> allowUnfree only cares about the value of the .free attr, which defaults to true
<cocreature> ah thanks! the license sounds sufficiently non-specific to alt-ergo that I think it makes sense to add it to lib/licenses
<clever> https://github.com/NixOS/nixpkgs/blob/master/lib/licenses.nix#L358-L361 heh, imagemagick has its own license in this file
<clever> and line 4, spdx is just a function to generate a url on spdx.org
<clever> unfreeRedistributableFirmware lacks the free=false; which means hydra can build it
<cocreature> hm, nix-build doesn’t seem to evaluate metadata or at least the license attribute
ambro718 has quit [Quit: Konversation terminated!]
<cocreature> what’s the best way to check that it’s actually valid?
<infinisil> cocreature: Try config.checkMeta = true
<infinisil> And maybe config.checkMetaRecursively = true
<o1lo01ol1o> Is there any way to print attrs in a nix expression to stderr in order to debug?
<{^_^}> [nixpkgs] @bhipple closed pull request #47237 → WIP: Factoring out unfree non-redistributable vs. unfree redistributale licenses → https://git.io/fAF4e
<infinisil> o1lo01ol1o: builtins.trace "thing to print" "thing to evaluate to"
elgoosy has quit [Remote host closed the connection]
<infinisil> There's also a bunch of helpers for stuff like that in lib.debug
bitmapper has quit [Ping timeout: 244 seconds]
<o1lo01ol1o> infinisil: cool thanks. didn't know about lib.debug.
<cocreature> infinisil: perfect, thanks!
revtintin has quit [Quit: WeeChat 1.9.1]
xenog has quit [Ping timeout: 245 seconds]
<judson> Faintly amused to announce: https://github.com/nyarly/nix-oldruby
jperras has joined #nixos
<{^_^}> [nixpkgs] @yegortimoshenko opened pull request #48282 → qemu: enable smartcard support → https://git.io/fxBJE
pie__ has joined #nixos
sigmundv has joined #nixos
LysergicDreams has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @LnL7 opened pull request #48283 → reattach-to-user-namespace: 2.6 -> 2.7 → https://git.io/fxBUX
* hodapp twiddles thumbs while 1000 texlive packages install
pie__ has quit [Ping timeout: 276 seconds]
<{^_^}> [nixpkgs] @bjornfor closed pull request #19703 → nixos/lighttpd: add Nextcloud sub-service → https://git.io/vP99Q
<infinisil> hodapp: Needs caching already
<sphalerit> hodapp: up your max-jobs :D
<hodapp> whaa?
<infinisil> Like, the texlive.combined.scheme-full should be cached whole in cache.nixos.org
<clever> hodapp: i recently did -j 300, on a single-user machine, where max-jobs "doesnt work" lol
<infinisil> I assumed you meant that
<{^_^}> [nixpkgs] @yegortimoshenko closed pull request #46604 → [WIP] Wrap Nix to add Git as runtime dependency, resolves #46603 → https://git.io/fA6dM
<{^_^}> [nixpkgs] @yegortimoshenko pushed 0 commits to yegortimoshenko-patch-4: https://git.io/fxBTV
pie__ has joined #nixos
<{^_^}> [nixpkgs] @yegortimoshenko closed pull request #44864 → prometheus: disable tests → https://git.io/fNQ5N
<{^_^}> [nixpkgs] @yegortimoshenko pushed 0 commits to yegortimoshenko-patch-1: https://git.io/fxBTd
<{^_^}> [nixpkgs] @xeji merged pull request #48281 → nheko: mark as insecure → https://git.io/fxBvn
<{^_^}> [nixpkgs] @xeji pushed commit from @Ekleog to master « nheko: mark as insecure (#48281) »: https://git.io/fxBTj
<sphalerit> hodapp: I find that for stuff like texlive and JavaScript dep stuff, using a value like 100 can help to offset the time it takes them all to run individually
<{^_^}> [nixpkgs] @xeji pushed commit from @Ekleog to release-18.09 « nheko: mark as insecure (#48281) »: https://git.io/fxBkZ
<{^_^}> [nixpkgs] @xeji closed pull request #48280 → nheko: mark as insecure → https://git.io/fxBv3
<schmittlauch[m]> What's a good starting point for writing an expression to drop me into a development environment? My specifical problem is qt-creator needing qt development packages.
<schmittlauch[m]> While nix-shell -p qt5.full might work, a specific nix expression might be nice for pulling in other dependency libs.
<clever> schmittlauch[m]: qt-creator is a pain in the ass to get working
<schmittlauch[m]> stdenv.mkShell?
<clever> schmittlauch[m]: nix-shell auto-generates a qmake bash script that has the right deps, you must then dig it out of /tmp, and feed it to qt-creator in the settings ui
<clever> and once you exit the nix-shell, it breaks, and you have to re-configure creator all over
<schmittlauch[m]> oof :(
<schmittlauch[m]> rly?
<clever> but qt itself does work under nix-shell, if you dont care about creator being able to compile on the fly
<clever> so i just use `qmake ; make` in nix-shell, and edit with vim
<clever> but maybe things have improved, its been about a year since ive done anything QT in nix
<{^_^}> [nixpkgs] @knedlsepp closed pull request #40149 → WIP: qt5.qtwebengine: Fix darwin build → https://git.io/vpKaE
<{^_^}> [nixpkgs] @c0bw3b merged pull request #47836 → cpplint: init at 1.3.0 → https://git.io/fxtut
<{^_^}> [nixpkgs] @c0bw3b pushed 2 commits to master: https://git.io/fxBIk
<schmittlauch[m]> Then I might say "fuck it" and add all development packages to my user environment. At least they have stable links then.
<schmittlauch[m]> But the "write an expression dropping you to your developmen environment" use case still interests me, haven't found anything in the docs
<clever> libraries dont work if you install them with nix-env
<clever> nix ignores headers when installing things
<schmittlauch[m]> I use home-manager, does that change anything?
<clever> nope
<schmittlauch[m]> meh
<schmittlauch[m]> are they just not symlinked?
<clever> yeah
<clever> and you need the stdenv to setup env vars to even make gcc work
<schmittlauch[m]> gnarf
<schmittlauch[m]> so what about putting them into system packages then?
<schmittlauch[m]> I thought NixOS was developer friendly
<clever> you can only ever compile things inside nix-shell or nix-build
<clever> systemPackages and nix-env dont install headers
<drakonis_> a reminder: http://weekly.nixos.org/
<gchristensen> what is the reminder?
<{^_^}> [nixpkgs] @yegortimoshenko opened pull request #48284 → go: do not wrap with `go get` tools → https://git.io/fxBIV
<clever> schmittlauch[m]: nix-shell helps greatly with development of things, but qt-creator is one of the few things that dont really work nicely still
<drakonis_> that it exists?
pointfourone has left #nixos ["Leaving"]
<schmittlauch[m]> clever: but nix-shell does make the haders and libs available, does it?
<Acou_Bass> eey everyone, i installed the skype4linux package, it works fine but it needs to log in each time it loads.. it pulled in GNOME keyring when i installed it, but i dont run gnome so i dont even know if gnome-keyring is in use XD is there anything i can do to fix/help that?
<clever> schmittlauch[m]: yeah, nix-shell makes all headers and libs available in gcc's search path
<gchristensen> can anyone help me come up with a type signature for lib.attrsets.zipAttrsWithNames' `f` parameter?
<gchristensen> I'm trying to write some docs for it, but its meaning is escaping me
<clever> *looks*
halfbit has joined #nixos
<clever> gchristensen: line 335 runs f on the list of names, and the result of catAttrs...
<gchristensen> is it a [ Any ]?
<clever> catAttrs returns a list of values, and filters
<gchristensen> (String -> [ Any ] -> Any) ?
<siers> Is deploying applications easier with nixo(p)s? Only if you've packaged everthing neatly and have no docker containers? (since they can't currently be provisioned declaratively via nixos modules)
<clever> gchristensen: i think its [String] -> ([ a ] -> a) -> Map String a, for the entire function
<clever> oops, missed the `sets` arg
trevorriles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<gchristensen> clever: isn't `name` just one name, not a list of them? ie, would you agree with: zipAttrsWithNames :: [ String ] -> (String -> [ Any ] -> Any) -> AttrSet -> AttrSet
<clever> gchristensen: names is a list of keys to keep, and f is ran on a list of values, for a given key (oh, type is off more), to merge them
<gchristensen> some of these functions take like 30s to write up docs for, others leave me ????
<clever> gchristensen: thats much closer, but the `sets` is a [AttrSet] i believe
<infinisil> gchristensen: I think its String -> [Any] -> Any
<gchristensen> ah
<infinisil> (as you said)
<gchristensen> nice!
<gchristensen> thank you!
<infinisil> ekleog: Automating this sure would be nice..
<clever> gchristensen: trying an example in repl...
<gchristensen> automating what?
<infinisil> gchristensen: This type resolution
<gchristensen> heh, yeah, but then many things would be meaningless, like optionalAttrs' type lies about itself
<clever> > lib.attrsets.zipAttrsWithNames [ "a" "b" ] (name: vals: builtins.foldl' (a: b: a + b) 0 vals) [ { a = 1; b = 1; c = 1; } { a = 10; } { b = 100; } { c = 1000; } ]
<{^_^}> { a = <CODE>; b = <CODE>; }
<clever> { a = 11; b = 101; }
<infinisil> optionalAttrs would then just be :: Bool -> a -> (a | Attrs Any)
<infinisil> I guess this gradual typed could make it better
<clever> names is a list of keys to filter the sets on, f takes a single name and a list of values to merge, and then you give it a list of sets
<ekleog> infinisil: hmm… context?
<clever> the c attr is filtered out, and the foldl sums up all the a's and b's seperately
<infinisil> ekleog: Because you mentioned typing nix in #nix-lang
<ekleog> oh :)
<clever> nix-repl> lib.attrsets.zipAttrsWithNames [ "a" "b" ] (name: vals: "${name} ${toString (builtins.foldl' (a: b: a + b) 0 vals)}") [ { a = 1; b = 1; c = 1; } { a = 10; } { b = 100; } { c = 1000; } ]
<clever> { a = "a 11"; b = "b 101"; }
<clever> gchristensen: and making use of the name
<gchristensen> nice!
<gchristensen> thank you :D
<ekleog> well, currently I'm only dynamically typing, I still have hope that regnat will someday be able to finish up his prototype :)
<clever> gchristensen: you could then use this to merge the .config every nixos module returns, and use the name to lookup the merge rules in .options
<ekleog> (but he's… out of time for nix due to external reasons, unfortunately)
<clever> gchristensen: and whenever you hit a set, recursively call itself, with the subtree of sets to merge
<infinisil> ekleog: I once thought of implementing Nix typing in Nix itself
<clever> gchristensen: but checking the source, i dont think modules actually use this method exactly
<gchristensen> shlevy did that with some ADTs
<clever> infinisil: you up for a rewrite? lol
<infinisil> rewrite of what?
<clever> infinisil: using zipAttrsWithNames to handle merging .config trees
<ekleog> infinisil: hmm… do you mean in the nix language, or in nix-the-software?
<infinisil> ekleog: Typing the Nix language, so it does inference, you can mark the type of stuff and report when the types don't match
<ekleog> anyway, you may be interested in https://github.com/regnat/ptyx/ :)
<infinisil> But it would end up looking like nixlisp..
<infinisil> Because you would have to use functions for everything, including +, //, if, etc.
sigmundv has quit [Remote host closed the connection]
<ekleog> (unfortunately, it's not complete yet at all, even though IIUC the theory behind it is now done)
<clever> infinisil: behind the scenes, - is just a function call
<infinisil> ekleog: Yeah saw ptyx before
<infinisil> clever: True dat, hmm.. maybe it could be a nix plugin
<clever> infinisil: you can even overwrite that function and change the behaviour of -
<clever> infinisil: but + is special, because of string vs int
<infinisil> Ah yeah
<infinisil> > let __sub = a: b: 10; in 1 - 2
<clever> - / and * all get turned into function calls
<infinisil> {^_^} Huhu
<clever> but + is an instance of the ExprConcatStrings class, which can only ever be created via the + operator
drakonis has quit [Ping timeout: 250 seconds]
<infinisil> > let __sub = a: b: 10; in 1 - 2
<{^_^}> 10
<infinisil> Nasty
<ekleog> clever: well, it's just a function in (string -> string) /\ (int -> int)
<infinisil> Probably won't work with `with;` and scopedImport though
<ekleog> erhm, (string -> string -> string) /\ (int -> int -> int)
<clever> infinisil: i have used scopedImport to "fix" - with floats
<infinisil> Oh so it does work
<clever> there was a bug somewhere that a thunk and a float dont subtract right, i think
<infinisil> Hmm, but can't replace //
<clever> because it was checking the types matched up before forcing
<clever> ekleog: look at how complex + is!
<ekleog> clever: I mean semantically, not in the implementation :) (and btw your link is broken)
<gchristensen> ok well this is enough for the day.
<{^_^}> [nixpkgs] @grahamc pushed 7 commits to master: https://git.io/fxBto
drakonis has joined #nixos
<ekleog> oh true there are paths and floats too, so the type is a bit more complex, but in the end it's “just” a function :)
<ekleog> (from a typechecker's pov)
<infinisil> gchristensen: Are the letters on your "<" and ">" keys still visible? xD
<gchristensen> I don't type <'s or >'s very often
<{^_^}> [nixpkgs] @grahamc pushed 7 commits to release-18.09: https://git.io/fxBtD
yosslid has quit [Ping timeout: 246 seconds]
<clever> ekleog: when // is merging 2 sets, it will alternate between the 2 iterators, to keep them at the same relative point, to ensure the output is sorted
<ekleog> clever: wait… is set ordering visible from the nix language?
<clever> ekleog: note, that this order is the ints behind the keys
<clever> ekleog: behind the scenes, nix has a `Map String Int` for every string ever used as a key, and then the attr sets are actually `Map Int Value`, not `Map String Value`
<gchristensen> infinisil: I have a yasnippet snippet for functions, parameters, predicates, and examples which reduces the typing.
<infinisil> Neato
<clever> ekleog: the symbols var is what holds that entire table, and the block i just linked is saving the int behind keys like "name" (line 273)
<ekleog> yeah that makes sense for optimization reasons, but I don't see the link with… oh wait, “vector”, ok that's why
<clever> ekleog: so nix can just lookup the name key by using the int in sName, and skip all string compares
<clever> ekleog: and all keys are sorted by that int
<{^_^}> [nixpkgs] @matthewbauer opened pull request #48286 → avr: use new compilation infrastructure → https://git.io/fxBq4
<clever> so it depends on the order the keys are encountered, when parsing all files
<ekleog> but I mean, from a typechecker pov this ordering doesn't matter
<ekleog> does it?
<clever> yeah, the typechecker doesnt care
<clever> but at runtime, the keys must be sorted by int, so you can know if you have gone "too far" and can just give up looking for a given key
<ekleog> hmm yeah, ok, I thought we were talking typecheckers :)
<clever> oh, just noticed, keys like .name are low values (because they are pre-allocated), so it can fail much faster, when you lack a .name attr
<{^_^}> [nixpkgs] @c0bw3b opened pull request #48287 → allegro: fix v4.4.2 src URL → https://git.io/fxBqz
<clever> and it will find it faster, when you do have it
<clever> let me try an example....
* ekleog wonders a bit why the vector isn't an unordered_map, but I guess it's for memory efficiency reasons
<gchristensen> clever: oh that is cool
trevorriles has joined #nixos
<ekleog> that's in exchange of performance for large dicts, though
<clever> nix-instantiate --eval -E 'builtins.trace (builtins.toJSON { b=1; a=2; }) (builtins.attrNames { b=1; a=2; })'
<clever> hmmm, cant get it to impact the order of attrNames...
<clever> blast, attrNames sorts!
<clever> so does attrValues, it sorts by the keys
<infinisil> That's the kind of conversation that would fit it #nix-lang :P
Ariakenom has joined #nixos
jabranham has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
halfbit has quit [Ping timeout: 250 seconds]
orbekk has quit [Ping timeout: 268 seconds]
orbekk has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #48283 → reattach-to-user-namespace: 2.6 -> 2.7 → https://git.io/fxBUX
<{^_^}> [nixpkgs] @xeji pushed commit from @LnL7 to master « reattach-to-user-namespace: 2.6 -> 2.7 (#48283) »: https://git.io/fxBYk
<{^_^}> [nixpkgs] @xeji merged pull request #48287 → allegro: fix v4.4.2 src URL → https://git.io/fxBqz
<{^_^}> [nixpkgs] @xeji pushed commit from @c0bw3b to master « allegro: fix v4.4.2 src URL (#48287) »: https://git.io/fxBY4
<gchristensen> recursiveUpdateUntil is a tricky one :)
Izorkin has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
tnias_ has quit [Remote host closed the connection]
trevorriles has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @xeji merged pull request #47705 → xpra: 2.3.3 -> 2.3.4 → https://git.io/fxIaD
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « xpra: 2.3.3 -> 2.3.4 (#47705) »: https://git.io/fxBO4
<{^_^}> [nixpkgs] @xeji merged pull request #47759 → mercurialFull: 4.7.1 -> 4.7.2 → https://git.io/fxLY0
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to staging « mercurialFull: 4.7.1 -> 4.7.2 (#47759) »: https://git.io/fxBOK
<infinisil> gchristensen: Has actually had a bug in it until recently: https://github.com/NixOS/nixpkgs/pull/41604
<{^_^}> #41604 (by bluescreen303, 18 weeks ago, merged): lib/recursiveUpdateUntil: fix code to match documentation
<emily> does anyone publish binaries of chromiumDev? I um. I tried to install it and it started unpacking the source archive
<{^_^}> [nixpkgs] @xeji merged pull request #47768 → mcelog: 160 -> 161 → https://git.io/fxLlE
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « mcelog: 160 -> 161 (#47768) »: https://git.io/fxBO7
<gchristensen> nice
<emily> I mean, it'd be a nice overnight stress-test
drakonis_ has quit [Ping timeout: 244 seconds]
<emily> heh, it doesn't even work -- the build system patch fails
<{^_^}> [nixpkgs] @xeji merged pull request #47772 → libcouchbase: 2.9.4 -> 2.9.5 → https://git.io/fxLRS
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « libcouchbase: 2.9.4 -> 2.9.5 (#47772) »: https://git.io/fxB3L
<emily> beta works at least
<{^_^}> [nixpkgs] @xeji merged pull request #47819 → duo-unix: 1.10.4 -> 1.10.5 → https://git.io/fxtOZ
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « duo-unix: 1.10.4 -> 1.10.5 (#47819) »: https://git.io/fxB3G
<{^_^}> [nixpkgs] @xeji merged pull request #47730 → qmmp: 1.2.3 -> 1.2.4 → https://git.io/fxIAd
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « qmmp: 1.2.3 -> 1.2.4 (#47730) »: https://git.io/fxB30
<{^_^}> [nixpkgs] @xeji merged pull request #47702 → vulkan-headers: 1.1.82.0 -> 1.1.85 → https://git.io/fxIEr
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « vulkan-headers: 1.1.82.0 -> 1.1.85 (#47702) »: https://git.io/fxB3w
xenog has joined #nixos
<Church-> emily: Obvious answer, use firefox
<Church-> :P
<{^_^}> [nixpkgs] @grahamc pushed 5 commits to master: https://git.io/fxB31
<{^_^}> [nixpkgs] @xeji merged pull request #47767 → libmesode: 0.9.1 -> 0.9.2 → https://git.io/fxLln
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « libmesode: 0.9.1 -> 0.9.2 (#47767) »: https://git.io/fxB3y
__monty__ has quit [Quit: leaving]
<Church-> Curious if the way nix works impacts browser performance. 299 tabs of firefox took 9GB of ram whereas it usually takes only 5GB on ubuntu
<{^_^}> [nixpkgs] @grahamc pushed 5 commits to release-18.09: https://git.io/fxB35
<gchristensen> Church-: how would Nix cause that?
<clever> Church-: is that with the exact same set of tabs and the same general version?
<{^_^}> [nixpkgs] @xeji merged pull request #47770 → libblockdev: 2.19 -> 2.20 → https://git.io/fxL8V
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « libblockdev: 2.19 -> 2.20 (#47770) »: https://git.io/fxB3N
<Church-> clever: Yep
<clever> firefox or firefox-bin?
<Church-> firefox
<clever> try again with the firefox-bin attr?
<clever> > pkgs.firefox-bin
<Church-> gchristensen: Yeah was a stupid though now that I think of it.
<{^_^}> "<derivation /nix/store/72kv5drv305kh1nbhpiiv0sqx9kjsfsl-firefox-bin-61.0.2.drv>"
<Church-> Will do in a minute. Laptop is so far away
<clever> firefox is nix's custom build, which might have some compile flags set wrong
drakonis has quit [Ping timeout: 245 seconds]
<Church-> Bed is comfy
<Church-> Ahhhhh
<clever> firefox-bin is just a patchelf'd copy of the upstream release
<gchristensen> I'd guess instead that opening all 299 tabs would cause more ram to be hot, whereas other ff's running 299 tabs have had them a while
drakonis has joined #nixos
<{^_^}> [nixpkgs] @acowley closed pull request #48278 → avrgcc: rename to avrgcc-unwrapped; add wrappers → https://git.io/fx4ps
<gchristensen> ^ definitely a WAG :)
<Church-> gchristensen: Yeah that my other thought.
<clever> gchristensen: lately, ive found that github is using ~3-4gig of ram in chrome, and that renderer process often stalls and causes only github tabs to hang for ~5 seconds
<Church-> clever: If I install FF via home manager how would I install -bin?
<clever> but thats likely just due to the sheer number of github tabs i have open
<clever> Church-: install firefox-bin instead of firefox
<infinisil> My FF performance is horrible :(
<infinisil> No hardware acceleration whatsoever
<infinisil> With videos and stuff
[0x4A6F] has quit [Quit: [0x4A6F]]
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « xdgmenumaker: 1.4 -> 1.5 (#47708) »: https://git.io/fxBsK
<{^_^}> [nixpkgs] @xeji merged pull request #47708 → xdgmenumaker: 1.4 -> 1.5 → https://git.io/fxIVW
drakonis_ has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #47725 → vim: 8.1.0348 -> 8.1.0450 → https://git.io/fxIXi
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « vim: 8.1.0348 -> 8.1.0450 (#47725) »: https://git.io/fxBsS
drakonis has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « pjsip: 2.7.2 -> 2.8 (#47735) »: https://git.io/fxBGm
<{^_^}> [nixpkgs] @xeji merged pull request #47735 → pjsip: 2.7.2 -> 2.8 → https://git.io/fxIpH
<{^_^}> [nixpkgs] @xeji merged pull request #47763 → libuv: 1.23.0 -> 1.23.1 → https://git.io/fxLnT
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to staging « libuv: 1.23.0 -> 1.23.1 (#47763) »: https://git.io/fxBG0
<Church-> clever: The reason I asked is because I added firefox as such: https://paste.rs/fWW Wasn't sure if I could set it as programs.firefox-bin
<{^_^}> [nixpkgs] @xeji merged pull request #46280 → linuxPackages.evdi: 1.5.0 -> 1.5.0.2 → https://git.io/fAzRB
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/fxBZL
<Church-> Guess I'll just install it sys wide. Not a big deal
<{^_^}> Channel nixpkgs-18.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/b8f712ef61a (from 73 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-18.09-darwin)
cnidario has joined #nixos
<Church-> I hope the intel chip will be fully supported eventually. Running everything on nvidia is a pain on my fans and my battery. Blegh
<Church-> Oh well.
mayhewluke has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #48262 → deepin.dde-api: init at 3.1.30 → https://git.io/fx4Ll
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/fxBZP
Drakonis__ has joined #nixos
kim0 has joined #nixos
mayhewluke has joined #nixos
Erayaydin has joined #nixos
<Church-> Hmm anybody have a ready to go module for auto configuring fancontrol?
<Erayaydin> Hi, I think migrate to nixos from arch (I use arch 4-5 years). What are pros and cons u guys tell to an arch user? I love to lightweight and KISS
<Drakonis__> Erayaydin, my man, arch ain't lightweight nor kiss
<Church-> I mean it can be.
<Erayaydin> Drakonis__: why not? Except systemd
<Erayaydin> I use lightweight packages and applications like i3,mutt,irssi,vim,polybar etc
<Erayaydin> and most of them have KISS principle
<Drakonis__> that doesn't make arch into a lightweight distribution?
<Erayaydin> Drakonis__: its have no graphical installation, no already installed bloat packages etc.
<Drakonis__> again, that doesn't make it lightweight
<Erayaydin> hmm then how you define lightweight for a "distro"
<worldofpeace> Erayaydin: Declarative configuration
<{^_^}> [nixpkgs] @mpickering opened pull request #48288 → cedille: init at v1.0.0 → https://git.io/fxBnI
<Erayaydin> what about PKGBUILD? worldofpeace Isn't like declarative?
<mpickering> That's how I fixed the problem in the end, not sure if that's the recommended way.
<worldofpeace> Erayaydin: *Declarative configuration of the system
<Erayaydin> but Arch isnt configuration based distro. Hmm I understand what you mean
<worldofpeace> Erayaydin: I've used arch before and I tend to think NixOS as the arch linux users dream :)
<{^_^}> [nixpkgs] @Mic92 merged pull request #48272 → nixos/rmilter: don't enable by default, if rspamd enabled → https://git.io/fx4aH
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxBnR
<Erayaydin> Oh, thats a good news for me :) Do you can get used to big /nixos/store directory :\
<Erayaydin> Its look like huuuuuge packages directory like NPM
<Drakonis__> Erayaydin, no such thing as a lightweight and kiss distribution exists
<Drakonis__> its all about the practices
<{^_^}> [nixpkgs] @Mic92 merged pull request #48248 → use buildPackages in environment.extraSetup → https://git.io/fx8K0
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxBng
<Drakonis__> if you define a distribution by the packages it has, then you have failed
<maurer> Erayaydin: Pros: If your system works, and you try something new, you can always go back to how it was before. Declarative configuration means it's easy to port a system configuration to a new machine
<Church-> Hmm, odd. Pwmconfig doesn't sense any sensors...
hyper_ch_ has joined #nixos
<Drakonis__> if i run all these packages you mentioned, does it make any distribution into a lightweight and kiss distribution?
<maurer> Erayaydin: Cons: If someone else has an "installer" or a "universal binary" it's not going to work without sacrificing a goat
<Erayaydin> no if you build that packages from huge distro its make no lightweight Drakonis__
hyper_ch has quit [Ping timeout: 264 seconds]
hyper_ch_ is now known as hyper_ch
<Erayaydin> I can still bleeding edge right ?
<Erayaydin> on nixos
<samueldr> yeah
<worldofpeace> very
<samueldr> it has releases
<Drakonis__> extremely.
<samueldr> but a bunch of users and devs use what's called "unstable"
<samueldr> which is close to a rolling release
<worldofpeace> ^
<Drakonis__> Erayaydin, that doesn't make any sense
<Erayaydin> Drakonis__: if you use i3,mutt,irssi,vim etc on Ubuntu, I say its not lightweight and you have big bloat packages
<Drakonis__> maurer, instead of sacrificing a goat, why not toss it into a vm or container
<Erayaydin> Because u have and u just "didnt" use
<Drakonis__> seems less painful
<Drakonis__> that actually doesn't make any sense because its the same binaries and the same kernel
<maurer> Drakonis__: Because that means everyone else has to do that too, rather than you fixing it once and putting it in nixpkgs
<samueldr> maurer: universal bianries with steam-run sometimes run right :)
<Drakonis__> oh yeah that's a problem
<Drakonis__> you can do that or sacrifice a goat for the greater good
<maurer> The only piece of software I run containerized is IDA
<Church-> Okay odd, lm_sensors installed. pwmconfig installed
silver_ has joined #nixos
<Erayaydin> Another question, what about hardware specific issues on nixos?
<Drakonis__> something something the road to hell is paved with good intentions
<samueldr> Erayaydin: nixos is linux
<Church-> Can't run pwmconfig though...
jbgi has quit [Ping timeout: 252 seconds]
<maurer> Erayaydin: Only issue I've ever had is difficulties getting optimus to work, but that's not a nixos-specific issue
<samueldr> so uh, generally if something works on other distros, it should here
<Drakonis__> you're still running all the same binaries on linux
<Church-> But sensors can still read my temps... the heck.
<Erayaydin> I mean, for example, nixos have x11 configuration in built, may I change alllll x11 configuration like on arch
<worldofpeace> samueldr: unless they're being greedy and not sharing it
<maurer> Drakonis__: And that's because IDA's installer and binary are... temperamental, due to their userbase literally consisting entirely of hackers, so the rocket surgery would be very involved, and break on the next point release
<Erayaydin> I think, I can do whatever on nixos like I did on arch, right?
<o1lo01ol1o> is it possible that hydra doesn't pull the latest project source from github when I trigger an evaluation?
<samueldr> some options (most?) allows you to completely override the config file
<Drakonis__> maurer, i'm aware
<Drakonis__> radare finally caught up with ada anyways
<maurer> Disagreement box
<samueldr> and "whatever", yeah, as long as you don't want to modify the nix store, which is a big no-no
<Drakonis__> ida sorry
<maurer> but then again, I work on BAP, so I may have different views on Radare's flaws
<Drakonis__> samueldr, was there any progress on overriding immutable files with user provided files?
<samueldr> no idea
<{^_^}> [nixpkgs] @yegortimoshenko opened pull request #48289 → dnscrypt-proxy2: 2.0.15 -> 2.0.17, add NixOS module → https://git.io/fxBnp
<maurer> Drakonis__: Also, last I checked, radare lacks a hexrays-like feature?
<Drakonis__> radare2
<{^_^}> [nixpkgs] @sengaya opened pull request #48290 → openxcom: 1.0.0.2018.01.28 -> 1.0.0.2018.10.08 → https://git.io/fxBcB
silver has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @markuskowa opened pull request #48291 → Add licenses → https://git.io/fxBc7
<Drakonis__> looks like the original radare doesn't but the new one might?
<Drakonis__> this is definitely not my field of software
<maurer> Yeah, basically, Hexrays is actually nowhere near the state-of-academic-art in terms of decompilation, but nobody in academia has bothered gluing together techniques or robustifying them
<maurer> but last I checked, it was the only thing you could reasonably call a C decompiler
<maurer> there's things like boomerang, but they just fail on a ton of code
<maurer> (there's also BAP Phoenix, but it also doesn't do what you want - it has superior control flow reconstruction, but inferior type reconstruction, which is funny, because I had superior type reconstruction in another branch)
<maurer> (they just never got merged together)
<maurer> Also, the "user interface" is a joke, as you might expect
<Church-> And still no pwm-capable modules
<Church-> Sigh. For later then
isHavvy has joined #nixos
<Drakonis__> maurer, haven't you heard, hackers love CLI
Gohla has quit [Read error: Connection reset by peer]
<Drakonis__> there are however frontends lmao
<{^_^}> [nixpkgs] @xeji merged pull request #48257 → fcppt: 2.5.0 -> 2.9.0 → https://git.io/fx8x6
<{^_^}> [nixpkgs] @xeji pushed commit from @pmiddend to master « fcppt: 2.5.0 -> 2.9.0 (#48257) »: https://git.io/fxBlJ
<maurer> Phoenix actually does have a gui implemented as a web frontend
<maurer> but it doesn't support any kind of annotation injection or propagation
<maurer> which is one of the more important features in hexrays - if you rename a variable, you can propagate it around the program, same with functions or function arguments
<maurer> It also supports limited type propagation if you annotate them
<maurer> both of those allow a human reverser to drastically improve the output of the automated engine
<Drakonis__> i am absolutely not supposed to have opinions on things i don't work with
<maurer> However, we're way off topic here, if you want to continue, send a line in #nixos-chat and I'll resume
<Drakonis__> ya
<Drakonis__> back on track
<worldofpeace> Church-: I don't think there's a module for configuring fancontrol.
<Drakonis__> where did we stop regarding moving from arch to nixos
<Drakonis__> Erayaydin, you don't get the leeway that arch provides you
<Drakonis__> where you can just live vicariously by breaking everything all the time
Havvy has quit [Ping timeout: 246 seconds]
<Erayaydin> Personally, x11 issues or hardware issues not problem. I can fix that with updates, also there is an option you just not update that package and u didnt break, its like myth on arch
<Church-> worldofpeace: There should be? Running pwmconfig gives that error
<Erayaydin> I use Arch on my daily job without problem
Gohla has joined #nixos
<Church-> So I can't gen a config for fan control
<Erayaydin> But you right, some people need "stability"
<Drakonis__> that's not what i implied
<worldofpeace> Erayaydin: It's not even "stability" your system can be screwed and only a reinstall could fix it
<worldofpeace> Erayaydin: With nixos every configuration change is as good as a clean install
<Erayaydin> worldofpeace: I use arch without reinstall with 4 years :\
<Erayaydin> Still use latest package without any screw
<Erayaydin> (checked everywhere of system)
<Erayaydin> But, Its true NixOS really good, I'll try
<Erayaydin> Thats why I joined IRC channel and asked questions
<Erayaydin> My lovely interest point of NixOS is, "configuration based"
<Drakonis__> yes it is entirely configuration based
<worldofpeace> Though there will most likely be pain points re-implementing your workflow
<samueldr> YMMV, turns out I hadn't much to re-implement or change, mostly learn how to package whatever was missing
<Drakonis__> there's an adaptation period as you can't just live vicariously by changing files at random
<Drakonis__> like with arch
<samueldr> yes, that's the most defining point I'd say
<worldofpeace> I think everything is just more intentional
<samueldr> since the store is immutable, you can't "just change something" to fix a thing
<samueldr> but woah that's a good thing in the end
<Drakonis__> there are some things i'd like to flip the immutability switch off
<{^_^}> [nixpkgs] @jslight90 opened pull request #48292 → add custom hooks directory to gitlab-shell → https://git.io/fxB4S
<Drakonis__> but other than that it is all fine and dandy
<kim0> Is there some way to request a specific package to be upgraded? I just pinged fpletz since he seems to be the maintainer, but not sure if I should be doing something else
<Drakonis__> which package?
<kim0> xmr-stak
<Drakonis__> usually there's automated pull requests
aminechi1haoui has joined #nixos
<Drakonis__> oh its monero :|
<kim0> it's hard forking next Thu .. and should be upgraded to 2.5 or will stop working
<Church-> Yeah I need to get pypandoc upgraded.
<Drakonis__> why not update it yourself?
<Church-> Seems broken.
<Church-> Hmm could do that
<kim0> coz maybe I don't know how to :)
<Drakonis__> its not exactly hard to do that
<Church-> worldofpeace: Looks good. Give it a try
<Church-> Ta'
<kim0> yeah .. but I'd rather not go there anyway
bjall has joined #nixos
<Drakonis__> its fairly easy
aminechi1haoui has quit [Client Quit]
<Drakonis__> why not try?
<kim0> I know and edited some pkgs a year ago .. but this time, I'm only really interested in the result
<{^_^}> [nixpkgs] @volth opened pull request #48293 → nixos/qemu-guest-agent: pkgs.{kvm -> qemu} → https://git.io/fxBB9
<Drakonis__> issues vOv
<Drakonis__> its faster if you do it yourself
<Drakonis__> do it then send the pull request
<{^_^}> [nixpkgs] @xeji merged pull request #48290 → openxcom: 1.0.0.2018.01.28 -> 1.0.0.2018.10.08 → https://git.io/fxBcB
<{^_^}> [nixpkgs] @xeji pushed commit from @sengaya to master « openxcom: 1.0.0.2018.01.28 -> 1.0.0.2018.10.08 (#48290) »: https://git.io/fxBRI
<Drakonis__> don't be that guy
<samueldr> Drakonis__: please don't be that guy; no need to push people around
<{^_^}> Channel nixos-18.09-small advanced to https://github.com/NixOS/nixpkgs/commit/c8342644cf1 (from 70 minutes ago, history: https://channels.nix.gsc.io/nixos-18.09-small)
<Drakonis__> yes i'm also being that guy
<Drakonis__> kim0, post an issue requesting an update
<worldofpeace> Also maybe some non-specific pronouns
<Drakonis__> i'm being that person?
<kim0> Thanks will do .. should I try to assign it to someone or so
<samueldr> kim0: you won't be able to assign, but you could cc: a maintainer or someone that updated it recently
<Drakonis__> you can also fill it with the specific situation
<Drakonis__> re: hard fork
<samueldr> yeah, more details will help
<Drakonis__> if you need a new package
<Drakonis__> someone might be happy to pull it off
<{^_^}> #48294 (by kim0, 44 seconds ago, open): Upgrade xmr-stak to v2.5.0 urgent
<Drakonis__> fair enough
<Drakonis__> no need to say urgent though
<Drakonis__> folks will have to do it on their own time
<kim0> sure .. saying bec the hardfork is in 5 days
<Drakonis__> c'mon
<kim0> no idea why xmr-stak pushed the new release just today! https://github.com/fireice-uk/xmr-stak/releases
<kim0> quite late if you ask me
erasmas has quit [Quit: leaving]
xenog has quit [Ping timeout: 276 seconds]
<Drakonis__> this is silly :|
<{^_^}> [nixpkgs] @xeji merged pull request #48163 → pythonPackages.tinycss: 0.3 -> 0.4 refactor move to python-modules → https://git.io/fxWkr
<{^_^}> [nixpkgs] @xeji pushed commit from @costrouc to master « pythonPackages.tinycss: 0.3 -> 0.4 refactor move to python-modules (#48163) »: https://git.io/fxB0t
<Drakonis__> rather, i don't see why is it a hard fork
<maurer> Drakonis__: It's a PoW change, the hardfork isn't in the code, it's in the protocol it will have to speak to other monero clients
<kim0> huh? Monero hard forks every 6 months anyway to apply upgrades .. This time they're changing the proof of work function to evade ASICs
<Drakonis__> that seems like a hilariously poor way to say "we upgraded the protocol"
simukis has quit [Quit: simukis]
<maurer> The reason they call it a hard fork is that every time they do this, there's a risk that some people will say 'no eat shit' and stay on the old protocol
<judson> This is going to sound whiny, but is there a way to get a shell to map paths of executables? I now have a symlink from /usr/sbin/visudo to make puppet tests work, because the path is hardcoded.
<Drakonis__> haha welp
<maurer> This has def. happened with other cryptocurrencies, though I think Monero has _usually_ moved forwards
<maurer> judson: General rule there is to unhardcode paths with sed during installation?
<Drakonis__> judson, have a web of symlinks you can point to binaries
<Drakonis__> cryptocoin drama is not my thing anyways
<maurer> e.g. sed s%/usr/bin/visudo%${sudo}/sbin/visudo% or wherever it really is
<maurer> during patchPhase
<judson> This is a development repo though, which pulls in a bunch of ruby code via 700 git clones. Sed'ing them isn't feasible or friendly.
alex`` has quit [Quit: WeeChat 2.2]
<judson> I mean, symlinking as needed, I guess I can live with.
<maurer> OK. I'm not going to be able to help you then. My personal opinion is "stop vendoring so hard, oh my god I hate vendoring".
<Drakonis__> this seems like a horrible thing don't do it
<Drakonis__> do we have any nixpkgs policy manual?
<Drakonis__> it would be nice for these terrible cases
<Drakonis__> debian has a book on packaging policy, do we?
<maurer> Drakonis__: I don't think he's trying to package
<maurer> I think he's trying to dev
<maurer> if he's trying to package, nobody's going to accept this
<maurer> Doesn't have a specific policy, but that's because basically a lot of things get packaged differently depending on fiefdom it seems
<maurer> e.g. for technical reasons, ocamlPackages end up using propagatedBuildDeps a lot more than would normally be allowed (because ocaml is weird)
<maurer> err, propagatedBuildInputs rather
<maurer> whereas in non-ocamlland, seeing that field would be cause to investigate closely
<Drakonis__> fair enough
<{^_^}> [nixpkgs] @xeji merged pull request #48291 → Add licenses → https://git.io/fxBc7
<{^_^}> [nixpkgs] @xeji pushed 11 commits to master: https://git.io/fxB0b
<Drakonis__> each lord with their fiefdom eh?
<Drakonis__> i have complained a little bit about debian's packagers being like this
<maurer> Not to say that policy wouldn't be good. If stuff stabilizes, it might be good to codify best practices
<Drakonis__> domain independent best practices
Drakonis__ is now known as Drakonis
<maurer> right now it's pretty much "Fill out the meta. Don't not fill out the meta. Test with sandboxing on. Don't turn off tests unless they fail or take a long time, and if they fail, check thoroughly. Avoid vendoring if possible. Do what other people in this area of nixpkgs are doing already (e.g. be compatible with the giant functorish thing that retargets a library set to a particular compiler)
<Drakonis> would probably be best to solidify it after getting stronger tooling
bjall has quit [Ping timeout: 256 seconds]
<Drakonis> still gotta solve the "import packages from external package manager" problem
<maurer> I mean, the answer to that is never going to be able to be policy coded?
<maurer> It is basically "Appoint a wizard for your language, make sure they do it right"
<Drakonis> probably
<Drakonis> but then that's where you get domain specific policy
<Drakonis> for what you can't codify for everything
<{^_^}> [nixpkgs] @xeji merged pull request #48293 → nixos/qemu-guest-agent: pkgs.{kvm -> qemu} → https://git.io/fxBB9
<{^_^}> [nixpkgs] @xeji pushed commit from @volth to master « nixos/qemu-guest-agent: pkgs.{kvm -> qemu} (#48293) »: https://git.io/fxBEo
slyfox has quit [Ping timeout: 252 seconds]
slyfox has joined #nixos
<{^_^}> [nixpkgs] @Mic92 pushed commit from @avnik to release-18.09 « nixos/rmilter: don't enable by default, if rspamd enabled »: https://git.io/fxBu2
NightTrain has joined #nixos
<{^_^}> [nixpkgs] @volth opened pull request #48297 → perlXMLParser -> perlPackages.XMLParser → https://git.io/fxBu1
o1lo01ol1o has quit [Ping timeout: 252 seconds]
<neonfuz> How do I do package overrides for packages installed by nixos?
<neonfuz> not nix-env
jluttine has quit [Ping timeout: 245 seconds]
lorilan has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #48234 → keybase-gui: 2.5.0 -> 2.7.0 → https://git.io/fx8cS
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxBzk
<neonfuz> can I just add nixpkgs.config = ... in my configuration.nix?
jluttine has joined #nixos
<lorilan> hi I just installed the build tool pants using `nix-env -iA nixos.python27Packages.pants`. I try `pants goals` and I get "Exception caught: (<type 'exceptions.ImportError'>) Exception message: /tmp/tmp3uWaq5/native_engine.so: invalid ELF header" and I have no idea what to do :(
<lorilan> Is there anybody who could hint me a direction where to find the solution ?
<neonfuz> yeah figured it out, that was it
<{^_^}> [nixpkgs] @volth opened pull request #48298 → buildPerlPackage -> perlPackages.buildPerlPackage → https://git.io/fxBzu
astronavt_ has joined #nixos
astronavt has quit [Read error: Connection reset by peer]
astronavt_ is now known as astronavt
<{^_^}> [nixpkgs] @Mic92 merged pull request #48233 → kbfs: 2.5.0 -> 2.6.0 → https://git.io/fx8cy
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxBzK
siers has quit [Ping timeout: 268 seconds]
jasongrossman has joined #nixos
Erayaydin has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @Mic92 merged pull request #48232 → keybase: 2.5.0 -> 2.7.3 → https://git.io/fx8cM
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fxBzH
<{^_^}> [nixpkgs] @volth opened pull request #48299 → perlArchiveCpio -> perlPackages.ArchiveCpio → https://git.io/fxBzA
aminb has joined #nixos
nbardiuk has quit [Ping timeout: 252 seconds]
Drakonis has quit [Ping timeout: 244 seconds]
mpuppe has joined #nixos
<{^_^}> [nixpkgs] @ryantm merged pull request #48251 → lib/types: enhances separatedString's description. → https://git.io/fx86N
<{^_^}> [nixpkgs] @ryantm pushed 2 commits to master: https://git.io/fxBgQ
<samueldr> ryantm_: will you be backporting?
pie__ has quit [Ping timeout: 252 seconds]
<samueldr> (don't want to accidentally step on toes)
<{^_^}> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/b27d39e0440 (from 37 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
astronavt_ has joined #nixos
astronavt__ has joined #nixos
astronavt has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @samueldr pushed to release-18.09 « lib/types: enhances separatedString's description »: https://git.io/fxB26
Drakonis has joined #nixos