gchristensen changed the topic of #nixos to: NixCon 2018 CfP is now open! https://nixcon2018.org/ || 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://logs.nix.samueldr.com/nixos/ || #nixos-dev, #nix-darwin, #nixos-aarch64, #nixos-chat, #nixcon
lawlesseel has quit [Remote host closed the connection]
<fyber> I want to install NixOS alongside my current distro, how can I add another distro to the grub installed by nix?
<fyber> real question > Is it safe to set the nix installer to a new drive and worry about this later
lawlesseel has joined #nixos
<{^_^}> [nixpkgs] @Infinisil opened pull request #46409 → almonds: update license → https://git.io/fA2PT
countingsort has joined #nixos
[Leary] has quit [Remote host closed the connection]
Lears has joined #nixos
counting1ort has quit [Ping timeout: 245 seconds]
<symphorien> fyber: useOsProber
<fyber> so just do the install and then add it with osprober?
<symphorien> There is an option for this
_ris has quit [Ping timeout: 252 seconds]
abueide has joined #nixos
<{^_^}> [nixpkgs] @Infinisil pushed 2 commits to master: https://git.io/fA2P8
<{^_^}> [nixpkgs] @Infinisil merged pull request #46409 → almonds: update license → https://git.io/fA2PT
CodeKiwi is now known as DigitalKiwi
<{^_^}> [nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fA2Pr
marusich has quit [Quit: Leaving]
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
hlolli has joined #nixos
<slack1256> I got a shell.nix file with a mkShell expression inside. If I run nix-collect-garbage that environment will be have to created anew on the next nix-shell call
<slack1256> How do I make them persist nix-collect-garbage?
thc202 has quit [Ping timeout: 252 seconds]
<hlolli> What could explain missing sndfile.h in an environment `nix-shell -p libsndfile` are the source files omitted?
<samueldr> worldofpeace: #42610 isn't an issue anymore (as far as dolphin is concerned) https://stuff.samueldr.com/screenshots/2018/09/20180908203748.png
<{^_^}> https://github.com/NixOS/nixpkgs/pull/42610 (by adisbladis, 10 weeks ago, open): installer: Don't run graphical installer ISOs as root
ilikeheaps has joined #nixos
<fyber> wpa-supplicant never works for me, is there a way to use networkmanager in the install ISO?
<fyber> I tried enabling it in the config but it conflicts with a bunch of things
<samueldr> fyber: the graphical iso (which by default starts in a virtual console) has network-manager available, and can be used in the console using nmtui
<samueldr> I have to check if the "minimal" iso has it too
<fyber> I'm on minimal right now, doesn't work :(
<samueldr> aw
<fyber> Should I just grab the graphical one? It's kind of a pain to write the ISO again
<fyber> or maybe someone can help me figure out why wpa-supplicant doesn't work
<samueldr> well, let's first figure out: what does "doesn't work" mean?
<fyber> I did `wpa_passhrase SSID PASSWORD > /etc/wpa_supplicant.conf`
<fyber> and then started wpa supplicant
<fyber> didn't connect to the network, and there's nothing in the systemctl status
<fyber> The network is WPA2 (Personal) so it's not too weird I don't think
<samueldr> should be fine
<fyber> I had the same problem on my old distro too
<samueldr> are there interfaces when you use `iw dev`?
<samueldr> how did you solve the problem on the other distro?
<fyber> yes, wlp2s0
<fyber> I just installed networkmanager
<fyber> and everything magically worked
<samueldr> good, at least it's not because it's an unsupported (by default) network card... it's a pain to get the firmwares on the iso sometimes :/
<fyber> Does wpa_supplicant work for anyone?
<fyber> I can't even get it to work on a raspberry pi/raspbian, which is as close to a common linux distro as it's going to get
<samueldr> wifi is so bad in this overcrowded area that I always use USB ethernet on laptops
<fyber> I'm convinced everyone who says they use it is lying
<fyber> I just have to write the config and restart wpa_supplicant, right?
<samueldr> are there any special characters, or spaces, in either of the SSID or passphrase?
<samueldr> (I'm not sure, it's been years since I last used wpa_supplicant, and not with a systemd service)
<fyber> nope, all of them are a-z 0-9
<samueldr> and the capitalization is followed for the SSID too? (dumb question, but let's not assume anything)
<fyber> yes
<samueldr> :/
<fyber> it's actually all lowercase too
wpcarro has joined #nixos
<fyber> actually the simplest possible scenario
<samueldr> and iw dev doesn't show the SSID after starting wpa_supplicant?
<fyber> nope
<fyber> I found something interesting
<fyber> when I start wpa supplicant it says wlp2s0 and unnamed netdev
<fyber> in `iw dev`
<fyber> but only wlp2s0 when wpa supplicant is stopped
<fyber> I plugged in an ethernet dongle but that only has drivers for Windows so it didn't work :(
<samueldr> I've been looking at older IRC logs, there's a user that seems to have good troubleshooting steps
<fyber> paste?
<samueldr> `systemctl status wpa_supplicant` there's probably log entries at the bottom
JonReed has joined #nixos
<fyber> tried that, no log entries other than "success"
<samueldr> (I'm reading a couple and taking the most successful replies)
<samueldr> :/
wpcarro has quit [Ping timeout: 240 seconds]
<samueldr> (I know I would get the graphical iso just because nmtui makes me stop thinking about thinking)
sbdchd has joined #nixos
<samueldr> sorry I can't help much more, here.s the search I was looking at https://logs.nix.samueldr.com/nixos/search?q=wpa_supplicant
<fyber> Configuring wifi without a GUI is impossible
<fyber> got the graphical ISO
<fyber> thanks for the help
sigmundv has quit [Remote host closed the connection]
sigmundv has joined #nixos
<disasm> fyber: you can build your own usb stick with whatever configuration you want on it, for example this what I use for zfs https://gist.github.com/15667f4917be1436dbb6e3dc27f89b6a
<disasm> fyber: also, nmtui > graphical network manager tools :)
graphene has quit [Remote host closed the connection]
<camsbury> I use wpa_supplicant
graphene has joined #nixos
<camsbury> the static config thing should work, but there might be something else missing... let me check
<camsbury> make sure you have this in your configuration.nix
<camsbury> networking.wireless.enable = true;
JonReed has quit [Ping timeout: 252 seconds]
<camsbury> then you should be able to use the conf file, but if you want to see if it is just working in general there is another command
<camsbury> wpa_supplicant -B -i wlp2s0 -c /etc/wpa_supplicant/wpa_supplicant.conf -> is the command suggested by the arch wiki
<samueldr> camsbury: this is for the installer media, the configuration option won't be helpful AFAIUI
sigmundv has quit [Ping timeout: 240 seconds]
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
<samueldr> though, the nixos manual doesn't mention the wpa_supplicant service, instead recommending a similar command https://nixos.org/nixos/manual/index.html#sec-installation
<fyber> maybe it doesn't set the interface by default?
<fyber> I would hope it would see that there is only one interface and use that but...
graphene has quit [Remote host closed the connection]
<samueldr> though, the nixos manual doesn't mention the wpa_supplicant service, instead recommending a similar command https://nixos.org/nixos/manual/index.html#sec-installation
<samueldr> ouch, sorry, wrong window
graphene has joined #nixos
<samueldr> (up arrow, enter accident)
_rvl has quit [Quit: ZNC 1.6.5 - http://znc.in]
<fyber> I figured it out.
_rvl has joined #nixos
<fyber> I'm using a hidden network.
<fyber> wpa_supplicant needs a special flag for that
<fyber> networkmanager does not
<fyber> everything makes sense now
acarrico has joined #nixos
mounty has quit [Ping timeout: 252 seconds]
sigmundv has joined #nixos
tzemanovic has joined #nixos
ydlr has joined #nixos
sigmundv has quit [Quit: Leaving]
sigmundv has joined #nixos
wpcarro has joined #nixos
[Leary] has joined #nixos
<camsbury> ah
mounty has joined #nixos
Lears has quit [Ping timeout: 246 seconds]
<camsbury> so - I have hie working out of my shell.nix thanks to https://github.com/haskell/haskell-ide-engine/issues/357#issuecomment-366567730
<camsbury> seems cabal2nix doesn't carry over any default-extensions
gratin has joined #nixos
goibhniu has quit [Ping timeout: 244 seconds]
lassulus_ has joined #nixos
slack1256 has quit [Remote host closed the connection]
abueide has quit [Ping timeout: 245 seconds]
wpcarro has quit [Ping timeout: 240 seconds]
aanderse has joined #nixos
lassulus has quit [Ping timeout: 245 seconds]
lassulus_ is now known as lassulus
<infinisil> Tried to (re)install Nix on my mac.. nix#2410
<{^_^}> https://github.com/NixOS/nix/issues/2410 (by Infinisil, 33 seconds ago, open): Bad darwin reinstallation experience
andrew_ has joined #nixos
Mateon2 has joined #nixos
pie_ has quit [Remote host closed the connection]
andrew_ is now known as abueide
Mateon1 has quit [Ping timeout: 272 seconds]
Mateon2 is now known as Mateon1
gratin has quit [Ping timeout: 246 seconds]
<ldlework> uh oh
pie_ has joined #nixos
silver has quit [Read error: Connection reset by peer]
wpcarro has joined #nixos
wpcarro has quit [Remote host closed the connection]
mounty has quit [Ping timeout: 252 seconds]
iyzsong has joined #nixos
mayhewluke has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
wpcarro has joined #nixos
wpcarro has quit [Remote host closed the connection]
acarrico has quit [Ping timeout: 246 seconds]
acarrico has joined #nixos
<fyber> 13h (estimated) to 9h with KDE
tzemanovic has quit [Remote host closed the connection]
<fyber> that's more than I was expecting
tzemanovic has joined #nixos
slack1256 has joined #nixos
<slack1256> I crafted a shell.nix file to use with nix-shell. When entering it takes 50 seconds. Is there anyway to see where the time is being spent?
tzemanovic has quit [Remote host closed the connection]
<infinisil> slack1256: Add as many -vvvvv's as you like
<slack1256> Oh, let me see
<ldlework> infinisil: lol
hlolli_ has joined #nixos
sigmundv has quit [Ping timeout: 246 seconds]
tzemanovic has joined #nixos
andrewrk has joined #nixos
<andrewrk> I upgraded nixos and now apps can't find opengl
<andrewrk> did something change?
<slack1256> infinisil: It works, thanks!
hlolli has quit [Ping timeout: 252 seconds]
fresheyeball has joined #nixos
<fresheyeball> hey out there
<fresheyeball> I have a list of drvs
<fresheyeball> [ hpack stylish-haskell ]
<fresheyeball> can I convert that to a string, of all the binaries that list exposes?
<fresheyeball> "hpack stylish-haskell"
<fresheyeball> in this case
<infinisil> fresheyeball: Not on the Nix level, haskell packages don't expose which executables they contain
<infinisil> Only whether or not they do have executables
<fresheyeball> infinisil: so with buildInputs
<fresheyeball> they just end up on the $PATH
<fresheyeball> I think this might be doable with foldl'
<fresheyeball> but I don't understand how they end up on the path with buildInputs
<fresheyeball> here is the goal
<fresheyeball> I have pimpped out nix-shell for my project with useful development tools
<fresheyeball> and now everyone uses tools of the same version, which is awesome
<fresheyeball> and I want to print a help message stating which thing on $PATH have been added
<fresheyeball> turns out the doc gets stale fast as people add tools
<fresheyeball> so it would be nice to have the [drv] and programmatically make the list
<fresheyeball> my first thought, is that if I can understand how this is done in buildInputs, or makeCmdBin
<fresheyeball> then I should be able to do this in a combo of nix and bash
wpcarro has joined #nixos
slack1256 has quit [Remote host closed the connection]
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<{^_^}> [nixpkgs] @Infinisil opened pull request #46410 → Fix idris gcc builds on darwin and disable broken package → https://git.io/fA21x
ydlr has quit [Remote host closed the connection]
tomberek has joined #nixos
<tomberek> Any have experience with cross-compiling for ARM? I'm getting some failures, but I'm not sure where to start fixing them. Here's a basic thing that fails: `nix build nixpkgs.pkgsCross.armv7l-hf-multiplatform.gdb`
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<infinisil> fresheyeball: Oh I see
<infinisil> > builtins.parseDrvName pkgs.hpack.name
<{^_^}> attribute 'hpack' missing, at (string):191:23
<infinisil> > builtins.parseDrvName pkgs.haskellPackages.hpack.name
<{^_^}> { name = "hpack"; version = "0.29.7"; }
<infinisil> fresheyeball: You could use this to tell what package names are in a list of packages
<infinisil> > map (p: (builtins.parseDrvName p).name) [ haskellPackages.hpack haskellPackages.stylish-haskell ]
<{^_^}> [ <CODE> <CODE> ]
<infinisil> > p (map (p: (builtins.parseDrvName p).name) [ haskellPackages.hpack haskellPackages.stylish-haskell ])
<{^_^}> value is a set while a string was expected, at (string):191:13
<infinisil> Ugh, oh well
<fresheyeball> infinisil: I can take it from here
<infinisil> > p (map (p: (builtins.parseDrvName p).name) [ pkgs.haskellPackages.hpack pkgs.haskellPackages.stylish-haskell ])
<{^_^}> value is a set while a string was expected, at (string):191:13
* infinisil goes investigating
<fresheyeball> infinisil:++
<{^_^}> infinisil:'s karma got increased to 2
<infinisil> :D
<fresheyeball> you rock
<fresheyeball> you have helped me so much on here, and I have learned so much
<infinisil> Aw thanks, glad to hear that <3
ydlr has joined #nixos
<infinisil> tomberek: Well it's kind of hard to help if we don't even have the error
<infinisil> (And I won't try to build it locally myself)
tzemanovic has quit [Remote host closed the connection]
<infinisil> In any case, you can always open an issue for it here https://github.com/NixOS/nixpkgs/issues/new
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
evil-olive has joined #nixos
wpcarro_ has joined #nixos
wpcarro has quit [Ping timeout: 240 seconds]
wpcarro_ has quit [Remote host closed the connection]
wpcarro has joined #nixos
ilikeheaps has quit [Ping timeout: 240 seconds]
ilikeheaps has joined #nixos
wpcarro has quit [Read error: Connection reset by peer]
camsbury has quit [Ping timeout: 244 seconds]
pie_ has quit [Ping timeout: 240 seconds]
<fyber> Is there an easy way to get a full C++ development environment running?
<fyber> I keep installing packages but it keeps turning out that I need more
<fyber> I just want to compile something :(
jasongrossman has quit [Ping timeout: 252 seconds]
_rvl has quit [Quit: ZNC 1.6.5 - http://znc.in]
_rvl has joined #nixos
<tomberek> infinisil: do you get an error with that?
hlolli_ has quit [Ping timeout: 272 seconds]
<tomberek> `builder for '/nix/store/gwjlxlzc53hk8ws5w4dqbyhwiy45gpll-gdb-8.1.1-armv7a-unknown-linux-gnueabihf.drv' failed with exit code 2; last 10 log lines: make[3]: *** [Makefile:871: bfdt.stamp] Error 127 /nix/store/czx8vkrb9jdgjyz8qfksh10vrnqa723l-bash-4.4-p23/bin/bash: ./chew: No such file or directory make[3]: *** [Makefile:878: cache.stamp] Error 127 make[3]: Leaving directory '/tmp/nix-build-gdb-8.1.1-armv7a-unknown-linux-gnuea
<infinisil> tomberek: Assuming we're using both linux_x86-64 and considering that nix builds are reproducible and you *did* get an error suggests that I'll get the exact same error
<tomberek> infinisil: that's the hope, but it's always good to confirm
<infinisil> tomberek: regarding the error, it might have compiled a binary ./chew in the build with arm as a target, which it then tries to run in the build, which will fail with a "no such file" error because it can't find the libraries it needs, because it's still running on x86-64, not arm. So the solution might be to make it compile chew with the build host as a target
pie_ has joined #nixos
<tomberek> infinisil: thanks, gdb being a relatively base package I had hoped I was just doing something wrong.
sbdchd has quit [Remote host closed the connection]
ilikeheaps has quit [Ping timeout: 272 seconds]
lawlesseel has quit [Remote host closed the connection]
lawlesseel has joined #nixos
Ariakenom has joined #nixos
ryantm has quit [Quit: Lost terminal]
endformationage has quit [Quit: WeeChat 1.9.1]
<fresheyeball> so I had an interesting conversation on the postgresql channel
<fresheyeball> and they brought this up in response to the way nix packages the posgresql service
jedahan has joined #nixos
fresheyeball has quit [Quit: WeeChat 2.0]
cnidario has quit [Remote host closed the connection]
Ariakenom has quit [Ping timeout: 246 seconds]
ryanartecona has quit [Quit: ryanartecona]
ryanartecona has joined #nixos
Ariakenom has joined #nixos
mayhewluke has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
Ariakenom has quit [Remote host closed the connection]
Ariakenom has joined #nixos
sbdchd has joined #nixos
jedahan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
markT has joined #nixos
sbdchd has quit [Ping timeout: 272 seconds]
tomberek has quit [Ping timeout: 252 seconds]
georges-duperon has joined #nixos
ryanartecona has quit [Quit: ryanartecona]
simukis has joined #nixos
<typetetris> nixos 18.03 doesn't have nix 2.1.1 ? Is that correct?
markT has quit [Quit: Page closed]
funkmybios has joined #nixos
Izorkin has joined #nixos
ryanartecona has joined #nixos
ixxie has joined #nixos
rihards has joined #nixos
mgttlinger has joined #nixos
<{^_^}> [nixpkgs] @7c6f434c merged pull request #46389 → chromium: 68.0.3440.75 -> 69.0.3497.81 (18.03 backport) → https://git.io/fA2gM
<{^_^}> [nixpkgs] @7c6f434c pushed 2 commits to release-18.03: https://git.io/fA2SS
tmaekawa has joined #nixos
tmaekawa has quit [Client Quit]
fragamus has joined #nixos
<ixxie> can anybody tell me how to remove an overlay?
<etu> ixxie: Where is it declared on your config?
<ixxie> ~/.config/nixpkgs/overlays/
<{^_^}> [nixpkgs] @vbgl opened pull request #46411 → jbuilder: 1.0.1 -> dune: 1.1.1 → https://git.io/fA29Z
<ixxie> I'm actually trying to fix issues with home-manager
<ixxie> so I want to remove it and reinstall it (the installation method seems to have changed
tzemanovic has joined #nixos
b has quit [Ping timeout: 245 seconds]
<etu> Oh, I haven't used overlays for the user like that
kiloreux has quit [Ping timeout: 240 seconds]
<ixxie> I removed the overlay but don't know how to rebuild the user environment
<etu> I guess it's safe to remove the directory. And if something reference it at some point it will yell at you that it's missing and you'll probably get to know where.
tzemanovic has quit [Remote host closed the connection]
<ixxie> etu: but how to I trigger a rebuild to clean up the user env and make a new generation?
<ixxie> aha
<ixxie> nix-env --upgrade
<ixxie> very unintuitive
sbdchd has joined #nixos
kiloreux has joined #nixos
sbdchd has quit [Ping timeout: 246 seconds]
orivej has quit [Ping timeout: 252 seconds]
knupfer has joined #nixos
timon37 has quit [Remote host closed the connection]
tzemanovic has joined #nixos
jasongrossman has joined #nixos
<funkmybios> running my first nixos install.. 18.3 did not do networking for me so using unstable 19.03 from USB unetbootin ... so far only complains about Bad initial heap size ...
<jasongrossman> funkmybios: \o/
abueide has quit [Ping timeout: 240 seconds]
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
ryanartecona has quit [Quit: ryanartecona]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
mounty has joined #nixos
tzemanovic has quit [Remote host closed the connection]
tzemanovic has joined #nixos
<{^_^}> [nixpkgs] @mbode opened pull request #46412 → pythonPackages.CDDB: fix darwin build → https://git.io/fA2HN
tzemanovic has quit [Remote host closed the connection]
kiloreux has quit [Ping timeout: 272 seconds]
ryanartecona has joined #nixos
<{^_^}> Channel nixos-18.03-small advanced to https://github.com/NixOS/nixpkgs/commit/36005e5edf5 (from 79 minutes ago, history: https://channels.nix.gsc.io/nixos-18.03-small)
ryanartecona has quit [Client Quit]
rauno has joined #nixos
johanot has joined #nixos
sbdchd has joined #nixos
kiloreux has joined #nixos
sbdchd has quit [Ping timeout: 240 seconds]
_ris has joined #nixos
<{^_^}> [nixpkgs] @aszlig pushed to master « imv: Include i686-linux in platforms attribute »: https://git.io/fA2Qz
georges-duperon has quit [Ping timeout: 252 seconds]
Edes has quit [Ping timeout: 240 seconds]
boomshroom has quit [Quit: WeeChat 2.1]
jasongrossman has quit [Ping timeout: 244 seconds]
luigy has left #nixos [#nixos]
luigy has joined #nixos
cornu has joined #nixos
<{^_^}> [nixpkgs] @mbode opened pull request #46413 → pythonPackages.django-raster: fix build → https://git.io/fA27e
<{^_^}> Channel nixpkgs-18.03-darwin advanced to https://github.com/NixOS/nixpkgs/commit/36005e5edf5 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-18.03-darwin)
sigmundv has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rfold has joined #nixos
sigmundv has quit [Read error: Connection reset by peer]
sigmundv has joined #nixos
rihards has quit [Quit: rihards]
mounty has quit [Ping timeout: 252 seconds]
hotfuzz has joined #nixos
thc202 has joined #nixos
sbdchd has joined #nixos
hotfuzz_ has quit [Ping timeout: 240 seconds]
sbdchd has quit [Ping timeout: 244 seconds]
mayhewluke has quit [Ping timeout: 240 seconds]
mayhewluke has joined #nixos
mounty has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #46413 → pythonPackages.django-raster: fix build → https://git.io/fA27e
<{^_^}> [nixpkgs] @xeji pushed commit from @mbode to master « pythonPackages.django-raster: fix build (#46413) »: https://git.io/fA25t
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nixos
<{^_^}> [nixpkgs] @xeji pushed commit from @mbode to release-18.09 « pythonPackages.django-raster: fix build (#46413) »: https://git.io/fA25O
orivej has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #46376 → texlive: Adds patch for missing synctex header. (Fixes zathura build) → https://git.io/fA2BQ
<{^_^}> [nixpkgs] @xeji pushed commit from @samueldr to staging « texlive: Adds patch for missing synctex header. (#46376) »: https://git.io/fA25n
<{^_^}> [nixpkgs] @xeji pushed 139 commits to staging-18.09: https://git.io/fA25u
Guanin_ has joined #nixos
<{^_^}> [nixpkgs] @spinus closed pull request #26510 → toggl: init at 7.4.45 → https://git.io/vHyqo
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
frank87 has quit [Remote host closed the connection]
hamishmack has joined #nixos
frank87 has joined #nixos
<ixxie> funkmybios: gogogo!
<ixxie> I have found personally NixOS is so stable that unstable doesn't really have many drawbacks
<ixxie> at least not for a desktop
sigmundv has quit [Ping timeout: 240 seconds]
<{^_^}> [nixpkgs] @mbode opened pull request #46415 → pythonPackages.tifffile: fix python 2 build → https://git.io/fA2dU
orivej has quit [Ping timeout: 252 seconds]
__monty__ has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #46404 → git, gpgme: use default texinfo → https://git.io/fA261
<{^_^}> [nixpkgs] @xeji pushed 3 commits to staging: https://git.io/fA2dn
xok has joined #nixos
<xok> Hello all...
<xok> I see some modules do "pkgs.writeText"
<xok> where do I read documentation about it?..
<xok> and where does it store files, on the local or remote machine ( when doing nixops provisioning )?..
<{^_^}> [nixpkgs] @xeji pushed 2 commits to staging-18.09: https://git.io/fA2dC
<xok> srhb: Thank you!...
<symphorien> xok: It stores files in the store, so likely on both machines
<srhb> xok: With NixOps, everything is built on your machine (or whatever the builder is) and then transferred to the target
<typetetris> Oh, the channel #nix is invite only?
<srhb> typetetris: I'm not sure that channel has anything to do with us tbh.
<ixxie> what is the type for a function?
<ixxie> can't seem to find it in types.nix
<srhb> ixxie: It doesn't have one.
<typetetris> Is there a reason, why the nix multi user install script insists on running everything through sudo? Nearly everything it does needs root privileges, why not just run as root directly?
<ixxie> srhb: so what do I specify?
<srhb> ixxie: Where are you trying to use a function?
<srhb> aka: What are you actually trying to do :P
<{^_^}> [nixpkgs] @xeji merged pull request #46412 → pythonPackages.CDDB: fix darwin build → https://git.io/fA2HN
<{^_^}> [nixpkgs] @xeji pushed commit from @mbode to master « pythonPackages.CDDB: fix darwin build (#46412) »: https://git.io/fA2du
<{^_^}> [nixpkgs] @xeji pushed commit from @mbode to release-18.09 « pythonPackages.CDDB: fix darwin build (#46412) »: https://git.io/fA2da
sbdchd has joined #nixos
<ixxie> the home-manager module expects a list but the neovim wrapper has been updated to expect a function that returns a list
<{^_^}> [nixpkgs] @xeji merged pull request #46415 → pythonPackages.tifffile: fix python 2 build → https://git.io/fA2dU
<{^_^}> [nixpkgs] @xeji pushed commit from @mbode to master « pythonPackages.tifffile: fix python 2 build (#46415) »: https://git.io/fA2dr
<srhb> ixxie: why not just pass (_: extraPythonPackages) then?
<srhb> ixxie: (eg. leave the list type as is, just change the call)
<{^_^}> [nixpkgs] @xeji pushed commit from @mbode to release-18.09 « pythonPackages.tifffile: fix python 2 build (#46415) »: https://git.io/fA2dK
<ixxie> srhb: error: The option value `programs.neovim.extraPythonPackages' in `/home/ixxie/nixdev/home-manager/modules/programs/neovim.nix' is not of type `list of packages'.
<ixxie> because I get this :P
<{^_^}> [nixpkgs] @etu opened pull request #46416 → lidarr: init at 0.3.1.471 → https://git.io/fA2dX
<srhb> ixxie: When you do what exactly?
sbdchd has quit [Ping timeout: 244 seconds]
<ixxie> well the problem is the defaults in the hm module are wrong
<ixxie> so the hm module isn't updated to match the neovim modules
<srhb> ixxie: Not if you change the call to neovim.override
lawlesseel has quit [Remote host closed the connection]
<srhb> To be clear, what I am suggesting is neovim.override { ...; extraPythonPackages = const extraPythonPackages; }
__lawlesseel__ has joined #nixos
<ixxie> srhb: aah I see
<ixxie> thanks
<ixxie> that should do the trick
<srhb> It looks to me like the neovim function should still be compatible with using a list though...
* srhb shrugs
<ixxie> well it complains about type when I tried it
<srhb> Odd..
<ixxie> (note in my hm config I merely enabled neovim... not even passing anything)
goibhniu has joined #nixos
<typetetris> If I install nix in multi user mode, which command did install the systemd unit for nix-daemon?
fendor has joined #nixos
ilikeheaps has joined #nixos
<xok> srhb: symphorien I've got something like this: https://clbin.com/5tmSi
<xok> srhb: symphorien I ran the deployment but the file didn't get created...
orivej has joined #nixos
<symphorien> xok: writetext will only be created in the store, and only if you use it
<symphorien> Here the variable xok is unused so never built
<xok> symphorien: how do I use it then?...
<sphalerite> xok: create /data/webserver/info.php yourself
<sphalerite> xok: or make the web root a derivation, but you probably don't want that
<xok> sphalerite: the task is to create a directory ( /data/webserver/ ) and then a file called info.php....
<xok> can you help me achieve the result?..
<sphalerite> # mkdir /data/webserver ; echo '<?php phpinfo(); ?>' > /data/webserver/info.php ; chown -R nginx /data/webserver
<sphalerite> :)
<xok> no, I mean with the help of a deployment script... :-D
<sphalerite> you'd probably want a systemd service or something like that, or in fact to make the web root a derivation after all
ixxie has quit [Ping timeout: 245 seconds]
<sphalerite> or non-derivation store path
<sphalerite> e.g. create a webroot dir next to your expression, put info.php in there, and set root = ./webroot
<sphalerite> that means webroot will be copied to the nix store and the store path will be used as the document root by nginx
orivej has quit [Ping timeout: 252 seconds]
<sphalerite> This means that the files on the server won't be writable, which may well be desirable anyway though :)
<xok> I want those files to be writeable... :-)
mounty has quit [Read error: Connection reset by peer]
mounty has joined #nixos
<sphalerite> then make a systemd service that sets it up. That means of course that handling existing stuff is your responsibility
Acou_Bass has quit [Ping timeout: 246 seconds]
<sphalerite> systemd.services.setup-webroot = { script = ''your shell script here''; serviceConfig.Type = "oneshot"; wantedBy = ["multi-user.target"]; }
sbdchd has joined #nixos
<xok> sphalerite: so there's no way to create a directory and the file without the script?..
sbdchd has quit [Ping timeout: 252 seconds]
<xok> sphalerite: what's: ''your shell script here", is it a script filename, or a path or even a shell commands?..
<symphorien> xok: just to elaborate on the "read only store" option: this should work http://xelpaste.net/njpcbd
<symphorien> xok: shell commands
<sphalerite> xok: not really, no. You can do it manually as I wrote earlier instead, or using a service like that.
<sphalerite> symphorien: not quite because writeText will write to a file in the store, not a dir in the store :/
<sphalerite> symphorien: it needs to use writeTextFile
<symphorien> hum fail paste
<symphorien> xok: https://nixos.org/nixos/options.html#systemd.services+script
orivej has joined #nixos
<symphorien> xok: this paste http://xelpaste.net/M9t07U
<sphalerite> symphorien: that will behave confusingly if it works at all because of the multiple document roots
<xok> symphorien: ok, I got an idea, I will play with it...
<symphorien> I don't speak nginx, indeed
<symphorien> this is moslty about the nix mechanism
baimafeima has joined #nixos
<xok> symphorien: yes, I understood what you wanted to show...
<xok> I am testing it now...
<norfumpit> so im hacking on znc. how would i go about building my local source code using nix?
baimafeima has quit [Remote host closed the connection]
<xok> symphorien: yes, it works...
<xok> symphorien: Thank you!...
<symphorien> norfumpit: something like znc.overrideAttrs (old: { src = /path/to/znc/source; })
<xok> now I've got another task: I want to create a mysql user and set password for it...
<xok> :D
<norfumpit> symphorien: using nix-shell and default.nix? sorry im kind of a noob
<symphorien> norfumpit: what is the goal: just running ./configure && make or really install your fork of znc with nix ?
<norfumpit> symphorien: i dont want to install it, i want to build it and run the built executable
<symphorien> ah then just do it inside nix-shell -f "<nixpkgs>" -A znc
<norfumpit> symphorien: equivalent of downloading a source package, installing build tools, compiling, and running on a normal linux distro
<sphalerite> norfumpit: nix-shell '<nixpkgs>' -A znc
<sphalerite> ^ will give you a shell with the deps for znc
<symphorien> ah sorry the -f was spurious
<norfumpit> thanks
<norfumpit> it doesnt account for autogen.sh having to be run tho
<symphorien> if you want to build it automatically run $genericBuild
<norfumpit> aclocal is not there
<sphalerite> norfumpit: it's a shell for building from release tarballs probably
<norfumpit> yea
<sphalerite> norfumpit: try nix-shell -E 'with import <nixpkgs> {}; znc.overrideAttrs (o: {nativeBuildInputs = o.nativeBuildInputs ++ [aclocal]; })'
<symphorien> or maybe autoReconfHook
<sphalerite> s/aclocal/autoreconf/
<sphalerite> a/autoreconf/automake/
<sphalerite> *facepalm*
<norfumpit> following some guides i created a default.nix file with similar contents
<norfumpit> then i just run nix-shell
<norfumpit> i added automake and autoconf there
<norfumpit> tho after running first time its not necessary anymore
<sphalerite> infinisil: where did you put your hacky compose-many-functions trick?
<{^_^}> [nixpkgs] @xeji closed pull request #46236 → nextcloud: 13.0.5 -> 13.0.6 → https://git.io/fAzYo
<infinisil> > :v compose
<{^_^}> compose = f: g: x: f (g x)
<infinisil> Nope
<infinisil> > :v composeAlt
<{^_^}> composeAlt = fs: if fs == [] then lib.id else x: (lib.head fs) (composeAlt (lib.tail fs) x)
<infinisil> sphalerite: there apparently :)
<sphalerite> infinisil: thanks!
<infinisil> Wait no
<sphalerite> wait wasn't there also one that didn't require a list?
<infinisil> Yeah
<infinisil> Um, shouldn't be too hard to write
<yorick> elvishjerricco: why copy the bootloader manually in sd-image-aarch64 instead of using boot.loader.raspberryPi somehow?
ixxie has joined #nixos
<sphalerite> > let composeHack = x: if builtins.isFunction x then compose x composeHack else x; in composeHack (+1) (+2) 3
<{^_^}> error: syntax error, unexpected '+', at (string):191:98
<sphalerite> > let composeHack = x: if builtins.isFunction x then compose x composeHack else x; in composeHack (x: x+1) (x: x+2) 3
<{^_^}> cannot coerce a function to a string, at (string):191:101
<sphalerite> > let composeHack = x: if builtins.isFunction x then compose composeHack x else x; in composeHack (x: x+1) (x: x+2) 3
<{^_^}> cannot coerce a function to a string, at (string):191:101
<infinisil> Let's write it in #nix-lang
georges-duperon has joined #nixos
<{^_^}> [nixpkgs] @xeji reopened pull request #46236 → nextcloud: 13.0.5 -> 13.0.6 → https://git.io/fAzYo
<{^_^}> [nixpkgs] @andir opened pull request #46417 → [18.03] firefox{,-bin} 61.0.2 -> 62.0, firefox-esr: 60.1.0esr -> 60.2.esr → https://git.io/fA2b1
<tilpner> Does anyone know how to change the target to musl with carnix?
sbdchd has joined #nixos
silver has joined #nixos
philippD has joined #nixos
sbdchd has quit [Ping timeout: 252 seconds]
Mrmaxmeier has joined #nixos
Ariakenom has quit [Quit: Leaving]
joehh has joined #nixos
<joehh> I'm struggling to use nix-prefetch-git - I've been using nix-prefetch-hg for ages and no problems
<joehh> when I try nix-prefetch-git ./ I get the following error:
<joehh> fatal: Couldn't find remote ref HEAD
<joehh> fatal: The remote end hung up unexpectedly
<joehh> warning: empty strings as pathspecs will be made invalid in upcoming releases. please use . instead if you meant to match all paths
<joehh> fatal: '' is not a commit and a branch 'fetchgit' cannot be created from it
<joehh> Unable to checkout HEAD from ./.
<joehh> Is it something obvious I'm missing (my git knowledge is at a pretty basic level)
<joehh> ?
<sphalerite> joehh: (disclaimer: I have basically no idea what I'm doing with it either) does nix-prefetch-git $PWD work?
<sphalerite> Is there a way to "detach" an input device from the mouse pointer while still having it available as an X input device that sends events?
spear2 has joined #nixos
<joehh> sphalerite: It does - I don't think I understand why, but it appears to
smolboye has quit [Ping timeout: 245 seconds]
<joehh> is the issue that the git pull/clone is run by the nix-daemon and so needs a full path
<sphalerite> joehh: I suspect that the nix-prefetch-git script changes to a temporary directory, making . no longer refer to the right directory
<sphalerite> arguably a bug
srghma has joined #nixos
<srghma> hi, guys, I can't pass `impureEnvVars` to builder, nor from current shell, nor from `/nix/configuration.nix` `nix.envVars`, can someone help me https://github.com/NixOS/nixpkgs/issues/45404
<{^_^}> #45404 (by srghma, 2 weeks ago, open): nix-build --option builders '' doesn't build with impureEnvVars from current shell
<avn> sphalerite: yes, it `pushd $(mktemp -d ...)` (just checked)
polyzen is now known as dmc
srghma has quit [Ping timeout: 252 seconds]
srghma has joined #nixos
<aanderse> if i have multiple configuration files (imports) and i want each to *append* values to a list property, not *set* the value, what would be the best way to do that?
<sphalerite> aanderse: just set them in the configuration files, default behaviour is to concat lists
<sphalerite> aanderse: if you want to affect the order, use mkBefore/mkAfter
<sphalerite> or if you want to overwrite after all, use mkForce
<aanderse> sphalerite: hmm yeah that is what i originally thought... why did i start thinking otherwise... thanks :)
Dedalo has joined #nixos
<das_j> Where is the nix package in nixpkgs? I cannot really find it because searching for "nix" isn't really helpful
smolboye has joined #nixos
<symphorien> nix edit -f . nix
<das_j> symphorien: What. This command is awesome
<das_j> Is there a way to switch to nixUnstable easily? Can I just say `nix = super.nixUnstable` in an overlay?
<symphorien> on nixos ?
<das_j> Yes
<symphorien> there is an option for it: nix.package iirc
<das_j> Wow, they have really thought of everything
<das_j> Thank you
Ariakenom has joined #nixos
<srghma> symphorien: nix edit really awesome command
<sphalerite> srhb: does running nixos-install from a recent installer not count as a "good upgrade path" for you?
<srhb> sphalerite: Yes, it's fine with me.
<srhb> I guess my comment was unclear. :/
<srghma> re my issue with `impureEnvVars` - I want to implement option to fetch from private repo for fetchFromGitlab https://github.com/NixOS/nixpkgs/issues/43583, but stuck with stupid issue - cant pass `impureEnvVars` from current shell
<{^_^}> #43583 (by Fresheyeball, 7 weeks ago, open): Add `private` option to `fetchFromGitLab`
tzemanovic has joined #nixos
<{^_^}> [nixpkgs] @xeji merged pull request #46236 → nextcloud: 13.0.5 -> 13.0.6 → https://git.io/fAzYo
<{^_^}> [nixpkgs] @xeji pushed commit from @r-ryantm to master « nextcloud: 13.0.5 -> 13.0.6 (#46236) »: https://git.io/fA2AG
<srhb> sphalerite: I think the best general recommendation is to walk through every version though and just nixos-rebuild (considering installs where getting an installer running might be problematic)
<sphalerite> srhb: what's such an install?
<srhb> sphalerite: Any remote install where our usual guide to getting an installer running (eg. usb key) doesn't work. Otherwise we should have a very good guide for spinning up an installer on an existing system and recommend that.
<{^_^}> [nixpkgs] @xeji merged pull request #45925 → slurm: 17.11.9-2 -> 18.08.0-1 → https://git.io/fAlnh
<{^_^}> [nixpkgs] @xeji pushed 4 commits to master: https://git.io/fA2AW
<avn> srghma: other option -- deploying key to access github. (odd, it visible in /nix/store to everyone)
stanibanani has joined #nixos
<sphalerite> srhb: yep definitely in favour of getting a wider range of installer options better documented!
stanibanani has left #nixos [#nixos]
<srhb> :)
<sphalerite> I mean, you can probably get an installer running by unpacking a netboot initrd into a tmpfs and switch_rooting into it :D
<sphalerite> ... damn. I need to try this.
<srhb> sphalerite: Yep, I think you absolutely can do this. :) I just want to make sure we provide a good suggestion, and right now I think the least mental overhead is simply saying "if you're upgrading from an unsupported release, always upgrade to release+1 at a time"
iyzsong has quit [Read error: Connection reset by peer]
<srghma> avn: yes, I dont want my key to be visible in /nix/store to everyone
<symphorien> fixed-output derivation produced path '/nix/store/2...hp-ripgrep-0.10.0-vendor' with sha256 hash '1r4...s' instead of the expected hash '1k...gr'
<symphorien> how can I compare the two ?
<symphorien> with diffoscope for example
<sphalerite> symphorien: you can't unlessy ou have a copy with the right hash
<avn> srghma: then only true solution is implement proxying of ssh agent in nix.
<symphorien> ok
<avn> or use intermediate tarballs
<sphalerite> srghma: I think you may actually want to use builtins.fetchgit
Dedalo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<avn> sphalerite: builtins.fetchgit use non-sandboxed git?
<sphalerite> avn: yep
sbdchd has joined #nixos
<srghma> sphalerite: tnx, I'll try
srghma has quit [Quit: Page closed]
<avn> sphalerite: hehe. I still have at least one deployment on 1.x
<avn> Folks, does it possible to override existing nix module with custom one? (suppress original one, and include custom one)
<sphalerite> avn: you mean nixos module? Yes
<avn> sphalerite: yep.
sbdchd has quit [Ping timeout: 252 seconds]
<avn> sphalerite: looks cool ;) Thank you. (I hope I sometimes merge my stuff to upstream module to eliminate diversion)
<sphalerite> avn: even better :)
<avn> sphalerite: competitor's module was merged earlier, and I was time-constrainted and still on my own module+package ;)
<{^_^}> [nixpkgs] @danieldk opened pull request #46418 → cgit: use full path of groff in man2html → https://git.io/fA2Ai
<sphalerite> so I'm running emacs in some terminal… and can't find said terminal (very likely to be a tmux window). Anyone know a trick?
<infinisil> sphalerite: htop
<infinisil> Can infer where it is from the parent process
<sphalerite> infinisil: oh right find the parent processes
<sphalerite> but that still doesn't tell me which session/window/pane to look in
<infinisil> tmux ls
<infinisil> Hmm
<infinisil> Yeah something tmux ls probably works
<{^_^}> [nixpkgs] @Mic92 merged pull request #46394 → vim-plugins: rewrite updater → https://git.io/fA2wE
<{^_^}> [nixpkgs] @Mic92 pushed 3 commits to master: https://git.io/fA2A9
<hyper_ch> anyone setup qemu and access it through self-installed spice web client?
dmc has quit [Quit: WeeChat 2.2]
<sphalerite> hyper_ch: almost — not with the web lcient though
<{^_^}> [nixpkgs] @Mic92 merged pull request #46418 → cgit: use full path of groff in man2html → https://git.io/fA2Ai
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fA2xf
<hyper_ch> sphalerite: well, it seems I need to use websockify which is provided
<{^_^}> [nixpkgs] @srhb opened pull request #46419 → nix.perl-bindings: Fix build → https://git.io/fA2xU
<{^_^}> [nixpkgs] @xeji merged pull request #46398 → altcoins.btc1d: fix darwin build → https://git.io/fA2rz
<{^_^}> [nixpkgs] @xeji pushed commit from @LnL7 to master « altcoins.btc1: fix darwin build (#46398) »: https://git.io/fA2xk
<{^_^}> [nixpkgs] @xeji pushed commit from @LnL7 to release-18.09 « altcoins.btc1: fix darwin build (#46398) »: https://git.io/fA2xq
mayhewluke has quit [Ping timeout: 246 seconds]
<{^_^}> [nixpkgs] @romildo opened pull request #46420 → xsettingsd: git-2015-06-14 -> 1.0.0 → https://git.io/fA2x3
<hyper_ch> sphalerite what do you mean with "almost"?
hotfuzz_ has joined #nixos
<das_j> Are there examples on how to overlay in a haskell package?
<das_j> I can just find the hackage-packages.nix but that doesn't seems like I can jsut overlay packages in
<{^_^}> [nixpkgs] @Mic92 pushed commit from @danieldk to release-18.09 « cgit: use full path of groff in man2html »: https://git.io/fA2xZ
<infinisil> ,haskell
<das_j> Ah, that repo seems helpful
hotfuzz has quit [Ping timeout: 244 seconds]
<infinisil> das_j: ^^ there are overlay examples somewhere in that section
<sphalerite> hyper_ch: I'm not using the web client, just spicy
<hyper_ch> how that?
<hyper_ch> (or what is spicy)
Dedalo has joined #nixos
<sphalerite> it's a gtk spice client
mayhewluke has joined #nixos
<hyper_ch> I use virt-viewer but like t access by web
<{^_^}> [nixpkgs] @srhb merged pull request #46419 → nix.perl-bindings: Fix build in 18.09 → https://git.io/fA2xU
<{^_^}> [nixpkgs] @srhb pushed 2 commits to release-18.09: https://git.io/fA2x4
ixxie has quit [Ping timeout: 245 seconds]
<das_j> btw, is there a list of expansions the IRC bot supports?
<das_j> Like ,haskell?
<infinisil> ,
<{^_^}> All commands: -A IFD NUR arm ask bootfull callPackage channels cloudfront context dnw error escape" escape'' escape-special fancy-uninstall github hardware haskell help home-manager howoldis library logs nix-env-r nix-info nix-repl nixGL nixcon nixeval nixlang++ nixpkgsVersion not-os notfound outPath overlay paste pills pinning pr profiling proot pure-eval python qt replaceModule runtimeDeps stateVersion stuck thesis timer todeclarative tofu unfree unsta
<{^_^}> [nixpkgs] @xeji merged pull request #46373 → Add more deepin packages → https://git.io/fA282
<{^_^}> [nixpkgs] @xeji pushed 7 commits to master: https://git.io/fA2x0
<infinisil> But that's truncated because of the irc message length limit..
<infinisil> Need to fix that
<das_j> ah, nice
<das_j> So you host/develop the bot?
<infinisil> Yeah
<das_j> Is the source somewhere available?
<infinisil> ,whomademe
<{^_^}> #<prnumber>, ',command' and '> nix' are implemented in infinisil's backend https://github.com/infinisil/nixbot utilizing gchristensen {^_^} frontend https://github.com/NixOS/ofborg/tree/released/ircbot . The rest of the features are done by other people's backends
<das_j> awesome
<das_j> thank you
<infinisil> :)
<das_j> Hm, why does nix-shell -p stack2nix fail? It says it lacks the dependency cabal2nix, even when including cabal2nix
<srhb> das_j: Are you sure it's not complaining about cabal2nix missing at a specific _version_?
<das_j> Oh, you are right :/
<srhb> nix eval nixpkgs.cabal2nix.version
<srhb> I bet you'll see 2.11 and it wants 2.10.*
<das_j> yes
<srhb> If you bump stack2nix to 0.2.1, the constraint is >=2.10
<das_j> What do I do with dependecies that are too new? Currently trying to run gitit
<srhb> Downgrade or jailbreak, where possible.
<das_j> Okay, Haskell is honetly too complicated for me. I'll just open an issue, I have no idea what to do here
<srhb> das_j: That works too. :)
iyzsong has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #46397 → strongswan: set the right dir for TLS CA cert → https://git.io/fA2rW
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fA2xy
orivej has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @Mic92 pushed commit from @zimbatm to release-18.09 « strongswan: set the right dir for TLS CA cert »: https://git.io/fA2xH
orivej has joined #nixos
parseval has quit []
<{^_^}> [nixpkgs] @Mic92 pushed to release-18.09 « doc/vim: improve plugin documentation »: https://git.io/fA2xF
<infinisil> das_j: It's really just `pkgs.haskell.lib.doJailbreak <the haskell package>`
<infinisil> ,find configuration-common.nix
<srhb> das_j: fwiw jailbreaking is not enough in this case, the pandoc dependency needs to be lowered (at least in release-18.09)
<{^_^}> [nixpkgs] @Mic92 merged pull request #46420 → xsettingsd: git-2015-06-14 -> 1.0.0 → https://git.io/fA2x3
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fA2xN
<infinisil> Often used in that file ^
<infinisil> Ah
<das_j> Umm, as I have no idea how Haskell and Haskell packaging works, I also have no idea what jailbreaking does and how dependencies are lowered :D
<{^_^}> [nixpkgs] @Mic92 pushed commit from @romildo to release-18.09 « xsettingsd: git-2015-06-14 -> 1.0.0 »: https://git.io/fA2xx
<srhb> das_j: Jailbreaking simply removes all version constraints
<srhb> Meaning, it will help where the constraints were overly conservative.
<das_j> Ah, that makes sense. So do I jailbreak hoauth2 or gitit?
<srhb> lowering dependencies is like any other package, pass that version explicitly as an argument to override.
<srhb> das_j: Both
<srhb> But like I said, it's not quite sufficient in this case.
tzemanovic has quit []
<das_j> Why do I need to lower that version?
<srhb> Because gitit depends on pandoc, but a much much older pandoc, and the current version does not have the right exports for gitit
<das_j> Oh, okay. I thought it would just execute the pandoc binary, but adding it as a library makes more sense now
<srhb> Yeah, it uses it as a library.
<srhb> das_j: One of the errors is this: src/Network/Gitit/Export.hs:44:33: error: Module ‘Text.Pandoc.Writers.RTF’ does not export ‘writeRTFWithEmbeddedImages’
<srhb> Maybe it's actually easier to bump gitit
Dedalo has quit [Quit: Textual IRC Client: www.textualapp.com]
goibhniu has quit [Remote host closed the connection]
<das_j> srhb: Do you mean bumping it to master? Because it seems to be up to date with the latest release
sbdchd has joined #nixos
<srhb> das_j: Yes, master appears to support pandoc 2.x
<srhb> Or at least have WIP support for it
goibhniu has joined #nixos
sbdchd has quit [Ping timeout: 244 seconds]
smolboye has quit [Ping timeout: 252 seconds]
<das_j> srhb: Am I not allowed to do haskell.lib.doJailbreak mkDerivation rec { ?
eqyiel has quit [Remote host closed the connection]
<srhb> das_j: Yes, though there are easier ways to go about this
<srhb> das_j: We have some very specific haskell helper tools :) https://gist.github.com/3485b34083427e8a2c1e3c3f9a1a11eb
<srhb> er, you should probably override name and version as well to avoid confusion...
<srhb> actually just version should suffice for overrideCabal...
<yorick> linuxFirmware -> fetchgit -> git -> perl (fails to cross-compile)
<yorick> sad
<yorick> actually, why is it cross-compiling git for that
<das_j> srhb: Amazing! It builds now, I'll test it in a minute
<srhb> das_j: :)
<das_j> In case it works: do you think this change should be upstreamed to nixpkgs
<srhb> das_j: Sure, we can do a local src override in-tree until jgm releases.
<srhb> das_j: But maybe someone should poke him about a release.
<srhb> once it hits hackage, we get the update automatically when the hackage set is regenerated.
<srhb> hoauth2 probably needs real work done though
<das_j> Okay, it seems to work now :)
<das_j> Thank you both for your help!
<srhb> Sure thing.
ixxie has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #46393 → pyre: 0.9.0 -> 0.11.0 → https://git.io/fA2w4
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fA2p6
<{^_^}> [nixpkgs] @LnL7 opened pull request #46422 → bullet: fix darwin build → https://git.io/fA2pX
<{^_^}> [nixpkgs] @Mic92 pushed to master « pyre: substituting %VERSION% in Makefile no longer required »: https://git.io/fA2p7
fragamus has joined #nixos
iyzsong has quit [Ping timeout: 252 seconds]
hotfuzz_ is now known as hotfuzz
joehh has quit [Ping timeout: 252 seconds]
DigitalKiwi has quit [Ping timeout: 252 seconds]
<ixxie> anybody got a nice example of neo/vim configured in NixOS/Home-Manager?
__lawlesseel__ has quit [Remote host closed the connection]
vmandela has joined #nixos
<{^_^}> [nixpkgs] @Mic92 merged pull request #46395 → testssl: 2.9.5-5 -> 2.9.5-6 → https://git.io/fA2wr
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fA2hR
<{^_^}> [nixpkgs] @Mic92 merged pull request #46386 → sequeler: 0.6.0 -> 0.6.1 → https://git.io/fA2uu
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fA2h0
<Mic92_> ixxie: the nixos.wiki has a short one
georges-duperon has quit [Ping timeout: 252 seconds]
smolboye has joined #nixos
Thra11 has joined #nixos
<ixxie> cheers Mic92_
rrr has joined #nixos
<rrr> Hello
<rrr> I'm trying docker (hadn't used it before) on NixOS. Got a couple of images, set stuff up. And now I realise I'm out of disk space.
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fA2h1
<{^_^}> [nixpkgs] @Mic92 merged pull request #46392 → wkhtmltopdf: 0.12.4 -> 0.12.5, use Qt5 → https://git.io/fA2VK
<rrr> due to /var/lib/docker being a fatty
<rrr> Does anyone know how to move it somewhere else? Preferrably without starting from scratch
<clever> rrr: manually stop the docker daemons, move the files, and then maybe try a symlink or `mount --bind`
<{^_^}> [nixpkgs] @orivej-nixos pushed 2 commits to master: https://git.io/fA2hD
<{^_^}> [nixpkgs] @Mic92 merged pull request #46369 → pdf2htmlEX: mark as broken → https://git.io/fA2cB
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fA2h9
bobvanderlinden has joined #nixos
<rrr> I'll take a chance on that, thx
<bobvanderlinden> I'm trying to resolve the failing tests on Hydra in preparation of 18.09, but I'm running into a test that seems to be failing randomly. It's about the bittorrent test: https://hydra.nixos.org/build/81000569
ilikeheaps has quit [Read error: Connection reset by peer]
<bobvanderlinden> What should be done with randomly failing tests? It seemed like the clients weren't able to find eachother in time and thus the file was not downloaded and thus the test would fail. If the timeout was set higher it might've helped, but I'm not sure.
rct has joined #nixos
ixxie has quit [Ping timeout: 246 seconds]
endformationage has joined #nixos
sbdchd has joined #nixos
<das_j> How can I set ghc options?
sbdchd has quit [Ping timeout: 245 seconds]
rct has quit [Quit: WeeChat 1.9.1]
slyfox has quit [Quit: :)]
<das_j> Essentially, I need cabal install --reinstall gitit --ghc-options="-rtsopts"
vmandela_ has joined #nixos
vmandela has quit [Ping timeout: 240 seconds]
Acou_Bass has joined #nixos
jtojnar has quit [Read error: Connection reset by peer]
Acou_Bass has quit [Client Quit]
slyfox has joined #nixos
jtojnar has joined #nixos
Acou_Bass has joined #nixos
rrr has quit [Quit: WeeChat 2.1]
vmandela_ has quit [Client Quit]
siriobalmelli has joined #nixos
<srhb> bobvanderlinden: Making them less non-deterministic is always appreciated
<srhb> bobvanderlinden: It depends a lot on the test how to do that. Oftentimes it's about waiting at strategic points for certain conditions to be met before proceeding.
b has joined #nixos
<symphorien> bobvanderlinden: here you can see some commits which present various approaches https://github.com/NixOS/nixpkgs/commits/master/nixos/tests
<siriobalmelli> hi guys, I would love any pointers to documnetation: trying to undestand why certain derivation (attribute?) names which are valid input for `nix-env` are not valid input for `nix-env -A`
<siriobalmelli> example:
<siriobalmelli> nix-env -f nixpkgs/default.nix -qa "clang-wrapper"
<siriobalmelli> clang-wrapper-6.0.1
<siriobalmelli> nix-env -f nixpkgs/default.nix -qa -A "clang-wrapper"
<siriobalmelli> error: attribute 'clang-wrapper' in selection path 'clang-wrapper' not found
<siriobalmelli> nix-env -f nixpkgs/default.nix -qa -A "clang"
<siriobalmelli> clang-wrapper-5.0.2
<siriobalmelli> nix-env -f nixpkgs/default.nix -qa "clang"
<siriobalmelli> clang-5.0.2
<symphorien> every packages has two names: a derivation name, and an attribute name
<symphorien> to install a package, always prefer using the attribute name
<siriobalmelli> @symphorien ah! this is enlightening, thank you :)
<siriobalmelli> so is "clang-wrapper" a package name or attribute name?
<symphorien> installing by derivation name is equivalent to "list all attribute names, and find which one has the desired derivation name"
jdnavarro has quit [Quit: WeeChat 2.1]
<symphorien> this is slow and imprecise
<siriobalmelli> it is valid input to `nix-env` but it won't work inside e.g. `buildInputs` of a derivation :P
<{^_^}> [nixpkgs] @Mic92 pushed commit from @Ma27 to release-18.09 « pdf2htmlEX: mark as broken »: https://git.io/fA2jb
<symphorien> once a package is installed, nix only knows about its derivation name
<symphorien> there is no sane way to go back to its attribute name
<symphorien> therefore nix-env -e uses the derivation name
<siriobalmelli> oh, I see! ok, starting to make sense
<{^_^}> [nixpkgs] @Mic92 merged pull request #46391 → vkquake: fix build → https://git.io/fA2a1
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fA2jA
<symphorien> siriobalmelli: as you can see here https://nixos.org/nixos/packages.html#clang-wrapper it is the derivation name
<siriobalmelli> so if I want to depend on clang v6 in a derivation (i.e. in `buildInputs`) ... how do I specify that?
<siriobalmelli> ... where do I search for it, even?
<symphorien> compilers are special
<{^_^}> [nixpkgs] @Mic92 pushed commit from @tadfisher to release-18.09 « vkquake: fix build »: https://git.io/fA2jp
<symphorien> to switch to clang, use clangStdenv instead of stdenv
<{^_^}> [nixpkgs] @Mic92 merged pull request #46384 → bunny: 1.1 -> 1.2 → https://git.io/fA2EE
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fA2jh
<symphorien> (unless on mac where it is the default)
<sphalerite> ,-A
<{^_^}> You'll usually want to use nix-env -i with -A. It's faster and more precise. See https://nixos.wiki/wiki/FAQ/nix-env_-iA for details.
<sphalerite> obligatory factoid for before :p
<siriobalmelli> @symphorien oh ... let's tackle a more generic case then, like the derivation `python3.6-jsonschema`
<{^_^}> [nixpkgs] @Mic92 merged pull request #46377 → treewide: Use http/https for homepages → https://git.io/fA2B5
<{^_^}> [nixpkgs] @Mic92 pushed 2 commits to master: https://git.io/fAaev
<siriobalmelli> I'm all for using -A ... but where do I go query what attributes are legal for -A ?
<symphorien> for nix expressions you always use attribute names
<symphorien> -A is for Attribute
<symphorien> always use attributes except for nix-env -e
<{^_^}> [nixpkgs] @Mic92 pushed commit from @dasJ to release-18.09 « treewide: Use http/https for homepages »: https://git.io/fAaeU
<symphorien> how did you come up with this name "python3.6-jsonschema" ?
<siriobalmelli> to give context: I am writing shell.nix files that encapsulate project environments
orivej has quit [Ping timeout: 252 seconds]
<siriobalmelli> currently, to find available packages I will do a `nix-env -qa` and it gives me "python3.6-jsonschema"
<symphorien> use nix-env -qaP instead
<symphorien> and the attribute name will be displayed
<symphorien> or nix search
<siriobalmelli> @symphorien GENIUS
<siriobalmelli> this is precisely the key I was searching for :)
<siriobalmelli> all making sense now
<symphorien> :)
<siriobalmelli> very much appreciated :))
<ldlework> ,locate xsel
<{^_^}> Couldn't find any packages
<ldlework> what what
<bobvanderlinden> srhb: symphorien thanks for the pointers. I found some commits that are indeed good examples of 'waiting at stagegic points'. I'll give it a go
davidar_ has quit [Quit: Connection closed for inactivity]
spear2 has quit [Remote host closed the connection]
spear2 has joined #nixos
<{^_^}> [nixpkgs] @dasJ opened pull request #46424 → gitit: Enable rtsopts → https://git.io/fAaeW
<sphalerite> ldlework: it's in xsel
<sphalerite> :p
<ldlework> yeah found it hehe
<ldlework> why didn't botface find it
<sphalerite> ,locate bin/xsel
<{^_^}> Found in packages: xsel
<sphalerite> it only looks in the root of the derivation
<sphalerite> ,locate bin xsel
<{^_^}> Found in packages: xsel
cnidario has joined #nixos
duncan^ has quit [Quit: K-lined: Don't email support.]
duncan^ has joined #nixos
<{^_^}> [nixpkgs] @dasJ closed pull request #46424 → gitit: Enable rtsopts → https://git.io/fAaeW
<Myrl-saki> How do I get the sha256sum of fetchTarball?
trevthedev has joined #nixos
<Myrl-saki> error: store path mismatch in file downloaded from 'https://github.com/NixOS/nixpkgs/archive/347638ccfee74c06cae53983ea741d39d1efc032.tar.gz'
<clever> Myrl-saki: nix-prefetch-url --unpack
<{^_^}> [nixpkgs] @bobvanderlinden opened pull request #46425 → NewtonsoftJson: only build Newtonsoft.Json.csproj → https://git.io/fAaeX
<Myrl-saki> Thanksies.
<{^_^}> [nixpkgs] @clefru opened pull request #46426 → spl/zfs: 0.7.9 -> 0.7.10 → https://git.io/fAaeS
jdnavarro has joined #nixos
<{^_^}> [nixpkgs] @volth closed pull request #45063 → [wip] mips64el-linux → https://git.io/fNA9m
<{^_^}> [nixpkgs] @volth closed pull request #29825 → set-source-date-epoch-to-latest.sh: ignore generated files - episode 2 → https://git.io/vdqU5
<{^_^}> [nixpkgs] @periklis opened pull request #46427 → elpy: fix build dep → https://git.io/fAaeF
<{^_^}> [nixpkgs] @bhipple opened pull request #46428 → dockerTools: unpin go version → https://git.io/fAavJ
bobvanderlinden has quit [Ping timeout: 252 seconds]
<infinisil> sphalerite: ldlework: Huh what, no it shouldn't have to be in the root
clefru has quit [Quit: Leaving]
<infinisil> ,locate libXi.so
<{^_^}> Found in packages: xlibs.libXi
<sphalerite> odd that xsel wouldn't work then
<sphalerite> nix-locate /xsel works for me locally
<infinisil> Ohhh
<clever> unstable?
<xok> ,find zabbix.nix
<infinisil> clever: sphalerite: It found 2 packages: kibana6 and xsel, then my bot tries to eval these attrs
<infinisil> > pkgs.kibana6.meta.license
<{^_^}> { free = false; fullName = "ELASTIC LICENSE"; shortName = "elastic"; url = "https://github.com/elastic/elasticsearch/blob/master/licenses/ELASTIC-LICENSE.txt"; }
<infinisil> But without allowUnfree
<sphalerite> lol nice
<infinisil> So it failed
<infinisil> I'll have to fix that
andrewrk has left #nixos ["Leaving"]
<clever> oh, it failed on one, then didnt get to the 2nd
<sphalerite> oh yay spam filtering works again
<infinisil> clever: Yeah, it does everything in a single nix-instantiate
silver has quit [Read error: Connection reset by peer]
<xok> ,find zabbix-server.nix
siriobalmelli has quit [Quit: Page closed]
<{^_^}> [nixpkgs] @zimbatm pushed 0 commits to zimbatm-patch-1: https://git.io/fAavM
<{^_^}> [nixpkgs] @zimbatm opened pull request #46430 → Update issue templates → https://git.io/fAav1
<{^_^}> [nixpkgs] @zimbatm pushed to zimbatm-patch-1 « Update issue templates »: https://git.io/fAavy
<{^_^}> [nixpkgs] @zimbatm closed pull request #46430 → Update issue templates → https://git.io/fAav1
<{^_^}> [nixpkgs] @volth reopened pull request #29825 → set-source-date-epoch-to-latest.sh: ignore generated files - episode 2 → https://git.io/vdqU5
Ariakenom_ has joined #nixos
sbdchd has joined #nixos
<infinisil> ,locate xsel
<{^_^}> Found in packages: xsel, kibana6
<infinisil> sphalerite: clever: Fixed :)
<sphalerite> \o/
<infinisil> It passes allowUnfree, allowBroken and allowUnsupporteSystem all true now
<sphalerite> not sure allowBroken is desirable..?
lopsided98 has quit [Quit: Disconnected]
sbdchd has quit [Ping timeout: 272 seconds]
lopsided98 has joined #nixos
Ariakenom_ has quit [Quit: Leaving]
palo has joined #nixos
palo has joined #nixos
<infinisil> sphalerite: Tbh, I should just abandon the nix-instantiate, I'm currently only using it to find the packages name, which could very well be derived from the nix-locate output
<infinisil> Huh but wait a minute, why is kibana in the hydra caches when it's unfree?
Ariakenom has quit [Ping timeout: 245 seconds]
<infinisil> ,find kibana/default.nix
<infinisil> What the hell is up with this license declaration
<infinisil> "license = if enableUnfree then licenses.elastic else licenses.asl20;"
<sphalerite> o.o
<infinisil> Ah, it's 2 packages, one open source variant
<sphalerite> oh right
<sphalerite> enableUnfree
<infinisil> > kibana-oss.meta.license
<{^_^}> { fullName = "Apache License 2.0"; shortName = "asl20"; spdxId = "Apache-2.0"; url = <CODE>; }
<sphalerite> not config.allowUnfree
<sphalerite> phew!
<infinisil> Yeah
funkmybios has quit [Ping timeout: 252 seconds]
<sphalerite> hm, I'm confused. I ran `nix build -I nixpkgs=channel:nixos-18.03 -f '<nixpkgs/nixos/release.nix>' iso_minimal.x86_64-linux` and it's building stuff locally, shouldn't everything be in the cache?
<infinisil> I don't think it should compile a lot, but some stuff won't be in the cache, like the iso filesystem itself and some other things that are just faster to create locally I think
MinceR has quit [Ping timeout: 240 seconds]
<Dezgeg> there will probably be some very minor differences like the channel content not exactly being the same as the git checkout
bobvanderlinden has joined #nixos
<sphalerite> Dezgeg: blarg, that's a pain
MinceR has joined #nixos
<sphalerite> infinisil: it needs to build the squashfs which is CPU-intensive
<sphalerite> there should be *a* minimal iso squashfs on cache.nixos.org since the iso is built by hydra too, but apparently there are minor differences :(
<sphalerite> aaah probably the version number. It uses the dummy version 18.03pre56789.gfedcba
jbo2 has joined #nixos
<jbo2> Hi there - I've an unbootable nixos machine - all of the configurations in grub don't work. I'd like to chroot into it to run nixos-rebuild from an ubuntu live-usb, but don't have a shell that I can run. I've tried https://nixos.org/nix-dev/2014-December/015253.html but /run/current-system/bin/bash doesn't exist. What should I do?
<sphalerite> jbo2: try /nix/var/nix/profiles/system/sw/bin/bash
<clever> jbo2: nixos-enter is a bash script to chroot into nixos for you
<clever> oh, from an ubuntu livecd
<clever> jbo2: also, use `nixos-rebuild boot`, not switch when in a chroot
<jbo2> sphalerite: nice, that worked
<jbo2> clever: thanks - I'll try that
<sphalerite> jbo2: also how is it failing to boot?
<jbo2> Looks like it gets most of the way, starts systemd, then gets stuck with a black screen and a cursor at the top-right
<jbo2> ^ as in, an underscore
johanot has quit [Ping timeout: 240 seconds]
<jbo2> possibly "slim: waiting for X server to begin accepting connections." <- and X never comes up
hyskaru has joined #nixos
<jbo2> yeah - "systemd[1]: Failed to start X11 Server."
<sphalerite> might be helpful to try booting with systemd.unit=multi-user.target and see if you get a shell
<hyskaru> Hi
<jbo2> sphalerite: thanks - I'll try that. back in a bit
fenedor has joined #nixos
goodwill has quit [Ping timeout: 252 seconds]
Ariakenom has joined #nixos
<{^_^}> [nixpkgs] @bjornfor opened pull request #46433 → [WIP] nixos: add environment.gnome3.enableExtensions → https://git.io/fAaJp
rct has joined #nixos
hyskaru has quit [Quit: hyskaru]
jedahan has joined #nixos
fendor has quit [Ping timeout: 246 seconds]
mayhewluke has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
fenedor is now known as fendor
wajsel has joined #nixos
<wajsel> Hi Does anyone have experience of docker daemon?
orivej has joined #nixos
<wajsel> I'm trying to install it according to the wikipage https://nixos.wiki/wiki/Docker so that the server is started by systemd
<clever> wajsel: services.docker.enable = true; and its done
<wajsel> unfortunately systemd does not recognize the service docker and my user does not become a member of docker group
<wajsel> aha I did not try that yet....
dmc has joined #nixos
<wajsel> @clever sorry but that did not work, error: The option `services.docker' defined in `/etc/nixos/configuration.nix' does not exist. (use '--show-trace' to show detailed location information) building Nix...
<clever> wajsel: oops, its virtualisation.docker.enable
<wajsel> yes, that's what I've been trying but with no luck :(
<clever> did you nixos-rebuild switch
<wajsel> configuration.nix:
<wajsel> virtualization.docker = { enable = true; startOnBoot = true; };
<clever> startOnBoot isnt a valid option
<wajsel> [wajsel@xps:~]$ sudo nixos-rebuild switch -I nixpkgs=/etc/nixos/nixpkgs/ building Nix... building the system configuration... activating the configuration... setting up /etc... setting up tmpfiles
<wajsel> should it not complain about invalid options?
<clever> it should complain
<wajsel> sorry for the indentation in the chat
<wajsel> I cloned the nixpkgs repo and use the -I flag
<{^_^}> [nixpkgs] @edwtjo pushed to master « nixos/i2pd: Update options to encompass recent additions to the daemon »: https://git.io/fAaTq
funkmybios has joined #nixos
<wajsel> it has been working with other rebuilds so I don't think that's the problem
<clever> which revision of nixpkgs are you on? and why did yoy need to clone it?
<clever> and what does `sudo systemctl status docker.service` say?
<wajsel> ``` [wajsel@xps:~]$ sudo nixos-rebuild switch -I nixpkgs=/etc/nixos/nixpkgs/ building Nix... building the system configuration... activating the configuration... setting up /etc... setting up tmpfiles [wajsel@xps:~]$ [wajsel@xps:~]$ groups users wheel disk audio video networkmanager systemd-journal [wajsel@xps:~]$ sudo systemctl status docker.service Unit docker.service could not be found.```
humanoyd has joined #nixos
<clever> wajsel: can you pastebin the entire configuration.nix file?
georges-duperon has joined #nixos
<wajsel> I cloned the repo because I needed to do some changes due to elixir and erlang otp21
<wajsel> It seems that the webchat does not handle newline so it may be messy message pasting the whole config ....
<clever> ,pastebin
<{^_^}> clever: Did you mean paste?
<{^_^}> Use a website such as http://nixpaste.lbr.uno/ or https://gist.github.com/ to share anything that's longer than a couple lines
ryantm has joined #nixos
<clever> i dont see the startOnBoot you mentioned earlier
<clever> wajsel: which revision of nixpkgs are you on?
<averell> how do i generate a static file in /var/db/ in my configuration.nix? dhcpcd moved a file from etc there, and previously i just used environment.etc."file" = "bla"
<wajsel> yes I tried again with the startOnBoot removed
sbdchd has joined #nixos
<clever> averell: i would just have a cp or ln command in the prestart, or find a config flag to tell it where to look
<wajsel> I'm branching from channels/nixos-18.03 8b92a4e600458c01ab0a72f2492eb7120e18f9bc
<clever> wajsel: the option is called enableOnBoot in that version, and it defaults to true
sbdchd has quit [Ping timeout: 240 seconds]
<wajsel> I checked out the channel/18.03 (fetched yesterday) and it did not provide any docker service
<clever> wajsel: nix-store --verify --check-contents
periklis has joined #nixos
<wajsel> Am I right when I'm expecting the docker service to be started when I'm running `nixos-rebuild switch` i.e. when the generation is activated
<sphalerite> wajsel: yes
<sphalerite> wajsel: as long as you set virtualisation.docker.enable = true; in your config
<wajsel> yes it' set, thanks
<sphalerite> wajsel: no, virtualisation with an S not with a Z
<wajsel> aha
<sphalerite> #36590
<{^_^}> https://github.com/NixOS/nixpkgs/issues/36590 (by cstrahan, 26 weeks ago, open): NixOS module renames break expected failure upon setting nonexistent options
<sphalerite> ^ why your typo didn't cause an error…
<averell> ok, preStart works, i added an echo > file. how would i make a file to copy, and is that cleaner?
__lawlesseel__ has joined #nixos
<clever> averell: cp -v ${pkgs.writeFile "name" "contents"} /var/db/dest
<sphalerite> averell: you could put it next to configuration.nix and put cp ${./somefile} /var/db
sigmundv has joined #nixos
<wajsel> such a silly mistake of me :) Thanks sphalerite and clever. The service is starting now
<sphalerite> wajsel: also a silly bug :/
<sphalerite> normally trying to set a nonexistent option would cause an error, there's just that exception
<wajsel> I usually do a rebuild dry-build to check the configuration but this was silent.... Should I open an issue, and if so where? on the nixpkgs repo or nix itself?
<sphalerite> it's already reported #36590
<{^_^}> https://github.com/NixOS/nixpkgs/issues/36590 (by cstrahan, 26 weeks ago, open): NixOS module renames break expected failure upon setting nonexistent options
<clever> sphalerite: ahhh
periklis has quit [Quit: ERC (IRC client for Emacs 26.1)]
<clever> that also explains why startOnBoot didnt fail
Ariakenom_ has joined #nixos
<clever> sphalerite: i also just had an idea, what about a global option to just turn mkRenamedOptionModule into a no-op?
<clever> sphalerite: both to avoid bugs it makes, and to force me to fix all renames
<sphalerite> clever: do it! :p
<wajsel> I got one more question, I was expecting my user to be in the docker group by adding it to the users.extraUsers.wajsel.extraGroups then starting a new shell and check the `groups` command
<clever> wajsel: you have to logout and login again for any group changes to take effect on linux
<sphalerite> wajsel: you need to do nixos-rebuild switch, and log out and back in
<wajsel> ok I thought it was enough to open a new shell
<clever> it inherits the groups from the parent process
<clever> and the new shell is just your window manager, which already has the "wrong" groups
<clever> it must be spawned by something root, like sshd, or the login screen
<wajsel> ok, checked with ctrl-alt-f1 login. It's working :)
<clever> which then sets the right groups as it drops root
<sphalerite> clever: hmmm sudo -iu $USER might work too right?
<clever> sphalerite: sudo is smart enough to know no changes take place, and do nothing
<sphalerite> damn
<sphalerite> sudo su - $USER then
<clever> sphalerite: you need to `exec sudo -i` then `exec sudo -i -u clever`
<clever> but, ive found that the above breaks pulseaudio
<sphalerite> lol
<clever> i was trying to go beyond the hard ulimits
<clever> but then i lost all audio in chrome
<clever> sphalerite: `ssh localhost` would probably be simpler, lol
<xok> ,find docker.nix
<xok> ,find docker-compose.nix
<{^_^}> Couldn't find any such files
<xok> ,find docker-compose
<{^_^}> Couldn't find any such files
<xok> ,find docker
<infinisil> xok: I recommend spamming the bot in #bottest instead, it's intended to be used here only for finding things quickly for discussions
acarrico has quit [Ping timeout: 244 seconds]
rauno has quit [Ping timeout: 240 seconds]
acarrico has joined #nixos
<copumpkin> niksnut: getting weird memory error when trying to evaluate: https://hydra.nixos.org/jobset/nixpkgs/copumpkin-wip#tabs-errors
<clever> copumpkin: 9gig!! :O
<copumpkin> yup
<copumpkin> not sure what's up with that
<copumpkin> I'm not doing anything particularly unusual in that branch
<clever> copumpkin: i suspect its an entry in hydra.conf that makes the initial heap larger
georges-duperon has quit [Ping timeout: 252 seconds]
<clever> copumpkin: every eval on hydra uses 9gig of ram upfront, to even start
<copumpkin> nice
abueide has joined #nixos
<copumpkin> I reported the bug here: https://github.com/NixOS/hydra/issues/593
<clever> and will then store all nix values in that 9gig
<{^_^}> hydra#593 (by copumpkin, 4 minutes ago, open): Hydra failing eval with memory error
<copumpkin> thanks, smiling bot!
johanot has joined #nixos
johanot has quit [Remote host closed the connection]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spear2 has quit [Remote host closed the connection]
wpcarro has joined #nixos
ixxie has joined #nixos
<{^_^}> [nixpkgs] @knedlsepp opened pull request #46435 → pythonPackages.fiona: Fix darwin build → https://git.io/fAaIq
Havvy has quit [Ping timeout: 244 seconds]
<xok> the NixOS has a package called "zabbix"...
<xok> it's really hard to get it working, but in case you spent a lot time on it and get it working - you'll have a really old software...
<xok> I think it would be good to upgrade the package to its latest version...
<srhb> xok: I *almost* took over maintainership of it at one point
<srhb> It shouldn't be hard to upgrade it, I just came to dislike the software sufficiently to not want to touch it at all.
<xok> srhb: why did you give up?..
<srhb> I didn't, I just never upstreamed it
<xok> srhb: why, what was the problem?..
<xok> srhb: can you help me get the latest version working on my system?..
<xok> I gave up using httpd for it...
<srhb> xok: I can give you some pointers..
<xok> I instead installed nginx + php-fpm...
<{^_^}> #31123 (by srhb, 44 weeks ago, open): NixOS/zabbix-{server,agent}: 1.8 -> 3.4 wip
<srhb> xok: I never tried using anything but apache + mod_php for it..
<srhb> Ah, that was actually merged in a different PR later
<srhb> But the default wasn't changed.
<srhb> So you can just use that :)
<xok> srhb: any chance to use mysql instead of psql?..
<srhb> Not without rewriting the module, it's not configurable.
jedahan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<xok> srhb: why did you give up upgrading it?..
<xok> I heard of NixOS couple of days ago..
<xok> have never played with it before...
<xok> I can't do such things just yet... :D
<{^_^}> [nixpkgs] @knedlsepp opened pull request #46436 → pythonPackages.cozy: Disable on python2 → https://git.io/fAaIK
<srhb> xok: I just didn't care about zabbix anymore. :)
<srhb> xok: But using that package, you get a working 3.4 at least.
<xok> srhb: I am pretty new here, can you help me get it working?..
<xok> I don't know how to do that...
<srhb> xok: Have you used an overlay before?
<xok> no...
<xok> I head about NixOS couple of days ago, no more...
<xok> heard*
<srhb> No worries, I'm just trying to gauge how to start explaining.
<srhb> So, the core of the problem is this
<srhb> > nixpkgs.zabbix.server.name
<{^_^}> undefined variable 'nixpkgs' at (string):192:1
<srhb> zabbix.server.name
<srhb> > zabbix.server.name
<{^_^}> "zabbix-1.8.22"
nbardiuk has quit [Remote host closed the connection]
<srhb> The default zabbix attribute is 1.8.22
<shiver> neat bot
<xok> yes, very old..
<srhb> Hmm, maybe the server component wasn't actually upgraded
knupfer has quit [Remote host closed the connection]
<srhb> I was thinking to just set zabbix = zabbix34, but that won't work then.
<xok> I spent two or three days to get the damned web UI displayed...
<xok> I finally got it but it was 1.8...
<xok> terribly old one...
<srhb> Yeah. Either we should remove it or find someone who cares to maintain it.
<xok> I started to do a "docker" instead...
<xok> to start a docker container with zabbix on NixOS...
<xok> but that's not what we really want...
<xok> it's just a workaround...
<srhb> Well, my PR should still work, you can use that locally..
<{^_^}> [nixpkgs] @matthewbauer merged pull request #43470 → dwarf-fortress: Refactor, round 2: let the user pick which version of the lazy pack to install → https://git.io/fNqeY
<{^_^}> [nixpkgs] @matthewbauer pushed 9 commits to master: https://git.io/fAaIx
<xok> srhb: yes, but I need some guidance...
<xok> I don't know how to do that...
<{^_^}> [nixpkgs] @matthewbauer merged pull request #46427 → elpy: fix build dep → https://git.io/fAaeF
<{^_^}> [nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fAaIj
<srhb> xok: I would suggest by starting with reading the overlays section in the nixpkgs manual. Once you know how to create overlays, it becomes much easier to make ad-hoc upgrades to packages.
<xok> srhb: can you send me a URL ?..
<disasm> you'd also need to import the nixos module, as those don't work in overlays.
<srhb> Right.
<xok> I don't even understand what you re saying disasm ... ;-$
<disasm> here's an example of creating an overlay: https://github.com/disassembler/network/blob/master/overlays/asterisk.nix
<srhb> Nix packages and NixOS modules are very separate things.
Havvy has joined #nixos
<disasm> that overlay is importing this package (which you could pull from his patch: https://github.com/disassembler/network/blob/master/overlays/asterisk/default.nix
<xok> srhb: can I PM you?..
<disasm> nixpkgs.overlays is included like this: optina
<srhb> xok: Sure, but I don't have time to do a step-by-step guide now. :)
<disasm> then I do something like this to track my own custom modules: https://github.com/disassembler/network/blob/master/portal/default.nix#L5
<xok> srhb: I'm a pretty smart guy, I can quickly figure out how to deal with it...
<xok> but this "overlay" and stuff will take time for me...
<disasm> and then imports for my custom modules is here: https://github.com/disassembler/network/blob/master/portal/default.nix#L33
<xok> I need to get this thing done by tomorrow...
<sphalerite> xok: if you need to get it done by tomorrow and don't know what you're doing with nixos, I suggest sticking with a traditional distro for now.
<sphalerite> xok: or hiring someone to do it for you :)
<xok> sphalerite: I've got great progress, I can do it with docker...
<xok> but would be awesome if I can stick with nixops...
orivej has quit [Ping timeout: 252 seconds]
<avn> disasm: nice example of nixops btw, I should switch my home machines to nixops as well
<disasm> xok: I can help you with getting a simple PoC setup for handling custom modules and overlays
<xok> disasm: thatnk you but I think that's a hard part for me at the moment...
<disasm> avn: my talk at NixCon is all about the structure in that repo, although I'm planning a nice cleanup overhaul now that I have CI testing for it to make sure I don't break stuff in the process.
<xok> srhb: I found this thing: https://github.com/NixOS/nixpkgs/pull/39925
<{^_^}> #39925 (by Assassinkin, 18 weeks ago, merged): Zabbix-agent 3.4
<xok> srhb: it seems to be merged to a master...
<srhb> xok: Yes, but like I said that only includes the agent, unlike my PR.
<{^_^}> [nixpkgs] @bobvanderlinden opened pull request #46437 → opentracker: 2016-10-02 -> 2018-05-26 → https://git.io/fAaL4
<avn> disasm: I unable to attend this year, but I hope I will able watch all talks recordings
jedahan has joined #nixos
<disasm> avn: I just got hydra building my 2 nixops deployments and my non-nixops laptop this past week, as well as a nix-darwin deployment: https://github.com/disassembler/network/blob/master/release.nix -- Feels so good to know things are going to break before I run nixops deploy and having to rollback, lol.
<{^_^}> [nixpkgs] @knedlsepp opened pull request #46438 → pythonPackages.flask_ldap_login: Fix build → https://git.io/fAaLB
<avn> disasm: I just curious, if it possible to have `nixops` deploy, which can be switched to "non-nixops" in single command (for example I usually deploy my travel notebook from main build machine, but sometimes I need add something when I am travelling)
<xok> damn, how I want this thing to be working in my environment... ;-(
<disasm> avn: depends... if you abstract it out enough and don't have any deployment keys, it's possible, very similar to how I handle my laptop: https://github.com/disassembler/network/blob/master/machines/sarov.nix
wpcarro has quit [Remote host closed the connection]
<disasm> Essentially, you'd have infrastructure.nix import the same config that the configuration.nix like above imports: https://github.com/disassembler/network/blob/master/infrastructure.nix
wpcarro has joined #nixos
<philippD> I have seen the nix function `callCabal2nix` pop up at some places but I can't find it's definition anywhere in nixpkgs. I currently manually call cabal2nix each time I change the cabal file. Does this function take care of this update automatically and if so how do I get it?
<srhb> philippD: It's in make-package-set.nix in the haskell modules
<srhb> And yes, it does that.
<srhb> philippD: You should simply use it from haskellPackages, eg. nixpkgs.haskellPackages.callCabal2nix
<srhb> Which uses the scope of the surrounding package set like callPackage would.
jedahan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<{^_^}> [nixpkgs] @knedlsepp opened pull request #46439 → pythonPackages.joblib: Disable flaky test → https://git.io/fAaLx
wpcarro has quit [Ping timeout: 250 seconds]
<philippD> srhb: do you have an example of a project using callCabal2nix?
<clever> callCabal2nix "name" ./. {}; i think was the syntax
<clever> it will then expect a name.cabal in the dir, and load it as normal
<srhb> clever: Yes, that's correct
<philippD> clever: I should stop doubting the function definitions and just go the easiest route and just call the damn function.
<srhb> name src and arguments to the mkderivation
<srhb> (Well, the usual override stuff)
[Leary] has quit [Read error: Connection reset by peer]
<clever> srhb: callPackage/override args, not mkDerivation args
<philippD> cool you can even specify the concrete ghc version.
<srhb> clever: Sorry, right :)
<srhb> philippD: The only rule is that name must be the name in "${name}.cabal" in src :)
<srhb> Unless it has a package.yaml.
<philippD> wait, cabal2nix understands hpack files?
<{^_^}> [nixpkgs] @knedlsepp opened pull request #46440 → pythonPackages.libusb1: Fix darwin build → https://git.io/fAatO
<philippD> why, the fuck am I writing cabal files???
<philippD> nix is awesome btw.
cnidario has quit [Remote host closed the connection]
<srhb> philippD: :-)
<Ralith> wait, we're using import-from-derivation in nixpkgs now?
<srhb> Ralith: No, that is not allowed.
<srhb> But we can certainly provide facilities for using IFD.
<srhb> callCabal2nix is one such thing that leverages it heavily.
<srhb> And callHackage, too..
<pie_> whats the package for libavcodec?
<clever> pie_: probably ffmpeg
<srhb> ,locate lib/libavcodec.so
<pie_> oh
<{^_^}> Found in packages: libav, ffmpeg, ffmpeg-full
<pie_> i tried libav but nix said that doesnt exist xD
<pie_> ok ffmpeg it is
Lears has joined #nixos
<pie_> oh im a fool, i didnt pass it in via the arguments, thats why it didnt fid it
Xyliton has joined #nixos
<Xyliton> do I have to do anything special to get access to my mic?
<Xyliton> tried to voice chat on discord but all I can select is a monitor of "built-in audio analog stereo"
tmaekawa has joined #nixos
<pie_> Xyliton, the desktop app or in browser?
<Xyliton> it's in the browser
<pie_> I think I had some issues with the lattr...
<clever> Xyliton: does pavucontrol list the capture device under input devices?
<pie_> Xyliton, to help isolate the issue maybe test it in chromium as well (just drop in a nix shell)
tmaekawa has quit [Client Quit]
<Xyliton> somehow works in the desktop app wtf
<clever> Xyliton: try fully quiting and then starting the browser
humanoyd has quit [Quit: WeeChat 2.2]
pie__ has joined #nixos
<{^_^}> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/7c1b85cf6de (from 3 days ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
pie_ has quit [Ping timeout: 252 seconds]
trevthedev has quit [Ping timeout: 252 seconds]
<rfold> When I boot my computer I get a light blue screen with the NixOS logo and a password prompt. After logging in it opens my window manager. What keyword am I looking for if I want to customize this login screen? Is it part of X server, display manager, or something else?
trevthedev has joined #nixos
fragamus has joined #nixos
jedahan has joined #nixos
<tilpner> That's slim, and it's your display manager
<rfold> Thanks!
knupfer has joined #nixos
<{^_^}> [nixpkgs] @vcunat pushed to master « racket: warn to avoid repeating #45952 »: https://git.io/fAaqW
<rfold> I can customize it with services.xserver.displayManager.slim.theme
<siers> How do I run a script and get its exit value? Only through mkDerivation?
<tilpner> You may want to switch away from slim entirely, it's been abandoned for 5 years. I like sddm
<disasm> tilpner: I've been wondering if we're ever going to change the default :)
<tilpner> siers - You will need a derivation (or builtins.exec, but don't do that), but you can use the wrapper runCommand
<clever> disasm: i still use slim on my desktop
<{^_^}> [nixpkgs] @bjornfor pushed commit from R. RyanTM to master « osinfo-db: 20180531 -> 20180903 »: https://git.io/fAaqg
<disasm> clever: same here :)
<disasm> mainly because it's the default :)
<{^_^}> [nixpkgs] @bjornfor closed pull request #46218 → osinfo-db: 20180531 -> 20180903 → https://git.io/fAzTs
<rfold> tilpner: I'll first look up what a display manager does
<clever> rfold: it manages starting X, displaying a login screen, and then launching your desktop manager after you login
rfold has quit [Quit: leaving]
ixxie has quit [Ping timeout: 272 seconds]
<{^_^}> [nixpkgs] @xeji merged pull request #46436 → pythonPackages.cozy: Disable on python2 → https://git.io/fAaIK
<{^_^}> [nixpkgs] @xeji pushed commit from @knedlsepp to master « pythonPackages.cozy: Disable on python2 (#46436) »: https://git.io/fAamU
<{^_^}> [nixpkgs] @xeji pushed commit from @knedlsepp to release-18.09 « pythonPackages.cozy: Disable on python2 (#46436) »: https://git.io/fAamk
<{^_^}> [nixpkgs] @knedlsepp opened pull request #46441 → pythonPackages.mapnik: Fix build → https://git.io/fAamI
<{^_^}> [nixpkgs] @knedlsepp opened pull request #46442 → castxml: Fix build → https://git.io/fAamq
rfold has joined #nixos
civodul has joined #nixos
<siers> Should one use builtins.readFile or nixpkgs.lib.readFile?
zimbatm has joined #nixos
<clever> siers: all functions from builtins are also in lib
<siers> ah
knupfer has quit [Remote host closed the connection]
<clever> i would just use the builtins version directly
<siers> cool
<symphorien> how do chroot store work ?
<symphorien> I tried nix-build --store /some/path but it seems to recompile everything
<symphorien> I thought they were doing some user namespace magic
rfold has quit [Quit: leaving]
<LnL> sphalerite: nix-build --store local?root=/some/path
<LnL> oops, symphorien ^
<sphalerit> symphorien: that should work AFAIK
<symphorien> thanks
sigmundv has quit [Ping timeout: 245 seconds]
<LnL> the first one is a regular store in another location, like NIX_STORE_DIR
sbdchd has joined #nixos
sbdchd has quit [Remote host closed the connection]
<infinisil> Hold on a moment, are hashes for github rev urls changing???
<infinisil> Like the sha256's
sbdchd has joined #nixos
<sphalerite> LnL: for me `nix build --store /tmp nixpkgs.hello` gets the paths from cache.nixos.org and puts them in /tmp/nix/store
<sphalerite> infinisil: the tarballs? Yeah
Xyliton has quit [Quit: Lost terminal]
<LnL> huh
<clever> infinisil: fetchFromGitHub uses fetchzip, which is a variant of fetchurl
<sphalerite> infinisil: that's why we have fetchFromGitHub which unpacks the stuff
<clever> infinisil: and fetchzip uses the hash of the contents, not the hash of the zip itself
mayhewluke has quit [Ping timeout: 272 seconds]
<infinisil> Well darn, this sucks, I always assumed the hash of fetchFromGitHub and the tarballs would be the same :/
<infinisil> Hold on
<sphalerite> certainly not :p
<clever> fetchzip/fetchFromGitHub match to `nix-prefetch-url --unpack`
<infinisil> Shouldn't the `nix-prefetch-url --unpack` hash be the same as the fetchFromGitHub one?
<clever> fetchurl is just nix-prefetch-url
<sphalerite> infinisil: yes
<clever> yeah
knupfer has joined #nixos
<infinisil> And what about builtins.fetchTarball, that should be the same hash as fetchFromGitHub and nix-prefetch-url --unpack, right?
<clever> yeah
<LnL> this is exactly why using anything other than nix-prefetch-url -A interactively is bad IMHO
<{^_^}> [nixpkgs] @xeji merged pull request #46438 → pythonPackages.flask_ldap_login: Fix build → https://git.io/fAaLB
<{^_^}> [nixpkgs] @xeji pushed 4 commits to master: https://git.io/fAamb
sbdchd has quit [Ping timeout: 240 seconds]
<LnL> eg. nix-prefetch-url -A hello.src
jedahan has quit [Read error: Connection reset by peer]
mayhewluke has joined #nixos
<{^_^}> [nixpkgs] @xeji pushed 3 commits to release-18.09: https://git.io/fAamp
jedahan has joined #nixos
georges-duperon has joined #nixos
patrl has joined #nixos
jedahan has quit [Read error: Connection reset by peer]
jedahan has joined #nixos
<infinisil> Wait, am still a bit confused
<infinisil> So the tarballs github provides change the hash for the same git revision
dmc has quit [Ping timeout: 240 seconds]
<infinisil> But unpacking them always gives the same hash?
<clever> infinisil: some tools for generating a zip from a git rev wind up timestamping the files in the zip with the current date/time
<clever> and then the hash of the zip differs
<clever> nix ignores timestamps when hashing an unpacked directory
<infinisil> Ah!
<infinisil> Now that makes sense
<clever> and other differences can occur within the zip structure when the zip library is updated
<clever> which is what the NAR format solves
<tnks> Do people just run with the 4.14.68 kernel in NixOS because that's what's tested? It seems a touch old.
<infinisil> clever: Ah, neat
<tnks> Not that I know exactly what a newer kernel gets me...
<tnks> oh... I see kernelPackages now.
<tnks> there's a configuration for everything. :)
<{^_^}> [nixpkgs] @fpletz pushed 3 commits to master: https://git.io/fAaY1
<tilpner> > linuxPackages_testing.kernel.name # nixpkgs has new kernel versions too
<{^_^}> "linux-4.19-rc2"
<{^_^}> [nixpkgs] @xeji merged pull request #46442 → castxml: Fix build → https://git.io/fAamq
<{^_^}> [nixpkgs] @xeji pushed commit from @knedlsepp to master « castxml: Fix build (#46442) »: https://git.io/fAaYH
<{^_^}> [nixpkgs] @xeji pushed commit from @knedlsepp to release-18.09 « castxml: Fix build (#46442) »: https://git.io/fAaY7
bkchr[m] has joined #nixos
<tnks> tilpner: cool, thanks for the tip... I just went with "pkgs.linuxPackages_latest"
<bkchr[m]> Hi, is carnix still the way to go for rust packages?
dmc has joined #nixos
knupfer has quit [Remote host closed the connection]
<{^_^}> [nixpkgs] @xeji merged pull request #46440 → pythonPackages.libusb1: Fix darwin build → https://git.io/fAatO
<{^_^}> [nixpkgs] @xeji pushed 3 commits to master: https://git.io/fAaOI
<{^_^}> [nixpkgs] @xeji pushed 2 commits to release-18.09: https://git.io/fAaOt
<Ralith> I'd say so, if you can get it to work
<bkchr[m]> hmm, that is my problem :D
<Ralith> I think the author got eaten by real life a while back
<bkchr[m]> Hmm okay. So we need a different way to package the rust stuff in Nixos.. I need a newer version of cargo-vendor, but that requires carnix. I'm trapped :D
jbo2 has quit [Quit: Lost terminal]
jonreeve has quit [Quit: WeeChat 2.1]
<Ralith> or you could fix whatever the problem is
<bkchr[m]> Yeah, I could do that. But I'm already to deep in the rabbid hole..^^
<symphorien> bkchr[m]: why do you need a newer version of cargo vendor ? I am curious
<bkchr[m]> symphorien: I have the following problem: https://github.com/NixOS/nixpkgs/issues/30742
<{^_^}> #30742 (by ljli, 45 weeks ago, open): buildRustPackage: found duplicate version of package
<{^_^}> [nixpkgs] @bobvanderlinden opened pull request #46443 → [WIP] add test for upnp using miniupnpd and miniupnpc → https://git.io/fAaO2
<symphorien> ah ok.
<symphorien> you can probably use buildRustPackage to build cargo-vendor
<symphorien> just leave the one currently in nixpkgs alone, for boostrapping
<bkchr[m]> symphorien: hmm, could work
<sphalerite> tnks: the default linuxPackages is always a version that's still maintained and should be a sensible choice to run unless you have hardware that only a newer kernel supports.
<das_j> Um, I have found the ARM images online, but how do I build them myself?
<tnks> sphalerite: there was an era when I liked to keep current because power management always seemed to suck, and there was hope that the later kernel would improve it.
<tnks> but now, I probably keep current out of habit than need.
<sphalerite> tnks: also nothing wrong with _latest though either :)
<sphalerite> das_j: 1. get an arm system with nix running
<{^_^}> [nixpkgs] @xeji merged pull request #46435 → pythonPackages.fiona: Fix darwin build → https://git.io/fAaIq
<{^_^}> [nixpkgs] @xeji pushed commit from @knedlsepp to master « pythonPackages.fiona: Fix darwin build (#46435) »: https://git.io/fAaOM
<sphalerite> das_j: 2. build various attrs typically of nixpkgs/nixos/release.nix
<das_j> sphalerite: Never mind, I'll use the upstream images
<{^_^}> [nixpkgs] @xeji pushed commit from @knedlsepp to release-18.09 « pythonPackages.fiona: Fix darwin build (#46435) »: https://git.io/fAaO9
<das_j> sphalerite: Once I have installed it, can I just upgrade it like regular NixOS?
<das_j> nix-channel --add?
<clever> yep
<das_j> Nice, that's the perfect solution for my Pi
<das_j> How does the nix daemon do there?
jedahan has quit [Quit: Textual IRC Client: www.textualapp.com]
<das_j> I mean it's already going OOM with much more memory on my other systems
<{^_^}> [nixpkgs] @xeji pushed commit from @knedlsepp to master « pythonPackages.joblib: Disable flaky test (#46439) »: https://git.io/fAaO7
<{^_^}> [nixpkgs] @xeji merged pull request #46439 → pythonPackages.joblib: Disable flaky test → https://git.io/fAaLx
<sphalerite> you may run into some memory constraints, although that should improve with nix 2.1
<srhb> das_j: Same problems.
<clever> das_j: the OOM issues when copying closures have been improved in 2.1
<{^_^}> [nixpkgs] @xeji pushed commit from @knedlsepp to release-18.09 « pythonPackages.joblib: Disable flaky test (#46439) »: https://git.io/fAaOb
<das_j> Ah, that's awesome
<das_j> Is 2.1 in 18.09? Or do I have to switch to nix unstable?
<sphalerite> I find zram to be quite helpful for that on my 2GB ARM device (not a pi but yeah)
<sphalerite> I think it's in 18.09
<das_j> sphalerite: How does zram affect the performance?
<clever> sphalerite: only problem ive had with zram, is that `nixos-rebuild switch` sometimes wants to turn the zram off and back on, to reload it
<sphalerite> note though that 18.09 is not yet released and may murder your cat
<clever> which involves 30mins of decompressing ram, lol
<sphalerite> clever: I typically just set it up imperatively under nixos's nose
<clever> and if it doesnt fit in real ram, it then has bigger problems
<clever> nixos-generate-config also doesnt understand the ramdisks it uses
<sphalerite> das_j: better than normal swap :p
<emily> "nixos-rebuild switch" toggling stuff off and on is really annoying
<das_j> sphalerite: Both my cats (as well as my 18.09 installations) are still alive so it doesn't look too bad
<emily> I feel like the activation scripts could be better about this but maybe it'd require too deep hooks :(
<das_j> sphalerite: Thanks, I might give it a try for my low-memory systems
bobvanderlinden has quit [Ping timeout: 252 seconds]
<sphalerite> das_j: :) just saying it mostly to avoid giving the impression that it's released (since it's september 2018 and the channel does exist now)
<emily> even if NixOS murders your cat, it'll reconstruct it again in exactly the same configuration immediately afterwards, so it's not too big a deal.
<das_j> sphalerite: I'm aware of that. But coming from Arch Linux, my feeling of completeness and stability is lacking
<emily> but it involves 30 minutes of decompressing cat.
<sphalerite> emily: :D
<das_j> emily: I can't wait that long to pet a cat
<sphalerite> das_j: fair enough
<joepie91> !hash
<emily> das_j: :D
<joepie91> meh
<joepie91> how do I produce a hash from a source tarball again (not from a URL), so that it matches whatever goes in the expression?
<joepie91> notably, without adding it to the store
<clever> joepie91: nix-hash
<clever> --flat i think
<das_j> Ooh, that's cool. I ususally use a random hash and let it fail
<clever> joepie91: oh, but if its flag, you can also just use sha256sum i believe
<clever> flat*
<joepie91> that produces the wrong encoding I think?
<sphalerite> das_j: it's fiddlier than you'd think
<clever> joepie91: nix accepts both base16 and base32
<sphalerite> joepie91: nope nix supports base16 for it now
<joepie91> clever: seems `nix-hash --flat --type sha256 --base32` produces the format used in nixpkgs
<clever> yep
<clever> when using flat hashing, then its just the raw hash of the file, so you can use sha256sum
<joepie91> yep, seems to produce the same output
<joepie91> alright, thanks
<clever> `nix-hash --type sha256 --to-base32 <hash>` can be used to convert 16 to 32
<clever> for recursive hashing, you need the hash of the NAR encoding of the directory
<clever> nix-hash without --flat can do that
<clever> nix-prefetch-url --unpack can also do it
<clever> you can also `nix-store --dump | sha256sum`
<sphalerite> or nix-store --dump | sha256sum
<sphalerite> dammit clever stop ninja'ing me! :p
<clever> lol
<clever> and i had to lookup the exact flag in the man pages!
* joepie91 continues on his all-the-WINE-versions project
<joepie91> gotta love playonlinux for providing easily-parseable metadata about all WINE releases...
<das_j> Btw, are people happy with discourse?
<das_j> Or is anyone else experiencing completely blank pages unless you activate javascript?
<elvishjerricco> das_j: I doubt discourse is designed to work without javascript
<elvishjerricco> Personally, I think it's a huge improvement over the mailing list
<das_j> elvishjerricco: I expect that but I hate allowing third-party hosts
rain1 has joined #nixos
<das_j> And yes, it's better than the mailing list but that still bugs me
<elvishjerricco> Just the nature of the web unfortunately :/
<elvishjerricco> But I think you can trust code from nixos.org
<elvishjerricco> If not, then your whole NixOS configuration should be considered untrusted :P
<das_j> elvishjerricco: So I don't dislike discourse, I dislike the web ;)
<das_j> elvishjerricco: It's not about the NixOS servers, it's about discourse-cdn-sjc2.com
<elvishjerricco> das_j: Is it possible to allow JS only from nixos.org on the page?
<elvishjerricco> Oh. Lame
<das_j> elvishjerricco: No, the page is just blank
<joepie91> I believe the NixOS forums are on hosted Discourse
<elvishjerricco> nixos.org should host all its own discourse assets
<das_j> Not sure that's possible
<joepie91> as in, not on infrastructure operated by NixOS people in the first place
<elvishjerricco> Well that's unfortunate...
<emily> I think you can use discourse via mail?
<das_j> Well, I'll probably bite into the sour apple (is that even an english term) and allow the host for discourse.nixos.org
<joepie91> das_j: fellow dutchman?
<joepie91> :P
<das_j> joepie91: german
<joepie91> oh, huh, didn't know that that saying existed in Germany as well
<joepie91> to be fair, the Dutch version is to bite *through* the sour apple
<das_j> I didn't know about the saying in dutch either
<das_j> english seems to be "to grin and bear it" or "to swallow the pill"
<Myrl-saki> [myrl@myrl-lappy:/etc/nixos]$ ag currentTime
<Myrl-saki> nixpkgs/pkgs/tools/nix/info/multiuser.nix:7: # no cache: ${toString builtins.currentTime}
<Myrl-saki> Glad to know that I'm not the only one who thought of using currentTime to force builds.
<sphalerite> oh wow that's nasty x)
<Myrl-saki> :D
<clever> :D
<srhb> Myrl-saki: I think we even have a wrapper for that...
<clever> Myrl-saki: oh, nix also has a dedicated option for this
<samueldr> not nasty there, it's to query fresh information for nix-info :)
<sphalerite> samueldr: I suppooooose, but still
<clever> i cant remember the name of it though
<samueldr> sphalerite: that file is not used inside nixpkgs, but is a file used by the info script
<clever> Myrl-saki: __impure = true; has the same effect
<samueldr> it could have been called "multiuser.nix.in", to reduce confusion :)
<Myrl-saki> clever: Ah. :P
<Myrl-saki> Thanks. I wonder how it interacts with systemd services.
<tilpner> clever - But that's not in master
<clever> oh, i see, yeah, unmerged
<sphalerite> samueldr: yeah I realise that, it still kind of bothers me :p
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<{^_^}> [nixpkgs] @etu opened pull request #46444 → nano: 2.9.8 -> 3.0 → https://git.io/fAasI
<{^_^}> [nixpkgs] @knedlsepp closed pull request #46441 → pythonPackages.mapnik: Fix build → https://git.io/fAamI
DigitalKiwi has joined #nixos
rsynnest has joined #nixos
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hamishmack has joined #nixos
hamishmack has quit [Client Quit]
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rsynnest> is there a command to see the configuration.nix that I'm currently booted into?
<rsynnest> essentially the location where configuration.nix is copied to during a build
<etu> There's a flag named system.copySystemConfiguration that you can put into your configuration.nix
<etu> If you enable that the current configuration.nix is available in /run/current-system/configuration.nix
<etu> I haven't tried it myself though, so not sure how it works if you have a config that is split up :)
<clever> etu: that doesnt really work as soon as you have a 2nd module loaded via imports
<clever> etu: but you can customize what it does like so: https://github.com/cleverca22/nixos-configs/blob/master/core.nix#L127-L129
sbdchd has joined #nixos
<clever> now the entire directory core.nix is in will be copied to /run/current-system/nixcfg/
fendor has quit [Read error: Connection reset by peer]
tnks has quit [Quit: leaving]
<etu> clever: oh, that's nice to know. Hence my disclaimer above that it may not be complete. I guessed that was the case :)
<rsynnest> nice, but i would need to add that and rebuild
<rsynnest> let's say I deleted my configuration.nix and want to find the one I'm booted into right now
<clever> yeah
<rsynnest> is that possible?
<clever> rsynnest: nix-diff is the closes thing to what you want
<clever> it can tell you the differences between 2 derivations
<clever> then you need to recreate configuration.nix to make it not differe
<clever> nt
<rsynnest> sounds promising, but looks like it takes 2 filenames to compare, so what would I use as my "currently booted config" filename?
<clever> [clever@system76:~]$ nix-store --query --deriver /run/current-system
<clever> /nix/store/ksycvnlvwg8zmfir6zff6l8zlyxgf67x-nixos-system-system76-18.09pre150708.083220867c7.drv
<xok> when we provision a new system, is there a chance to get the IP of the newly created machine?..
<clever> rsynnest: that gets the .drv for the current-system
<xok> and if yes, what's the command for it?..
sir_guy_carleton has joined #nixos
<bigvalen> Where does nixos store the linux console resolution ? Seems it's running at 1024x786 after boot, despite me setting a text-mode in Grub
<clever> rsynnest: and `nix-instantiate '<nixpkgs/nixos>' -A system` gets you the drv for the current configuration.nix
<clever> rsynnest: then nix-diff the 2 of them, edit configuration.nix to solve the difference, and repeat until it has no diff
<{^_^}> [nixpkgs] @ryantm opened pull request #46445 → rPackages.RPostgres: fix configure paths and includes → https://git.io/fAash
xok has quit [Ping timeout: 252 seconds]
<rsynnest> clever: thanks! I'll have to do a lot more reading/practicing before I can reverse engineer derivations, but this definitely points me in the right direction of what I broke in my new configuration
fragamus has joined #nixos
simukis has quit [Ping timeout: 245 seconds]
zemm has quit [Ping timeout: 240 seconds]
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos
jtojnar has quit [Client Quit]
jtojnar has joined #nixos
jtojnar has quit [Client Quit]
hamishmack has joined #nixos
jtojnar_ has joined #nixos
blankhart has quit [Quit: WeeChat 1.9.1]
patrl has quit [Quit: WeeChat 2.0]
<{^_^}> [nixpkgs] @Pneumaticat opened pull request #46446 → nixos/lizardfs: init module → https://git.io/fAaGb
georges-duperon has quit [Ping timeout: 252 seconds]
Ariakenom_ has quit [Quit: Leaving]
<bigvalen> I tried to move my one-disk system to a four-disk ZFS system. Apparently, you can make a raidz2 array with three disks, and one sparsefile disk that you 'offline' before you populate. Then you can detach that sparsefile one the data is moved over, and yay! you have a four-disk raidz2. But when I rebooted, it failed to import my new pool...because one of the disks was offline.
<bigvalen> Of course it's offline. It was never really working :(
mounty1 has joined #nixos
zemm has joined #nixos
<{^_^}> [nixpkgs] @dywedir opened pull request #46448 → rclone: 1.43 -> 1.43.1 → https://git.io/fAaZa
<sphalerit> rsynnest: basically, no. Most people version their config using git
<{^_^}> [nixpkgs] @Mic92 pushed to master « vim-plugins: add missing update.py »: https://git.io/fAaZ6
cnidario has joined #nixos
Ariakenom has quit [Read error: Connection reset by peer]
Thra11 has quit [Ping timeout: 252 seconds]
tzemanovic has joined #nixos
<{^_^}> [nixpkgs] @dtzWill merged pull request #46064 → musl: 1.1.19 -> 1.1.20 → https://git.io/fABAY
<{^_^}> [nixpkgs] @dtzWill pushed 2 commits to master: https://git.io/fAaZj
joehh has joined #nixos
funkmybios has quit [Ping timeout: 252 seconds]
<__monty__> How do I do a version bump to a package in nixpkgs? Clone the repo, change the package, PR?
<clever> __monty__: yeah
<__monty__> What should the commit message look like? I seem to remember it's quite strict?
<__monty__> Ah, didn't catch the .github, this was done to avoid the scrollbar?
rsynnest has quit [Quit: Page closed]
<clever> i believe github expects certail files in .github and treats them specially
<clever> https://github.com/NixOS/nixpkgs/blob/master/.github/PULL_REQUEST_TEMPLATE.md for example is pre-entered into the description of every PR
<__monty__> Oh. No idea where I saw CONTRIBUTING.md before then. I know I've seen it, just have never noticed a .github directory.
<__monty__> Thanks, clever.
<samueldr> (which is summarised in CONTRIBUTING.md)
<__monty__> Do I need to add myself to maintainers somewhere?
<__monty__> And how do I get the proper hash for fethfromgithub? Is it just the commit hash?
<samueldr> you can if you want to maintain, and should if you *add* a package, but not for a version bump
<samueldr> rev = ""; is a commitish that git can handle (use a tag or a revision ID)
<samueldr> sha256 = ""; use the good ol' tofu trick
<samueldr> ,tofu
<{^_^}> To get a sha256 hash of a new source, you can use the Trust On First Use model: use probably-wrong hash (for example: 0000000000000000000000000000000000000000000000000000) then replace it with the correct hash Nix expected.
<__monty__> Yes but how do I run the default.nix to get the proper hash?
Edes has joined #nixos
<clever> __monty__: in the root dir of nixpkgs, `nix-build -A packagename`
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
philippD has joined #nixos
<{^_^}> [nixpkgs] @dtzWill opened pull request #46449 → qemu: port musl patch to new version → https://git.io/fAana
<{^_^}> [nixpkgs] @dtzWill opened pull request #46450 → spidermonkey_52: don't use jemalloc w/musl → https://git.io/fAanr
<{^_^}> [nixpkgs] @dtzWill opened pull request #46451 → libxshmfence: 1.2 -> 1.3 fixes memfd_create usage w/musl → https://git.io/fAan6
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
<__monty__> Uhm, it didn't error. Is it supposed to?
haslersn has joined #nixos
<__monty__> Hmm, with 0000 it did error. It didn't if I left the hash unchanged.
tzemanovic has quit [Remote host closed the connection]
<samueldr> exactly, nix will use the sha256 to find an existing downloaded resource (or available in a cache)
<samueldr> so if you leave an older hash, it will use whatever it points to
<haslersn> If i have a nix-expression on GitHub (but it's not available in nixpkgs), what is an easy way to install it in my systemPackages?
<elvishjerricco> haslersn: builtins.fetchGit / builtins.fetchTarball
tzemanovic has joined #nixos
<haslersn> i.e. is there something like (import fetchgit { ... })
<{^_^}> [nixpkgs] @dtzWill opened pull request #46452 → zsh: apply upstream fix from 5.6.1 → https://git.io/fAanp
<elvishjerricco> haslersn: Yep. You can freely do `import (builtins.fetchGit { ... })`
<haslersn> Ah thanks, I had missing parentheses after import
<{^_^}> [nixpkgs] @nrdxp closed pull request #46121 → kakoune-lsp-client: init 5.2.1 → https://git.io/fA0xH
<{^_^}> [nixpkgs] @Infinisil opened pull request #46453 → [HACK] haskellPackages.shellFor: Fix ghc calls → https://git.io/fAacf
<haslersn> Is there a way to use fetchurl or fetchGit without specifying sha256 (such that it can always take the master branch)?
<elvishjerricco> haslersn: `builtins.fetchGit "ssh://git@github.com/owner/repo"` will just get `master`, and it'll cache it for an hour in `~/.cache/nix` (remember `sudo` will make this `root`'s ~). You can also do `builtins.fetchTarball "https://github.com/owner/repo/archive/master.tar.gz"` and get the same effect. I believe you can also instruct fetchGit to use a different branch but I forget how
sigmundv has joined #nixos
Edes has quit [Ping timeout: 252 seconds]
<{^_^}> [nixpkgs] @toonn opened pull request #46454 → ranger: 1.9.1 -> 1.9.2 → https://git.io/fAacq
<haslersn> elvishjerricco: That's actually much easier than I thought. I do '(import (fetchGit "https://github.com/haslersn/<reponame>"))' and it just works. Is it the case that import automatically looks for a 'default.nix' file in the tar and imports that?
<elvishjerricco> haslersn: Yea. But you could string interpolate the result of `fetchGit` if you wanted to point to a different file. `import "${builtins.fetchGit ...}/foo.nix"`
<haslersn> Thanks, I just learned stuff within 10 minutes which I spent the whole day on trying to figure out
<elvishjerricco> haslersn: Happy to help :)
joehh has quit [Ping timeout: 240 seconds]
orivej has joined #nixos
cnidario has quit [Remote host closed the connection]
<haslersn> in nikpkgs/.github/CONTRIBUTING.md I read about contributing. However, what are the requirements for a package to be accepted (appart from meeting the formal requirements of the pull request)?
<{^_^}> [nixpkgs] @marsam opened pull request #46455 → wal-g: 0.1.10 -> 0.1.12 → https://git.io/fAacy
mayhewluke has quit [Ping timeout: 240 seconds]
mayhewluke has joined #nixos
<infinisil> haslersn: There aren't any hard requirements for that
<infinisil> Would probably be good for the package not to take away the attribute name of a much more popular package
<haslersn> When fetching from git, must nixpkgs expressions reference a specific commit (tag)?
<haslersn> (In order to be accepted)
<{^_^}> [nixpkgs] @NeQuissimus pushed 4 commits to master: https://git.io/fAacp
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.09 « linux: 4.4.154 -> 4.4.155 »: https://git.io/fAacj
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.09 « linux: 4.9.125 -> 4.9.126 »: https://git.io/fAaCv
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.09 « linux: 4.14.68 -> 4.14.69 »: https://git.io/fAaCJ
<{^_^}> [nixpkgs] @NeQuissimus pushed to release-18.09 « linux: 4.18.6 -> 4.18.7 »: https://git.io/fAaCT
<{^_^}> [nixpkgs] @NeQuissimus pushed 3 commits to release-18.03: https://git.io/fAaCI
<elvishjerricco> haslersn: I'd say yes
Guanin_ has quit [Ping timeout: 246 seconds]
<haslersn> I thought so. Otherwise developers could changer their package arbitrarily after it has been accepted.
Dedalo has joined #nixos
<haslersn> Needless to say, it wouldn't be pure
rprije has joined #nixos
thc202 has quit [Ping timeout: 244 seconds]
__monty__ has quit [Quit: leaving]
philippD has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jasongrossman has joined #nixos
sbdchd has quit [Remote host closed the connection]
goibhniu has quit [Ping timeout: 240 seconds]
wpcarro has joined #nixos