glenn has joined #nixos
<elvishjerricco> gchristensen: There are a lot more arguments to that `release.nix` than there are inputs for that job set. Are those just using the defaults when hydra builds it?
<gchristensen> usually, yes. can you link me?
jb55 has joined #nixos
shanemikel has quit [(Ping timeout: 255 seconds)]
<gchristensen> yeah, most of those are defaults
<gchristensen> the nixpkgs ? { outPath = (import ../../lib).cleanSource ../..; revCount = 1234; shortRev = "abcdef"; }
<elvishjerricco> Yea I was just wondering if hydra was supposed to fill anything in besides the "inputs" to the jobset.
<gchristensen> the nixpkgs corresponds to the "nixpkgs" input and the "nixpkgs" attrset there is set by thee GitInput plugin: https://github.com/NixOS/hydra/blob/master/src/lib/Hydra/Plugin/GitInput.pm#L240-L249
<elvishjerricco> But also, it definitely doesn't just accept any expression that `nix-build` would accept. For example, `nix-build` will accept an attrset with functions, and it'll just skip them and build only the derivations. But hydra will complain if it encounters a function.
<gchristensen> it should do okay with functions, I think, and just not build them?
orivej has quit [(Ping timeout: 248 seconds)]
csingley has quit [(Ping timeout: 240 seconds)]
<elvishjerricco> gchristensen: Nah. Hydra throws a bunch of "unsupported value" errors if you try to leave in any non-derivation values.
dhess has quit [(Remote host closed the connection)]
<gchristensen> but does it build other things anyway?
<elvishjerricco> I don't think so
ryantrinkle1 has quit [(Ping timeout: 252 seconds)]
<clever> gchristensen: something i recently threw together: https://github.com/cleverca22/nixos-configs/blob/master/netboot_server.nix
<gchristensen> oohhh
dhess has joined #nixos
riclima has quit [(Quit: riclima)]
Oida has quit [(Ping timeout: 252 seconds)]
oida has joined #nixos
<gchristensen> oooh nice
erictapen has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] abbradar pushed 5 new commits to staging: https://git.io/vd9bN
<NixOS_GitHub> nixpkgs/staging 8f43c56 Nikolay Amiantov: libtorrentRasterbar: 1.1.4 -> 1.1.5...
<NixOS_GitHub> nixpkgs/staging 3e4737d Nikolay Amiantov: bastet: fix build with new boost
<NixOS_GitHub> nixpkgs/staging 593c6a8 Nikolay Amiantov: povray: 3.7.0.3 -> 3.7.0.4...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] copumpkin opened pull request #1617: [Nasty sketch] Stop crashing High Sierra (master...shitty-kill-processes) https://git.io/vd9Ne
NixOS_GitHub has left #nixos []
<disasm> wow... installing unifi service to patch my access point just worked with no tweaking! Impressed :) I thought that was going to be a huge hassle I'd give up and reboot into osx to resolve
thc202 has quit [(Ping timeout: 255 seconds)]
<gchristensen> disasm: me too :o
Wizek has quit [(Quit: Connection closed for inactivity)]
shanemikel has joined #nixos
glenn is now known as scribbler
shanemikel has quit [(Read error: Connection reset by peer)]
<yurrriq> Are there any nixpkgs+(Quick)Lisp users in here that can show me a working example? My endgame is to run system tests using prove on Travis with `language: nix`. Any advice, code, or blog post links would be greatly appreciated!
<yurrriq> Aside: Iā€™m loving the stable Darwin channel. Many thanks to @LnL and whoever else is involved.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] acowley opened pull request #30527: isync: 1.2.1 -> 1.3.0 (master...isync-1.3.0) https://git.io/vd9Av
NixOS_GitHub has left #nixos []
<dhess> yurrriq: I saw that recently. Does it just track 17.09?
mizu_no_oto has joined #nixos
Guest92359 has quit [(Ping timeout: 240 seconds)]
<yurrriq> dhess: yeah, but (most) everything Just Works TM
<yurrriq> My lilypond-with-fonts package seems to have broken, but I think that has more to do with gcc and/or guile_1_8
MarcelineVQ has joined #nixos
pie_ has joined #nixos
pxc has quit [(Ping timeout: 260 seconds)]
<ldlework> Do actual nix package expressions typically utilize a package distribution's distributed build scripts/mechanisms or are they generally completely replaced with descriptions in the Nix expressions?
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<copumpkin> we usually reuse build scripts
<copumpkin> although it varies a bit with package ecosystem
<joepie91> network-dependent build scripts exempt :P
<copumpkin> yeah, we'll reuse as much as possible
<copumpkin> lazy programmers, etc.
<copumpkin> no way we could package as much as we do if we had to reinvent things
mizu_no_oto has joined #nixos
nh2 has quit [(Quit: Leaving.)]
ris has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc closed pull request #30509: Semi-automated Emacs package updates (master...emacs-updates) https://git.io/vdSgt
NixOS_GitHub has left #nixos []
<dhess> Dezgeg: you around?
<Dezgeg> for a bit
jb55 has quit [(Ping timeout: 248 seconds)]
<dhess> Dezgeg: we discussed this briefly in the past, but I can't find the conversation. So sorry to repeat myself, but is it possible in NixOS to build for armv7l-linux on an aarch64-linux system?
<dhess> I tried to do that with my Jetson TX1 build host but it complained that it wasn't armv7l
<Dezgeg> there's still an open issue on how to trick uname() to return armv7l inside 32-bit builds
<dhess> pretty sure that you can build armv7l binaries on a Jetson TX1 running L4 whatever
<samueldr> dhess: I have the notes around
<dhess> ahh ok, seemed like it might be a NixOS issue, yes
<dhess> samueldr: can you make them availble online somewhere?
<samueldr> doing it
<samueldr> not tried it yet
<dhess> Dezgeg: is there an issue for that?
<samueldr> hmm, fewer notes than I remembered
jgertm has quit [(Ping timeout: 240 seconds)]
<dhess> samueldr: thanks. (Ugh, I can never get search to work in botbot.me pages :\ )
<samueldr> the first link is when I asked here and then there's clever's setup
<dhess> oh right clever had something for this
<samueldr> had to google search to find my own irc log :)
<dhess> samueldr: I've done that before as well hehe
<Dezgeg> can't recall if there's something else than https://github.com/NixOS/nixpkgs/pull/25240
<dhess> Dezgeg: thanks, I'll poke around
Wizek__ has joined #nixos
iqubic has quit [(Remote host closed the connection)]
<samueldr> dhess: don't hesitate to share success/failures with me
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/c99239bca0 (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
nix-gsc-io`bot has quit [(Client Quit)]
Wizek_ has quit [(Ping timeout: 252 seconds)]
ben-coman has joined #nixos
<dhess> samueldr: sure
ryantrinkle has joined #nixos
<dhess> hmm that's weird, that 2017-09-11 convo with you and clever indicates that clever is using a multi-arch box (armv6l and armv7l)
<dhess> I wonder how he go that to work
Arcaelyx_ has joined #nixos
<samueldr> I believe he has a couple of tricks
jb55 has joined #nixos
<samueldr> if you look at the nix-misc/default.nix file I linked from clever
<samueldr> there's qemu-user-arm
<dhess> When I tried that with armv7l-linux,aarch64-linux I got the "I'm not an armv7l-linux"
<samueldr> this allows executing arm binaries on the host system through qemu
<dhess> samueldr: yeah I'd like to avoid qemu
<samueldr> afaik, it's still not possible without "actual arm"
<samueldr> be it through emulation or hardware
<dhess> I have an armv7l build machine that works fine, it's just slow, so I'd like my aarch64-linux to help out with armv7l builds
<samueldr> that was the state as of september
<dhess> samueldr: oh so he's actually using qemu-user-arm on an arm?
<samueldr> I don't believe so
Arcaelyx has quit [(Ping timeout: 246 seconds)]
<dhess> ok
<samueldr> gchristensen might know more about that, but pretty sure you'd need an armv7l distro running on your aarch64 linux for this to work
<dhess> yeah that kind of defeats the point for me.
<samueldr> though, thinking about it, if your board can run armv7l binaries, maybe using clever's patch that adds "build-extra-platforms" could be enough
<Dezgeg> no, it should all just be getting uname() to return the right thing
<Dezgeg> (well and a one-line patch to nix)
<dhess> samueldr: ahh now that looks useful
<dhess> Dezgeg: I assume clever's patch there is roughly the nix patch you were thinking of?
<Dezgeg> yes
<dhess> right
<dhess> ok you two, that's very useful and should give me something to play with. Thanks!
<samueldr> hope it works!
<dhess> here I am trying to unwind all the various hacks I've got going in my Nix/nixpkgs environment and now I'm about to add some more :)
<ben-coman> greetings, I'm 2 days into using NixOS for the first time, and wanted to discuss some lagging of the UI I'm experiencing. I've had a quick search of the bug tracker and not noticed anything related.
<ben-coman> I installed per https://chris-martin.org/2015/installing-nixos on a Dell Lattitude E6520 (Intel graphics) except I re-did it without the encrypted drive after I experienced the UI lagging.
<samueldr> I'm assuming you installed 17.09 though, right?
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<ben-coman> Usually after booting the system is okay for hours, then when moving between windows (e.g. Chromium to Konsole) there is a 3 to 5 second lag before I can type anything
iqubic has joined #nixos
<samueldr> using plasma5 then I presume
<ben-coman> @samueldr, yes. full install "17.09.1716.68ef4b14bc (Hummingbird)"
<ben-coman> yes
<ben-coman> yes, plasma5
saf_spa has joined #nixos
<ben-coman> my next step will be to switch to something else, but first I wanted see if there was any useful details I can report on to you guys.
<saf_spa> Hi! How do I list installed system packages? Not user/root-profile packages, but those pulled by system profile? Thanks!
<samueldr> I have a hunch, but I'm not even sure I'm right ben-coman
<samueldr> give me a minute or two to check something on my laptop
<saf_spa> "nix-env -q" does not cut it
<ben-coman> I've experienced the problem with Chromium & Firefox & Konsole.
<ben-coman> thx samuel
<gchristensen> saf: what it means to be "installed" gets a bit fuzzy. what're you looking to do?
<ldlework> Is it possible to just fetchFromGithub and provide the ref as "master" and not provide the sha?
<gchristensen> no
<ben-coman> another observation, after last reboot a few minutes ago and started Firefox, typing into the address bar two characters appeared and then a 4 second pause.
<ben-coman> before the remaining dozen characters I typed appeared.
<saf_spa> gchristensen: those pulled by environiment.systemPackages essentially, a system profile.
lambdamu has joined #nixos
<samueldr> ben-coman: I think, one or two years ago when I used kwin, that I saw something similar due to its compositing settings
<ben-coman> and btw, after I close Chromium and Firefox, and have only Konsole open, the problem remains, but to a lesser degree.
sigmundv has quit [(Ping timeout: 258 seconds)]
<samueldr> in kde's settings, there should be desktop effects
<samueldr> in that panel, there probably will be the advanced panel
<samueldr> with compositing type
csingley has joined #nixos
<samueldr> I believe I previously used xrender, or something like that
<samueldr> it's been a while since I used kwin
lambdamu_ has quit [(Ping timeout: 248 seconds)]
<samueldr> you can try the different options there first
<dgpratt> I suppose that if I am installing a utility like stylish-haskell, it would be better installed via e.g. nix-env than stack because nix gives me a bit better control over installing/removing stuff, does that make sense?
<dhess> dgpratt: That's the way I do it.
<ben-coman> samueldr: I found the dialog "Desktop Effects - System Settings Module". I looks a bit different to yours. No tabs and more candy-like. When I type "composit" into search, nothing shows.
<samueldr> hmm, I'm basing this on google search screenshots of kwin settings
dj_goku has joined #nixos
<samueldr> In Sytem Settings > Display and Monitor, uncheck Enable compositor on startup and restart Plasma.
WilliButz has quit [(Ping timeout: 258 seconds)]
<ben-coman> found it.
mbrgm has quit [(Ping timeout: 252 seconds)]
<samueldr> looks like that?
WilliButz has joined #nixos
<samueldr> I'm not sure which option is best for your situation
<samueldr> and it may not change anything
mbrgm has joined #nixos
frankpf has joined #nixos
<ben-coman> cool. At least its something to try. btw, renderingBackend=OpenGL2.0, but I see 3.1 and Xrender as options.
<dj_goku> what is the default password for postgresql on 17.09?
<ben-coman> btw, minor detail, I have dual screen.
<ldlework> Where is the module system actually described? With regards to imports, options and config?
<samueldr> dj_goku: Assuming config.system.stateVersion = 17.09, the postgresql superuser is `postgresql`
<samueldr> using `sudo -u postgresql psql` should allow you to use psql
<samueldr> otherwise, pretty sure there's no default password
<samueldr> (it's using the local user to authenticate)
<samueldr> (I don't have a 17.09 install at hand to verify)
<dj_goku> samueldr: well this is confusing: default= if versionAtLeast config.system.stateVersion "17.09" then "postgres" else "root"; from https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/databases/postgresql.nix
<dj_goku> samueldr: it is actually postgres actually.
<samueldr> oh, fat fingered the sql at the end, sorry
<dj_goku> just changed from root in 17.09.
Supersonic112 has quit [(Disconnected by services)]
<samueldr> yes
<dj_goku> samueldr: no biggie. I knew it was postgres it is what I was used to.
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
<dj_goku> just not used to doing sudo -u postgres psql. use to psql -h localhost username db and that didn't work.
<samueldr> 20.3.1, Trust Authentication
<samueldr> most distros do
<samueldr> afaik
Wizek__ has quit [(Ping timeout: 240 seconds)]
<samueldr> I know under debian and archlinux I used a similar sudo -u invocation
Arcaelyx has joined #nixos
<dj_goku> interesting.
<samueldr> sorry, 20.3.6 I think, peer
Arcaelyx_ has quit [(Ping timeout: 255 seconds)]
<samueldr> I have to verify
<dj_goku> 20.3.1
<dj_goku> oh wait
<dj_goku> nevermind. That is interesting.
<dj_goku> I'll have to read up on it. thanks!
oida has quit [(Ping timeout: 252 seconds)]
<samueldr> both might interest you
oida has joined #nixos
<dj_goku> ahh cool thanks.
saf_spa has quit [(Quit: Konversation terminated!)]
<ldlework> Anyone know?
<samueldr> ldlework: what do you mean by the module system?
<samueldr> nixos modules are found in nixpkgs
ryantrinkle has quit [(Ping timeout: 240 seconds)]
<ldlework> Yes, where is it documented.
<ldlework> The system which implements doing importing, and merging of options and the config keys and so on
<samueldr> it depends, there is <nixpkgs>/nixos/doc/manual which makes the manual
<samueldr> oh, how it works, I don't know yet
<samueldr> Part IV of the manual might help ldlework https://nixos.org/nixos/manual/index.html#ch-development
<ldlework> I was looking in the nix manual
<ldlework> thanks
S0rin has quit [(Ping timeout: 258 seconds)]
<samueldr> if you didn't know, you can create options in your configuration.nix file, (and imported files) that you can then use
<ldlework> Yeah I've been doing that
<ldlework> I'm writing plugins for HM and then importing them with fetchFromGithub and then using them in my configuration
<ldlework> its freaking awesome
ebzzry has joined #nixos
S0rin has joined #nixos
<ben-coman> samueldr: This seems related... https://bugs.kde.org/show_bug.cgi?id=371731, particularly the last comment by jeconom, but I can't find that setting "Provide buttons to close the windows"
<ben-coman> except I hadn't been closing many windows to observe that part of their comment.
<ben-coman> anyway, I'll continue for now testing with the compositor disabled.
<samueldr> just for fun ben-coman
<samueldr> been looking at the report you linked
<samueldr> journalctl -b0 --unit display-manager.service | grep Init.*DRI
<samueldr> and possiblt grep -i dri3 too
<samueldr> this would allow you to see whether dri2 or 3 was in use
<samueldr> don't know if it can help
<ldlework> What happens to attributes in a module that are not "imports" "options" or "config" ?
<ben-coman> journalctl.... Oct 18 08:31:19 benixos X[831]: (II) GLX: Initialized DRI2 GL provider for screen 0
<ldlework> I don't understand this part
<ben-coman> but a broader filter also find...
<ben-coman> Loading sub module "dri3" ... LoadModule: "dri3" ... Module "dri3" already built-in
<samueldr> ben-coman: yeah, I was searching for an actual method to check
<samueldr> LIBGL_DEBUG=verbose vblank_mode=0 nix-shell -p glxinfo --run glxinfo 2>&1 | grep Using.DRI
<samueldr> and I found it
<samueldr> (never run random strings from a stranger!)
<samueldr> but yeah, the other one might be "wrong"
<ben-coman> libGL: Using DRI3 for screen 0
<samueldr> yeah, same for me
<ldlework> infinisil poke
<samueldr> if you want to try playing around with DRI 2, it might be possible to activate it through services.xserver.deviceSection
<samueldr> (currently trying)
<ben-coman> :P your strings are not entirely random. I know of glxinfo but not used it much.
<samueldr> :)
<samueldr> okay, I was able to force DRI 2 on my laptop
<samueldr> (I'm having bad vsync issues with my laptop and I'm trying this at the same time)
<samueldr> oh, it seems much better
<samueldr> should've tried four months ago!
ryantrinkle has joined #nixos
dhess has quit [(Remote host closed the connection)]
scribbler has quit [()]
Manny8888[m] has left #nixos ["User left"]
<samueldr> yay, no video tearing
<ben-coman> what is best practice? should I copy that gist into my configuration.nix, or hardware-configuration.nix, or create new hardware-gpu-intel.nix and import it to one of the others?
<samueldr> that, I don't know
<jeaye> I'd create a separate one, ben-coman, to better organize your configs.
<samueldr> I've removed other stuff from that file for the gist
pxc has joined #nixos
<samueldr> (it wasn't relevant to our discussion)
<samueldr> you backlight works properly, right?
oida has quit [(Ping timeout: 248 seconds)]
<ben-coman> backlight is good
<samueldr> I don't know if it was needed for real, or if it was only one of the backlight tool that wanted it, but I had some system packages in that file
riclima has joined #nixos
<samueldr> (if you refresh the gist, I put everything back in)
<samueldr> and there's glamor, that I don't even really know what it does
<ben-coman> got the fresh gist
oida has joined #nixos
pxc has quit [(Ping timeout: 248 seconds)]
<samueldr> yes, I meant that I don't know when you would really need this
<samueldr> it's accelerated 2D; what apps benefits from that? dunno
riclima has quit [(Ping timeout: 255 seconds)]
riclima has joined #nixos
<disasm> any ideas how I can fix this? can't load package: package github.com/go-gitea/gitea: code in directory /tmp/nix-build-gitea-1.2.1.drv-0/go/src/github.com/go-gitea/gitea expects import "code.gitea.io/gitea" The app is using custom import paths for flexibility to change code hosting at any point.
endforma1 has joined #nixos
<disasm> oh wait, might have found it
<ben-coman> My reading just now is Glamor is accelerating 2D using 3D GPUs. It probably not useful for my IntelHD3000 chipset
endformationage has quit [(Ping timeout: 240 seconds)]
frankpf has quit [(Quit: Leaving)]
<samueldr> not sure though, it looks like it might actually be useful
riclima has quit [(Ping timeout: 248 seconds)]
<ben-coman> for the curious... "GLAMOR is an acceleration library merged into the X.Org Server 1.16 that provides 2D acceleration implemented over OpenGL so X.Org DDX drivers no longer need to implement 2D-specific code-paths. GLAMOR is designed to be universal amongst OpenGL / OpenGL ES supported hardware."
<ben-coman> nixos-version==>17.09; Xorg -version ==> X Server 1.19.5
pxc has joined #nixos
hotfuzz has joined #nixos
ison111 has joined #nixos
hotfuzz_ has quit [(Ping timeout: 252 seconds)]
riclima has joined #nixos
LysergicDreams has quit [(Ping timeout: 248 seconds)]
Mateon3 has joined #nixos
Mateon2 has quit [(Ping timeout: 240 seconds)]
Mateon3 is now known as Mateon1
justanotheruser has quit [(Quit: WeeChat 1.7.1)]
justanotheruser has joined #nixos
S0rin has quit [(Ping timeout: 248 seconds)]
LysergicDreams has joined #nixos
iqubic has quit [(Ping timeout: 252 seconds)]
iqubic has joined #nixos
<iqubic> How hard is it to switch from systemd-boot to Grub?
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzzā€¦)]
S0rin has joined #nixos
hexamod has joined #nixos
Baughn has quit [(Ping timeout: 246 seconds)]
kosmikus has quit [(Ping timeout: 255 seconds)]
SOO7 has quit [(Ping timeout: 246 seconds)]
danbst1 has quit [(Ping timeout: 255 seconds)]
gerschtli has quit [(Ping timeout: 248 seconds)]
riclima has quit [(Quit: riclima)]
<ison111> Does anyone know why a custom derivation might successfully build but result in a completely empty directory in the nix store?
<iqubic> grub2 to be specific
Swant has quit [(Ping timeout: 615 seconds)]
acowley_away has quit [(Ping timeout: 255 seconds)]
riclima has joined #nixos
acowley_away has joined #nixos
shanemikel has joined #nixos
<disasm> iqubic: I don't think it's that hard, just change a couple params in configuration.nix nixos should do the rest.
Swant has joined #nixos
danbst1 has joined #nixos
Baughn has joined #nixos
ben-coman has quit [(Ping timeout: 260 seconds)]
gerschtli has joined #nixos
kosmikus has joined #nixos
<iqubic> But will it destroy my Windows10 Boot Loader?
<iqubic> I have the windows10 boot stuff in the same directory as my linux boot stuff.
oida has quit [(Ping timeout: 255 seconds)]
Oida has joined #nixos
<iqubic> I don't really have the space or know how to put those boot stuffs on seperate partions.
<iqubic> I mean, I don't know how to get grub2 to see both windows10 and nixos if they are one different partitions.
csingley has quit [(Ping timeout: 248 seconds)]
schoppenhauer has quit [(Ping timeout: 248 seconds)]
schoppenhauer has joined #nixos
<disasm> iqubic: I don't think it will... but without testing... definitely make backups
<ldlework> ITS DONEEEEĀ https://github.com/dustinlacewell/dotfiles (cc rycee infinisil disasm)
<iqubic> disasm: I'm not changing my partitioning scheme.
<iqubic> What should I back up?
<iqubic> My entire /boot?
Nobabs25 has quit [(Quit: Leaving)]
bencoman has joined #nixos
justan0theruser has joined #nixos
slack1256 has joined #nixos
bencoman has quit [(Ping timeout: 260 seconds)]
justanotheruser has quit [(Ping timeout: 240 seconds)]
riclima has quit [(Quit: riclima)]
justan0theruser has quit [(Client Quit)]
justanotheruser has joined #nixos
shanemikel has quit [(Read error: Connection reset by peer)]
riclima has joined #nixos
acowley_away has quit [(Ping timeout: 260 seconds)]
acowley_away has joined #nixos
<disasm> iqubic: yeah, just take a tarball of /boot in your home dir or something
<disasm> and have a thumb drive with efi boot (like installer) on hand if you have to manually restore it
<iqubic> I have the second one lying around.
<iqubic> How do I make a tarball of /boot?
riclima has quit [(Quit: riclima)]
<disasm> tar -czpvf boot.tar.gz /boot
katyucha has joined #nixos
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzzā€¦)]
<disasm> how can I access a port on a vm generated with nixos-rebuild build-vm from the host machine?
riclima has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] disassembler opened pull request #30528: gitea: init at 1.2.1 (master...gitea) https://git.io/vdHU3
NixOS_GitHub has left #nixos []
iqubic has quit [(Remote host closed the connection)]
iqubic has joined #nixos
hamishmack has quit [(Quit: hamishmack)]
Oida has quit [(Ping timeout: 260 seconds)]
Oida has joined #nixos
<hyper_ch> makefu: well, just read about infeneon not doing a good job
<ldlework> if orgExportLib is a string containing a path, what is the right syntax for: orgExport = (import orgExportLib) { pkgs; };
<ldlework> oh right
jb55 has quit [(Ping timeout: 240 seconds)]
ma27 has joined #nixos
riclima has quit [(Quit: riclima)]
slack1256 has quit [(Remote host closed the connection)]
ben-coman has joined #nixos
iqubic has quit [(Remote host closed the connection)]
shanemikel has joined #nixos
shanemikel has quit [(Read error: Connection reset by peer)]
<ldlework> Easier documentation now, https://dustinlacewell.github.io/dotfiles/
katyucha has quit [(Ping timeout: 252 seconds)]
<ben-coman> A curiosity... I keep seeing reference to "nix-env --list-generations" returning a few items as shown... https://nixos.org/nixos/nix-pills/enter-environment.html
<ben-coman> but for me nothing is shown
shanemikel has joined #nixos
<ben-coman> somewhere I got the feeling that /nix/var/nix/profiles is related (??) and in there are are several links "system-N-link" for N=1-->19
<ben-coman> does that sound usual?
shanemikel has quit [(Read error: Connection reset by peer)]
hexamod has joined #nixos
hexamod has quit [(Client Quit)]
<ben-coman> samueldr: tracking... I didn't "disable compositor on startup", just changed to DRI2, but the problem just reoccurred. Next I'm trying RenderingBackend=OpenGL3.1.
riclima has joined #nixos
riclima has quit [(Client Quit)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09 advanced to https://github.com/NixOS/nixpkgs/commit/c99239bca0 (from 8 hours ago, history: https://channels.nix.gsc.io/nixos-17.09)
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/00e56fbbee (from 4 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
ben-coman has quit [(Quit: Page closed)]
anderslundstedt has quit [(Quit: leaving)]
anderslundstedt has joined #nixos
JosW has joined #nixos
proteusguy has quit [(Remote host closed the connection)]
ma27 has quit [(Ping timeout: 260 seconds)]
ryantrinkle has quit [(Ping timeout: 258 seconds)]
jbgi has joined #nixos
ben-coman has joined #nixos
riclima has joined #nixos
riclima has quit [(Client Quit)]
* fearlessKim[m] sent a long message: fearlessKim[m]_2017-10-18_05:48:49.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/AxYtOcxOwlrnsZvbHLGLxBdp>
Ben_ has joined #nixos
Ben_ has quit [(Client Quit)]
bencoman has joined #nixos
ryantrinkle has joined #nixos
jbgi has quit [(Ping timeout: 240 seconds)]
ben-coman_ has joined #nixos
ben-coman_ has quit [(Client Quit)]
ben-coman has quit [(Ping timeout: 260 seconds)]
<bencoman> In nix-shell `unpackPhase` is producing an error "unpacker produced multiple directories" for this default.nix https://gist.github.com/bencoman/4d39664e084c160c3cc95a7a5ae0c028
<bencoman> I'll continue chasing this down, but it would be great if someone could help shortcut that.
<srhb> bencoman: You could just move everything into one dir.
<bencoman> Thats what I'd like to do, but I don't knwo how.
<srhb> bencoman: Set unpackPhase equal to sommand commands that create a directory, extracts the tarball there and cds into the directory
<srhb> It looks like you almost got there.
<bencoman> yeah. From what I dug up, if I uncomment those lines in the gist it "should" work. Does it look right? but I'm getting the same error.
<srhb> something like mkdir src; cd src; tar xf $src
<srhb> tar should extract into CWD afaik.
<srhb> I can't test it because the hash of that file seems to change on every download. wat O_o
riclima has joined #nixos
<bencoman> interesting behaviour. I'll check.
JosW has quit [(Quit: Konversation terminated!)]
ixxie has joined #nixos
endforma1 has quit [(Ping timeout: 240 seconds)]
<srhb> Yep, changes size too.
<srhb> That won't do :P
<chakra> does anyone know of any online url link extractors that can show its output in raw formatting (as in output only like how most paste services support), for example, have this: http://urlextractor.net/?target_url=https%3A%2F%2Fwww.mirrorservice.org%2Fsites%2Fblackarch.org%2Fblackarch%2Fblackarch%2Fos%2Fx86_64%2F&href=1&link_type=internal&extract=Extract+Links become like this: http://bpaste.net/raw/9a669983e35f
<bencoman> This is my first build I'm trying on NixOS, but I had heard such changes won't work. Although it does untar, jsut all in the base directory.
<srhb> I'm a bit puzzled that you even get the same hash
<srhb> Anyway, I just added the file locally and this works
<srhb> the mkdir src, cd src, tar xf $src thing
<srhb> Confirmed by setting configurePhase = "ls";
<bencoman> I see not nix-prefetch-url gives a different ahs each time. I didn't check that before.
<srhb> Yeah, that will break everything.
<srhb> Or rather, it will only work for you, since you prefetched it.
<srhb> (Until you collect garbage)
<bencoman> Well its a git repo. The tarball must be generated dynamically. I could just copy the tarball to a http server and it would remain the same.
<srhb> If you have access to the git repo, perhaps use fetchgit instead of fetchurl
<srhb> And lock it to some ref.
<bencoman> How do I "add the file locally" to match what you did? Just sit the tarball next to the default.nix file?
<srhb> src = ./relative/path/to/file
<bencoman> ahhh, I cam across some discussion in the bug tracker about how fetching from git wasn't giving identical hashes. Maybe that discussion is outdated. Let me see if I can find it again.
<srhb> But the fetchgit solution really should be preferable.
<srhb> bencoman: I have to get to work now. Good luck. I'll check in in about an hour or so :)
<bencoman> thx
JosW has joined #nixos
<bencoman> I try local first as a bit of learning, then fetchgit.
bkchr has joined #nixos
bkchr has quit [(Remote host closed the connection)]
riclima has quit [(Quit: riclima)]
<woffs> qutebrowser-1.0.1 refuses to run because of qtwebkit-5.9.1 vs. qtwebengine-5.9.2 version clash
odi__ has joined #nixos
kkini has quit [(Remote host closed the connection)]
kkini has joined #nixos
odi_ has quit [(Ping timeout: 252 seconds)]
<hyper_ch> tilpner: https://paste.simplylinux.ch/view/raw/62c89659 tested now direct IP connection between office and home and then through wireguard :) speeds are good :)
<rycee> ldlework: In your osx.nix you can try replacing `nixpkgs = (import <nixpkgs>{});` by changing the argument from `{ ... }:` to `{ pkgs, ... }:`ā€¦
<rycee> ldlework: Very cool setup! :-)
shanemikel has joined #nixos
<srhb> ldlework: Nice!
<srhb> bencoman: Everything good? :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] kamilchm opened pull request #30530: ponyc: 0.19.3 -> 0.20.0 (master...ponyc) https://git.io/vdHY2
NixOS_GitHub has left #nixos []
shanemikel has quit [(Ping timeout: 260 seconds)]
shanemikel has joined #nixos
jensens has joined #nixos
shanemikel has quit [(Ping timeout: 258 seconds)]
jensens has quit [(Client Quit)]
SOO7 has joined #nixos
hotfuzz has quit [(Read error: Connection reset by peer)]
hotfuzz has joined #nixos
<hyper_ch> can you actually pm someone on github?
<srhb> hyper_ch: Not anymore.
<hyper_ch> too bad
jtojnar has quit [(Read error: Connection reset by peer)]
Oida has quit [(Ping timeout: 248 seconds)]
Oida has joined #nixos
notdaniel has joined #nixos
thc202 has joined #nixos
bkchr has joined #nixos
<bkchr> adisbladis: Hi, did you see my comment yesterday in github? Regarding plasma
leat has quit [(Quit: WeeChat 1.9.1)]
goibhniu has joined #nixos
<adisbladis> bkchr: Yes I did see it :)
<adisbladis> Building as we speak
<bkchr> ahh nice :)
ThatDocsLady has joined #nixos
jtojnar has joined #nixos
ma27 has joined #nixos
<srhb> If I create networking.firewall.extraCommands, it seems the rules there are duplicated on each rebuild that touches the firewall. How do I avoid this?
<srhb> I suppose I could get around it by creating a new chain, but then I'm not sure how to avoid trying to create _that_ each rebuild
civodul has joined #nixos
hotfuzz_ has joined #nixos
hotfuzz has quit [(Ping timeout: 246 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/ceb2b71f69 (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/b304695c7f (from 20 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
<rycee> srhb: Do you also have matching extraStopCommands?
<srhb> rycee: I do not. I'm a bit of an iptables newbie. It seems very stateful.
<srhb> Whoever thought it was a good idea to mutate their way to security. >_>
<srhb> #shitnixuserssay
<rycee> Yes, it is quite mutable. What extraCommands addeth extraStopCommands must taketh away :-)
<srhb> But how do I refer back to the commands in order to delete them?
<rycee> By using the same match arguments.
<srhb> oh.
<rycee> So if you have a command with `-A` then copy that to extraStopCommands and change `-A` to `-D`.
<srhb> and -N also to -D ?
<srhb> No, not quite...
pxc has quit [(Ping timeout: 260 seconds)]
<rycee> ( caveat empty: I'm no iptables expert either :-) )
<srhb> Hehe, anything helps :)
<rycee> s/empty/emptor/
<rycee> For -N I think you just use -X with the same chain name.
<rycee> You probably have to flush the chain first with `-F`?
HappyEnte has joined #nixos
davidak1 has joined #nixos
rmarko is now known as srk
<srhb> I think I should read a manual at this point. :-P Thanks for your help
<rycee> So if you have `iptables -N blah` in extraCommands you would have `iptables -F blah ; iptables -X blah` in extraStopCommands.
<srhb> Thanks! I'll try that
<rycee> I also added `-w` to my iptables commands because all the commands generated by the firewall modules does that :-)
leat has joined #nixos
<srhb> Cargo culting for the win! :-)
<rycee> So `iptables -w -N blah` and `iptables -w -F blah ; iptables -w -X blah`
andrewmc1eigh has joined #nixos
pbogdan_ has joined #nixos
<rycee> What could possibly go wrong :-D
himmAllRight17 has joined #nixos
puck1pedia has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/69607d7662 (from 14 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
__shymega__ has joined #nixos
kosmikus1 has joined #nixos
hydraz_ has joined #nixos
todder_ has joined #nixos
jtojnar has quit [(Read error: Connection reset by peer)]
ssmike has joined #nixos
Piece_Maker has joined #nixos
davidak has quit [(Read error: Connection reset by peer)]
puckipedia has quit [(Ping timeout: 248 seconds)]
hydraz has quit [(Ping timeout: 248 seconds)]
pbogdan has quit [(Ping timeout: 248 seconds)]
himmAllRight has quit [(Quit: No Ping reply in 180 seconds.)]
shymega has quit [(Ping timeout: 248 seconds)]
todder has quit [(Ping timeout: 248 seconds)]
andrewmcveigh has quit [(Ping timeout: 248 seconds)]
kosmikus has quit [(Ping timeout: 248 seconds)]
Acou_Bass has quit [(Ping timeout: 248 seconds)]
Piece_Maker is now known as Acou_Bass
mortum5 has joined #nixos
lsix_ has joined #nixos
lsix has quit [(Ping timeout: 252 seconds)]
nil has quit [(Ping timeout: 260 seconds)]
nil has joined #nixos
HappyEnte has quit [(Ping timeout: 260 seconds)]
<srhb> rycee: I got it! Thanks a lot.
pbogdan_ has quit [(Ping timeout: 260 seconds)]
Bane^ has quit [(Ping timeout: 260 seconds)]
Vorpal has quit [(Ping timeout: 260 seconds)]
<srhb> Reversing the order of whatever the extraCommands was seems like a plan of sort.
markus1199 has quit [(Ping timeout: 260 seconds)]
hydraz_ is now known as hydraz
hydraz has quit [(Changing host)]
hydraz has joined #nixos
markus1189 has joined #nixos
MP2E has quit [(Remote host closed the connection)]
Vorpal has joined #nixos
Vorpal has quit [(Changing host)]
Vorpal has joined #nixos
HappyEnte has joined #nixos
Bane^ has joined #nixos
pbogdan has joined #nixos
<rycee> Cool :-)
nikivi has quit [(Ping timeout: 255 seconds)]
Acou_Bass has quit [(Ping timeout: 246 seconds)]
ssmike has quit [(Ping timeout: 240 seconds)]
nikivi has joined #nixos
ma27 has quit [(Ping timeout: 240 seconds)]
ison111 has quit [(Ping timeout: 240 seconds)]
Acou_Bass has joined #nixos
hamishmack has joined #nixos
<rycee> srhb: Actually, I noticed that the firewall reload runs the extraCommand script but not the extraStopCommands one so rules will still build up :-(
<srhb> What? That's not what I'm seeing.
<srhb> restarting the firewall.service arbitrarily many times with the correct stop commands does keep the count of rules constant for me
<rycee> Yeah, but if you try `systemctl reload firewall.service` I think you'll see a buildupā€¦
<srhb> But isn't that explicitly telling systemd to skip the stop script?
<rycee> I haven't noticed that before. I had 7 duplicates of port redirects :-)
qzd has joined #nixos
<rycee> srhb: Well, I think it still should keep it in a sane state. The module even marks it with `reloadIfChanged = true;` so nixos-rebuild will use reload instead of restart.
<rycee> ā€¦ and the builtin start script will reset rules before setting them again.
proteusguy has joined #nixos
<ixxie> is there a quick way to check which channels a commit made it to?
<rycee> I put `${config.networking.firewall.extraStopCommands}` at the top of my `extraCommands` and now it doesn't add rules when I reload :-)
<ixxie> rycee: that just shows the commit again
<rycee> ixxie: Under the commit message it should show the branch the commit is in.
<ixxie> right
<ixxie> and there are branches corresponding to each channel?
<rycee> ixxie: Yeah. I'm not sure if this is a reliable or very convenient way to do it but it's the best idea I have at the momentā€¦
lsix_ has quit [(Remote host closed the connection)]
lsix_ has joined #nixos
<ixxie> thanks Rycee
mkoenig has quit [(Ping timeout: 248 seconds)]
__Sander__ has joined #nixos
<hyper_ch> hmmm, still can't find "sigc++/adaptors/bind.h" when building....
mkoenig has joined #nixos
<rycee> srhb: I noticed that the nat module does `networking.firewall.extraCommands = mkBefore flushNat;` so my hacky solution will duplicate the nat flushingā€¦
nschoe has joined #nixos
<rycee> srhb: So my final hacky solution is to simply put `${extraStopCommands}` at the top of `extraCommands` and use the `rec` keyword
dannyg has joined #nixos
<rycee> Now I'll go grab a bite to eat and try to forget all I learned about iptables and firewalling :-)
hke has quit [(Ping timeout: 240 seconds)]
CodeWarrior has quit [(Ping timeout: 248 seconds)]
ixxie has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
pi3r has joined #nixos
ixxie has joined #nixos
<Isorkin> Hi. New kernel - not work nftables rules - reject. nft add rule inet filter input tcp dport \{ 22 \} ip saddr \@f2b-SSH reject - error. Rules drop - work. diff config kernel - https://pastebin.com/f1FQM0RV kernel 4.13.5 - nft worked, 4.13.7 - not work(
ssmike has joined #nixos
<pi3r> Short little question: I am pinning all user derivations to a specific nixpkgs commit and wonder if "staging" from hydra might be any "better" than trunk ?
hke has joined #nixos
<tilpner> What do you mean by pinning all user derivations?
<tilpner> (Are you running a Hydra?)
csingley has joined #nixos
ssmike has quit [(Ping timeout: 255 seconds)]
<pi3r> I mean derivation that I install with nix-env -i xxxx -f pin.nix (where pin defined a specific commit of nixpkgs)
<pi3r> I usually looks on hydra.org to see if my packages build correctly before changinng the commit reference.
Lisanna has joined #nixos
<pi3r> And on hydra.nixos.org I can pick trunk, staging and stable and wonder if staging is any "better" than trunk for my purpose
CodeWarrior has joined #nixos
hamishmack has quit [(Quit: hamishmack)]
<bkchr> adisbladis: I disabled gold linker in qtbase and now the compilation works again. Maybe gold linker should be deactivated, until the error is resolved upstream in gold linker
<adisbladis> bkchr: Cool :) I was gonna do the same but it's taking too long.
<adisbladis> Let's see if 5.11.1 builds OK before changing Qt.
<bkchr> Yeah it needs to recompile almost everything... :(
<Lisanna> Anyone here familiar with the vmTools? Wondering if it's possible to use them to generate image files from the result of running something in e.g. runInLinuxVM
ssmike has joined #nixos
<sphalerite> Lisanna: yes, it is
<sphalerite> hang on
aloiscochard has joined #nixos
<sphalerite> nixos/lib/make-disk-image.nix does exactly that
juriq has joined #nixos
<Lisanna> sphalerite: https://github.com/NixOS/nixpkgs/tree/master/lib doesn't seem to have a file named that
<sphalerite> Lisanna: nix*os*/lib
<Lisanna> ohhh
<Lisanna> right that would make sense
hamishmack has joined #nixos
<adisbladis> bkchr: Sadly same issue on 5.11.1
<bkchr> adisbladis: ahh okay, with the fix it still works ^^
<bkchr> adisbladis: so we should disable gold linker and wait for a new release
p4cman has joined #nixos
<adisbladis> bkchr: I think so.
<samae> Does anyone use the libreswan service successfuly?
<Lisanna> sphalerite: cool, thanks. looks like I can hack on this to build what I want
<tilpner> My config contains services.locate = { enable = true; locate = pkgs.mlocate; }, and I get the warning that "mlocate does not support searching as user other than root"
juriq has quit [(Ping timeout: 248 seconds)]
<tilpner> The source suggests this should only be printed when I specify localuser? Does this work for anyone else?
<sphalerite> Lisanna: I also hacked something together a while back to get EFI-compatible and writable USB images from it. See https://github.com/lheckemann/boot2barony/blob/master/barony-sd.nix and https://github.com/lheckemann/boot2barony/blob/master/make-disk-image.nix if that's relevant to what you're doing
pi3r has quit [(Ping timeout: 260 seconds)]
ixxie has quit [(Quit: Lost terminal)]
Svarog has joined #nixos
<sphalerite> tilpner: the default value for localuser is "nobody" and not null
<tilpner> Ugh, yes. Thanks, sphalerite! :)
<sphalerite> so you'd have to specify it to be null
<adisbladis> bkchr: Will you do it?
catch22 has quit [(Remote host closed the connection)]
hke has quit [(Ping timeout: 240 seconds)]
<sphalerite> tilpner: out of curiosity, why mlocate rather than findutils?
<bkchr> adisbladis: the patch for qt? or plasma 5.11.1?
<Svarog> i've been trying to find some info on the best way to get buildRustPackage to use a more up to date registry - is there a way to do it without having to write a bunch of .nix files?
<adisbladis> bkchr: The Qt one
<tilpner> sphalerite - I was running findutils with root anyway, and the merging aspect makes it faster when forcing a manual update
<sphalerite> ah ok
<bkchr> adisbladis: I would integrate the patch to your plasma patches? A single commit, but without the pr would not work :)
<sphalerite> Svarog: I did that just yesterday! Hang on
<Svarog> ooh
<tilpner> The default of nobody is a little weird, no interesting files are visible to nobody, so why would you want to index with it?
<Lisanna> sphalerite: my ultimate goal is to write a function which permutes some specified partition in a given .img file and produces a new .img file, so not sure if that's relevant, but thanks for the additional reference ^^
<sphalerite> Svarog: just update rev and sha256 in pkgs/top-level/rust-packages.nix
<adisbladis> bkchr: You could send me a link to your branch? I'll merge it to my working branch for the PR
* sphalerite sent a long message: sphalerite_2017-10-18_10:04:44.txt <https://matrix.org/_matrix/media/v1/download/matrix.org/qJFrQLzdqnhJBuUKlRnrsGTq>
<sphalerite> Svarog: ^ in case you're feeling lazy :p
c0ffee152 has joined #nixos
<Svarog> sphalerite, i did see that file but was hoping there'd be a way to pass a parameter through instead
<bkchr> adisbladis: okay, give me a second :)
<sphalerite> Svarog: you'll also need to update the depsSha256 in all rust packages you want to build with the updated index
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03 advanced to https://github.com/NixOS/nixpkgs/commit/8b8977f9ff (from 22 hours ago, history: https://channels.nix.gsc.io/nixos-17.03)
nix-gsc-io`bot has quit [(Client Quit)]
<tilpner> Svarog, sphalerite - You can also pass a rustRegistry to buildRustPackage
<sphalerite> oooh ok
<Svarog> yes i've read about that - let the build fail, then copy the sha256 sig from the error message and plop that into depsSha256 if i understood correctly
<Svarog> tilpner, oh
<Svarog> how does that work?
bencoman has quit [(Quit: Konversation terminated!)]
MercurialAlchemi has joined #nixos
<Svarog> do you need to create a new registry expression similar to what's in rust-packages.nix and then pass that along?
<Svarog> oh
<tilpner> Does that work for you?
fendor has joined #nixos
<Svarog> interesting - will have to try but that looks close to what i was hoping to find
<Svarog> thanks tilpner and sphalerite
<viric> gaa. nix-store --export wants write-access to the nix db
<sphalerite> tilpner: ooooh, I like the manual use of rustChannelOf as well! I was wondering how I could get a "stable nightly" that doesn't want to redownload every day
<tilpner> sphalerite - I should note that this default.nix doesn't actually build. This is only for development :/
<tilpner> But the rustRegistry argument should work everywhere
<tilpner> (Otherwise weechat, rustfmt and rustracer wouldn't be nativeBuildInputs)
<sphalerite> tilpner: and the rustChannelOf bit works too, right?
S0rin has quit [(Ping timeout: 260 seconds)]
<tilpner> sphalerite - You can use it interactively afterwards, but it's not used to build the package
<tilpner> (You might be able to get that to work, overriding rustPlatform. Didn't try)
<sphalerite> ah right
<sphalerite> I mostly use nix-shell for rust stuff too though, so it suits me well :)
<tilpner> This expression was mostly to get bindgen to work correctly
<tilpner> (In the buildscript)
<sphalerite> oh yeah, about rkt ā€” didn't get very far, sorry
<sphalerite> those makefiles are awful to read D:
<tilpner> What, you don't like reading 900loc autotool stuff?
sigmundv has joined #nixos
<sphalerite> it's autotools-generated?
<tilpner> That's just unreasonable
S0rin has joined #nixos
<sphalerite> Doesn't look like it to me
<tilpner> I agree, looks hand-written
<tilpner> The real problem became https://github.com/NixOS/patchelf/issues/66
<tilpner> I managed to fetch the stage1-kvm aci, extract and patch it, but the patching didn't do anything because half the ACI is Go binaries
<tilpner> So the solution is to build the damn thing, which I really didn't want to do
ixxie has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/00e56fbbee (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
<adisbladis> bkchr: All done :)
<tilpner> Run with: s rkt run --debug --stage1-path=$(nixpkgs rktStage1Kvm) docker://redis --insecure-options=image
<adisbladis> bkchr: Also rebased on latest master
<bkchr> adisbladis: hopefully, this time everything works :D
puck1pedia is now known as puckipedia
<Isorkin> Please help. New kernel - not work nftables rules - reject. nft add rule inet filter input tcp dport \{ 22 \} ip saddr \@f2b-SSH reject - error. Rules drop - work. diff config kernel - https://pastebin.com/f1FQM0RV kernel 4.13.5 - nft worked, 4.13.7 - not work(
simukis has joined #nixos
thc202 has quit [(Ping timeout: 240 seconds)]
<adisbladis> bkchr: Not the smoothest pr
thc202 has joined #nixos
steshaw has joined #nixos
<adisbladis> bkchr: I saw that some people had reported similar sddm issues that were supposedly fixed with 5.11.1
<adisbladis> So I'm hopeful your issue will be resolved too :)
<bkchr> Ohh that would be nice :)
hke has joined #nixos
ertes has quit [(Ping timeout: 255 seconds)]
TweyII has joined #nixos
Neo-- has joined #nixos
TweyII is now known as Guest37279
csingley has quit [(Quit: WeeChat 1.9.1)]
ylwghst has joined #nixos
hke has quit [(Ping timeout: 248 seconds)]
<ylwghst> hi, i'm not able to stop x11 gnome. How I should do it?
<srhb> ylwghst: Are you opening it via a display manager (eg. GDM?) In that case, the unit is display-manager.service, afaik
<mpickering> Is it normal for contributors to force push to my own fork of nixpkgs to update a pull request?
TheAppleMan has quit [(Quit: No Ping reply in 120 seconds.)]
<ylwghst> srhb: Yes I do. Im not able to kill it using systemctl stop display-manager
notdaniel has quit [(Quit: Leaving)]
<srhb> ylwghst: Odd.
<ylwghst> it is
<ylwghst> it just doesnt work, nothing happens when u run it
<srhb> mpickering: No idea, but that would definitely surprise me.
<srhb> As in "arrrgh!"
<kragniz> mpickering: it's a bit rude to do it without asking
<Mic92> mpickering: I only override the commit I added for transparency
<Mic92> what is still missing there?
<mpickering> That is true.. but it also broke the derivation
<Mic92> that was clearly not my intention
<kragniz> gchristensen: ping about stickers for freenode.live (I only just remembered :( )
sigmundv__ has joined #nixos
<Mic92> mpickering: why is it still broken btw?
<hyper_ch> so, just wrote a little nix expression to auto-resilver my external usb harddrives :)
<hyper_ch> next I'll need some guinea pigs... I mean highly valued testers ;)
ylwghst has quit [(Quit: Lost terminal)]
hke has joined #nixos
<Mic92> mpickering: ?
hke has quit [(Ping timeout: 255 seconds)]
hke has joined #nixos
ylwghst has joined #nixos
<ylwghst> how I should upgrade nixos from 17.03 to 17.09?
<ylwghst> should I nix-channel add; nixos-rebuild switch?
<Unode> ylwghst: you might also have a reference on your configuration to 17.03. But yes, that would be the drill.
hke has quit [(Ping timeout: 248 seconds)]
leat has quit [(Quit: WeeChat 1.9.1)]
<hyper_ch> hmmm, whats the best way to run a script before shutdown on nixos? with writscriptbin it's easy to create the script and make it available, but how to run it before shutdown? Do I need to created a systemd unit file or something?
dannyg has quit [(Quit: dannyg)]
leat has joined #nixos
hke has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] kamilchm opened pull request #30534: spark: 2.1.0 -> 2.2.0 (master...spark) https://git.io/vdH24
NixOS_GitHub has left #nixos []
ssmike has quit [(Quit: ssmike)]
ssmike has joined #nixos
notdaniel has joined #nixos
notdaniel has quit [(Remote host closed the connection)]
<gchristensen> kragniz: oh!
<Unode> hyper_ch: I'd say systemd is the most reliable option.
<gchristensen> kragniz: how can I help? :)
<hyper_ch> Unode: how would one create a systemd unit file in the configuration.nix?
jbgi has joined #nixos
dannyg has joined #nixos
ertes-w has joined #nixos
<hyper_ch> Unode: basically I want to set external usb drives as offline in the zpool before the system is shut down
<Unode> hyper_ch: There's quite a few examples in nixpkgs but a quick google returned https://www.reddit.com/r/NixOS/comments/4gj8bc/how_to_writing_a_systemd_service/
<Unode> as for targetting shutdown I use ExecStart=/run/current-system/sw/bin/true
<Unode> ExecStop=/run/current-system/sw/bin/pkill supervisord y
<Unode> oops
<hyper_ch> ok, sounds promising :)
<Unode> the trick is to use bin/true for start and then run the command you want at stop
<hyper_ch> yeha, I read that in some other place as well
<Unode> and also RemainAfterExit=true
<hyper_ch> and instead of ipfs-daemon I could just name ith whatever-I-feel-like ?
<Unode> sure, in that example that was the service they were trying to run
hke has quit [(Ping timeout: 240 seconds)]
superherointj has joined #nixos
iyzsong has joined #nixos
<hyper_ch> ok, need script to set usb drives as offline first ;)
<gchristensen> huh, nothing has been merged in to nixpkgs in 10hrs
Ivanych has joined #nixos
<Unode> gchristensen: that's one heck of a remark :D
<gchristensen> it is just uncommon :)
hke has joined #nixos
<Unode> yeah I know, that's why it feels like an awesome remark
Wizek__ has joined #nixos
<mpickering> Mic92: "'/nix/store/7hrscnh0ryg7gd9kvv4nmwnb73v363xd-osm2xmap-2.0/shareISOM_15000.xmap' failed"
<mpickering> When running the executable
FRidh has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 2 new commits to master: https://git.io/vdHVX
<NixOS_GitHub> nixpkgs/master edcdb95 Anthony Cowley: isync: 1.2.1 -> 1.3.0
<NixOS_GitHub> nixpkgs/master df77869 Graham Christensen: Merge pull request #30527 from acowley/isync-1.3.0...
NixOS_GitHub has left #nixos []
<Unode> noob question: when using nix-repl, do I need to import functions into scope to use them? Was trying to play with: concatStringsSep "\n" { "one" "two" } but get both a syntax error and otherwise concatStringsSep isn't defined.
jtojnar has joined #nixos
ixxie has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
<gchristensen> you do, lib = (import <nixpkgs> {}).lib
<gchristensen> lib.concatStr..
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
ylwghst has quit [(Remote host closed the connection)]
Guanin has joined #nixos
hke has quit [(Ping timeout: 240 seconds)]
<Unode> gchristensen: thanks
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 2 new commits to master: https://git.io/vdHwT
<NixOS_GitHub> nixpkgs/master 268618d Marti Serra: playOnLinux: 4.2.10 -> 4.2.12
<NixOS_GitHub> nixpkgs/master 7d5c5eb Graham Christensen: Merge pull request #30523 from xvapx/playonlinux-update...
NixOS_GitHub has left #nixos []
<Unode> can nix and nixUnstable coexist in the same environment?
ylwghst has joined #nixos
<Mic92> mpickering: fixed by using: "SHAREDIR=$(out)/share/" instead
<Unode> seemslike the answer to my last question is yes. Great!
<Guanin> hi, I am trying to setup a service (gogs) that uses libpam to authenticate different users. I have noticed that setting security.pam.services."gogs".unixAuth = true will cause it to use the unix_chkpwd helper binary to check the supplied password. But as long as /etc/shadow remains unreadable to the user running gogs, the authentication will not work. However, the problem can be fixed (with a _minor_ loss of
<Guanin> security that I am well aware of) when setting the binary setgid bit, and owning it by a group that also owns /etc/shadow. Now my question is: how can I make a derivative of pam that does this, and how can I set the group and mode of /etc/shadow subsequently?
<Mic92> mpickering: I will not apply this change this time
hke has joined #nixos
Guanin has quit [(Remote host closed the connection)]
Guanin has joined #nixos
<Guanin> sorry, had to move a bit and got disconnected
requisitebits has quit [(Ping timeout: 255 seconds)]
ssmike has quit [(Remote host closed the connection)]
Guanin has quit [(Remote host closed the connection)]
ssmike has joined #nixos
andymandias has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
efx has joined #nixos
andymandias has joined #nixos
FRidh has quit [(Ping timeout: 248 seconds)]
hke has quit [(Ping timeout: 248 seconds)]
hke has joined #nixos
hotfuzz has joined #nixos
ixxie has joined #nixos
erictapen has joined #nixos
jbgi has quit [(Ping timeout: 240 seconds)]
FRidh has joined #nixos
requisitebits has joined #nixos
FRidh has quit [(Read error: Connection reset by peer)]
hotfuzz_ has quit [(Ping timeout: 260 seconds)]
FRidh has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bachp opened pull request #30535: prometheus-node-exporter: 0.14.0 -> 0.15.0 (master...node-exporter-0.15.0) https://git.io/vdHoU
NixOS_GitHub has left #nixos []
hke has quit [(Ping timeout: 255 seconds)]
c0ffee152 has quit [(Quit: Lost terminal)]
superherointj has quit [(Quit: Leaving)]
<Unode> infinisil: small world :)
<infinisil> Indeed ;)
<gchristensen> neat, how do you two know each other?
<infinisil> He just asked how to have some commands being sent to a repl and then the user be able to interact with it, which i just asked yesterday there and sent him my nix repl script: https://gist.github.com/Infinisil/a49a7f88436ecb149e5a7f069db08a2e
<infinisil> Turns out he was also wanting to do that for nix repl
<Unode> and nix repl was indeed the main reason I was looking for that.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti closed pull request #30166: Fix graphite crash by upgrading from 0.9.15 -> 1.0.2 (master...graphite-1.0.2) https://git.io/vdE9b
NixOS_GitHub has left #nixos []
<Unode> infinisil: by the way, give 'nix repl' a try. It's a little bit better than nix-repl.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti closed pull request #30277: [NixOS-17.09] Fix graphite crash by upgrading from 0.9.15 -> 1.0.2 (release-17.09...graphite-1.0.2_nixos-17.09-small) https://git.io/vdV8t
NixOS_GitHub has left #nixos []
<infinisil> Unode: What's better?
<Unode> history for instance.
<infinisil> nix-repl also has history?
<Unode> does it? Wasn't working here.
<Unode> maybe messed up key bindings...
<infinisil> Yeah I have both side by side, works for both
hke has joined #nixos
<Unode> oh well, don't mind me then. Thanks for the little script
<infinisil> Oh the new one has colors :O
<seanparsons> It's session history right? Like if I reload it it starts at nothing.
<infinisil> Ohhh, *tries*
<infinisil> Yeah that's it, nice!
<gchristensen> oh hehe
hotfuzz has quit [(Quit: WeeChat 1.9.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] taku0 opened pull request #30536: oraclejdk: 8u144 -> 8u151, 8u152; 9 -> 9.0.1 [Critical security fixes] (master...oraclejdk-8u151) https://git.io/vdHKz
NixOS_GitHub has left #nixos []
hke has quit [(Ping timeout: 248 seconds)]
hotfuzz has joined #nixos
hke has joined #nixos
<infinisil> gchristensen: I've changed the usbmuxd module (locally) to use the -U option to switch to a different user after start
<infinisil> But I forgot my iPhone cable at home, so I can't test it :-)
erratum has quit [(Quit: Connection closed for inactivity)]
efx has quit [(Ping timeout: 240 seconds)]
ssmike has quit [(Remote host closed the connection)]
<trikl[m]> If a build script contains hardcoded dependencies to /bin/bash, /bin/pwd and such, what is the proper way of proceeding if inside a nix-shell?
ssmike has joined #nixos
<infinisil> patchShebangs
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vdHKj
<NixOS_GitHub> nixpkgs/master 339d2e8 geistesk: openrct2: init at 0.1.1
<NixOS_GitHub> nixpkgs/master 30c046b Jƶrg Thalheim: Merge pull request #30409 from geistesk/openrct2...
NixOS_GitHub has left #nixos []
<infinisil> Or substitute --replace /bin/bash <some other bash>
<infinisil> if it's not shebangs
<trikl[m]> Does that work if the hardcoded deps aren't just shebangs?
ylwghst has quit [(Quit: Lost terminal)]
<gchristensen> infinisil: ahhh awesome :D unfortunately I probably can't test much at all today :(
csingley has joined #nixos
hke has quit [(Ping timeout: 240 seconds)]
<gchristensen> at least, not until ~5pm America/New_York
<infinisil> No worries, no hurries
<Unode> infinisil: about your nix script. With "nix repl" I had to use `\r\n` instead of `\n` for every command terminator.
<Unode> otherwise works fine
hotfuzz has quit [(Ping timeout: 246 seconds)]
<infinisil> Huh weird
<Unode> my thought exactly.
<chakra> does nix os have "ash"
<infinisil> chakra: seems to be in busybox
<chakra> ok
<Unode> but I'd say nixos does full combustion so no ash remains ;)
<infinisil> Not sure if it's the ash you're looking for though
<chakra> lol
hotfuzz has joined #nixos
<Unode> http://xiki.org/ is something I was looking for yesterday. Seems like one heck of an interesting shell.
<infinisil> It's not in nixpkgs, thinking about packaging it
dieggsy has joined #nixos
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
ShalokShalom_ has joined #nixos
ShalokShalom has quit [(Ping timeout: 246 seconds)]
<infinisil> Nah, giving up on that, have other things to do
<infinisil> This is what I have if anybody else wants to do it: https://git.io/vdHPv
<infinisil> Seems rather painful to package
hke has joined #nixos
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 3 new commits to master: https://git.io/vdHP0
<NixOS_GitHub> nixpkgs/master 08075d5 taku0: oraclejdk: 8u144 -> 8u151, 8u152
<NixOS_GitHub> nixpkgs/master 5bf6a2b taku0: oraclejdk: 9 -> 9.0.1
<NixOS_GitHub> nixpkgs/master 7ed75dc Tim Steinbach: Merge pull request #30536 from taku0/oraclejdk-8u151...
NixOS_GitHub has left #nixos []
Arcaelyx has quit [(Ping timeout: 252 seconds)]
<infinisil> It does look pretty fancy though
hke has quit [(Ping timeout: 252 seconds)]
Arcaelyx_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vdHPp
<NixOS_GitHub> nixpkgs/master 1b0e699 Tim Steinbach: linux: 4.9.56 -> 4.9.57
<NixOS_GitHub> nixpkgs/master 67343e2 Tim Steinbach: linux: 4.13.7 -> 4.13.8
NixOS_GitHub has left #nixos []
<Unode> infinisil: yeah but I don't find it in many places. Be it still heavy in development or a pain for dependencies.
<Unode> one day...
Ross has quit [(Ping timeout: 258 seconds)]
Ross has joined #nixos
<Unode> Is there any index of functions available through nix?
<Unode> (other than looking at source code)
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
posco has joined #nixos
<sphalerite> Unode: nix-repl '<nixpkgs>', lib.<tab>
<sphalerite> :p
<Unode> sphalerite: oh wow
<sphalerite> Yeah not that helpful...
<Unode> works inside nix-repl too
corngood has joined #nixos
<Unode> it's a start. Now if only that little chunk of documentation could be displayed
Myrl-saki has joined #nixos
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
<infinisil> How about nix-instantiate --eval -E 'let lib = import <nixpkgs/lib>; in builtins.attrNames lib' --json | jq '.[]' -r
FRidh has quit [(Quit: Konversation terminated!)]
FRidh has joined #nixos
itorres has joined #nixos
indefini has joined #nixos
WinterFox[m] has joined #nixos
hl has joined #nixos
bendlas has joined #nixos
colmarius has joined #nixos
<hyper_ch> I'm trying to write a writeScriptBin nix expression. However it keeps complaining about vars - it just doesn't like bash parameter expansion.... I need to loop through an array: for i in ${var[@]}; do ... so it keeps complaining about ${var}
<hyper_ch> how to fix that?
FRidh has quit [(Ping timeout: 240 seconds)]
efx has joined #nixos
<srhb> You mean how do you escape ${foo} in strings?
<hyper_ch> yeah
<hyper_ch> you've formulated it much better
<srhb> In a multiline string, precede it with ''
<hyper_ch> it is
<srhb> so '' ''${foo} ''
<hyper_ch> for i in ''${var[@]}; do --- that seems to work... need to wait till I see the finished product :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 1 new commit to master: https://git.io/vdHMM
<NixOS_GitHub> nix/master d830614 Eelco Dolstra: Suppress "copying 0 paths" message
NixOS_GitHub has left #nixos []
<hyper_ch> and there it is: for i in ${devices[@]}; do
<hyper_ch> nice
frankqux1 has joined #nixos
freeman42x has quit [(Ping timeout: 264 seconds)]
<hyper_ch> srhb: thx... I'm automating the re-adding of usb drives to zpools for mirroring/resilvering
ylwghst has joined #nixos
<ylwghst> anyone here uses gdm+gnome3 here?
<ylwghst> it looks im currently encoutering a new bug
frankqux has quit [(Ping timeout: 260 seconds)]
<ylwghst> gdm+gnome3 alwayes crashes and gets stuck on blank screen with flashing _ after nixos-rebuild switch run from gnome in terminal
pxc has joined #nixos
Ivanych has quit [(Read error: Connection reset by peer)]
__shymega__ is now known as shymega
shymega has quit [(Changing host)]
shymega has joined #nixos
<jtojnar> ylwghst: For me it returns to login screen after entering the password
Ivanych has joined #nixos
<ixxie> ylwghst: this is a known issue
<jtojnar> though not in vm
<ixxie> but I see you found the thread on github
<ixxie> :)
jushur has quit [(Ping timeout: 246 seconds)]
<ylwghst> yup
<ixxie> it looks like there is a fix committed
<jtojnar> oh, I misread, mine is a different issue
<ylwghst> it worked fine until I upgraded to latest packages
<ixxie> it will just take some time to get to our channels
<ylwghst> yup
freeman42x has joined #nixos
<ixxie> you can do nixos-rebuild boot in the meantime
<ixxie> annoying but effective
pxc has quit [(Ping timeout: 240 seconds)]
<ylwghst> thx
euniarte has joined #nixos
<ylwghst> what is actually the differnce between switch and boot?
<ylwghst> ah i see
jushur has joined #nixos
jtojnar has quit [(Quit: jtojnar)]
<euniarte> Hi, I'm using a cloned nixpkgs in a local package (because nixos' pyqt5 is missing the QtBluetooth module, I'm going to submit a PR or an issue if I got it working), but nix-build fails with a collision between two different versions of harfbuzz.
<euniarte> Is there a possibility that pyqt5 -> qt5-base -> harfbuzz and qt5.qtcore -> harfbuzz resolve to different versions?
jtojnar has joined #nixos
<disasm> Mic92: around?
iyzsong has quit [(Ping timeout: 240 seconds)]
Myrl-saki has quit [(Ping timeout: 240 seconds)]
glines has quit [(Quit: leaving)]
Myrl-saki has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/00e56fbbee (from 13 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
glines has joined #nixos
glines has quit [(Client Quit)]
erictapen has quit [(Read error: Connection reset by peer)]
glines has joined #nixos
<euniarte> Okay, I got a minimal example: https://pastebin.com/uwWPMMmh
<euniarte> This fails for me with nix-build <.nix from pastebin>
<Mic92> disasm: what's up?
lsix_ has quit [(Read error: Connection reset by peer)]
shymega has quit [(Ping timeout: 260 seconds)]
<disasm> this sway issue. with programs.sway enabled, I can't seem to figure out how to strace sway
<euniarte> Is there a way to print dependency graphs in nix?
<Mic92> disasm: yeah, ptrace will not work because the wrapper blocks that
<Mic92> disasm: you can use sysdig
<Mic92> there is a module
<disasm> ooh, sysdig :)
lsix_ has joined #nixos
<disasm> I haven't played with that in a while
<Mic92> disasm: I have some esotheric syscalls, where I cannot use it, but for your use case it should be fine
<disasm> Mic92: I disabled the wrapper and I was able to get some traces https://gist.github.com/anonymous/80a21f75f89eb4c5a07bc3e5efeabad1
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
<Mic92> disasm: I think it misses some capabilities in that case, but you can emulate that with capsh
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/328e380ad2 (from 62 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
nix-gsc-io`bot has quit [(Client Quit)]
<Isorkin> how to change kernel to linux_hardened_copperhead ? kernelPackages = pkgs.linux_hardened_copperhead; - not work
<euniarte> Ahh, the qt5Full package overrides qt5's harfbuzz so harfbuzz and harfbuzz-icu get pulled what causes this conflict
<euniarte> Isnt that a little bug-worthy?
glines has quit [(Quit: leaving)]
glines has joined #nixos
shymega has joined #nixos
<adisbladis> Isorkin: pkgs.linuxPackages_hardened_copperhead
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 2 new commits to master: https://git.io/vdHQ6
<NixOS_GitHub> nix/master 75cd75b Eelco Dolstra: Errors writing to the NAR cache should not be fatal
<NixOS_GitHub> nix/master 908590d Eelco Dolstra: Let's not populate the NAR cache from hydra-queue-runner for now
NixOS_GitHub has left #nixos []
<Isorkin> adisbladis: thanks
<Isorkin> how to fix error with nftables and new kernel. Not work nftables rules
FRidh has joined #nixos
ThatDocsLady has quit [(Remote host closed the connection)]
ThatDocsLady has joined #nixos
Svarog has quit [(Quit: Ex-Chat)]
hotfuzz_ has joined #nixos
disasm has quit [(Quit: WeeChat 1.9.1)]
disasm has joined #nixos
hotfuzz has quit [(Ping timeout: 260 seconds)]
ma27 has joined #nixos
reinzelmann has joined #nixos
<ldlework> rycee thank you
<euniarte> Is there a symlink somewhere pointing to the current /nix/store/*-per-user-pkgs.*/ ?
fendor has quit [(Ping timeout: 252 seconds)]
ma27 has quit [(Ping timeout: 248 seconds)]
<srk> hm, kicad segfaults when trying anything opengl related
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
<ldlework> infinisil did you see the new docs etc
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] kamilchm opened pull request #30537: hadoop: 2.2.0 -> 2.8.1 (master...hadoop) https://git.io/vdHFd
NixOS_GitHub has left #nixos []
jsoo has joined #nixos
reinzelmann has quit [(Quit: Leaving)]
leat has quit [(Quit: WeeChat 1.9.1)]
jsoo has quit [(Client Quit)]
jtojnar_ has joined #nixos
jsoo has joined #nixos
mortum5 has quit [(Ping timeout: 248 seconds)]
jtojnar has quit [(Read error: Connection reset by peer)]
ssmike has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterhoeg opened pull request #30539: googleearth: 7.1 -> 7.3 and move to Qt5 (master...f/ge) https://git.io/vdHAn
NixOS_GitHub has left #nixos []
<euniarte> Is there a way to force nix to rebuild a package?
<ldlework> What would be the point?
<euniarte> I want to see the output of the configure phase
<ldlework> heh ah
ma27 has joined #nixos
<copumpkin> --check will rebuild it and check that the output matches
<clever> euniarte: there is a command to read the log
<clever> euniarte: nix-store -l /nix/store/foo
bkchr has quit [(Ping timeout: 260 seconds)]
bkchr has joined #nixos
<euniarte> The package got pulled from the binary cache
jsoo has quit [(Quit: Mutter: www.mutterirc.com)]
<clever> euniarte: 2017-03-20 12:45:56 < niksnut> if you urgently need a log, you can find them at URIs like: https://cache.nixos.org/log/l9qmwi2q0dk4ji8pcycc188gank0q5pb-pointedalternative-0.1.0.0.drv
fendor has joined #nixos
<clever> euniarte: and `nix-store --query --deriver` will turn an output path back into the .drv path
<infinisil> ldlework: New docs?
<euniarte> clever: Nice, that worked :)
<euniarte> But it also confirmed my assumption that qtconnectivity is broken :(
bkchr has quit [(Ping timeout: 248 seconds)]
cement has joined #nixos
glines has quit [(Quit: leaving)]
glines has joined #nixos
acowley_work has joined #nixos
glines has quit [(Client Quit)]
ylwghst has quit [(Ping timeout: 240 seconds)]
fendor has quit [(Ping timeout: 240 seconds)]
Myrl-saki has quit [(Read error: Connection reset by peer)]
jtojnar_ has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin opened pull request #30541: python.pkgs.cufflinks: init at 0.12.0 (master...cufflinks) https://git.io/vdHjx
NixOS_GitHub has left #nixos []
<fearlessKim[m]> does nixos mess with clang to automatically add "-internal-isystem" ? It causes a pb (breaks a test regex) with a pkg I am using. I 've grepped a bit but come empty-handed :'(
zzamboni has joined #nixos
<jluttine> how do i access stdenv in my nixos configuration?
Myrl-saki has joined #nixos
<jluttine> (or mkDerivation actually=
leat has joined #nixos
<jluttine> )
<fearlessKim[m]> jluttine: it's usually matched in the top set for packages "{ stdenv }:"
bkchr has joined #nixos
ssmike has joined #nixos
<ixxie> jluttine: the manual's first example of a nix expression shows it: https://nixos.org/nix/manual/#ch-simple-expression
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin opened pull request #30542: Package some security/pentesting tools (master...pentesting-tools) https://git.io/vdQvT
NixOS_GitHub has left #nixos []
mortum5 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vyp opened pull request #30543: idrisPackages.lightyear: 2016-08-01 -> 2017-09-10 (master...upd/idrispackages.lightyear) https://git.io/vdQvt
NixOS_GitHub has left #nixos []
dieggsy has quit [(Ping timeout: 252 seconds)]
<jluttine> ixxie fearlessKim[m]: yep, thanks. that's what i tried but i get "error: attribute ā€˜stdenvā€™ missing, at /etc/nixpkgs/lib/modules.nix:163:28". guess i'm doing something wrong elsewhere or something, gotta study
nh2 has joined #nixos
ssmike has quit [(Remote host closed the connection)]
ixxie has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
chessai has joined #nixos
ssmike has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus created vscode_1_17_2 (+1 new commit): https://git.io/vdQfE
<NixOS_GitHub> nixpkgs/vscode_1_17_2 b269452 Tim Steinbach: vscode: 1.17.1 -> 1.17.2
NixOS_GitHub has left #nixos []
<clever> jluttine: lib/modules.nix only has access to lib
Wizek__ has quit [(Ping timeout: 248 seconds)]
<jluttine> i just want to write a new package in my configuration.nix..
<clever> jluttine: ah, in that region, you want pkgs.stdenv
<jluttine> oh, ok!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus opened pull request #30544: vscode: 1.17.1 -> 1.17.2 (master...vscode_1_17_2) https://git.io/vdQfM
NixOS_GitHub has left #nixos []
<jluttine> thanks!
<jluttine> clever: thanks, that solved it!
fendor has joined #nixos
bkchr has quit [(Ping timeout: 248 seconds)]
keta_suki has joined #nixos
dustmote has joined #nixos
jushur has quit [(Quit: The Borg joined forces with Skynet, Resistance is futile! Uploading has begun!)]
erasmas has joined #nixos
dustmote has quit [(Client Quit)]
Guest37279 is now known as TweyII
TweyII has quit [(Changing host)]
TweyII has joined #nixos
proteusguy has quit [(Ping timeout: 252 seconds)]
<TweyII> So { "foo bar" = 3; } is a valid set expression, but { "foo bar" }: 3 is not a valid set pattern. How do I match against an attribute whose name isn't a valid identifier?
<jluttine> hmm.. how can i find the package containing executable "run"? bash doesn't tell me directly when i try to run "run" because i'm using local nixpkgs git repo
erictapen has quit [(Read error: No route to host)]
jensens has joined #nixos
<michaelpj> jluttine: try installing nix-index, or use "nix search" if you're using nixUnstable
<ldlework> TweyII great question.
jtojnar_ has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
<keta_suki> Hi all! In my previous nixos config, I've set boot.initrd.network.ssh.hostRSAKey to a file path that existed when I ran nixos-rebuild. Now I've removed that line from my config, and removed the corresponding file but nixos-rebuild now fails as it tries to cp the file I removed, even though I removed the reference from the config file. Is there some configuration cache I need to clear to resolve this error?
<clever> TweyII: the parsing for that happens near: https://github.com/NixOS/nix/blob/master/src/libexpr/parser.y#L300-L305
<alp> jluttine, you can use 'command-not-found' if using nixos
<alp> it doesn't work on non-nixos systems iirc
<TweyII> Ah, another YACC to shave
<clever> ID [a-zA-Z\_][a-zA-Z0-9\_\'\-]*
<clever> TweyII: i think its just not legal
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
<eacameron> How do I upgrade major NixOS version?
<michaelpj> keta_suki: pretty sure that shouldn't happen - are you sure it's not referenced anywhere else?
<eacameron> 16.09 to 17.09
<clever> eacameron: change the nixos channel as root using nix-channel
<eacameron> clever: Ah
xdelv has quit [(Quit: xdelv)]
<keta_suki> michaelpj: Yup, I've double checked my configuration.nix file. Can I somehow rebuild everything from scratch without a reinstall?
ma27 has quit [(Ping timeout: 240 seconds)]
nix-gsc-io`bot has joined #nixos
<clever> keta_suki: can you gist the entire output of nixos-rebuild and your configuration.nix file?
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/328e380ad2 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
<clever> keta_suki: and also the output of the command "nixos-option boot.initrd.network.ssh.hostRSAKey"
erictapen has quit [(Read error: Connection reset by peer)]
<eacameron> clever: Thanks.
<clever> eacameron: and do NOT change the stateVersion in the configuration
<eacameron> why?
<clever> eacameron: that tells nixos what version your state is
<clever> changing it will break the things its meant to fix
<eacameron> clever: Oh dear...
<eacameron> That needs to be ... clearer.
<clever> there is a giant warning on config generated in recent versions
<clever> people still ask about changing it :P
zzamboni has joined #nixos
<eacameron> Ahh ok that must be newish
<clever> yeah, 16.09 wont have that warning
kragniz has quit [(Quit: WeeChat 1.7)]
<eacameron> Oh dear now kde4's gone
kragniz has joined #nixos
<TweyII> clever: Yeah, I guess so, but that makes using more complex attribut enames a bit awkwardā€¦
<TweyII> attribute names**
dj_goku_ has joined #nixos
dj_goku_ has quit [(Changing host)]
dj_goku_ has joined #nixos
ryantrinkle has quit [(Ping timeout: 252 seconds)]
<eacameron> Ah good there's a manual entry about upgrading
erictapen has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vdQIm
<NixOS_GitHub> nixpkgs/master 914fcc8 Joerg Thalheim: telegraf: 1.4.1 -> 1.4.2
NixOS_GitHub has left #nixos []
<adisbladis> eacameron: Good riddance
FRidh has quit [(Ping timeout: 248 seconds)]
endforma1 has joined #nixos
<adisbladis> KDE4 would have been even more of a mess than KDE5 to package
dj_goku has quit [(Ping timeout: 240 seconds)]
troglotit has joined #nixos
<clever> keta_suki: gist supports multiple files
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 2 new commits to master: https://git.io/vdQIn
<NixOS_GitHub> nixpkgs/master e307421 Franz Pletz: atlassian-confluence: 6.4.0 -> 6.4.2
<NixOS_GitHub> nixpkgs/master 369cbba Franz Pletz: atlassian-jira: 7.5.0 -> 7.5.1
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 2 new commits to release-17.09: https://git.io/vdQIW
<NixOS_GitHub> nixpkgs/release-17.09 35a4a7d Franz Pletz: atlassian-confluence: 6.4.0 -> 6.4.2...
<NixOS_GitHub> nixpkgs/release-17.09 9dfb8ee Franz Pletz: atlassian-jira: 7.5.0 -> 7.5.1...
NixOS_GitHub has left #nixos []
<keta_suki> Oh okay, good to know. Sorry for that :P
notdaniel has joined #nixos
<clever> keta_suki: that error is refering to a client private key, not a host key
<clever> keta_suki: and the error is happening because it finished building everything and was trying to activate nixos
<goibhniu> hiya fpletz, can I PM you (about the NixCon video sponsorship)?
<clever> keta_suki: can you gist /nix/store/sbr38724gcj1iznqj4p6y31wb55k6lb7-append-initrd-secrets/bin/append-initrd-secrets ?
katyucha has joined #nixos
proteusguy has joined #nixos
<clever> keta_suki: what does "nixos-option boot.initrd.secrets" say?
<keta_suki> That option is set to its default value { }
<clever> keta_suki: what about nix-store --verify --check-contents, does it return any errors?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 opened pull request #30545: powerdns: 4.0.3 -> 4.0.4 (master...pdns) https://git.io/vdQLt
NixOS_GitHub has left #nixos []
<ldlework> If I'm writing a NixOS module, what is the conventional way to support an option that represents some kind of file transformation for multiple files?
<keta_suki> clever: Should I maybe try to rebuild without activating i.e. nixos-rebuilt boot ?
<ldlework> I have a basic one that takes the path to an infile and spits out the content of the transformation, but what if I want to do that for multiple files?
<clever> keta_suki: the bootloader generation is what is causing the problem
<clever> keta_suki: oh, i think i see the problem
<ldlework> I thought about taking a list of infiles, but how would I get specific files from the result so that different dependent modules can write out their transformed files to different places?
<clever> keta_suki: for each generation you have built, it will fetch the secrets that generation wants
<clever> keta_suki: so its trying to make sure your old rollback options still have the secrets they are asking for
<clever> keta_suki: what do these 2 commands output: nix-store --query --roots /nix/store/sbr38724gcj1iznqj4p6y31wb55k6lb7-append-initrd-secrets
<clever> keta_suki: ls -l /nix/var/nix/profiles/
<keta_suki> Aha, makes sense. nix-store verifed without any problems btw
<clever> the above 2 commands should confirm it
<clever> keta_suki: so the currently booted system, along with generations 44 to 48, expect that secret to exist
<keta_suki> One dirty way to fix it is just to touch that path, and reboot into the new generation I guess?
<clever> keta_suki: and generations 49 + 50, dont need the secret
jensens has quit [(Ping timeout: 264 seconds)]
<keta_suki> right
<clever> keta_suki: yeah, until generations 44 to 48 are deleted, it will expect that path to exist
<clever> rebooting wont clear that
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin created mariadb-10.2 (+19 new commits): https://git.io/vdQLQ
<NixOS_GitHub> nixpkgs/mariadb-10.2 5b26090 Robin Gloster: mariadb: 10.1.26 -> 10.2.6
<NixOS_GitHub> nixpkgs/mariadb-10.2 2dbe56a Robin Gloster: mariadb: fix lib cycle and hash
<NixOS_GitHub> nixpkgs/mariadb-10.2 4515965 Robin Gloster: mariadb: lib -> connector-c
NixOS_GitHub has left #nixos []
<clever> nix-env -p /nix/var/nix/profiles/system --delete-generations 44 45 46 47 48
<clever> keta_suki: this will delete those problem generations, and then it should just activate without any problems
<jluttine> couldn't find any package that provides "run" executable.. :( weird makefile because it uses "run"
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #30544: vscode: 1.17.1 -> 1.17.2 (master...vscode_1_17_2) https://git.io/vdQfM
NixOS_GitHub has left #nixos []
erictapen has quit [(Read error: Connection reset by peer)]
<jluttine> oh, actually some other issue. not finding yarn, so nvm
<keta_suki> clever: Thank you so much! So I'll create an empty file, generate the config and let nixos invoke a garbage collection to remove the older generations?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin opened pull request #30546: WIP: Update to Mariadb 10.2 (master...mariadb-10.2) https://git.io/vdQtJ
NixOS_GitHub has left #nixos []
<clever> keta_suki: no need to create an empty file if you manualy delete those generations
<clever> keta_suki: and if those generations are gone, you dont even need to GC
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus deleted vscode_1_17_2 at b269452: https://git.io/vdQtU
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to release-17.09: https://git.io/vdQt3
<NixOS_GitHub> nixpkgs/release-17.09 0990021 Tim Steinbach: vscode: 1.17.1 -> 1.17.2...
NixOS_GitHub has left #nixos []
acowley_` has joined #nixos
acowley_` is now known as acowley_work`
katyucha has quit [(Ping timeout: 260 seconds)]
<wmertens[m]> argh I have a server down due to brtfs issue and I can't get into initrd - hints?
<wmertens[m]> tried init=/bin/sh but not there, tried init=..../bin/sh instead of .../init and that gives kernel panic
<clever> wmertens[m]: take the existing init that ends in /nix/store/<hash>/init and change it to end in <hash>/sw/bin/sh
<TweyII> wmertens[m]: It won't be under the same hash as init
<TweyII> Panic is probably ā€˜init doesn't existā€™
acowley_work has quit [(Ping timeout: 252 seconds)]
<TweyII> And /bin/sh is on your root filesystem, which is presumably the one that btrfs just mangled
<wmertens[m]> hmm trying
<wmertens[m]> sw/bin/sh did the trick šŸ˜…
<clever> wmertens[m]: there is also a rdinit= to change the init within the initrd, but the stage-1 script has other stuff thats better
<clever> ah, then your rootfs is still good
<TweyII> If the rootfs is good, why doesn't /bin/sh work?
<clever> it may be partially corrupt
<TweyII> Hmm
<wmertens[m]> yes it's weird, df reports 7GB free but no writes work
dannyg has quit [(Quit: dannyg)]
<clever> wmertens[m]: btfs does that a lot
<clever> wmertens[m]: the metadata pool is full
<clever> wmertens[m]: https://btrfs.wiki.kernel.org/index.php/FAQ#or_My_filesystem_is_full.2C_and_I.27ve_put_almost_nothing_into_it.21
<wmertens[m]> thanks! trying balance now
jb55 has joined #nixos
<keta_suki> clever: Manually deleting generations is usually done with nix-env --delete-generations ? --nix-env --list-generations appears to be empty before even removing generations. Should I point it to the system profile?
troglotit has quit [(Ping timeout: 248 seconds)]
<keta_suki> Whoops I meant nix-env without the -- prefix
<clever> keta_suki: you also need to give it -p, to tell it which profile to list the generations in
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
<keta_suki> clever: Thanks! And that should be /nix/var/nix/profiles/system to refer to the most current profile?
<clever> thats the profile for nixos-rebuild
<keta_suki> or should I just follow the symlink in /root/.nix-profile ?
<clever> thats for normal nix-env use, and wont have the nixos generations
acowley_work` has quit [(Ping timeout: 255 seconds)]
<keta_suki> clever: Alright, I managed to resolve the issue thanks to your help as it rebuilt the generation without any problems. Thanks again :)
<clever> yep
__Sander__ has quit [(Quit: Konversation terminated!)]
keta_suki has quit [(Remote host closed the connection)]
mortum5 has quit [(Ping timeout: 248 seconds)]
keta_suki has joined #nixos
simukis has quit [(Ping timeout: 264 seconds)]
<wmertens[m]> clever: TweyII thanks guys, system is back, phew!
<wmertens[m]> now I want a grub entry for a nice rescue shell...
<clever> wmertens[m]: i have been thinking of a simple option for that, how big is your /boot?
jtojnar_ has quit [(Remote host closed the connection)]
jtojnar_ has joined #nixos
erictapen has quit [(Ping timeout: 248 seconds)]
<wmertens[m]> clever: 43MB
Myrl-sak1 has joined #nixos
Myrl-saki has quit [(Killed (barjavel.freenode.net (Nickname regained by services)))]
Myrl-sak1 is now known as Myrl-saki
<clever> wmertens[m]: eek, my idea for a rescue shell needs ~300mb
<wmertens[m]> not actually on its own filesystem mind you
<wmertens[m]> I would be happy with a busybox
<clever> ah, what is the total size of the /boot partition?
keta_suki has quit [(Remote host closed the connection)]
keta_suki has joined #nixos
<clever> wmertens[m]: these are all options that the initrd script will accept
<clever> boot.shell_on_fail lets you get a shell when it fails to run stage 2
<clever> boot.debug1 boot.debug1devices boot.debug1mounts force a shell at various points in the stage-1 script
<wmertens[m]> hmmm, it sadly didn't fail, it just didn't work without warning
<wmertens[m]> what happened was that I set up snapper and it was inexplicably not running timeline cleanup
<clever> boot.debug1mounts would give you a shell in the initrd, with the rootfs mounted to /mnt/
uptime has quit [(Ping timeout: 255 seconds)]
katyucha has joined #nixos
<wmertens[m]> cool, let's see if I can make that into a grub option
<clever> the tricky part, is that the names for the kernel and initrd are in constant flux
goodwill has quit [(Ping timeout: 258 seconds)]
<clever> so its simpler to just write that down and manualy append it when things go wrong
<wmertens[m]> ah ok
<clever> i have another trick in mind, that gives you a full nixos environment, running from a ramdisk
<clever> which could fit into /boot/
riclima has joined #nixos
uptime has joined #nixos
<TweyII> I'm sure there's a function somewhere that is defined as {x}: if x then [x] else []
<TweyII> Does anybody remember where it is/what it's called?
<TweyII> s/{x}/x/
<clever> TweyII: lib.optional and its friends can probably do it
<wmertens[m]> so is the problem the closure size of a minimal nix?
<TweyII> clever: Ahh, that sounds right, thank you
<clever> wmertens[m]: after compression its about 200-300mb
goodwill has joined #nixos
<sphalerite> TweyII: not b: x: if b then [x] else [] That's lib.optional?
<clever> wmertens[m]: another option, does this machine have an ethernet port, and do you have a 2nd machine with both wifi&ethernet?
<wmertens[m]> it's a vm :) no
<clever> wmertens[m]: remote or local vm?
<wmertens[m]> and actually I'm privileged, many cloud providers don't let you look at boot console
<wmertens[m]> remote, vultr
<clever> ah
jtojnar_ has quit [(Remote host closed the connection)]
<clever> but you would need to specialy route the network between 2 VM's
<clever> and have 2 interfaces on one
jtojnar_ has joined #nixos
jtojnar_ is now known as jtojnar
<wmertens[m]> but now I know to look at the stage1 script next time
<clever> wmertens[m]: i have also been thinking about a bootloader that gives you a network console, to deal with this kind of problem
<clever> so you dont need console access from the provider
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jerith666 opened pull request #30547: Eclipse 471a (master...eclipse-471a) https://git.io/vdQ3a
NixOS_GitHub has left #nixos []
<wmertens[m]> i guess on AWS I would have attached the root disk as an extra disk to another VM
<wmertens[m]> clever: good idea!
<clever> it would probably be a custom initrd with dropbear that just kexec's the default kernel in the config
<clever> and presents a gui over ssh for selecting a different kernel
<wmertens[m]> so actually, having the nixos minimal installer image available as a boot option would work, come to think of it. Disk space is not an issue
<ldlework> If I have a NixOS module that declares some options which take an infile and write out a transformed version of this file - how could I go about supporting multiple transformations? Basically, the module's Options are currently only able to be defined by one other module. But I'd like to be able to define these options as many times as I'd like...
suvash_away has quit [(Ping timeout: 240 seconds)]
alanz has quit [(Ping timeout: 240 seconds)]
<clever> wmertens[m]: basicaly, you want to import a 2nd instance of <nixpkgs/nixos> (as i do in the netboot_server.nix above), and then refer to the kernel, initrd, and kernelParams like netboot.nix does
<clever> wmertens[m]: that 2nd instance of nixos should also get a simple configuration.nix with things like boot.supportedFilesystems = [ "btrfs" ]; and a way to login
<wmertens[m]> Ok, need to look at that on friday. now deadlines to meet. THanks!
hexamod has joined #nixos
<TweyII> sphalerite: Well, that's just optional id
Wizek has joined #nixos
<TweyII> sphalerite: Actually I wanted all of lib.optional anyway :)
suvash_away has joined #nixos
CodeWarrior has quit [(Ping timeout: 248 seconds)]
<sphalerite> TweyII: so you want something that will take a boolean and return [true] if it's true and [] if it's falseā€¦?
<sphalerite> fair enough
CodeWarrior has joined #nixos
<TweyII> sphalerite: Basically I have a bunch of boolean arguments like { foo ? true, bar ? false } and I want to produce a list like [ "foo" ], where "x" is in the list if x is true
<TweyII> I've written that as builtins.concatLists [ (optional foo "foo") (optional bar "bar") ] but I'm open to suggestions
<sphalerite> right
<ldlework> šŸ˜¤ nix-mode for emacs is kinda crap
<TweyII> (also, those aren't the *only* arguments, so I can't loop through th e argument set)
<TweyII> ldlework: Yeah :(
<TweyII> ldlework: I updated it yesterday, and it's at least now better than fundamental-mode
<ldlework> TweyII it's indentation logic is just broken
<TweyII> ldlework: The old one used to never dedent ā€” so if you pasted (or yanked!) in a chunk of Nix, it would just march away across the page
<TweyII> So I gave up on it and just used fundamental-mode
Neo-- has quit [(Ping timeout: 252 seconds)]
<TweyII> But the new one mostly works, albeit with some rather odd indentation decisions sometimes
jtojnar has quit [(Remote host closed the connection)]
katyucha has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rycee pushed 1 new commit to master: https://git.io/vdQGJ
<NixOS_GitHub> nixpkgs/master 4233b83 Robert Helgesson: perl-CryptX: 0.050 -> 0.054
NixOS_GitHub has left #nixos []
sigmundv__ has quit [(Ping timeout: 260 seconds)]
keta_suki has quit [(Remote host closed the connection)]
keta_suki has joined #nixos
notdaniel has quit [(Quit: Leaving)]
Neo-- has joined #nixos
fusion809 has joined #nixos
mma has joined #nixos
ryantrinkle has joined #nixos
proteusguy has quit [(Ping timeout: 260 seconds)]
LysergicDreams has quit [(Quit: leaving)]
glenn has joined #nixos
keta_suki has quit [(Ping timeout: 248 seconds)]
alanz has joined #nixos
johnw has quit [(Ping timeout: 255 seconds)]
glenn is now known as scribbler
fusion809 has quit [(Client Quit)]
<Isorkin> Please help. New kernel - not work nftables rules - reject. nft add rule inet filter input tcp dport \{ 22 \} ip saddr \@f2b-SSH reject - error. Rules drop - work. diff config kernel - https://pastebin.com/f1FQM0RV kernel 4.13.5 - nft worked, 4.13.7 - not work(
<chakra> how would i test if the URL itself supports the headers Range (for curl -r) and/or modified since and/or last modified however i do not know if it is possible for that to change depending on the website url in accordance to the base url kinda like directory permissions for sub folders in linux, i want to test for those to reduce bandwidth and download times as much as possible for example: https://www.url1.com, https://www.url1.
<chakra> com/dir/name/website, https://www.url1.com/dirb/nameb/websiteb
johnw has joined #nixos
fendor has quit [(Ping timeout: 260 seconds)]
juriq has joined #nixos
hellrazor has joined #nixos
jtojnar has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/0990021874 (from 73 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
toppler has quit [(Remote host closed the connection)]
keta_suki has joined #nixos
Neo-- has quit [(Ping timeout: 255 seconds)]
toppler has joined #nixos
<jtojnar> is it normal that DHCP is renewed every minute?
<disasm> jtojnar: that's typically a value set on the dhcp server
<cransom> jtojnar: if your admin set the dhcp leases to 1 minute, yes
<jtojnar> my journal is flooded by nm_dispatcher https://paste.gnome.org/p5fmfiwih
fusion809 has joined #nixos
<toppler> I'm new to virtualisation stuff. I've got a little VM hosted by bytemark, but I'm trying to run VMs inside it. Is this likely to fail?
<toppler> Right now, I'm trying virtualbox and it's stalling on "waiting for IP address."
<disasm> inception!
<toppler> disasm: Indeed!
<fusion809> Hey folks is it relevant that on my Arch Linux system where I've got Nix installed that $HOME/.nix-profile for my user is linked to /nix/var/nix/profiles/per-user/fusion809/profile which does not exist?
<fusion809> Should that file exist?
aloiscochard has quit [(Quit: Connection closed for inactivity)]
<toppler> disasm: Maybe it's not the right approach. I was just hoping to keep my various servers sandboxed from one another.
goibhniu has quit [(Ping timeout: 264 seconds)]
pxc has joined #nixos
<ArdaXi[m]> It's not, no. You probably want to look at containers, instead
<disasm> toppler: how sandboxed do you you require? nixos-container works well :)
<eacameron> How do tell nix to build haskell code with -j10
<toppler> Well, it's for fairly obsessive security concerns.
<gchristensen> try nix-build --cores 10
<toppler> Maybe I just need to drop the paranoia.
<eacameron> gchristensen: Does that change how GHC is invoked?
<fusion809> ArdaXi[m]: you talking to me? Nix seems to work though, the programs I've installed with it are running A OK. Just seems odd.
<gchristensen> I think it might
keta_suki has quit [(Ping timeout: 248 seconds)]
<clever> eacameron: i believe --cores is the one that gets routed to NIX_BUILD_CORES
<clever> eacameron: also look at line 99-102 in the same file
<eacameron> clever: You are a wiz at GitHub links.
<clever> eacameron: ive memorized an unreasonable percentage of the nixpkgs codebase ...
<eacameron> clever: Where unreasonable percentage is 0.1%
keta_suki has joined #nixos
<eacameron> And up
jtojnar_ has joined #nixos
jtojnar has quit [(Ping timeout: 240 seconds)]
<jtojnar_> 1 minute seems pretty short. Is it possible that the frequent renewals are causing connection interruptions?
<clever> jtojnar_: if the dhcp server is crap, and changes the IP you are given, yes
<jtojnar_> clever: the IP address remains the same
TweyII has quit [(Ping timeout: 248 seconds)]
<eacameron> What's a good tool to check the state of my harddrive? My computer seems to lock up randomly (but not the mouse or hover effects, just the actual task)
<clever> jtojnar_: the NAT could also be the problem, is it only happening with idle connections?
<eacameron> I'm almost certain it's the drive.
<clever> eacameron: smartctl -a
ShalokShalom_ has quit [(Ping timeout: 248 seconds)]
ShalokShalom has joined #nixos
<eacameron> clever: How do I install that?
<clever> eacameron: nix-env -iA nixos.smartctl
<jtojnar_> clever: no, no new web pages load in the web browser
jtojnar_ is now known as jtojnar
<disasm> eacameron: smartmontools I believe
<ldlework> oh that's coming from inside the build
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] CarlOlson opened pull request #30548: tensorflow: dont include cudatoolkit unless cudaSupport is used (master...tensorflow-without-cudatoolkit) https://git.io/vdQW0
NixOS_GitHub has left #nixos []
<ldlework> or is it
<eacameron> disasm: clever: Ah smartmontools is it
<disasm> ldlework: does hm have --show-trace?
jtojnar has quit [(Remote host closed the connection)]
jtojnar has joined #nixos
<ldlework> it just uses home-manager
<ldlework> patching it in didn't add much info disasm https://gist.github.com/dustinlacewell/3a8bfc71ca5c3b4f6a7c82c53d55a1da
ShalokShalom has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
<clever> ldlework: the error was at build time, so --show-trace wont help any
<clever> the script for building that derivation is telling emacs to write somewhere it shouldnt
<ldlework> ah it was the "toPath"
<ldlework> didn't need that
kiloreux has joined #nixos
kiloreux_ has joined #nixos
thblt has joined #nixos
jtojnar_ has joined #nixos
jensens has joined #nixos
<jtojnar_> clever: The interruption seems to coincide with "dhcp4-change' [enp3s0]: start running ordered scripts..." in the journal
jtojnar has quit [(Ping timeout: 240 seconds)]
<argo> Hi, can someone replicate this error using plasma 5: When I try to open the configuration dialog for the digital clock widget in the panel (right click on clock -> Digital clock settings) the opening window body is transparent and empty, system log throws this error "xsession[1699]: file:///nix/store/hm4czv681dnk9ngfmw5g67b9jnlknyyk-plasma-desktop-5.10.5/share/plasma/shells/org.kde.plasma.desktop/contents/configuration/AppletConfiguration.qml:20:1: plugin
<argo> cannot be loaded for module "QtQuick.Dialogs": Namespace 'QtQuick.Dialogs' has already been used for type registration"
fusion809 has quit [(Quit: leaving)]
proteusguy has joined #nixos
ma27 has joined #nixos
<argo> I don't know if something is wrong with my configuration (nixos 17.09), or if it is a packaging problem or upstream error
<jtojnar_> but the scripts are run after every renewal and the connection is not interrupted every time
ylwghst has joined #nixos
jgertm has joined #nixos
jtojnar_ has quit [(Remote host closed the connection)]
jtojnar_ has joined #nixos
ThatDocsLady has quit [(Remote host closed the connection)]
ThatDocsLady has joined #nixos
MichaelRaskin has joined #nixos
riclima has quit [(Quit: riclima)]
<clever> wmertens[m]: got the rescue shell working
riclima has joined #nixos
riclima has quit [(Client Quit)]
<disasm> jtojnar_: maybe wireshark it?
<jtojnar_> disasm: I cannot even ping google's IP address, not sure what I would be looking for
<clever> jtojnar_: routing tables?
<clever> gateway?
<taaperotassu> How do I set neovim as my default editor?
katyucha has joined #nixos
<wmertens[m]> clever: does that boot locally or does it try a netboot?
<clever> wmertens[m]: locally
<clever> wmertens[m]: i just grabbed the netboot kernel&initrd, and jammed them into /boot, with a menuentry
<Unode> Hi all, I've created a nixos service module in nixos/modules/services/backup/burp.nix . When I try to run nixos-rebuild -I /path/to/my/nixpkgs (folder containing nixos/) switch it tells me services.burp defined in configuration.nix doesn't exist. Do I need another file somewhere?
katyucha has quit [(Client Quit)]
<wmertens[m]> taaperotassu: `export EDITOR=neovim` in your profile maybe
<wmertens[m]> clever: simple and effective, <3 thanks!
<clever> wmertens[m]: in my case, i was able to open the luks for the rootfs, but i forgot to add zfs support to that netboot image
acarrico has quit [(Quit: Leaving.)]
sheyll has joined #nixos
<taaperotassu> wmertens[m]: Thanks.. I thought in configuration.nix should have being somehow able to.. but thanks
<clever> taaperotassu: nixos can do that, one min
<ldlework> Anyone suffering with nix-mode in emacs? I wish I new elisp..
<ldlework> knew too
ma27 has quit [(Ping timeout: 258 seconds)]
phreedom has joined #nixos
<Unode> anyone has some hints on the burp question above?
<clever> Unode: you need -I nixpkgs=/path/to/nixpkgs
<clever> Unode: and you also need to add it to nixos/modules-list.nix i believe
<Unode> ok the first one I did the second not
ssmike has quit [(Ping timeout: 255 seconds)]
<Unode> lemme try that.
ylwghst has quit [(Quit: Lost terminal)]
ylwghst has joined #nixos
<Unode> clever: that helped, thanks. Now some issues to debug.
<taaperotassu> Thanks clever
zzamboni has quit [(Quit: Leaving.)]
<ldlework> In a Nix module is there anyway to extend the Nix path so you can make git fetched expressions importable?
tmaekawa has joined #nixos
<taaperotassu> Any good ways to make capslock into esc key? Normally I use xmodmap.. but it seems that I didnt manage to get it work. I did install xorg.xmodmap
<clever> taaperotassu: there is a nixos option for that
<taaperotassu> https://nixos.org/nixos/options.html#xmodmap didnt find any.. but I think there is something similar.
LysergicDreams has joined #nixos
tmaekawa has quit [(Client Quit)]
<clever> taaperotassu: https://nixos.org/nixos/options.html#services.xserver.xkb
jensens has quit [(Ping timeout: 248 seconds)]
<clever> taaperotassu: services.xserver.xkbOptions = "caps:swapescape";
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 opened pull request #30549: treewide: Introduce stdenv.cc.bintools (master...bintools) https://git.io/vdQ02
NixOS_GitHub has left #nixos []
<taaperotassu> wow cool thanks!!!
<taaperotassu> Strange that it fails to build.. something about defined multiple times
<taaperotassu> I suppose used it earlier on something else
Ralith_ has quit [(Ping timeout: 240 seconds)]
ma27 has joined #nixos
ylwghst has quit [(Quit: Lost terminal)]
<taaperotassu> services.xserver.xkbOptions = "eurosign:e caps:swapescape"; did build but didnt work
<clever> Example value:"grp:caps_toggle, grp_led:scroll"
<clever> taaperotassu: the manual says its , seperated
<taaperotassu> so it was , separating
<taaperotassu> clever: thanks.. I suppose I should really read the manual before trying and getting confused
<taaperotassu> Have being wondered about getting neovim to my default editor and caps to esc for a quite a while.. now they work !! :D thanks clever
<clever> taaperotassu: and if the nixos manual lacks the details, you lookup where nixos uses it, and then check the xorg manuals
Ralith_ has joined #nixos
<taaperotassu> looking at github for examples is actually a very good way to do it
<Unode> are directories automatically created when referenced by services?
tnks has joined #nixos
<clever> no
<tnks> there are times when I wonder if I'll miss debconf moving from Debian to NixOS.
<Unode> I have a preStart = 'mkdir -m 0755 -p ...' but the directory ends up with 700 permission
<Unode> and a different user than it should
<clever> Unode: what is the path?
<tnks> just thinking that the Debian community tries to do nice "heads-up" stuff when big changes come in with upgrades.
<Unode> /var/lib/burp (I'm trying to create this service, burp.nix mentioned above)
<clever> Unode: is it also the home directory for a user?
<Unode> ah!
ylwghst has joined #nixos
<Unode> checking
orivej has joined #nixos
<clever> there is a createHome option on ever user
<Unode> yup that was the case. Checking if permissions are now correct.
<Unode> ok that part is fixed now the rest
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ericson2314 pushed 1 new commit to staging: https://git.io/vdQgI
<NixOS_GitHub> nixpkgs/staging ee9c59c John Ericson: Merge remote-tracking branch 'channels/nixpkgs-unstable' into staging
NixOS_GitHub has left #nixos []
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzzā€¦)]
erictapen has quit [(Ping timeout: 258 seconds)]
<srhb> Is there an easy way to create an isolated nix store that I can use for building secrets? Perhaps a container?
<srhb> (And I want to extract them afterwards of course)
efx has quit [(Ping timeout: 240 seconds)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
<gchristensen> that "abstraction" thing is the tough part
<tnks> srhb: I think secrets in /nix/store is a very open problem, and no solution I've seen is elegant, but some are less code.
erictapen has joined #nixos
scribbler has quit [(Remote host closed the connection)]
hexamod has joined #nixos
<srhb> tnks: Right, hence the isolated store. I mean, a jailed nix including its own jailed nix store of sorts.
reinzelmann has joined #nixos
<clever> srhb: checking my notes...
<tnks> srhb: yeah, it just sounds dangerous to me
<srhb> tnks: It probably is. :/
<srhb> Secrets are annoying. So many certificates. Why can't we all just get along?
<clever> NIX_REMOTE=local?root=/mnt nix-build ...
<clever> srhb: a command like this would operate on /mnt/nix/store/
<srhb> clever: local? eh
<srhb> Interesting!
<clever> then you need to secure /mnt so nobody can peek inside it
<srhb> That's.. Pretty darn useful, thanks :)
Ralith_ has quit [(Ping timeout: 258 seconds)]
<clever> nix copy --to local?root=/mnt
Ralith_ has joined #nixos
<clever> sheyll: and this will copy from the default store, to /mnt/nix/store/
<tnks> I do something kind of similar with /etc/nix/nix.conf: build-extra-sandbox-paths = /srv/nix
ylwghst has quit [(Quit: Lost terminal)]
<srhb> Hmm, invalid setting for NIX_REMOTE?
<tnks> but then I rely on impure environment variables to reference the path.
<clever> srhb: you need to "nix-shell -p nixUnstable" and be careful to not run that nix as root
<srhb> Ohhh
<tnks> so it only works for authentication, but I think that's a common case for secrets.
<clever> srhb: it can upgrade your db.sqlite, and then the old nix wont be able to do anything
<srhb> Because nixUnstable might break my store?
<srhb> Right
<srhb> Thanks :)
erictapen has quit [(Ping timeout: 240 seconds)]
<clever> tnks: i prefer ssh agent over giving the builder my secrets
<gchristensen> you can't though
<gchristensen> because nix has to access it, and anyone can access nix
<tnks> clever: this ended up being for curl to a JFrog/Artifactory server (externally hosted).
<tnks> I'm not sure if I can get to it via ssh.
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzzā€¦)]
<LnL> srhb: since 1.11.7 or something it's been forward compatible with nixUnstable, but that might change ofcorse
<srhb> LnL: OK :) Good to know.
<tnks> we have a `nix` command now?
<srhb> It looks like nixUnstable has some extra restrictions too
<srhb> tnks: That's nixUnstable
<srhb> "...nix is not in the Nix store" ?
hexamod has joined #nixos
infinisil has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
infinisil has joined #nixos
<srhb> Ah, it's just -f
<clever> tnks: ah
<LnL> gchristensen: local won't use the daemon, so the store will be owned by the user that created it
Wizek_ has joined #nixos
<gchristensen> oohh
<gchristensen> neat
hexamod has quit [(Client Quit)]
reinzelmann has quit [(Ping timeout: 240 seconds)]
<srhb> That really opens up a lot of possibilities for this kind of thing. Thanks, I'll have a play around
<LnL> gchristensen: you can even do that inside of a nix-build :D
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] cransom opened pull request #30550: Netdata version bump and module permission fix (master...netdata) https://git.io/vdQaJ
NixOS_GitHub has left #nixos []
ryantrinkle has quit [(Ping timeout: 258 seconds)]
<infinisil> Hmm, testing usbmuxd now
<srhb> woah, such fancy progress bars.
<clever> but some things like "nix copy" want to talk to the daemon and local
hexamod has joined #nixos
<tnks> clever: when you say "nix copy" it sounds like something new, not "nix-copy-closure".
<elvishjerricco> how do you destroy a declarative nixos container? I want to wipe it clean
<clever> tnks: its the new replacement for nix-copy-closure
<tnks> I feel like the world improved, and I didn't notice.
<tnks> how do I get it?
<ldlework> Is there anyway to add functions to builtins?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vdQaG
<NixOS_GitHub> nixpkgs/master 3430999 Vincent Laporte: ocamlPackages.lablgtk: remove unused dependency to campl4
NixOS_GitHub has left #nixos []
<ldlework> Or even lib
<clever> tnks: its part of nixUnstable, "nix-shell -p nixUnstable" and avoid giving that nix root, enless you want to commit to using it forever
<clever> ldlework: scopedImport is an impure way of doing all kinds of fun things
<infinisil> Can I somehow enable a non-root user to access usb devices? Specifically it tries to access something like /dev/bus/usb/003/006
<infinisil> but /dev/bus is under root:root
<clever> infinisil: what about the group of 006?
<srhb> Can I also build specific attributes with nix build?
<tnks> clever: does it break compatibiltiy with what's in /nix/var?
<srhb> -A doesn't seem to do anything
<infinisil> clever: Also root
<clever> tnks: the new version of nix will upgrade the db in /nix/var/ and then the old nix wont work anymore
<infinisil> There is some stuff in /dev that's under group "disk", but not /dev/bus/usb
<tnks> clever: I'm using nix-daemon, which has root access, so not sure how it wouldn't just force an upgrade.
<clever> infinisil: then you need a udev rule to assign a better group to that node, and put your user in the group
<srhb> Aha it just follows -f arg directly
<srhb> nice
ThatDocsLady has quit [(Remote host closed the connection)]
goibhniu has joined #nixos
<clever> tnks: as long as the nix-daemon is from the old version, it should be safe, as long as the new nix doesnt gain root
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vdQa6
<NixOS_GitHub> nixpkgs/master b938811 Vincent Laporte: ocamlgraph: 1.8.7 -> 1.8.8
NixOS_GitHub has left #nixos []
ThatDocsLady has joined #nixos
<infinisil> clever: Oh boy, never done that
reinzelmann has joined #nixos
<tnks> clever: yeah, I see. part of me doesn't want to mess with this new world till it's released properly.
<clever> ldlework: builtins.scopedImport { inherit __nixPath; } <nixpkgs/nixos/lib/eval-config.nix> {})
<tnks> clever: beyond command ergonomics, what else do I have to look forward to?
<clever> ldlework: this will import a given file (eval-config in this case) and forcibly set __nix_path as a global variable in that scope
<clever> ldlework: this even allows you to overwrite builtins with another attrset of your own creation
<clever> ldlework: but it only works at one level of depth, so you also have to wrap the new builtins.import if you want it to be recursive
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzzā€¦)]
<ldlework> Hmm then every single module along the way needs to do that
<ldlework> I see
<ldlework> Not sure how I would make it recursive
<clever> ldlework: overwrite builtins.import = path: builtins.scopedImport { builtins = new_builtins; } path;
<clever> so when things try to use normal import, they instead get a scopedImport that overwrites builtins
<clever> but at this point, its probably better to just patch lib/default.nix instead
<Unode> is there any way to have the output of a prestart step in a systemd unit to also show up in the journal log?
thblt has quit [(Ping timeout: 240 seconds)]
<disasm> I thought it did?
<clever> Unode: can you gist the resulting .service file from /etc/systemd/system/ ?
hexamod has joined #nixos
<Unode> clever: the service or the content of the Execpre?
<clever> Unode: the whole .service
ThatDocsLady has quit [(Ping timeout: 255 seconds)]
<infinisil> Damn, already got the udev rule working
m0rphism has joined #nixos
<Unode> clever: I think the StartPre is failing but the script reports exit 0. I don't see any output.
hexamod has quit [(Client Quit)]
<clever> Unode: try adding set -x to the start of that script
<clever> Unode: also, is this from the burp proxy suite?, i was thinking about getting it working recently
m0rphism4 has quit [(Ping timeout: 240 seconds)]
<Unode> clever: from the burp backup system.
hexamod has joined #nixos
<clever> ah
<tnks> I tried googling for nixUnstable, but didn't find a good page with a list of pending features.
<tnks> I'll take a link if anyone has a good one.
<clever> tnks: that gets compiled into the html docs, that are visible somewhere
<yrashk> anyone having trouble starting VirtualBox? I am not sure at which point this happened, but I am having this error now:
<clever> yrashk: how is virtualbox installed?
<yrashk> and the only way I can start a VM is `VBoxManage startvm <name> --type sdl`
<clever> yrashk: what does "type VirtualBox" return?
<yrashk> VirtualBox is /run/wrappers/bin/VirtualBox
<ldlework> clever I'm trying to figure out how to easily import pluginsĀ for Home Manager and I want to have a top-level expression import them and make them available to further imported modules
<ldlework> I don't think patching stuff is a good solution
mortum5 has joined #nixos
<clever> yrashk: it looks like virtualbox is somehow mixing qt 5.9.1 and 5.9.1, youll need to investigate the output of "nix-store -qR" ran against the virtualbox binary, and some other things
<clever> ldlework: i havent read the source for home manager yet, so not sure what else you can do to make it work that way
<Unode> are systemd units not allowed to spawn children?
<eacameron> clever: How do I get results from that smartctl command?
mma has quit [()]
<clever> eacameron: smartctl -a will check everything and print it all to stdout
ryantrinkle has joined #nixos
<eacameron> clever: Hmm, it says passed
<clever> ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
<clever> 5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 2
<Unode> I'm starting a process that then launched another command. This second command exits with 0 but output is not visible. It doesn't seem like the script had any effect. If I run the script manually, everything works as expected.
<clever> eacameron: other numbers like this can also be of use
ssmike has joined #nixos
<Unode> Starting a process = systemd unit
<clever> 196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 2
<clever> eacameron: in this case, i have had a total of 2 sectors fail on this drive, and it has silently remapped them to other spares
<woffs> all qt5-webkit things in unstable are broken because of 5.9.2 vs. 5.9.1 version clash, like https://github.com/NixOS/nixpkgs/issues/28214 but n+1
<clever> 194 Temperature_Celsius 0x0002 171 171 000 Old_age Always - 35 (Min/Max 13/56)
<clever> eacameron: and the drive is at a toasty 35c right now
<yrashk> clever: thanks
<clever> User Capacity: 160,041,885,696 bytes [160 GB]
<clever> eacameron: and thats where /boot lives!
<eacameron> clever: I see. So I should be looking for something specfici.
<clever> eacameron: if you throw the entire output into a gist i can look over it
MP2E has joined #nixos
colmarius has quit [(Quit: Connection closed for inactivity)]
ssmike has quit [(Ping timeout: 264 seconds)]
<yrashk> woffs: should be 5.9.2, I assume?
<clever> woffs: ahh
<woffs> breaks qutebrowser, wpa_gui and some others
<yrashk> woffs: confirm, wpa_gui broken here, too
<yrashk> same error, Cannot mix incompatible Qt library (version 0x50902) with this library (version 0x50901)
<infinisil> Um, why do so many services that use a group do `gid = config.ids.gids.<name>`
<infinisil> Aren't gid's assigned automatically?
<clever> infinisil: automatic gid's lead to a different gid on every machine
<tnks> clever: thanks for the link.
<clever> infinisil: and services are typically given a static gid
<infinisil> And what does config.ids do?
<infinisil> Does that evaluate the name and compute a deterministic gid or so?
<clever> infinisil: thats just a set of every service that has been given an id
<ldlework> I seems like you can't do `some_function let ... in { ... }` :(
<disasm> clever: I've been told in a lot of PR's to not do that though, lol :)
<infinisil> disasm: assigning gid like that?
k2s has joined #nixos
<cransom> fwiw, systemd 235 does some fancy stuff with being able to allocate it's own temporary uid/gids per service which would be nice.
<infinisil> Ohh..
<clever> cransom: i dont think that plays nicely with having state that must be owned by the service
<clever> but its great if you just want to delete the user and all traces of the service when it stops
k2s has quit [(Client Quit)]
<infinisil> It actually doesn't really matter what gid i use
<infinisil> since no files are preserved
<infinisil> In my case
<tnks> I kind of wish metadata (most-specifically licensing) were stored in /nix/store.
<tnks> might that come with nixUnstable? Does anyone talk about that?
<tnks> It's kind of like Debian's policy about what goes in /usr/share/doc
<clever> tnks: packages could still do that in $out/share/doc/
betaboon has joined #nixos
<tnks> clever: yeah, in that regard, it's just infrastructure code and factoring it into Nixpkgs, yeah?
<gchristensen> $pkg.license could always be a file in the store of the license's text, with some simple stdenv work
<clever> tnks: yeah
zzamboni has joined #nixos
<disasm> infinisil: gid and uid, I've been told not to assign statically in PR's I've submitted
<tnks> Yeah, it sounds like it could ostensibly be a small tweak if done in the right place.
<betaboon> hello #nixos, is virtualbox-headless broken in 17.09 ?
<tnks> but with nixpkgs... I've learned there's devils in details.
<infinisil> disasm: I'll keep that in mind
Isorkin has quit [(Ping timeout: 240 seconds)]
<Unode> I'm trying to create a service for burp. https://gist.github.com/567574f6119abab4a6e200c4cc64751e . So far I've managed to do most of the configuration however the burp.service unit fails to execute burp_ca and the required certificates aren't generated. If I run the script as root everything works as expected. I'm assuming the problem is burp_ca calls hostname and openssl and while running from systemd these
<Unode> are not in the PATH and aren't found. Is there any way to configure the service such that all required binaries are found?
<symphorien> ad those pacakges to systemd.services.<name>.path
<symphorien> *add
<Unode> symphorien: systemd.services.burp.path = [ pkgs.name1 pkgs.name2 ] ?
<symphorien> yes
<Unode> symphorien: thanks
<infinisil> Can I make udev rules apply when a rebuild happens?
Isorkin has joined #nixos
<clever> gchristensen: i recently threw together this module to make nixos rescue trivial: https://github.com/cleverca22/nixos-configs/blob/master/rescue_boot.nix
<clever> infinisil: if its usb, just unplug and replug the device, after the switch has finished
<infinisil> Yeah, but I'm trying to avoid that :P
<yrashk> woffs: I am trying to resolve this Qt issue, however, it seems like there is no qtwebkit 5.9.2, only 5.9.1; what should we do?
<infinisil> Would be neat not having to do that
<yrashk> woffs: ./maintainers/scripts/fetch-kde-qt.sh simply drops qtwebkit from srcs.nix altogether
<infinisil> Probably it's possible with udevadm trigger, but I doubt that'll get accepted in a PR
Ivanych has quit [(Ping timeout: 248 seconds)]
<infinisil> Although..
<ldlework> Is there really no way to fetch from the web without providing a md5, etc?
<Ralith> there are way to download dynamic data, they just cannot be used in nixpkgs proper for obvious reasons
<ldlework> Like what
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzzā€¦)]
scribbler has joined #nixos
<LnL> builtins.fetchurl "..."
<ldlework> that requires an md5 right?
<ldlework> oh I guess not
<ldlework> nice
hexamod has joined #nixos
ma27 has quit [(Ping timeout: 248 seconds)]
<Ralith> it doesn't, but if it did require a hash it would be a sha256, not md5; md5 is broken
<ldlework> oh neither does fetchFromGithub
<Ralith> cstrahan: seeing as your PR does the exact thing I want--makes explicitly supplied options work reliably--I am indeed pleased with it as it stands, yeah
<ldlework> If a function takes `...` is there a way to pass those args to another function?
ma27 has joined #nixos
<LnL> f = args@{ foo, ... }: args.bar
scribbler has quit [(Ping timeout: 248 seconds)]
<woffs> yrashk: you could fetch the old 5.9.1 version
scribbler has joined #nixos
<ldlework> LnL anyway to pass them all?
<yrashk> woffs: well, that's what current srcs.nix does
Neo-- has joined #nixos
<infinisil> So, now the usbmuxd module is truly magical
<ldlework> LnL alternatively, would "foo { inherit args; }" work?
<ldlework> To pass all of the outer function's args?
<LnL> ldlework: args here is an attrset with all of the arguments so you can just use it to call another function
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzzā€¦)]
<ldlework> oh nice
hexamod has joined #nixos
<LnL> args: args.foo is the same as { foo, ... }: foo
<Unode> Can I have a file that is generated by nix/nixos using writeFile but is not kept in the store? Seems like burp tries to rewrite the .conf file once it receives some parameters from the server (1st connection)
zzamboni has quit [(Ping timeout: 248 seconds)]
reinzelmann has quit [(Ping timeout: 255 seconds)]
<symphorien> create it in execStartPre
zzamboni has joined #nixos
<symphorien> possibly by copying it from a nix-generated template
riclima has joined #nixos
<symphorien> but if you let burp managing its own conf file, how can you update it when nixos options are changed ?
<Guest19986> I wanted to check in real quick about the status of ruby packages. It sounds like the new builder got released as part of 17.09? Is that so? There's a PR against bundix lingering, as well.
Guest19986 is now known as Judson
<Unode> symphorien: I know. But don't know how to solve this. Needs a patch upstream most likely.
<Judson> (That was me...)
<elvishjerricco> is there any documentation anywhere on how to use Hydra's GitHub status and PR support?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 5 new commits to master: https://git.io/vdQPP
<NixOS_GitHub> nixpkgs/master 9c8a0c0 Joachim Fasting: tor-browser-bundle.tor-launcher: 0.2.12.3 -> 0.2.13
<NixOS_GitHub> nixpkgs/master 9cf5492 Joachim Fasting: tor-browser-bundle.https-everywhere: 2017.9.12 -> 2017.10.4
<NixOS_GitHub> nixpkgs/master 6d31872 Joachim Fasting: tor-browser-bundle.noscript: 5.0.10 -> 5.1.2
NixOS_GitHub has left #nixos []
pmade has joined #nixos
<symphorien> Unode: a fragile thing would be: in execStartPre : if [! -e conffile -o (-e conffile -a (/nix/store/conffile != conffile.state))] cp /nix/store/conffile conffile; cp conffile conffile.state
<symphorien> you keep the current version of the conffile copied in /etc
<symphorien> and if the upstream copy (that from nix) changes, you overwrite burp's modified copy
<Unode> symphorien: I'm going to try to approach this upstream. I think the file is being rewritten even when the final content is exactly the same
<symphorien> ah
<Unode> need to do a few more checks to confirm
pmade has quit [(Quit: ZNC - http://znc.in)]
<yrashk> woffs: I am not sure I fully understand. So far, I figured out a way to resolve the issue locally. In my home-manager setup, I also installed dropbox from unstable, which (I think) brought qt5 5.9.2 and (5.9.1 qtwebkit) from unstable. The moment I reverted to stable dropbox, VirtualBox and wpa_gui work just fine. So, now I am not sure what's the best way to proceed with unstable -- should we revert it back to 5.9.1 for
<yrashk> the time being, remove qtwebkit until matching version is released, do nothing, etc :)
<MichaelRaskin> shlevy: is it official now, Nix as a general-pure-computational-purpose functional programming language?
<Unode> yup pretty sure now. It's rewriting what ends up being the same.
<shlevy> michalrus: Yep!
<woffs> yrashk: maybe report an issue or wait a week ;)
<shlevy> MichaelRaskin: Yep!
<shlevy> No need to write code in anyother language now
<yrashk> woffs: haha, ok :) I am still a newbie with nix, so I am trying to figure the best course of action
<Unode> when doing pull requests against nixpkgs, Should unstable be the target?
<woffs> yrashk: me too
<woffs> Unode: even master, afaik
<MichaelRaskin> Yeah, the creator's attempts to pretend that Nix is domain-specific get heavier blows each timeā€¦
reinzelmann has joined #nixos
Oida has quit [(Ping timeout: 248 seconds)]
<rnhmjoj[m]> I have been trying to build firefox 56 with a few patches but I get: output ā€˜/nix/store/[...]-firefox-56.0.1ā€™ is not allowed to refer to path ā€˜/nix/store/[...]-gcc-wrapper-6.4.0ā€™. If I remove the patches the error goes away. how come?
<shlevy> The fact that there's not yet any easy way to, say, manipulate derivations in any other language (besides guile) and have them fit into the ecosystem, or even *not* fit into the ecosystem but have it work decently well, means by necessity we're going to squeeze more and more absurdity out of the nix expression language :D
<clever> rnhmjoj[m]: use grep -r to find the gcc-wrapper path within the firefox output, after it fails
<tnks> huh... how do I commit fixes for the autogenerated pkgs/development/haskell-modules/hackage-packages.nix file?
<Unode> woffs: thanks
<clever> tnks: there should be directions on how its generated in the same directory, and i believe peti does that most of the time
<tnks> okay, there's a sed call that I think has broken the build for hmatrix-special. I have a proposed fix.
Oida has joined #nixos
<clever> tnks: this file has overrides, to apply fixes to the generated content
reinzelmann has quit [(Client Quit)]
ssmike has joined #nixos
scribbler has quit [(Remote host closed the connection)]
<tnks> clever: the part I don't get is from the root of nixpkgs, I run this: ag 'dont/hardcode'
<Unode> ok so I've created a new service and local testing seems to work. How do you usually keep permanent changes on the system's nixpkgs tree?
<tnks> and I get only two hits, both in hackage-packages.nix (autogenerated)
<tnks> so I'm not sure the script/expression that puts in these sed calls is even in the nixpkgs repository.
<woffs> Unode: overrides, or overlays
<Unode> overlays, will look into that
<pbogdan> tnks: AFAIK some of those might come from cabal2nix as well https://github.com/NixOS/cabal2nix/blob/master/src/Distribution/Nixpkgs/Haskell/FromCabal/PostProcess.hs
ssmike has quit [(Ping timeout: 252 seconds)]
<clever> pkgs/development/haskell-modules/hackage-packages.nix: preConfigure = "sed -i hmatrix.cabal -e 's@/usr/@/dont/hardcode/paths/@'";
<clever> tnks: interesting...
<infinisil> gchristensen: I won't bother you about this much more, but https://github.com/NixOS/nixpkgs/pull/30518
<sphalerite> Unode: neither of those apply to modules
<infinisil> gchristensen: I'd love it if you could test the new version once more
<noam> Hi, there are some broken links in the Disnix documentation page: "https://nixos.org/disnix/docs.html". The links "Disnix manual" and "DisnixOS" do not work.
<tnks> pbogdan: nice, that's where it is!
<clever> tnks: fiybd utm ibe nun
<clever> tnks: its part of cabal2nix
chessai has quit [(Remote host closed the connection)]
<Unode> sphalerite: so what options do I have left?
<sphalerite> Unode: either keep a local checkout that you rebase on upstream to update (until your PR is merged, if applicable) or keep the module outside the nixpkgs tree and add it to your imports yourself (if it's a separate module and not a change to an existing one)
<tnks> clever: I did not figure out your word puzzle... but I'll take the answer.
<clever> tnks: "found it, one min" with my hand being offset a column
<infinisil> lol
<Unode> sphalerite: it's a new module but it touches a few internal things, for instance the uids file mentioned above that handles user/group id assignments.
<infinisil> We now know that clever uses Qwerty
<gchristensen> it is a shame more americans / canadians aren't going to be at nixcon, I have at least one references ~0% of the audience will get
<tnks> clever: cool, well sounds like you're answer conforms with pbogdan's. I'll submit the patch.
<MichaelRaskin> Are you sure you are not underestimating global reach of memetic hazards?
<MichaelRaskin> I mean, if it reached Canada, it's in the wild.
<samueldr> or overestimating?
<gchristensen> I dunno, what do you know about Wendy's commercials from the 1980's
<infinisil> gchristensen: You american?
<gchristensen> infinisil: I am
cement has quit [(Ping timeout: 240 seconds)]
scribbler has joined #nixos
<MichaelRaskin> I won't be at NixCon anyway, but I would have troubles recognizing _any_ commercials from 1980's
<samueldr> too young probably for 80s wendy's
<MichaelRaskin> Yup, a temporal problem more than spacial.
<gchristensen> at least one of those, certainly
<samueldr> though, canada is weird for those kind of ads
<samueldr> could have been too local
<ldlework> aww, fetchFromGithub DOES require rev
<infinisil> ldlework: Of course it does, otherwise it wouldn't know what to fetch
<ldlework> could use master by default
<infinisil> master isn't fixed
<infinisil> usually you don't want revisions to change in nix
<rnhmjoj[m]> clever: the path seems appears in a file called env-vars, the config.log e some more automake related files during the build. I don't know what is left after the build is finished yet. I have restarted the build with --keep-failed but it takes a while
<Unode> sphalerite: I'll look into keeping a clone of the channel. Likely the easiest option.
<clever> rnhmjoj[m]: the problem is in the storepath, not the tmp directory
<clever> rnhmjoj[m]: so you need to grep for /nix/store/[...]-gcc-wrapper-6.4.0 within /nix/store/[...]-firefox-56.0.1
<Judson> I wanted to check in real quick about the status of ruby packages. It sounds like the new builder got released as part of 17.09? Is that so? There's a PR against bundix lingering, as well. (I'm still using my dev copy of it to build gemset.nix's)
<infinisil> ldlework: And if you used master, it won't ever update it anyways, the first time you build it, that master is used
<infinisil> which wouldn't work on another machine, because the other machine would fetch a different master and the hash would mismatch
<infinisil> (assuming it's built at a different time with different masters)
<infinisil> master: no good
riclima has quit [(Quit: riclima)]
keta_suki has quit [(Quit: WeeChat 1.9.1)]
erictapen has joined #nixos
Guest45531 has quit [(Ping timeout: 252 seconds)]
riclima has joined #nixos
ubuntu has joined #nixos
ubuntu is now known as Guest30360
MercurialAlchemi has quit [(Ping timeout: 240 seconds)]
scribbler has quit [(Ping timeout: 248 seconds)]
scribbler has joined #nixos
<rnhmjoj[m]> clever: is that path created when the build fails? I don't because the last attempt was probably garbage-collected
<ldlework> LjL, it seems like if the function I'm calling requires `args` but the outer function is defined as `args@{ ... }: ` then I cannot simply pass `args` to the inner function
<rnhmjoj[m]> *don't know
<infinisil> ldlework: I don't know the context or who LjL is, but args is just a name, you can put anything there
<Profpatsch> How would you handle secrets given to a service files
<Profpatsch> s/files/file?/
<ldlework> yes, but I'm saying that calling a function that takes `pkgs` for example can't be called like `some_func args`
<Profpatsch> Pass a file with EnvironmentFile, yes, but how to construct that file and where to put it?
<ldlework> I meant LnL
<ldlework> lol
<infinisil> ldlework: You can always just use an attrset: some_func { pkgs = ... }
<ldlework> Yeah but thats what I was hoping to avoid
<ldlework> fetching modules from github is already hella verbose
<infinisil> what are you trying to do that makes you do this?
<infinisil> the some_func thing
<ldlework> Just as I said, load a module from github
<ldlework> My toplevel HM expression loads an expression from github
ma27 has quit [(Ping timeout: 260 seconds)]
<clever> rnhmjoj[m]: after it fails again, grep its output
<ldlework> since it is a module, it needs to be called with the pkgs, config, lib, etc
<clever> rnhmjoj[m]: nix keeps the $out of failed builds, but doesnt flag them as valid, so they are the first target for GC
<infinisil> ldlework: Umm, no?
<sphalerite> nix-adt looks really neat
<sphalerite> !m shlevy
<[0__0]> You're doing good work, shlevy!
<ldlework> infinisil yeah, because the modules depend on those names
<infinisil> Modules can either be just an attrset, or a function with pkgs, config, lib, etc. as arguments
<rnhmjoj[m]> clever: ok, i will. thank you.
<ldlework> infinisil yeah an attrset if it only defines options, I know.
<ldlework> the code of the plugin module depends on the pkgs and config attrs, etc
ertes-w has quit [(Read error: Connection reset by peer)]
<ldlework> so they are forumlated as functions which take them
<ldlework> once you fetch from github, you have to call the imported function with those names
ertes-w has joined #nixos
<ldlework> I am not passing them directly to imports = [] because I actually need some non-module functions from them
pie_ has quit [(Ping timeout: 255 seconds)]
<ldlework> IE, they also act is library code
kuznero has joined #nixos
<infinisil> Oh, well then it's not a module, but a function that returns one
<kuznero> Hi All!
<ldlework> so the plugin module returns an attr set like { func1 = ..., func2=..., module=...}
<ldlework> And I pass imported_thing.module to imports
<LnL> ldlework: hmm, fetching expressions like that at eval time will make it pretty slow and you loose reproducability
<kuznero> Are there any examples of a derivation with several fetchFrom calls?
<infinisil> LnL: Even with fetchFromGitHub with rev and hash?
<LnL> ldlework: do you have an example of what you are fetching
<LnL> infinisil: no only builtins.fetchurl happens at eval time
<infinisil> LnL: Ah right, didn't see you say eval time
<ldlework> When you import this plugin, you can use functions defined in the returned attrset, and/or import the module attribute to load its declared Options
<ldlework> s/import this plugin/fetch this plugin
ma27 has joined #nixos
<infinisil> ldlework: Hmm, well with an overlay attribute this would be much nicer
<infinisil> overlays option*
<infinisil> But home-manager currently doesnt' have that
<ldlework> explain
<ldlework> heh
<infinisil> then you could make a lib overlay and have all your functions available from the lib in all modules in the argument list
<LnL> how do you intend to use the build attribute?
Guest30360 has quit [(Ping timeout: 248 seconds)]
scribbler has quit [(Remote host closed the connection)]
cwre has quit [(Read error: Connection reset by peer)]
<kuznero> LnL: are you asking me? sorry the confusion
<infinisil> Ohh, also, you could define a readOnly, internal option, which is like having a variable as an option ldlework
<infinisil> kuznero: (he asked ldlework)
<kuznero> sorry
<LnL> also it doesn't have the correct format for a module so you'd have to wrap it in a function if you want to import it
<srhb> Hrm. My nodes in my new nixops kubernetes deployment ended up with a taint: unschedulable=true:NoSchedule
<srhb> Any idea how this happens?
<ldlework> LnL, the module attribute is a valid importable module
juriq has quit [(Ping timeout: 248 seconds)]
<ldlework> I'm doing `imports = [ org-build.module ]
<ldlework> if I want the options declared in the module
<infinisil> LnL: Modules can either be an attrset or a function
<infinisil> where attrset is the same as { ... }: attrset
<ldlework> infinisil the plugin thing is kind of nice because we can spread the HM module innovation around
<LnL> err, you're right
<infinisil> ldlework: what innovation?
<ldlework> I don't know what you mean
<ldlework> I've already made two
<ldlework> I have ideas for more
<LnL> but you still have to evaluate the toplevel function with the correct module context first
<infinisil> I don't know what you call innovation :P
ma27 has quit [(Ping timeout: 255 seconds)]
<LnL> kuznero: no but check out srcs https://nixos.org/nixpkgs/manual/#ssec-unpack-phase
JosW has quit [(Quit: Konversation terminated!)]
<LnL> ldlework: imports = [ (org-build-src ???).module ];
<kuznero> LnL: I don't think that will help. I am packaging something that in turn tries to download intermediate bits itself. What I am trying to do basically now is to merge 2 sources of sources ;) into one and then substituteInPlace --replace to avoid trying to download already downloaded/merged packages.
ma27 has joined #nixos
ubuntu___ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] danharaj opened pull request #30552: pysc2: init at 1.2 (master...pysc2-init) https://git.io/vdQHd
NixOS_GitHub has left #nixos []
erictapen has quit [(Ping timeout: 240 seconds)]
<kuznero> Is that an ok thing to do, LnL?
ma27 has quit [(Ping timeout: 258 seconds)]
jensens has joined #nixos
<LnL> not sure I understand, but if you move stuff to the expected location and patch the downloads during the build it might work
riclima has quit [(Quit: riclima)]
<kuznero> LnL: thanks! that is exactly what I was looking for
erictapen has joined #nixos
p4cman has quit [(Quit: Connection closed for inactivity)]
ssmike has joined #nixos
zraexy has quit [(Quit: Leaving.)]
kuznero has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
ma27 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] unode opened pull request #30553: WIP: Add support for burp client/server services (master...master) https://git.io/vdQ7G
NixOS_GitHub has left #nixos []
zraexy has joined #nixos
simpson has joined #nixos
<simpson> Hi! I want to use a new LyX, because my old LyX is old and I can't pull 2016 texlive tarballs any longer. So I checked out the master branch of nixpkgs, but LyX won't start, and tells me this instead; any ideas?
<simpson> `This application failed to start because it could not find or load the Qt platform plugin "xcb"`
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ma27 opened pull request #30554: shmig: init at 2017-07-24 (master...init/shmig-2017-07-24) https://git.io/vdQ7D
NixOS_GitHub has left #nixos []
<maurer> simpson: I saw "19:31 <woffs> all qt5-webkit things in unstable are broken because of 5.9.2 vs. 5.9.1 version clash, like https://github.com/NixOS/nixpkgs/issues/28214 but n+1" earlier today
<maurer> I don't know anything about it, but it might point you in the right direction
<simpson> maurer: Interesting. I wonder if the stable 17.09 branch is any better.
<Unode> disasm: https://github.com/NixOS/nixpkgs/pull/30553 the client part works for me despite all the gotchas. I haven't tested the server. Mine is running on a non-nixos machine.
efx has joined #nixos
<simpson> euniarte, maurer: Thanks, I'm trying out a patch now to see whether this fixes it.
euniarte has quit [(Remote host closed the connection)]
asdfoiawe has joined #nixos
<LnL> ldlework: I would split up the files and do something like this https://gist.github.com/LnL7/602f3f3e51819e4433fcdd594ac58389
euniarte has joined #nixos
euniarte has quit [(Remote host closed the connection)]
kiloreux has quit [(Ping timeout: 248 seconds)]
hamishmack has quit [(Quit: hamishmack)]
kiloreux_ has quit [(Ping timeout: 260 seconds)]
asdfoiawe is now known as euniarte
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
<ldlework> what is the point of doing inherit pkgs vs pkgs=pkgs?
<pxc> none, right?
efx has quit [(Ping timeout: 260 seconds)]
<pxc> other than that reading 'pkgs=pkgs;' is kinda confusing at first
<ldlework> LnL also that is succcchhh a nicer way to do it
<ldlework> oh you have to sudo it from the outside :(
<LnL> ldlework: yes inherit foo; is the same as foo = foo; you can use that with both attrsets and let
cwre has joined #nixos
slyfox_ has joined #nixos
<ldlework> LnL the way I'm doing it now, a user would be able to bootstrap with the configuration without additional steps on the host
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rycee pushed 2 new commits to master: https://git.io/vdQde
<NixOS_GitHub> nixpkgs/master 468cccb Matt McHenry: eclipse-platform, eclipse-sdk: 4.7.0 -> 4.7.1a
<NixOS_GitHub> nixpkgs/master 346fa91 Matt McHenry: eclipse-plugin-jdt: 4.7 -> 4.7.1a
NixOS_GitHub has left #nixos []
<clever> nix-repl> let foo = 5; in rec { foo = foo; }
<clever> { foo = error: infinite recursion encountered, at (string):1:29
zzamboni has quit [(Quit: Leaving.)]
<clever> the only time inherit foo is different from foo=foo, is when rec comes into play
<LnL> huh
<ldlework> interesting
catch22 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rycee closed pull request #30547: Eclipse 471a (master...eclipse-471a) https://git.io/vdQ3a
NixOS_GitHub has left #nixos []
slyfox has quit [(Ping timeout: 258 seconds)]
<LnL> oh I see now
<clever> nix-repl> let foo = 5; in rec { inherit foo; }
<clever> { foo = 5; }
cwre has quit [(Client Quit)]
<clever> inherit doesnt get tripped up, and without the ref, foo=foo; does what you would expect in nix
<clever> rec*
<LnL> ldlework: you could fetch the sources like you did before and use "${hm-org-build}" and "${hm-org-build}/release.nix" instead
<CrazedProgrammer> is there any way to make nixos-install fetch everything into /mnt/nix/store instead od /nix/store and then copying it over? 9gb of applications doesn't fit in my ram
<ldlework> what is release.nix in this case?
<LnL> a separate file with the build expression
cwre has joined #nixos
<euniarte> CrazedProgrammer: Maybe mount /mnt/nix to /nix?
<euniarte> Everything else would involve rebuilding everything if I have understood nix correctly
<clever> euniarte, CrazedProgrammer: thats a bug in the current nixos-install
<simpson> maurer, euniarte: Hm, adding `qtx11extras` to buildInputs didn't fix it. Trying adding `qtbase` to propagatedBuildInputs. Any other ideas?
<clever> CrazedProgrammer: currently, you need to add some swap, or start with a smaller installation
ariutta has joined #nixos
<CrazedProgrammer> all right, not that much of a hassle
<euniarte> simpson: Sounds to me like the issure I linked before. I don't have any more ideas, sry
<euniarte> simpson: Wait, you could try to use http://doc.qt.io/qt-5/deployment-plugins.html as a temporary fix
hiratara has quit [(Ping timeout: 252 seconds)]
<ldlework> LnL not sure I understand, but I want to
<euniarte> simpson: Like $ env QT_PLUGIN_PATH=/nix/store/*qtbase-5.9.2*/lib/qt-5.9/plugins <your app>
hiratara has joined #nixos
<euniarte> (You may need to replace the *s in a separate step, I dont think that they are resolved when assigning to a variable)
voiceftp has joined #nixos
<simpson> Hm, interesting. I would like to know how the folks who have been fixing Qt5 apps have done it; their patches don't have any comments.
<euniarte> I'd say that this is a bug in qtbase
hexamod has quit [(Quit: Textual IRC Client: www.textualapp.com)]
<elvishjerricco> does hydra attempt to do builds locally? Or can it only use remote machines?
<clever> elvishjerricco: it will only use build slaves defined in /etc/nix/machines
<elvishjerricco> clever: hm. is it possible to tell it to do builds locally, short of just telling it to ssh into itself?
<clever> elvishjerricco: the only solution ive seen is to configure root@localhost as a build slave
<voiceftp> Is there are convenient way of `killall`-ing wrapped binary?
<elvishjerricco> Darn. Well ok, thanks
<clever> voiceftp: killall .foo-wrapped?
Neo-- has quit [(Remote host closed the connection)]
<voiceftp> clever, does not work with emacs
<clever> voiceftp: what name does "ps aux | grep emacs" show?
Neo-- has joined #nixos
<voiceftp> clever, /nix/store/96ff9y6an2fdn24nd1zc63lx6lm6dl9v-emacs-25.3/bin/.emacs-wrapped
ma27 has quit [(Ping timeout: 248 seconds)]
<clever> voiceftp: what about the Name: field under /proc/<PID>/status ?
ssmike has quit [(Ping timeout: 252 seconds)]
hamishmack has joined #nixos
S0rin has quit [(Ping timeout: 252 seconds)]
<voiceftp> clever, `.emacs-25.3-wra`. I can killall it, but this name sounds strange
<clever> voiceftp: ah, that name includes the version, and it got truncated because the struct in the kernel has a limited size
<clever> lrwxrwxrwx 1 root root 10 Dec 31 1969 .emacs-wrapped -> emacs-25.3
<clever> voiceftp: i see why, that .emacs-wrapped is just a symlink
S0rin has joined #nixos
<clever> voiceftp: and i found a bug
<clever> voiceftp: "emacs" is a bash script, that runs .emacs-wrapped, which is a symlink to emacs-25.3, which itself is an identical wrapper, over .emacs-25.3-wrapped
<clever> so its being wrapped with 2 bash scripts
k2s has joined #nixos
<voiceftp> clever, thanks for explanation
<voiceftp> that type of bug does not cause any inconvenience, I think
k2s has quit [(Client Quit)]
<ariutta> I've got a question about NixOS and the www-data user. My OS is currently Ubuntu (only option allowed ATM), and I used nix to install the command line program "jq". As a normal user, I can run jq just fine, but I don't know how to let the "www-data" user call jq (www-data is the user for PHP, and I'd like to call jq from PHP via shell_exec). The home directory for www-data is /var/www, and the permissions aren't the same as for a norma
c0ffee152 has joined #nixos
<clever> ariutta: run "type jq" to see where jq is coming from $PATH
<clever> ariutta: you may need to get the path to be set better
<ariutta> Path is currently "/home/ariutta/.nix-profile/bin/jq"
Neo-- has quit [(Ping timeout: 264 seconds)]
goibhniu has quit [(Ping timeout: 240 seconds)]
<ariutta> Should I use "sudo visudo" and add the line "www-data ALL=NOPASSWD: /home/ariutta/.nix-profile/bin/jq"
<clever> ariutta: no
<clever> ariutta: what does "ls -lh /home/ariutta/.nix-profile" say?
Neo-- has joined #nixos
<ariutta> clever: lrwxr-xr-x 1 ariutta staff 29B Sep 1 2016 /home/ariutta/.nix-profile -> /nix/var/nix/profiles/default
<ariutta> It's symlinked to the default profile
<clever> ariutta: try using /nix/var/nix/profiles/default/bin/jq
<clever> that wont be restricted to any user, so sudo wont be required
mbrgm has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<ariutta> clever: I'll give that a try. Thanks!
mbrgm has joined #nixos
hiratara has quit [(Quit: ZNC - http://znc.in)]
hiratara has joined #nixos
ris has joined #nixos
<simpson> Oh wow, https://github.com/NixOS/nixpkgs/issues/24189 implies that I need to be *running* the right Qt5. Irritating. Guess I'm doing a system upgrade today.
erictapen has quit [(Ping timeout: 248 seconds)]
erictapen has joined #nixos
erictapen has quit [(Ping timeout: 248 seconds)]
mortum5 has quit [(Ping timeout: 258 seconds)]
Neo-- has quit [(Ping timeout: 240 seconds)]
erasmas has quit [(Quit: leaving)]
<> changed the topic of #nixos to: gchristensen has changed topic for #nixos to: "Need help? Share the output of nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://botbot.me/freenode/nixos/ || #nixos-dev, ##nix-darwin"
pie_ has joined #nixos
<pxc> gchristensen: when did we get a `nix-info` command?
<gchristensen> Monday
ryantrinkle has quit [(Ping timeout: 240 seconds)]
<pxc> what version of Nix do I need? I don't see it in the release notes: https://nixos.org/nix/manual/#sec-relnotes
<gchristensen> its part of nixpkgs :) comes default on nixos... may need to update the instructions
<pxc> gchristensen: ah, yeah. this machine is on macOS (but this is the NixOS channel, so, maybe that's not a big deal)
<> changed the topic of #nixos to: gchristensen has changed topic for #nixos to: "Need help? Share the output of nix-shell -p nix-info --run nix-info to help us help you. || https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://botbot.me/freenode/nixos/ || #nixos-dev, ##nix-darwin"
<gchristensen> pxc: give a whirl :)
<gchristensen> also try: nix-shell -p nix-info --run "nix-info -m"
<pxc> system: "x86_64-darwin", multi-user?: yes, version: nix-env (Nix) 1.11.15, channels(root): "nixpkgs-18.03pre115958.bed076cdfb", nixpkgs: /etc/nix-darwin/pkgsets/nixpkgs/darwin
<pxc> :-)
<pxc> oh I forgot the -m
<gchristensen> (you won't want to paste that output)
<pxc> looks good
<gchristensen> :) hopefully that makes it easier to get answers we need during support.
<gchristensen> "what channel are you on?" "unstable" ".. yeah but which one?"
<pxc> yeah, it's a great idea
efx[m] has joined #nixos
<pxc> a simple thing but a big help for new users
<gchristensen> yeah
<gchristensen> and reduce the burden on people giving support
<gchristensen> win-win
<pxc> haha just noticed that it's even markdown-formatted for pasting into github
<pxc> nice
<gchristensen> :)
<pxc> that's the -m ?
<gchristensen> markdown
<gchristensen> --help
<rnhmjoj[m]> clever: I found the culprit: the gcc full path is in an html page listing the compile flags and stuff, I think it's about:buildconfig page. I still don't understand what this has to do with the patches though
<efx[m]> I tried the nix-info command, but got the following error: https://dpaste.de/dYzK
<pxc> efx[m]: update your nixpkgs?
<efx[m]> roger
<gchristensen> ah yeah your nixpkgs is too old
<elvishjerricco> whatever happened to `--sign` being removed from `nix-copy-closure`? It's still there in NixOS 17.09
<efx[m]> hmm, I should just need to do nix-channel --update?
<efx[m]> I'm using āžœ ~ nix-channel --list
<gchristensen> yeah
<efx[m]> interesting, tried it but still got that error
<gchristensen> I wish we had nix-info to help debug ;)
<efx[m]> lol gchristensen :)
ertes has joined #nixos
<efx[m]> btw, I think nix-info is a great idea for newcomers like myself
<gchristensen> efx[m]: nix-instantiate --eval --strict -E "<nixpkgs>" what does this say?
<efx[m]> gchristensen: /nix/var/nix/profiles/per-user/root/channels/nixpkgs
<efx[m]> i'm on a multi user mac OS install too fwiw
<rnhmjoj[m]> clever: ah ha, i found it. by adding my patches I accidentaly removed this one https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/networking/browsers/firefox/no-buildconfig.patch
<gchristensen> ahh, you'll need to run the channel update as root: sudo su -, then nix-channel --update efx[m] (there are a few issues with multi-user nix and macos right now, so the sudo su - being a separate command is necessary :( )
<gchristensen> this is because nix-shell looks at <nixpkgs> which is provided by the root's channel
<clever> rnhmjoj[m]: ahh
<clever> rnhmjoj[m]: (drv: { patches = drv.patches ++ [ ./foo.patch ]; })
<rnhmjoj[m]> clever: I just did that. thanks for the help
<efx[m]> ah, thanks gchristensen . unfortunately I need to ask for admin access so will have to try that later.
jensens has quit [(Ping timeout: 260 seconds)]
catch22_ has joined #nixos
catch22 has quit [(Ping timeout: 240 seconds)]
riclima has joined #nixos
markus1199 has joined #nixos
catch22_ has quit [(Ping timeout: 258 seconds)]
iqubic has joined #nixos
markus1189 has quit [(Ping timeout: 248 seconds)]
<gchristensen> tbttttthnnthh
<gchristensen> oops, heh
<gchristensen> efx[m]: oh then you can delete your nixpkgs-latest channel and make a new one, just name it nixpkgs
thc202 has quit [(Ping timeout: 248 seconds)]
<efx[m]> gchristensen: huh, I tried that and updated but still got the error: https://dpaste.de/qOiq. I did just do nix-env -i and get the expected output! https://dpaste.de/WWe3
<gchristensen> nice!
<chakra> what should i do in the case that this occurs? https://bpaste.net/show/361930456892
erictapen has joined #nixos
dhess has joined #nixos
<dhess> Hi, question about NixOps. I'm having problems deploying to DigitalOcean. On the initial deploy, while waiting for the "infect" stage, I get this:
<dhess> do.host..........> waiting for SSH.........error: global name 'ConnectionError' is not defined
<dhess> now my Python-fu isn't what it used to be, but is ConnectionError defined in Python 2? It appears to be a Python 3 exception only.
<dhess> and I thought NixOps needed Python 2
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vd7v2
<NixOS_GitHub> nixpkgs/master 43ebfb5 Vincent Laporte: coqPackages.flocq: 2.5.2 -> 2.6.0
NixOS_GitHub has left #nixos []
orivej has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zzamboni opened pull request #30556: asciidoctor: 1.5.5 -> 1.5.6.1 (master...asciidoctor-1.5.6.1) https://git.io/vd7vX
NixOS_GitHub has left #nixos []