Acou_Bass has quit [(Ping timeout: 248 seconds)]
ison111 has joined #nixos
joehh has quit [(Ping timeout: 258 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] cransom closed pull request #30550: Netdata version bump and module permission fix (master...netdata) https://git.io/vdQaJ
NixOS_GitHub has left #nixos []
<cransom> LnL: thanks for the eyes on 30550. since netdata has some fixes coming fairly soon, i'll re-open when they land and it will be less hacky.
Acou_Bass has joined #nixos
<freeman42x> any good NixOS GUI alternative for gnome-system-monitor ? it is buggy - it won't open the resources tab
<disasm> anyone seen setting up tmpfiles hang on nixos-rebuild
taktoa has quit [(Quit: taktoa)]
taktoa has joined #nixos
pxc has quit [(Ping timeout: 248 seconds)]
<disasm> htop works great (ncurses gui)
pxc has joined #nixos
scribbler has quit [(Remote host closed the connection)]
scribbler has joined #nixos
jgertm has quit [(Ping timeout: 258 seconds)]
erictapen has quit [(Ping timeout: 246 seconds)]
acowley_away is now known as acowley
scribbler has quit [(Remote host closed the connection)]
Guest88545 has quit [(Ping timeout: 246 seconds)]
thomastjeffery has joined #nixos
<thomastjeffery> Hello
<thomastjeffery> Anyone know how to install way-cooler or sway using /etc/configuration.nix ?
himmAllRight17 has quit [(Remote host closed the connection)]
himmAllRight has joined #nixos
<infinisil> disasm: sometimes it's a bit slow, but nothing major
<iqubic> Why does EXWM make a new init file for Emacs?
<thomastjeffery> Is there no equivalent to services.xserver.windowManager.* for Wayland compositors?
csingley has joined #nixos
<iqubic> I mean why does nixos create a new init file thingy for EXWM?
scribbler has joined #nixos
<iqubic> Why not use the existing emacs init file in my user's /home?
<infinisil> iqubic: repeating your question doesn't magically put an answer in people's minds
<iqubic> infinisil: I'm sorry.
<disasm> infinisil: waited 10 mins, rebooted and it works after reboot
mithsv has quit [(Remote host closed the connection)]
mithsv has joined #nixos
<thomastjeffery> By the way, the topic recommends running nix-info, but "nix-info" is not found by nix-shell in NixOS 17.09.
Acou_Bass has quit [(Ping timeout: 248 seconds)]
<thomastjeffery> ...which is strange, because it's in pkgs/top-level/all-packages.nix as nix-info
ris has quit [(Ping timeout: 240 seconds)]
hexamod has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Acou_Bass has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] kini opened pull request #1622: Mention C++14 dependency in the manual. (master...c++14-prerequisite) https://git.io/vddl4
NixOS_GitHub has left #nixos []
pie___ has joined #nixos
pie_ has quit [(Remote host closed the connection)]
hexamod has joined #nixos
S0rin has quit [(Ping timeout: 248 seconds)]
<pie___> i need to apply some patches to some stuff fetched with https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/fetchegg , how can i do that?
hexamod has quit [(Client Quit)]
ryantrinkle has quit [(Ping timeout: 260 seconds)]
<clever> pie___: add it to the patches list witin the derivation
pxc has quit [(Ping timeout: 248 seconds)]
<pie___> clever, is it described somewhere what format this expects?
<clever> patches = [ ./foo.patch ];
scribbler has quit [(Remote host closed the connection)]
S0rin has joined #nixos
<pie___> i mean the patch file, sorry :P
<clever> the standard output of "diff -ur"
<clever> or "git diff"
kkini has joined #nixos
pxc has joined #nixos
<pie___> ok thanks a bunch
* pie___ gives clever a cookie
<pie___> :3 :P
pxc has quit [(Ping timeout: 248 seconds)]
lambdamu has joined #nixos
nh2 has quit [(Ping timeout: 240 seconds)]
lambdamu_ has quit [(Ping timeout: 240 seconds)]
<kkini> amazingly the latest version of RHEL doesn't have a C++14-capable version of GCC... *sigh*
<cransom> kkini: *shocked*
Acou_Bass has quit [(Ping timeout: 248 seconds)]
mbrgm has quit [(Ping timeout: 258 seconds)]
mbrgm has joined #nixos
MP2E has joined #nixos
drakonis has joined #nixos
voiceftp has quit [(Ping timeout: 255 seconds)]
Acou_Bass has joined #nixos
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
tempeh has joined #nixos
dieggsy has quit [(Read error: Connection reset by peer)]
brian242354 has joined #nixos
drakonis has quit [(Read error: Connection reset by peer)]
mkoenig_ has joined #nixos
mkoenig has quit [(Ping timeout: 252 seconds)]
S0rin has quit [(Ping timeout: 240 seconds)]
thomastjeffery has left #nixos ["WeeChat 1.9"]
ryantrinkle has joined #nixos
S0rin has joined #nixos
scribbler has joined #nixos
scribbler has quit [(Ping timeout: 252 seconds)]
brian242354 has quit [(Ping timeout: 260 seconds)]
scribbler has joined #nixos
scribbler has quit [(Remote host closed the connection)]
scribbler has joined #nixos
Nobabs27 has quit [(Quit: Leaving)]
scribbler has quit [(Remote host closed the connection)]
<ldlework> If I have a set, how can I create a new set with the same keys, but with each of the values run through another function??
bfrog has quit [(Quit: WeeChat 1.9.1)]
<clever> nix-repl> lib.mapAttrs (key: value: "${key} = ${value}") { a="1"; b="2"; }
<clever> { a = "a = 1"; b = "b = 2"; }
<clever> ldlework: this
<clever> nix-repl> lib.mapAttrs (key: value: value*10) { a=1; b=2; }
<clever> { a = 10; b = 20; }
<clever> another example
<ldlework> thank you
dbmikus has joined #nixos
<ldlework> :)
<clever> lib.mapAttrsFlatten is another one
scribbler has joined #nixos
<ldlework> how does it differ?
<clever> nix-repl> lib.mapAttrsFlatten (key: value: value*10) { a=1; b=2; }
<clever> [ 10 20 ]
<clever> ldlework: returns a list without any keys
<ldlework> ah
marusich has joined #nixos
dbmikus has quit [(Client Quit)]
dbmikus has joined #nixos
scribbler has quit [(Ping timeout: 240 seconds)]
Mateon2 has quit [(Ping timeout: 248 seconds)]
<andrewrk> in a nix package what do I import to get e.g. `"/nix/store/rww78vdn2rkayrnqsjl8ib5iq2vfm3sw-gcc-6.4.0/lib/gcc/x86_64-unknown-linux-gnu/6.4.0"`
<andrewrk> as an example to get "/nix/store/yydnhs7migvlbl48wpsxan1yvq2icbr9-glibc-2.25-49/lib" I would use ${stdenv.cc.libc}/lib
<clever> andrewrk: pkgs.gcc.cc
<clever> stdenv.cc is a bash script wrapping gcc
<clever> but stdenv.cc.cc is the real gcc
<clever> andrewrk: what do you need that path for?
<andrewrk> to that specific directory? the one that has crtbegin.o
<clever> why do you need crtbegin.o?
<andrewrk> a compiler that wants to know where the system libc is
<clever> gcc should just find it automatically
<andrewrk> zig cmake configuration line is supposed to have the path in it
<clever> zig?
<clever> ah
<clever> nix-repl> "${stdenv.cc.cc}"
<clever> "/nix/store/hlm2kkh1f1zbcssza8pzhsk2imd7c0h6-gcc-6.4.0"
<andrewrk> I guess I could hard code "${stdenv.cc.cc}/lib/gcc/x86_64-unknown-linux-gnu/6.4.0" ?
<clever> yeah
<andrewrk> clever, dirname $(cc -print-file-name=crtbegin.o)
<andrewrk> gives me the exact correct path
<clever> oh, nice
<andrewrk> does it make sense for that to go in a nix package?
<clever> yeah
<fearlessKim[m]> is pythonPath = [ pkgList] supposed to include the pkgList as buildInputs ?
<ldlework> 🎉 , my plugin enhancement to HM works. I wonder if rycee will accept it or not.
slack1256 has joined #nixos
dbmikus has quit [(Quit: WeeChat 1.9.1)]
Disavowed is now known as thesoup
dbmikus has joined #nixos
thesoup is now known as Disavowed
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] veprbl opened pull request #30597: root: 6.10.04 -> 6.10.08 (master...root_6.10.08) https://git.io/vddua
NixOS_GitHub has left #nixos []
acowley is now known as acowley_away
<andrewrk> clever, how would I run that command in a cmakeFlags = [ ... ] ?
<clever> andrewrk: preConfigure = ''
<clever> cmakeFlags="$cmakeFlags $(dirname $(cc -print-file-name=crtbegin.o))"
<clever> '';
<clever> that will append it to the bash variable at build time, rather then doing it at eval time
<andrewrk> thanks
marusich has quit [(Ping timeout: 252 seconds)]
<adisbladis> infinisil: Cool! Any drawbacks so far?
<andrewrk> when creating a nix package: /nix/store/rww78vdn2rkayrnqsjl8ib5iq2vfm3sw-gcc-6.4.0/include/c++/6.4.0/cmath:45:23: fatal error: math.h: No such file or directory
<andrewrk> do I need to manually include libstdc++ in the buildInputs?
<andrewrk> I have `glibc` in the buildInputs
schoppenhauer has quit [(Ping timeout: 260 seconds)]
<clever> andrewrk: you need to make sure the compiler obeys $NIX_CFLAGS_COMPILE
<clever> which has the -I paths based on your buildInputs
<andrewrk> this is a normal cmake build
<andrewrk> clever, https://clbin.com/Miktg
<clever> glibc should be in the stdenv, so it will just work
<andrewrk> clever, I removed glibc and now it's working
<andrewrk> thanks
schoppenhauer has joined #nixos
sirkha_ has joined #nixos
sirkha has quit [(Ping timeout: 240 seconds)]
<disasm> this would probably be useless to package since it is updated daily, right? https://github.com/offensive-security/exploit-database
dbmikus has quit [(Ping timeout: 240 seconds)]
Fare has joined #nixos
demego has joined #nixos
<copumpkin> not really useless
<copumpkin> it just wouldn't be up to date
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] andrewrk opened pull request #30598: zig: init at 0.1.1 (master...zig) https://git.io/vddgt
NixOS_GitHub has left #nixos []
<andrewrk> thanks for helping with that ^ clever
jluttine has quit [(Quit: WeeChat 1.7.1)]
<ldlework> clever infinisil LnL rycee check this out, https://github.com/rycee/home-manager/pull/100 I added plugin support to HM
endforma1 has joined #nixos
<ldlework> It was super easy too
<ldlework> And its by farrrrrrrrr the most elegant way to do it
<ldlework> Trying to do it from _within_ the modules of the derivation itself is madness.
<ldlework> But by modding HM itself, boom super simple
<ldlework> And no crufty UX for the end user whatsoever
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/5da5af56e1 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
jluttine has joined #nixos
slack1256 has quit [(Remote host closed the connection)]
noobly has joined #nixos
<noobly> any scheme hackers here? I'm trying to run through The Little Schemer but am having trouble with racket
<noobly> more specifically, having drracket or similar would be nice but I couldn't find it in nix pkgs
<noobly> but I recall having it working months ago
<pie___> anyone remeber offhand what provides GL/gl.h?
<pie___> mesa?
jluttine has quit [(Client Quit)]
jluttine has joined #nixos
noobly has quit [(Quit: Page closed)]
Ridout has quit [(Quit: Lost terminal)]
jluttine has quit [(Quit: WeeChat 1.7.1)]
jluttine has joined #nixos
jluttine has quit [(Client Quit)]
jluttine has joined #nixos
Oida has quit [(Ping timeout: 255 seconds)]
Oida has joined #nixos
<andrewrk> pie___, I think it is mesa_noglu
<andrewrk> at least, for my opengl project I use these: mesa_noglu, epoxy, xlibs.libX11
<pie___> well, "mesa" worke
<ldlework> Is there a function that forces evaluation?
<ldlework> I just realized nothing causes this to get evaluated, https://gist.github.com/dustinlacewell/de7a9fb2dcf91734ca6ca071e36ab3c4
<Li[m]1> iv just ditched pulseaudio :D
<Li[m]1> found this which I havent yet found in the tree https://github.com/Arkq/bluez-alsa
<pie___> any idea what runtime im missing?:
<pie___> main.cpp:(.text+0xa6f): undefined reference to `QDBusConnection::sessionBus()'
<pie___> i have qt48Full installed...
<pie___> *in buildInput
<pie___> *in buildInputs
Guanin has quit [(Ping timeout: 248 seconds)]
Guanin has joined #nixos
<andrewrk> pie___, maybe the project depends on a newer/older qt?
<pie___> no im pretty sure qt4 is right
<clever> qt5.qtbase.dev 2,541 x /nix/store/vv5by93zr05xv69hnp4nl9anl57j3n6g-qtbase-5.8.0-dev/include/QtDBus/qtdbusglobal.h
<clever> pie___: it looks like its only a qt5 thing
<pie___> looks like it should be in 4?
<clever> yeah
<ldlework> if I have an Option like this, https://gist.github.com/dustinlacewell/2c06287a587f33a3a8a7459343f1816d which produces an attrset of source-filename -> target-filename, how can I in the config then do something with each attribute such as running a line like this for each? home.file."the output file".source = build { source="the input file"; };
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/5da5af56e1 (from 6 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<ldlework> hmm
voiceftp has joined #nixos
proteusguy has quit [(Remote host closed the connection)]
ma27 has joined #nixos
csingley has quit [(Ping timeout: 240 seconds)]
Kingsquee has joined #nixos
mbrgm has quit [(Ping timeout: 240 seconds)]
mbrgm has joined #nixos
mbrgm has quit [(Changing host)]
mbrgm has joined #nixos
tempeh has quit [(Ping timeout: 248 seconds)]
<jluttine> are there instructions on how to create a patch file with git for nix packaging patches list?
<yurrriq> LnL, puffnfresh, et al.: Turns our remote building is broken on my personal machine with nix-daemon too.
<yurrriq> *out
Mateon2 has joined #nixos
<yurrriq> I even tried docker save/loading the old lnl7/nix:ssh image my personal machine has to no avail.
Arcaelyx has quit [(Read error: Connection reset by peer)]
<yurrriq> Should I even use nix-daemon? It seems to cause me a fair amount of trouble and I’m the only user on both systems..
Arcaelyx has joined #nixos
<ldlework> I have an Option which produces a list of derivations. The derivations do not output any content to write to $out, etc. How can I get this list to evaluate?
jb55 has quit [(Ping timeout: 240 seconds)]
<ldlework> Right now I am rendering the list to a string and writing it out to a random file, but I don't need this...
pie___ has quit [(Read error: Connection reset by peer)]
pie_ has joined #nixos
<yurrriq> Aside: I’m trying to push for Nix adoption at work, if for nothing other than building our Docker images in a CI pipeline. Are there any good guides for running your own (private) cache? We could put it on our VPN so with doesn’t need to be an issue.
<yurrriq> jluttine: nix patches are just normal patches but you maybe need to pass -p n depending on what your file tree looks like
<vaibhavsagar> yurrriq: AFAIK any machine running nix-serve can act as a binary cache: https://github.com/edolstra/nix-serve
<yurrriq> I do something like this IIRC: git —no-pager diff branch >foo.patch
<yurrriq> vaibhavsagar: awesome, thanks.
mbrgm has quit [(Ping timeout: 248 seconds)]
mbrgm has joined #nixos
<yurrriq> 👍
odi_ has quit [(Ping timeout: 246 seconds)]
demego has quit [(Ping timeout: 258 seconds)]
<LnL> yurrriq: how are you configuring the build-hook, etc.?
ma27 has quit [(Ping timeout: 240 seconds)]
<yurrriq> LnL: I’ve tried the bootstrap script and also specifying the remote machine in darwin-configuration.nix
leat has quit [(Read error: Connection reset by peer)]
<yurrriq> I get “ssh can’t connect” errors, but am able to ssh nix-docker-build-slave
demego has joined #nixos
FRidh has joined #nixos
leat has joined #nixos
hotfuzz_ has joined #nixos
hotfuzz has quit [(Ping timeout: 246 seconds)]
<MichaelRaskin> noobly: package «racket» has drracket, and it seems to start OK for me.
mbrgm has quit [(Ping timeout: 248 seconds)]
<Fare> MichaelRaskin, hi!
mbrgm has joined #nixos
<MichaelRaskin> noobly: nix-shell -p racket --run drracket
<MichaelRaskin> Fare: Hello.
p4cman has joined #nixos
<MichaelRaskin> Do you still insist Common Lisp is suitable for shell-like scripting and beyond?
demego has quit [(Ping timeout: 248 seconds)]
Arcaelyx_ has joined #nixos
<MichaelRaskin> Fare: (if yes, I will probably write an email with some questions)
Arcaelyx has quit [(Ping timeout: 260 seconds)]
kiloreux__ has joined #nixos
ertes has quit [(Ping timeout: 255 seconds)]
kiloreux has joined #nixos
endforma1 has quit [(Ping timeout: 240 seconds)]
leat has quit [(Quit: WeeChat 1.9.1)]
pie_ has quit [(Ping timeout: 260 seconds)]
<nixo[m]> MichaelRaskin: why not?
<hyper_ch> MichaelRaskin: you handle lots of bug reports, right?
gilligan has joined #nixos
<andrewrk> when I run steam: mkdir: cannot create directory ‘/nix/store/1d33k248c4k72icgj4q6rxkwggvp2ghv-steam-fhs/steamrt/pinned_libs_32’: Read-only file system
marusich has joined #nixos
<andrewrk> anyone know the fix?
iqubic_ has joined #nixos
iqubic has quit [(Read error: Connection reset by peer)]
MP2E has quit [(Remote host closed the connection)]
zzamboni1 has joined #nixos
<clever> andrewrk: once something in the store has been built, its read-only and can never be modified
ylwghst has joined #nixos
<sphalerite> andrewrk: a bit heavy-handed unfortunately but iirc removing .local/share/Steam fixes it
<sphalerite> There's probably a less painful fix, but trying to reason with proprietary software has never been fun...
teej has joined #nixos
marusich has quit [(Ping timeout: 252 seconds)]
marusich has joined #nixos
<MichaelRaskin> hyper_ch: not really many
<hyper_ch> no worries :) got already answered
Ivanych has joined #nixos
leat has joined #nixos
<MichaelRaskin> nixo[m]: Well, depends on how far you want to go beyond the primitive stuff. SBCL signal handling is more complicated than bash signal handling, for example. And Ctrl-c is a signal.
zzamboni1 has quit [(Quit: Leaving.)]
MichaelRaskin has quit [(Quit: MichaelRaskin)]
zzamboni has joined #nixos
<nixo[m]> MichaelRaskin: fair enough
zzamboni has quit [(Client Quit)]
<ylwghst> j /#sway
hotfuzz_ is now known as hotfuzz
zzamboni has joined #nixos
zzamboni has quit [(Ping timeout: 248 seconds)]
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vddX2
<NixOS_GitHub> nixpkgs/master 68ed8f6 Vincent Laporte: ocamlPackages.camomile: 0.8.5 -> 0.8.6
NixOS_GitHub has left #nixos []
<LnL> yurrriq: I _still_ have not tested it, but looking at the script I would expect it to work with sudo $(cat .../env) nix-build ...
zzamboni has quit [(Ping timeout: 240 seconds)]
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 2 new commits to master: https://git.io/vdd1U
<NixOS_GitHub> nixpkgs/master b244e57 Frederik Rietdijk: python.pkgs.django: make gdal support optional
<NixOS_GitHub> nixpkgs/master 7f43dd3 Frederik Rietdijk: Merge pull request #30254 from FRidh/django-gdal...
NixOS_GitHub has left #nixos []
<hyper_ch> any systemd unit-creation gurus here? :)
goibhniu has joined #nixos
ssmike has joined #nixos
zzamboni has quit [(Ping timeout: 260 seconds)]
viric has joined #nixos
ssmike has quit [(Client Quit)]
ssmike has joined #nixos
zzamboni has joined #nixos
<infinisil> I have done a few, what do you want?
<infinisil> hyper_ch: ^^
<hyper_ch> infinisil: well, for some reasons, zsf send | recevie to external usb fails after about 100GB
<hyper_ch> so I thought I just attach the external usb 3 drive as mirror - that works fine
<hyper_ch> however, when powering down, and later powering up again, it's set to unavailable and if I set it to online, it mostly starts resilvering everything
<hyper_ch> so I thought, I write a systemd unit file that will set it to offline before powering off the notebook... but for some reason it doesn't properly work
<hyper_ch> the stop script works fine when trigered manually
zzamboni has quit [(Ping timeout: 240 seconds)]
<hyper_ch> but for some reasons it doesn't when I power down the notebook
Acou_Bass has quit [(Ping timeout: 240 seconds)]
zzamboni has joined #nixos
Guanin has quit [(Remote host closed the connection)]
<infinisil> Hmm..
nschoe has joined #nixos
<infinisil> hyper_ch: Have a look at `man systemd.special`
<hyper_ch> or how could I specify to run as soon as shutdown command is triggered?
<infinisil> shutdown.target: Services that shall be terminated on system shutdown shall add Conflicts= and Before= dependencies to this unit for their
<infinisil> service unit, which is implicitly done when DefaultDependencies=yes is set (the default).
<rnhmjoj[m]> `note: currently hard linking saves -14.29 MiB` Nice
zzamboni has quit [(Ping timeout: 240 seconds)]
Acou_Bass has joined #nixos
zzamboni has joined #nixos
<infinisil> lol, could that mean that pretty much every file is different and the hardlinks themselves take up space
<infinisil> hyper_ch: Oh, but the thing you're doing with bin/true is pretty weird
<hyper_ch> those 14megs really make the difference ;)
<hyper_ch> infinisil: actaully not... it needs an execstart
<hyper_ch> so you just run itas it returns true
<Dezgeg> I think it rather just doesn't calculate it very accurately (probably when some other apps are creating/deleting files at the same time)
<hyper_ch> and leave it running
<infinisil> Why not trigger it before shutdown?
<infinisil> Something with zfs.target
zzamboni has quit [(Ping timeout: 248 seconds)]
<infinisil> Maybe After=zfs.target could work, not sure though
ssmike has quit [(Ping timeout: 240 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/e09f070951 (from 17 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
<infinisil> Oh, BindsTo sounds better actually
nix-gsc-io`bot has quit [(Client Quit)]
<nixo[m]> Hi guys, you probably know about librem-5, do you think it will be easy to run nixos on it?
<infinisil> hyper_ch: See `man systemd.unit` for this stuff
<hyper_ch> yeah, trying different things :)
pxc has joined #nixos
S0rin has quit [(Ping timeout: 260 seconds)]
<infinisil> nixo[m]: I ordered it :D. Not sure about NixOS on it though, I'd think it would be a pain to get it to work, and there's no mobile DE on nixos afaik
<infinisil> it would be pretty dank though and I'd love to try it
S0rin has joined #nixos
<adisbladis> infinisil: Plasma mobile might be able to run
* adisbladis ordered it too
<infinisil> \o/
zzamboni has joined #nixos
ThatDocsLady has joined #nixos
pxc has quit [(Ping timeout: 240 seconds)]
zzamboni has quit [(Client Quit)]
gilligan has quit [(Quit: Leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vddSv
<NixOS_GitHub> nixpkgs/master 26b7a68 Frederik Rietdijk: bitcoinarmory: use buildPythonApplication...
NixOS_GitHub has left #nixos []
xificurC has joined #nixos
<xificurC> hello, I am trying to get spectrwm to work under ubuntu xenial (my work pc). It mostly seems to work (in it right now) but apps installed through nix aren't working. I get "error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory"
<xificurC> any tips what could be the issue?
zzamboni has joined #nixos
zzamboni has quit [(Ping timeout: 246 seconds)]
orivej has joined #nixos
zzamboni has joined #nixos
Piece_Maker has joined #nixos
xificurC has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
sivteck has joined #nixos
zzamboni has quit [(Ping timeout: 248 seconds)]
xificurC has joined #nixos
notdaniel has joined #nixos
Acou_Bass has quit [(Ping timeout: 248 seconds)]
Piece_Maker is now known as Acou_Bass
zzamboni has joined #nixos
thc202 has joined #nixos
<tazjin> NixOps deployments to GCP sometimes get stuck on copying closures for me, does anyone else encounter that?
<tazjin> eventually it will fail with a timeout
<tazjin> just running it over and over again will succeed at some point
hellrazor has joined #nixos
<sphalerite> xificurC: is LD_LIBRARY_PATH set?
zzamboni has quit [(Ping timeout: 255 seconds)]
xificurC has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
xificurC has joined #nixos
<hyper_ch> infinisil: adisbladis: waiting for your wiki entry on how to get plasma/kde running on it ;9
sivteck has quit [(Quit: user missing.)]
<adisbladis> :3
zzamboni has joined #nixos
<adisbladis> I'd be pretty happy just using nix on whatever comes shipped on the device
sivteck has joined #nixos
<hyper_ch> I won't be happy without a wiki entry ;)
<goibhniu> updating your phone, laptop and server farm at the same time with NixOps would be dreamy :D
sivteck has quit [(Client Quit)]
<adisbladis> goibhniu: I'll be in my bunk.
<goibhniu> lol
zzamboni has quit [(Ping timeout: 248 seconds)]
<infinisil> OHh that would be nice
sivteck has joined #nixos
zzamboni has joined #nixos
xificurC has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
orbekk1 has quit [(Remote host closed the connection)]
xificurC has joined #nixos
orbekk1 has joined #nixos
xificurC has quit [(Client Quit)]
xificurC has joined #nixos
sivteck has quit [(Client Quit)]
xificurC has quit [(Client Quit)]
zzamboni has quit [(Ping timeout: 248 seconds)]
zetok has quit [(Ping timeout: 252 seconds)]
zzamboni has joined #nixos
zetok has joined #nixos
sivteck has joined #nixos
sivteck has quit [(Client Quit)]
zzamboni has quit [(Quit: Leaving.)]
<clever> goibhniu: i do have 2 of my netbooks managed by nixops
<hyper_ch> how many netbooks do you have?
sivteck has joined #nixos
<goibhniu> nice :D
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mimadrid opened pull request #30600: aria2: 1.32.0 -> 1.33.0 (master...update/aria2-1.33.0) https://git.io/vdd5h
NixOS_GitHub has left #nixos []
__Sander__ has joined #nixos
sivteck has quit [(Client Quit)]
zzamboni has joined #nixos
sivteck has joined #nixos
<clever> hyper_ch: just a pair of matching eeepc 701's
<hyper_ch> aren't they like ancient?
<clever> yeah
<hyper_ch> :)
sivteck has quit [(Client Quit)]
<hyper_ch> I'll convert my homeserver to nixos as soon as I can get rt-ps to run on it.... sounds like I need to have a look at nixops
ma27 has joined #nixos
* etu will convert his homeserver to nixos the day archlinux breaks too much or when he buys a new homeserver
<tazjin> https://nixos.org/nixos/manual/options.html#opt-docker-containers <- what is this option for? looking at the source for it doesn't give me much more info
sivteck has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
sivteck has quit [(Client Quit)]
ssmike has joined #nixos
deliciousmayo has joined #nixos
sivteck has joined #nixos
erictapen has quit [(Read error: Connection reset by peer)]
zzamboni has joined #nixos
<clever> tazjin: at a glance, it looks like it will only do something if there is a reference to system.build.toplevel-docker
<clever> tazjin: and the code doesnt even exist in the latest master
<tazjin> clever: yeah it seems to have been some short-lived experiment / POC
<tazjin> in fact the commit message says it was a POC
<clever> yeah
zzamboni has quit [(Client Quit)]
<clever> and the fact that the option was just docker-containers, without any of the normal prefixes
sivteck has quit [(Ping timeout: 258 seconds)]
<deliciousmayo> hi, I'm a bit confused, how would I go about installing a Haskell package (executable), that is not available on hackage? Would I have to create a new derivation and run all the cabal/stack build stuff there and copy the executable somewhere on my PATH? Or is this a bad idea, and I should just use the generic way of building and putting everything in ~/.local/bin?
<clever> deliciousmayo: if you make a derivation using cabal2nix, you can then install it with nix-env, and it will be available in PATH
erictapen has joined #nixos
<deliciousmayo> and if I'd want in available globaly and install through configuration.nix? Or is this a bad idea in general?
<clever> deliciousmayo: then you can just load it in configuration.nix and pop it into systemPackages
zzamboni has joined #nixos
zzamboni has quit [(Client Quit)]
<clever> deliciousmayo: environment.systemPackages = [ (pkgs.haskellPackages.callPackage ./foo.nix {}) ]; on the result of cabal2nix
* clever heads to bed
<deliciousmayo> ah, ok, thanks a lot, this makes sense
Neo-- has joined #nixos
<Mic92> does somebody else has experienced more crashes with firefox 56?
ylwghst has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 2 new commits to master: https://git.io/vddb2
<NixOS_GitHub> nix/master 3294070 Keshav Kini: Mention C++14 dependency in the manual....
<NixOS_GitHub> nix/master 311b590 Eelco Dolstra: Merge pull request #1622 from kini/c++14-prerequisite...
NixOS_GitHub has left #nixos []
zzamboni has joined #nixos
Acou_Bass has quit [(Ping timeout: 258 seconds)]
Acou_Bass has joined #nixos
ylwghst has joined #nixos
nix-gsc-io`bot has joined #nixos
zzamboni has quit [(Ping timeout: 240 seconds)]
<nix-gsc-io`bot> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/7f43dd3b3b (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
sigmundv has joined #nixos
datakurre has quit [(Remote host closed the connection)]
zzamboni has joined #nixos
jensens has joined #nixos
orivej has quit [(Ping timeout: 246 seconds)]
FRidh has quit [(Ping timeout: 248 seconds)]
Piece_Maker has joined #nixos
FRidh has joined #nixos
Acou_Bass has quit [(Ping timeout: 240 seconds)]
Piece_Maker is now known as Acou_Bass
zzamboni has quit [(Client Quit)]
<ertes-w> is there any way to override an mkForce in a module?
<ertes-w> particular case: <nixpkgs/nixos/modules/profiles/installation-device.nix>
<ertes-w> it mkForces services.nixosManual.enable to true
<fpletz> ertes-w: you can use mkOverride with a priority lower than 50: https://github.com/NixOS/nixpkgs/blob/master/lib/modules.nix#L487
HappyEnte has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<ertes-w> ah, i see
<ertes-w> thanks
HappyEnte has joined #nixos
scribbler has joined #nixos
zzamboni has joined #nixos
MercurialAlchemi has joined #nixos
<LnL> there are nixos modules that use mkForce?
HappyEnte has quit [(Client Quit)]
HappyEnte has joined #nixos
scribbler has quit [(Remote host closed the connection)]
zzamboni has quit [(Ping timeout: 260 seconds)]
ma27 has quit [(Ping timeout: 252 seconds)]
Piece_Maker has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #16685: openrct2: init at 0.0.4 (master...package/openrct2) https://git.io/vKfDa
NixOS_GitHub has left #nixos []
zzamboni has joined #nixos
<jophish> clever: are you around?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] edolstra pushed 2 new commits to master: https://git.io/vddxL
<NixOS_GitHub> nix/master 6e5165b Dan Peebles: Shift Darwin sandbox to separate installed files...
<NixOS_GitHub> nix/master f31c66d Eelco Dolstra: Merge pull request #1616 from copumpkin/separate-darwin-sandbox...
NixOS_GitHub has left #nixos []
<jophish> Do you know if something like this still exists?
jensens has quit [(Ping timeout: 240 seconds)]
Acou_Bass has quit [(Ping timeout: 248 seconds)]
Piece_Maker is now known as Acou_Bass
<jophish> armv7l nix bootstrap tarball
zzamboni has quit [(Ping timeout: 248 seconds)]
ison111 has quit [(Ping timeout: 240 seconds)]
zzamboni has joined #nixos
scribbler has joined #nixos
oahong has quit [(Ping timeout: 264 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nix] Munksgaard opened pull request #1624: Add 'Uninstalling Nix' section to the documentation (master...add-uninstall-section-to-documentation) https://git.io/vddxK
NixOS_GitHub has left #nixos []
scribbler has quit [(Remote host closed the connection)]
<Mic92> nixops does not handle ec2 vpc's at the moment?
oahong has joined #nixos
oahong has quit [(Changing host)]
oahong has joined #nixos
zzamboni has quit [(Ping timeout: 246 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-unstable advanced to https://github.com/NixOS/nixpkgs/commit/b17ec549a1 (from 16 hours ago, history: https://channels.nix.gsc.io/nixpkgs-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz closed pull request #30591: musl: 1.1.16 -> 1.1.17, build with stack protector (master...update/musl-1.1.17) https://git.io/vd5p5
NixOS_GitHub has left #nixos []
ma27 has joined #nixos
zzamboni has quit [(Ping timeout: 240 seconds)]
jensens has joined #nixos
ylwghst has quit [(Quit: Lost terminal)]
ma27 has quit [(Ping timeout: 258 seconds)]
sigmundv__ has joined #nixos
<guillaum2> Stupid question, but how do I set a default target in a shell.nix? (To avoid specifying it every time with -A)
<aminechikhaoui> Mic92: I'm working on a PR for that https://github.com/NixOS/nixops/pull/697 but unfortunetly got pulled in other work
<aminechikhaoui> but will soon get back to it to finish it
<hyper_ch> infinisil: you're a nixops guru, right?
<Mic92> aminechikhaoui: Just saw that. Looked like a lot of work you did there. For my use case creating it manually is good enough for the moment.
<aminechikhaoui> Mic92: yeah it's basically most of the VPC related resources plus few improvements to state/config diff handling. Would be nice if I can finish that soon ;)
FRidh has quit [(Ping timeout: 240 seconds)]
zzamboni has joined #nixos
kiloreux_ has joined #nixos
kiloreux has quit [(Ping timeout: 240 seconds)]
kiloreux__ has quit [(Ping timeout: 240 seconds)]
kiloreux has joined #nixos
simukis has joined #nixos
zzamboni has quit [(Ping timeout: 252 seconds)]
<nixo[m]> infinisil: ordered it too. I was hoping to get nixos on it, i'd love to sync configs between server/home/mobile
ma27 has joined #nixos
zzamboni has joined #nixos
<Mic92> aminechikhaoui: do you know how I can assign an elastic ip to an instance, which requires a VPC?
jensens has quit [(Ping timeout: 240 seconds)]
fendor has joined #nixos
<Mic92> aminechikhaoui: ok looks like I also need your PR for that
<Mic92> aminechikhaoui: would you consider it usable at the moment?
zzamboni has quit [(Ping timeout: 252 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] loskutov opened pull request #30601: scala: 2.12.3 -> 2.12.4 (master...scala-2.12.4) https://git.io/vddhr
NixOS_GitHub has left #nixos []
<infinisil> hyper_ch: Heh, I wouldn't say so, I just started actually using it a few days ago
<hyper_ch> infinisil: can you deploy it to any server.. like Ihave a root server in a dc
<hyper_ch> or does it only work with stuff like vbox, ec2, azure?
<infinisil> Well you need nixos on it and root
<hyper_ch> so why then use nixops if you can just put a configuration.nix on that server?
zzamboni has joined #nixos
<infinisil> Because it's annoying to always ssh to the server, do rebuild there. And my local machines config is tightly linked to the server, with nixops i can change the 2 configs at the same time
<Mic92> hyper_ch: you only need to build certain packages ones
<hyper_ch> that sounds interesting... I guess I'd have to give it a try then
<infinisil> Another benefit is that the server is really shitty ($5/month), so it takes a ton of time to build the system config there
<infinisil> with nixops it gets built locally
<infinisil> I know I could use the --build-host option but still
<hyper_ch> $5/M servers are great
<Profpatsch> garbas: There’s a PR on nixos-hardware which should be ready for merging: https://github.com/NixOS/nixos-hardware/pull/25
<mbrock> what does it mean when nix-instantiate prints out a path suffixed with "!bin"?
mortum5 has joined #nixos
<adisbladis> hyper_ch: You can make sure that a whole deployment is consistent for one.
<Profpatsch> garbas: I don’t have the needed permissions for that repo.
<hyper_ch> infinisil: so did you already write a starter's guide to NixOps in the wiki?
<infinisil> hyper_ch: Nah, but it's dead simple tbh
<infinisil> I'll gladly walk you through the very few steps
<hyper_ch> (as is quantum physics for physicists
<infinisil> Heh yeah
<mbrock> I rent a server more powerful than my laptop. Maybe my laptop should be a NixOps slave...
<hyper_ch> infinisil: first still need to get rt-ps running
<hyper_ch> only after that I can concentrate on other things :(
<ma27> Profpatsch: just removed the `WIP` prefix
<infinisil> mbrock Then I'd just use the server as the build host
<Profpatsch> ma27: Ah hi. :)
<ma27> if there;s anything else to be done, just ping me :)
<ma27> hi :)
<mbrock> infinisil: ah yeah, that'd be cool
periklis has joined #nixos
<joko> Hello, I would like to test the building of a Python package, e.g. nix-build -E 'with import <nixpkgs> { }; callPackage ./pkgs/development/python-modules/numpy { blas = pkgs.openblasCompat; }' , could anyone tell me the right way? :)
<joko> The command above mentions "anonymous function at ... called without required argument ‘buildPythonPackage’"
<aminechikhaoui> Mic92: yeah it's kind of usable, of course I won't advise using it for any critical stuff but it should just work
<Mic92> aminechikhaoui: just some benchmarks for my paper
zzamboni has quit [(Quit: Leaving.)]
<infinisil> joko: I think you need the pythons callPackage thing
<aminechikhaoui> Mic92: cool, if you get any issues just drop a comment in the PR or ping me ;)
<infinisil> joko: pythonPackages.callPackage I think
proteusguy has joined #nixos
<joko> infinisil: many thanks, it worked!
zzamboni has joined #nixos
FRidh has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] loskutov opened pull request #30602: scalafmt: fix platforms (master...scalafmt-crossplatform) https://git.io/vdFec
NixOS_GitHub has left #nixos []
zzamboni has quit [(Ping timeout: 248 seconds)]
<srhb> Is nixos-infect still the go-to solution for converting systems?
<infinisil> srhb: I'm using clever's kexec thing
<infinisil> Allows you to change the root fs underneath without another disk
<srhb> That sounds like fun. :-P
<hyper_ch> infinisil: you've used that? how is your experience with it?
<infinisil> It works perfectly, I've used it a few times already
<infinisil> Using it to put ZFS on my DO droplet
<adisbladis> =)
<adisbladis> Nice
<hyper_ch> tried encrypted zfs yet with it? :)
<hyper_ch> what's DO?
<srhb> infinisil: Got a link?
michiel_l has quit [(Ping timeout: 246 seconds)]
<infinisil> hyper_ch: I did not
<hyper_ch> :)
keta_suki has joined #nixos
<srhb> infinisil: Thanks!
<hyper_ch> what a debian droplet?
<srhb> droplet is digitaloceans name for their (smaller?) vms
<Rembane> For all vms
<infinisil> hyper_ch: They don't provide nixos droplets, so you need to use something else to boostrap
<hyper_ch> ok
<infinisil> debian is completely wiped after this guide :)
<hyper_ch> I know that
<etu> hyper_ch: "droplet" is DO language for "vm"
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vdFeh
<NixOS_GitHub> nixpkgs/staging 9f24090 Vladimír Čunát: wt: fixup build by using older boost again...
NixOS_GitHub has left #nixos []
deliciousmayo has quit [(Read error: Connection reset by peer)]
<hyper_ch> why don't they call a vm a vm?
<hyper_ch> oO
mgdelacroix[m] has left #nixos ["User left"]
<etu> Marketing
<etu> I think
ma27 has quit [(Ping timeout: 255 seconds)]
<infinisil> etu: I mean, there's also the whole integration with their other stuff
<infinisil> volumes, private networking
<infinisil> and you can create e.g. 10 same droplets
<infinisil> for load balancing or so
<etu> Yeah, sure
<infinisil> I feel like droplet is a nice name for that, but yeah they're just vms really
<etu> A drop in the digital ocean...
erictapen has quit [(Read error: Connection reset by peer)]
erictapen has joined #nixos
taktoa has quit [(Remote host closed the connection)]
<infinisil> Btw, I met keta_suki today, he's actually studying at the same place as me. clever helped him just 2 days ago with nixos, he's also using home-manager
<infinisil> Like damn, that coincidence
<infinisil> Hi keta_suki!
<keta_suki> infinisil: yeah this totally rocks. hi there
<gchristensen> what part of the world?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] YorikSar opened pull request #30603: chromium: 61.0.3163.100 -> 62.0.3202.62 (master...chromium-update) https://git.io/vdFvi
NixOS_GitHub has left #nixos []
<infinisil> Switzerland
<hyper_ch> infinisil: switzerland?
erictapen has quit [(Read error: Connection reset by peer)]
<infinisil> hyper_ch: I know you're from switzerland too, even living very close to my place ;)
<hyper_ch> you don't know where I live... or do you...
* hyper_ch thinks someone is stalking him
<adisbladis> infinisil: Creepy :O
<infinisil> hyper_ch: You told me before
erictapen has joined #nixos
<fearlessKim[m]> libvirt pyhon bindings name is kinda awkward "libvirt-python-3.6.0" . Wonder if it's worth aliasing to more conventional python-3.6-libvirt
<hyper_ch> infinisil: :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vdFfU
<NixOS_GitHub> nixpkgs/staging 0e339ca Vladimír Čunát: clickhouse: fixup build by using older boost again...
NixOS_GitHub has left #nixos []
<adisbladis> infinisil: Are you spying on other ppl too?!
python476 has joined #nixos
<infinisil> adisbladis: I know your password
<infinisil> It's **************
<adisbladis> infinisil: Noo it's correct-horse-battery-staple
<infinisil> /u/XKCDLinker
<infinisil> ttps://www.xkcd.com/936/
<keta_suki> if you type ur pw, it'll show as stars \s
<adisbladis> :D
michiel_l has joined #nixos
iyzsong has joined #nixos
snikkers has joined #nixos
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
Wizek_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rycee closed pull request #30578: yarn: 1.0.1 -> 1.2.1 (master...update/yarn-1.0.1-to-1.2.1) https://git.io/vd7FP
NixOS_GitHub has left #nixos []
<garbas> Profpatsch: let me merge that PR and check if i can give away permissions
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
TweyII has joined #nixos
TweyII is now known as Guest40858
<garbas> Profpatsch: i think you should have the permissions to merge the PRs now (in nixos-hardware repo)
fendor has quit [(Remote host closed the connection)]
<garbas> i assume you are in nixpkgs committers group which I just gave Write permissions
<joko> I am packaging some py files and I would like to change their interpreter, should I use substituteInPlace or is there something more automated?
civodul has joined #nixos
<Profpatsch> garbas: Thanks!
<symphorien> joko: there is patchShebang
Wizek has joined #nixos
justanotheruser has quit [(Quit: WeeChat 1.7.1)]
adfaure has joined #nixos
<gchristensen> it is so cool how many different people, with no prodding at all, contribute patches to the nix pills
sigmundv__ has quit [(Ping timeout: 240 seconds)]
<gchristensen> and not even a kvetch about it being docboo
<adfaure> Hello, I am building closure (using nix-store --export). So far it works well but I want to export a derivation build from pkgs.buildEnv. Right now, the only way I found to build that env is to activate it (using nix-env -i) and then find the derivation. Is their a more cleaner way ? Thanks for the help!
rui1 has joined #nixos
<rui1> Any easy way to get octave with stuff like the signal package on NixOS?
Wizek_ has quit [(Ping timeout: 240 seconds)]
betaboon has joined #nixos
Guest40858 has quit [(Ping timeout: 255 seconds)]
<infinisil> adfaure: have a look at the --query example section in the nix-store manpage
<infinisil> And nix-instantiate can be used to only make the .drv s
<infinisil> And there's nix-store -q --deriver /nix/store/outputpath to get the .drv to an output
csingley has joined #nixos
pxc has joined #nixos
rui1 has quit [(Quit: WeeChat 1.4)]
pxc has quit [(Ping timeout: 248 seconds)]
infinisil has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
infinisil has joined #nixos
reinzelmann has joined #nixos
ssmike has quit [(Remote host closed the connection)]
ssmike has joined #nixos
<nh2[m]> elvishjerricco: hey, did you get haskell-ide-engine to work in the end in `nix-shell`?
orivej has joined #nixos
erictapen has quit [(Ping timeout: 240 seconds)]
erictapen has joined #nixos
notdaniel has quit [(Quit: Leaving)]
thblt has joined #nixos
reinzelmann has quit [(Quit: Leaving)]
<betaboon> hello. another day another problem to solve: when using nixops to deploy containers to localhost ssh://root@localhost is used. i don't like allowing root-ssh. what are the options? any ideas?
<hyper_ch> what's wrong with root-ssh?
<tilpner> betaboon - You are using nixops to manage the same machine you run nixops on?
<infinisil> betaboon: You need root
<infinisil> and what's so bad allowing root to ssh to itself on localhost :P
python476 has quit [(Read error: Connection reset by peer)]
rui1 has joined #nixos
erictapen has quit [(Read error: Connection reset by peer)]
<rui1> I'm on NixOS, using i3, and having some important problem
<rui1> When I choose the nvidia driver explicitly and reboot, the screen remains black
<rui1> When I choose another (leave it as default), it works, BUT
<rui1> then I can't start most programs
<rui1> So, when I try to run, e.g, chromium, I get:
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh opened pull request #30606: Python: pythonModule (master...pythonmodule) https://git.io/vdFmS
NixOS_GitHub has left #nixos []
<rui1> symbol lookup error: /run/opengl-driver/lib/libGL.so.1: undefined symbol: drmGetDevices2
<rui1> Same with many other programs
<rui1> Now, if from that session I nixos-rebuild switch to nvidia, they start working
<tilpner> I have no idea what that error is about, but blackscreen on X-start with Nvidia is a known problem. Please try https://github.com/NixOS/nixpkgs/issues/24711#issuecomment-327552956
<rui1> even though if I run nvidia-settings it tells me I am not using the nvidia driver
<rui1> tilpner: thanks! Opening that
<tilpner> That might get you to a state where you can start X, but it will leave your GPU running permanently
<tilpner> There are kernel options that improve on this, without requiring the sessionCommands workaround. Looking for the link
<tilpner> Oh, I just assumed you're on a Bumblebee laptop, sorry. Are you?
<rui1> No
<tilpner> s/Bumblebee/Optimus/
<rui1> I'm on a desktop PC
<rui1> I had this problem for some time but I just didn't use nvidia and it was all great
erictapen has joined #nixos
<rui1> Now, programs stopped working with the error I just stated
<rui1> and nixos-switching to nvidia makes them work until I reboot and actually switch, where it fails
taktoa has joined #nixos
ssmike has quit [(Remote host closed the connection)]
<rui1> I guess I could go to my year old nixos configuration
ssmike has joined #nixos
<tilpner> Using "acpi_osi=!" ''acpi_osi="Windows 2009"'' from https://github.com/Bumblebee-Project/Bumblebee/issues/764 gets rid of the freeze for me, but those values are device-specific
<tilpner> (Apparently...)
<tilpner> I don't know what component uses them (bumblebee, nvidia?), so some of that might work for you too
<tilpner> sphalerite - Maybe you know more?
ma27 has joined #nixos
ma27 has quit [(Client Quit)]
ma27 has joined #nixos
<sphalerite> I don't know if there are desktop optimus setups but it does sound similar to the issue I was having
pie_ has joined #nixos
<gchristensen> garbas: you might want to join #nixos-dev :)
<garbas> gchristensen: oh, i didn't know that existed :)
<gchristensen> I thought you might not!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix pushed 2 new commits to master: https://git.io/vdFOA
<NixOS_GitHub> nixpkgs/master 67d56ea Lancelot SIX: pythonPackages.django: 1.11.5 -> 1.11.6...
<NixOS_GitHub> nixpkgs/master fea9b13 Lancelot SIX: Merge pull request #30383 from lsix/djanog_1_11_6...
NixOS_GitHub has left #nixos []
<adfaure> infinisil: Thanks, nix-instantiate do want I want thanks !
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] lsix pushed 1 new commit to release-17.09: https://git.io/vdF3I
<NixOS_GitHub> nixpkgs/release-17.09 402fde8 Lancelot SIX: pythonPackages.django: 1.11.5 -> 1.11.6...
NixOS_GitHub has left #nixos []
Guest40858 has joined #nixos
<guillaum2> Is it considered bad to write a derivation where the version is passed as an argument (with a default value). This way, overriding version number is as simple as ".override({version = "xxx"})" instead of the complexe overrideAttrs needed because we also need to override name, src and possibly sourceRoot.
<gchristensen> certainly unorthodox
<disasm> just so I understand this correctly, propagatedBuildInputs are only propagated to what includes them, not what includes, them that includes, them, right?
<disasm> so if a has propatagedBuildInput x and b has buildInput a and c has buildInput b a and b will have x available but not c.
Neo-- has quit [(Ping timeout: 258 seconds)]
<guillaum2> gchristensen: unorthodox, but do you see any drawback? Will my pull request with this kind of change will be accepted?
Kingsquee has quit [(Quit: https://i.imgur.com/qicT3GK.gif)]
<gchristensen> guillaum2: I would probably ask you to change it back, but it also probably depends on who is reviewing your PR
<disasm> I have seen some weird ones (although not in nixpkgs) where version and sha are passed so a user can easily update the package, but I wouldn't recommend it.
<guillaum2> disasm: ha, yes, I did not thought about sha.
<gchristensen> it is a very brittle construct
<guillaum2> I'm sad that there is no way to reevaluate a derivation with a new value inside it.
<infinisil> guillaum2: what do you mean?
<spacefrogg> guillaum2: But there is. You can use overrideDerivation
<gchristensen> there is, overrideAttrs does that, its just the variables are dereferenced before you get to it
<guillaum2> gchristensen: yes, that's the issue. spacefrogg: I'll have a look.
<infinisil> Ahh yeah
<disasm> infinisil: is my understanding of propagatedBuildInputs correct above?
Guest40858 is now known as TweyII
TweyII has quit [(Changing host)]
TweyII has joined #nixos
<infinisil> disasm: Hold on, parsing your sentences
<guillaum2> spacefrogg: overrideDerivation documentation says: "A package's attributes are evaluated *before* being modified by the overrideDerivation function."
<spacefrogg> yes. you'd have to override the complete src attribute.
<infinisil> disasm: I think that's correct yeah
<LnL> disasm: if I read it correctly, yes
* infinisil goes to look for the source
<disasm> I thought they were propagated infinitely, but this PoC proves otherwise :)
<LnL> except if the store path of c ends up in b in some other way
<infinisil> disasm: I mean you do have x which is propagated "infinitely", right?
<disasm> infinisil: nope
<infinisil> How not?
adfaure has quit [(Quit: Page closed)]
<disasm> `nix-shell -A c` then `which lspci`
<infinisil> Um, my internet is kinda dead right now, can't open it
<disasm> err I broke the gist
jushur has quit [(Quit: The Borg joined forces with Skynet, Resistance is futile! Uploading has begun!)]
<disasm> if you want to propagate it though, in b you can add propagatedBuildInputs = a.propagatedBuildInputs;
<disasm> then `c` can access `lspci`
<infinisil> wait, so this propagation only goes 1 level deep??
<disasm> that's what I'm seeing
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vdFZY
<NixOS_GitHub> nixpkgs/master eba0885 Joachim Fasting: tor-browser-bundle-bin: 7.0.6 -> 7.0.7
<NixOS_GitHub> nixpkgs/master a09d626 Joachim Fasting: tor-browser-bundle-bin: support installing extensions...
NixOS_GitHub has left #nixos []
<infinisil> I can't really believe that, because python is built open propagatedBuildInputs
<Dezgeg> or in b you set propagatedBuildInputs = [ a ]
<infinisil> upon*
scribbler has joined #nixos
<disasm> oh, yeah, that would work too :)
<infinisil> I'm giving up on trying to understand the source
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus opened pull request #30607: kubernetes: 1.7.8 -> 1.7.9 (master...kube_1_7_9) https://git.io/vdFZu
NixOS_GitHub has left #nixos []
oahong has quit [(Ping timeout: 246 seconds)]
<Dezgeg> that's the general solution actually, propagatedBuildInputs = a.propagatedBuildInputs; doesn't generally work if the attribute doesn't exist
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vdFZ1
<NixOS_GitHub> nixpkgs/master 89dc04f André-Patrick Bubel: electrum: enable plotting support...
<NixOS_GitHub> nixpkgs/master 8341b82 Joachim F: Merge pull request #30589 from Moredread/electrum_mpl...
NixOS_GitHub has left #nixos []
<steveeJ> garbas: any idea why nixpkgs-mozilla installs rls on stable rust?
scribbler has quit [(Ping timeout: 240 seconds)]
<disasm> Dezgeg: yeah, that's much better
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus closed pull request #30601: scala: 2.12.3 -> 2.12.4 (master...scala-2.12.4) https://git.io/vddhr
NixOS_GitHub has left #nixos []
<garbas> steveeJ: i would ask pierron about it. or look who added it
<disasm> so... buildInput vs nativeBuildInput... the main difference is native isn't added to the rpath in resulting executables right?
oahong has joined #nixos
oahong has quit [(Changing host)]
oahong has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to release-17.09: https://git.io/vdFnf
<NixOS_GitHub> nixpkgs/release-17.09 3e1f82d Ignat Loskutov: scala: 2.12.3 -> 2.12.4...
NixOS_GitHub has left #nixos []
csingley has quit [(Quit: WeeChat 1.9.1)]
<steveeJ> garbas: It was probably introduced by bkchr's PR
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vdFn3
<NixOS_GitHub> nixpkgs/master 05ac929 Ignat Loskutov: scalafmt: fix platforms
<NixOS_GitHub> nixpkgs/master a358d92 Tim Steinbach: Merge pull request #30602 from loskutov/scalafmt-crossplatform...
NixOS_GitHub has left #nixos []
<garbas> steveeJ: i suppose there is a way to install rust without all the extensions
nixngo has joined #nixos
<pierron> steveeJ: because it is likely included in the manifest provided by the Rust community.
garbas is now known as garbas|lunch
<infinisil> disasm: I think all *buildInputs shouldn't be included in the binary path by default, because they're only required for building.
<steveeJ> pierron: aren't we overriding the default extensions?
<infinisil> disasm: If you however reference a buildInput in the output, then it's a runtime dependency
ryantrinkle has quit [(Ping timeout: 252 seconds)]
MercurialAlchemi has quit [(Ping timeout: 252 seconds)]
<infinisil> And about native vs non-native, i forgot that part, I've asked that like 3 times before here
<pierron> steveeJ: no, we are not
<nixngo> I just installed nixos on my HPelitebook, I did a 500mb efi partition on /dev/sda1, a 3gb boot partition for the kernels and stuff on /dev/sda2 and a 200+ gb partition for root encrypted with luks all set up and working. my problem is that my system refuses to boot. after mountting everything again i found out that /mnt/boot/efi is empty. I think i need to manually install EFI now but don't know how. grub
<nixngo> is set up in /mnt/boot and was installed propperly. I also found in my boot options that I can, and have to, set a custom boot path. I don't know where it should point to. I'm trying to fix this since days with no success. plz hlp!
<infinisil> nixngo: You ran nixos-generate-config after creating and mounting all filesystems?
<nixngo> writing from my lenovo thinkpad atm which i have beneath.
<nixngo> yes
<steveeJ> pierron: in our environment we have an issue with rls being installed from stable. previously I added in rls from nightly but now it is shadowed by the stable one, which is broken (by design)
<nixngo> and nixinstall went smooth
<nixngo> after configurating the nixos/configuration.nix
<infinisil> nixngo: did you set boot.loader.grub.efiSupport ?
<nixngo> yes
rui1 has quit [(Quit: WeeChat 1.4)]
<infinisil> are the encrypted disks in hardware-configuration.nix under boot.initrd.luks.devices?
<nixngo> yes
<infinisil> And /boot and /boot/efi as well?
<infinisil> Do you have boot.loader.efi.efiSysMountPoint set to "/boot/efi" ?
<infinisil> Default is /boot
erictapen has quit [(Ping timeout: 246 seconds)]
<nixngo> that could be my mistake
<nixngo> i didn't set it
<infinisil> I see, that might be it
<infinisil> You don't need separate partitions for /boot and /boot/efi btw
<nixngo> maybe that is why /boot/efi is empty even after mounting it
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 3 new commits to master: https://git.io/vdFc1
<NixOS_GitHub> nixpkgs/master 4d85689 Dmitry Kalinkin: xxHash: init at 0.6.3.20171018
<NixOS_GitHub> nixpkgs/master ef2fc28 Dmitry Kalinkin: root: 6.10.04 -> 6.10.08
<NixOS_GitHub> nixpkgs/master dd60a06 Joachim F: Merge pull request #30597 from veprbl/root_6.10.08...
NixOS_GitHub has left #nixos []
<betaboon> hyper_ch: what's wrong with root+ssh? I'm paranoid.
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
<infinisil> that is, you can make all of /boot vfat
erictapen has joined #nixos
<hyper_ch> betaboon: then you should remove all network cables and remove the wireless card
<betaboon> tilpner: yes i am trying to manage the same machine that i run on.
<tilpner> betaboon - Is that machine running NixOS?
<betaboon> infinisil: using root is is ofc required. i just didnt expect ssh to be used to go to localhost :P
<infinisil> betaboon: If you don't open port 22, nobody other than your machine has even access
<disasm> maybe I'll just skip native and leave it for later
<betaboon> infinisil: ofc :)
nix-gsc-io`bot has joined #nixos
<betaboon> I'm not complaining ;)
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/fea9b13130 (from 49 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
python476 has joined #nixos
<nixngo> shouldn't I be able to reconfigurate my nixos/configuration.nix after mounting root to /mnt ?
<infinisil> nixngo: You can do as many nixos-installs as you want
<infinisil> It's pretty much the same as nixos-rebuild switch in a running nixos
<nixngo> and do i have to regenerate the config?
<infinisil> nixngo: The generated config is in the filesystem
<infinisil> /mnt/etc/nixos/configuration.nix
<nixngo> for some reason there are only the import dpkgs
<infinisil> nixngo: In this file?
<nixngo> yes
<infinisil> 1 line? o.O
<nixngo> exactly
<infinisil> huh weird, you can just delete it and run nixos-generate-config --root /mnt again
<nixngo> and it took me like 2 hours to configurate the file yesterday
<infinisil> oh lol
<infinisil> well nixos-generate-config doesn't overwrite configuration.nix if it exists, but it does overwrite hardware-configuration.nix
<nixngo> I didnt touch the hardware conf so far
<infinisil> I mean it doesn't just disappear unless you destroyed the file / filesystem
<nixngo> I think there is another problem: HPelitebook laptops have something like a hardcoded efi boot path
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #30563: tzupdate: init at 1.2.0 (+ service) (master...imp/tzupdate) https://git.io/vd7sc
NixOS_GitHub has left #nixos []
<infinisil> Could it be that you didn't have it mounted on /mnt, then ran the generate, then mounted it, and now it's below the mount in a directory
<nixngo> maybe, I will look it up
<nixngo> ty
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vdFCM
<NixOS_GitHub> nixpkgs/master 98c7361 xd1le: idrisPackages.lightyear: 2016-08-01 -> 2017-09-10
<NixOS_GitHub> nixpkgs/master e885fbc Joachim F: Merge pull request #30543 from vyp/upd/idrispackages.lightyear...
NixOS_GitHub has left #nixos []
dbmikus has joined #nixos
<steveeJ> pierron: I don't think it's worth the effort of changing the extension mechanism. when I make a custom derivation just with rls from nightly and mix it with stable rust, rls is not able to do anything because all the crates like std aren't compatible
<nixngo> btw I'm already using nixos on my desktop pc and I'm loving it so far. nix-shell is perfect for my projects! I was using gentoo for the last 10 years because it was the only way for me to develop with lots of different versions of several packages. now its NIXOS ALL THE WAY, but I need to get it running on my HPelite laptop :)
<infinisil> Nice :D
<infinisil> It also took me some time to get it to work on my laptop, but that's mainly because I had no idea about linux in general
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 3 new commits to master: https://git.io/vdFWc
<NixOS_GitHub> nixpkgs/master 717436b Samuel Leathers: gitea: init at 1.2.1
<NixOS_GitHub> nixpkgs/master 66201d4 Samuel Leathers: gitea: add nixos service module
<NixOS_GitHub> nixpkgs/master 3c62474 Joachim F: Merge pull request #30528 from disassembler/gitea...
NixOS_GitHub has left #nixos []
<betaboon> nixngo: just doing the exact same path :D
<betaboon> except the model of laptop ofc xD
<nixngo> betaboon: nice to hear <3
kuznero has joined #nixos
<kuznero> Hi All! How do I control ldconfig when creating a new package ?
iqubic_ has quit [(Remote host closed the connection)]
garbas|lunch is now known as garbas
<kuznero> Should this be enough: `substituteInPlace Makefile --replace ldconfig ${stdenv.cc.libc}/sbin/ldconfig` ?
dbmikus has quit [(Quit: WeeChat 1.9.1)]
dbmikus has joined #nixos
<infinisil> kuznero: Did you try it without? There's a default makefile patcher i think
<kuznero> infinisil: this was just an example, I need to patch custom bash script, not Makefile
<kuznero> I am trying something like this now: --replace "LDCONFIG_COMMAND=\"/sbin/ldconfig\"" "LDCONFIG_COMMAND=\"${stdenv.cc.libc}/sbin/ldconfig\""
<kuznero> But not sure if I escape " correctly
<kuznero> When I am in nix-shell already how do I call to `substituteInPlace` ?
scribbler has joined #nixos
<infinisil> kuznero: Have a look through nixpkgs for ldconfig usages (I use ripgrep for that)
<infinisil> It seems that ldconfig doesn't really work on nixos
<infinisil> i have no idea what that even is, but that's what i got from where ldconfig appears in nixpkgs
mortum5 has quit [(Ping timeout: 248 seconds)]
scribbler has quit [(Ping timeout: 255 seconds)]
taktoa has quit [(Remote host closed the connection)]
<nixngo> do I maybe need to disble fast boot? I also changed the UEFI boot entry to \EFI\BOOT\BOOTX64.EFI maybe this can help, but it is still not booting
<sphalerite> nixngo: yeah I think fast boot is a windows-specific thing
<infinisil> Yeah, and maybe have a look at efibootmgr
<infinisil> efibootmgr -v
<kuznero> Thanks, but is there any way to call substituteInPlace from bash while in nix-shell? I need this for troubleshooting my default.nix
<sphalerite> kuznero: yes, it should just be there
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/402fde8e3a (from 82 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
nix-gsc-io`bot has quit [(Client Quit)]
<kuznero> sphalerite: like a batch script I can just call?
<kuznero> ah, nix
<kuznero> nice
<kuznero> :)
<kuznero> thanks
<sphalerite> kuznero: a shell function
<kuznero> very convenient, thanks
<sphalerite> (see `type substituteInPlace`)
<infinisil> and if you want it in a bare nix-shell, you can use `nix-shell -p stdenv`
<pierron> steveeJ: is that a patching issue, or it is just not yet supposed to work?
<kuznero> sphalerite: it complains about bad substitution in bash, probably because I am using `--replace "LDCONFIG_COMMAND=\"/sbin/ldconfig\"" "LDCONFIG_COMMAND=\"${stdenv.cc.libc}/sbin/ldconfig\""`
<pierron> steveeJ: in the second case you should raise the issue to the person making the manifest, otherwise open an issue against nixpkgs-mozilla, and one of us should investigate more.
<sphalerite> kuznero: fwiw anything ldconfig isn't really going to work with nix's assumptions so unless the build scripts need some output for it the best substitute for it is probably ${coreutils}/bin/true … :)
<sphalerite> or rather nix invalidates ldconfig's assumptions
<nixngo> infinisil: efibootmgr -v gives me "no boot order specified"
<kuznero> sphalerite: I see, will try to switch it off then
mortum5 has joined #nixos
<nixngo> maybe I will try to generate a new conf and run nixos-install again, and this time I will set the path to /mnt/boot/efi, too
<infinisil> nixngo: How far do you get when booting?
cement has joined #nixos
<nixngo> do I have to set the grub patch too? Because I didn't set it and it installed the kernels and all grub stuff on its correct place in /mnt/boot
<nixngo> infinisil: boot menu ^^
<nixngo> infinisil: I mean the bios boot menu, not even grub
<infinisil> Ah
<nixngo> and to mount dev, proc and sys and chroot would probably the wrong way when using nixos I guess
<sphalerite> nixngo: could you paste the full output of efibootmgr?
<steveeJ> pierron: I'm having a discussion in the rust channel and it is supposed to work with rustup
<kuznero> sphalerite: is that generally bad thing if build.sh that I am wrapping in a package tries to download some files from internet? Should I make it part of sources for a package or is it ok?
<sphalerite> nixngo: `efibootmgr -o 1` should probably do the trick
<sphalerite> kuznero: yes definitely a bad thing — it will fail in a sandboxed build
<sphalerite> Downloading it in advance in a separate derivation (probably using fetchurl) is indeed the way to go
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] primeos pushed 1 new commit to master: https://git.io/vdFBT
<NixOS_GitHub> nixpkgs/master e40233e Michael Weiss: scons: 2.5.1 -> 3.0.0...
NixOS_GitHub has left #nixos []
<kuznero> sphalerite: then the solution is two specify several sources for a package and then substituteInPlace to hijack the download process and say that it is already downloaded?
ryantrinkle has joined #nixos
iyzsong has quit [(Ping timeout: 240 seconds)]
<sphalerite> kuznero: depending on how the script does it you may not need to hijack it, and may just be able to put the file in the place it would have downloaded it to
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] primeos closed pull request #30580: scons: 2.5.1 -> 3.0.0 (master...scons) https://git.io/vd7bP
NixOS_GitHub has left #nixos []
<sphalerite> i.e. `cp "${fetchurl {…}}" src/foobar.tar.gz`
<kuznero> sphalerite: but I wouldn't want to keep this file side-by-side default.nix in nixpkgs, right?
<kuznero> Ah
<kuznero> :) interesting
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ttuegel opened pull request #30610: Plasma: Experimental Wayland support (master...plasma-wayland) https://git.io/vdFBX
NixOS_GitHub has left #nixos []
<sphalerite> possibly with a let binding to avoid cluttering the build script
<sphalerite> but that's the basic idea
<kuznero> sphalerite: thanks
roberth has joined #nixos
<pierron> steveeJ: ok, thanks for tracking that down :)
vandenoever has joined #nixos
<nixngo> sphalerite: efibootmgr -v gives BootCurrent: 0000 and No BootOrder is set; firmware will attempt recovery
taktoa has joined #nixos
<sphalerite> nixngo: and no boot entries at all?
<nixngo> no
<sphalerite> Huh ok
<sphalerite> is this from the installer system?
kuznero has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
<nixngo> yes from the live usb stick, but i mounted root boot and efi
<steveeJ> pierron: I'll let you know once I understand how it could work
<sphalerite> If so, mount your stuff, make sure boot.loader.efi.canTouchEfiVariables is set to true, and nixos-install again
<joko> Is anyone using postgres? Any way to enable pgcrypto?
<sphalerite> nixngo: after that, run efibootmgr -v again to see if it's created the entry
<nixngo> sphalerite: k will do, ty. and how can I specify that efi is not in boot? I have it in /boot/efi/
<sphalerite> oooh, that might cause it. I'm not sure if it can detect that correctly
<nixngo> since my configuration.nix is almost empty I will generate a new config and set it up minimalistic for now
<sphalerite> nixngo: aaaah have a look at the https://nixos.org/nixos/options.html#efisys option
<sphalerite> efiSysMountPoint
<nixngo> ty
<nixngo> !
<sphalerite> If you set that to /boot/efi it might fix it
<nixngo> then I only have to set the right boot path in the bios option, because the HPelitecbooks have some kind of hard coded path
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ttuegel closed pull request #30610: Plasma: Experimental Wayland support (master...plasma-wayland) https://git.io/vdFBX
NixOS_GitHub has left #nixos []
<nixngo> but we are getting really close now I think, ty all :-)
<pierron> steveeJ: Thanks :)
ma27 has quit [(Ping timeout: 258 seconds)]
<yurrriq> LnL: I’ve had no such luck with building remotely with nix-daemon and sudo. I think I’ll switch to single user mode.
Wizek_ has joined #nixos
<infinisil> nixngo: I mentioned efiSysMountPoint before already btw
<LnL> it works for me, did you run both the sudo root-init.sh and nix-build with sudo $(cat env)
<LnL> yurrriq: ^
ma27 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bendlas closed pull request #30562: chromium: rerun update.sh (master...patch-5) https://git.io/vd73P
NixOS_GitHub has left #nixos []
<nixngo> infinisil: yes I thought I had it set up right but probably not, trying to reconfigurate a minimal configuration.nix now and If we can get It work I will be an happy camper!
ThatDocsLady has quit [(Ping timeout: 264 seconds)]
sirkha_ has quit [(Remote host closed the connection)]
<yurrriq> LnL: yeah. It seems unable to make any ssh connections :/
<symphorien> what root-init.sh are you talking about ? I would be interested by any form of documentation on the subject
thblt has quit [(Ping timeout: 240 seconds)]
Wizek_ has quit [(Ping timeout: 246 seconds)]
<symphorien> thanks
<vandenoever> can one use nft with nixos?
demego has joined #nixos
adamt has joined #nixos
adamt is now known as Guest34563
<shlevy> niksnut: what's the average time from completion of the relevant job to channel being updated?
ertes-w has quit [(Ping timeout: 255 seconds)]
Guest34563 has quit [(Changing host)]
Guest34563 has joined #nixos
<infinisil> vandenoever: nftables?
<vandenoever> infinisil: yes
<shlevy> I would have thought with everything going straight to s3 it would be very quick, but the unstable job for 5da5af56e11 finished more than 12 hours ago
Guest34563 is now known as adamt
boomshroom has joined #nixos
<boomshroom> Help!
<boomshroom> A while ago, my installation stopped bringing me to my display manager. I was able to get around it by logging into the tty and restarting it, but today that doesn't seem to be working.
<boomshroom> After I log in, I get spammed with "radeon 0000:01:00.0: ring {0,3,4} stalled for more than {n}msec". It's likely this meens that it's a bug with my graphics driver.
periklis has quit [(Ping timeout: 248 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/3e1f82d221 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
<boomshroom> This all started right after an update. I should mention that I am on the unstable branch.
nix-gsc-io`bot has quit [(Client Quit)]
jensens has joined #nixos
<boomshroom> specifically 18.03pre117327.3fe7cddc30.
snikkers has quit [(Ping timeout: 240 seconds)]
adamt has quit [(Ping timeout: 248 seconds)]
<boomshroom> I'm attempting another update.
<boomshroom> I should note that the radeon logs seem to apear on every tty.
<infinisil> boomshroom: If you have time and patience you could do a git bisect to find what broke it
ThatDocsLady has joined #nixos
<infinisil> No idea what could've caused this or how to solve it
<FRidh> do we have a function for renaming a derivation without rebuilding it?
<joepie91> boomshroom: are you using SDDM?
<joepie91> boomshroom: if yes; try enabling lightdm instead
<boomshroom> no such file or directory /run/system/kernel...something (radeon pushed it out too fast.)
<joepie91> and see if that fixes it
<joepie91> (SDDM has a history of causing issues on AMD cards)
<boomshroom> radeon is eating nvim.
<boomshroom> and tmux
<joepie91> mm
jensens has quit [(Ping timeout: 246 seconds)]
mortum5 has quit [(Ping timeout: 258 seconds)]
jb55 has joined #nixos
<joepie91> boomshroom: if you have a thumbdrive or blank CD laying around, put the NixOS installer on there, boot from that, modify your on-disk config, then do a nixos-install (use --help to see what flags you need to use to exclude the non-rebuild steps)
<joepie91> that'll trigger a rebuild without booting into your on-disk install
<joepie91> this is assuming you can't boot into a past revision of the system ofc
<joepie91> if you can, that's easier :)
<boomshroom> I'm pretty sure I have a bootable generation.
leat has quit [(Quit: WeeChat 1.9.1)]
<joepie91> right. try to edit from there and enable lightdm explicitly
<joepie91> sec
<joepie91> (ignore the xrandrHeads bit)
<joepie91> if that 'fixes' it, then you just have an SDDM issue that no fix might exist for yet, other than "don't use SDDM"
<joepie91> at least I haven't been able to find one
<boomshroom> You can specify multi-monitor from within the nixos-configuration?
adamt has joined #nixos
mortum5 has joined #nixos
adamt has quit [(Changing host)]
adamt has joined #nixos
adamt is now known as Guest94832
Guest94832 has quit [(Client Quit)]
adamt_ has joined #nixos
adamt_ has quit [(Changing host)]
adamt_ has joined #nixos
<sphalerite> yep
ison111 has joined #nixos
<joko> My bad with pg extensions, they seem to work >_<
<adamt_> Is anybody aware of anybody working on updating the zabbix package? It's rather ancient, and if nobody is actively working on upgrading it, my company might do it. Where's the best way to ask?
<boomshroom> joepie91: attempting your suggesting, as soon as I make sure my semicolons are in order.
<joko> Any idea how to delete permanently a user? Currently it gets revived with the previous UID
FRidh has quit [(Ping timeout: 248 seconds)]
<boomshroom> now that I'm not being spammed: "No such file or directory: '/nix/var/nix/profiles/system-1-link/kernel'"
<TweyII> adamt_: According to the file, Eelco Dolstra maintains it. But nixpkgs is open to contributions; if you want to bump it just make a PR
<boomshroom> error(s) occured while switching to the new configuration
<disasm> adamt_: I don't see any open PR's
<boomshroom> That's because the first 5 system versions appear to be garbage collected and are now broken links.
<adamt_> TweyII, thanks, maybe i should try and ping him first, though.
<adamt_> disasm, thanks, didn't think of checking PR's.
erictapen has quit [(Read error: Connection reset by peer)]
Guest17 has joined #nixos
<boomshroom> Atempting to do a garbage collection makes it hang a certain point for a while before freezing my entire computer.
<disasm> adamt_: I upgrade lots of maintainers packages without asking. Just cc: them in the PR.
<boomshroom> That could be why the symlinks are still there.
<disasm> or mention them or whatever github calls it
<adamt_> The default install (at least in 17.09) seems to be 1.8, which was released around 2009. What's NixOS' stand when it comes to supporting old stuff? Supporting 1.8 seems a bit extreme (to major releases behind).
<joepie91> [17:21] <boomshroom> You can specify multi-monitor from within the nixos-configuration?
jb55 has quit [(Ping timeout: 248 seconds)]
<joepie91> yes, sort of, kind of :)
Guest17 is now known as seertaak
<joepie91> in practice it's still stateful user config stuff because of display offsets and such
seertaak is now known as zenAudio
<joepie91> joko: 17.09 changed the behaviour of user management, now user IDs are remembered and reused when a user is recreated
<disasm> I'm looking forward to ditching X completely (aside from xwayland) at the end of the year :)
<boomshroom> All I want to do is work on my shiny compiler for a while. :(
<disasm> sway handles monitors so well :)
<joepie91> joko: but the user really *is* deleted afaikj
<joepie91> afaik*
<infinisil> disasm: Oh nice, will wanna do that too eventually
<infinisil> X annoys
<infinisil> me
<adamt_> disasm, yeah, but in this case it would probably be nice with a discussion of whether anybody is actually interested in running 1.x or 2.x on new versions of Nix, and I imagine that might affect the way the PR would end up. :-)
erasmas has joined #nixos
<boomshroom> I'd like to switch to wayland, but support is still pretty bad.
<CrazedProgrammer> one issue with sway I have is that it eats cpu, most likely because hardware acceleration isn't working
<disasm> adamt_: typically, we don't keep old versions around unless there's a really good reason.
<CrazedProgrammer> for me, that is
<joepie91> adamt_: my understanding is that the nixpkgs policy is "only introduce new majors/breaking in new NixOS releases", but there's no specific policy for keeping around old versions other than "if needed for some reason, you can just have an attribute for each branch and a version-less attributes that aliases the newest"
<infinisil> disasm: adamt_: Well, the module needs to be backwards compatible though, so you may need to do some stateVersion default thing
<joepie91> adamt_: nixpkgs has less rigid guidelines than many distros, and is often more recent; but only if people bother to update packages
<joepie91> so generally, "do what makes sense" :P
<adamt_> infinisil, i'll look into that
<joepie91> oh yeah, modules are iffier
<disasm> CrazedProgrammer: I have lots of issues right now, with https://github.com/swaywm/sway/issues/1132 being the primary blocker to using it as a daily driver but with wlroots replacing wlc, supposedly most of the problems should go away :)
<boomshroom> joepie91: funny, I seem to have had less updates since installing NixOS. (coming from Arch where I'd update once a day.)
<joepie91> but then there are also quite a few modules that allow you to specify which package to use
<joepie91> eg. postgresql
<adamt_> joepie91, it would be fine with us to make a PR that bumps the version to 3.x for 18.03, and then just run the new version on current nix in the meantime.
<ldlework> infinisil I've got a list of options. For each defined option I want to call a function `export` which builds a derivation that pushes some stuff up to github. The problem is that I don't need any data from those derivations, so nothing depends on the build output, and so the "export" function calls never get evaluated. Do you have any advice? https://gist.github.com/dustinlacewell-wk/108ee3896bbc20a70b593634c1ee40fa#file-org-export-nix-L53
<joepie91> boomshroom: well, the update regime is a little spottier, probably in part due to the smaller userbase
<disasm> joepie91: right, but those have a very good reason for it :)
<infinisil> boomshroom: Does arch do proper tests like nixos?
<joepie91> boomshroom: but that's not a policy issue, rather a "there's literally nobody who has the time to update the package" issue :P
<lewo> How could I disable the cmake setup hook ?
<adamt_> joepie91, yeah, i didn't really look much into how the current zabbix module works, but something like the postgres way of selecting a version would be neat i suppose.
<CrazedProgrammer> disasm: aw that's a bummer, i have a lot of hope for wlroots too. mouse cursors aren't consistent in shape and size for me but they do appear in firefox
<adamt_> boomshroom, if you're just using the 17.09 release channel you wouldn't get as many updates as in a rolling distro as Arch.
<joepie91> boomshroom: frankly nixpkgs is surprisingly up to date considering the relatively small amount of people doing packaging
<joepie91> (I think that even unstable is low-frequency in terms of updates, compared to Arch)
<boomshroom> Does anyone have an idea about why system-{1..5}-link are still around despite the derivations they point to being GCed?
<infinisil> lewo: Look at pkgs/development/tools/build-managers/cmake/setup-hook.sh
<disasm> CrazedProgrammer: it can happen in any X app from what I can tell, haven't tried in firefox, but it disappeared in urxvt for me
<infinisil> lewo: There you can see what variables control it
<boomshroom> joepie91: I did mention I was on unstable. (Because of the graphics issues I was having)
<boomshroom> 18.03pre
<joepie91> boomshroom: sorry, the unstable comment was aimed at adamt_ :)
<joepie91> but I forgot to highlight
<infinisil> boomshroom: What does nix-store -q --roots /path/to/system-links give you?
<lewo> infinisil: yep, but I don't know where I have to set this dontFixCmake variable :)
<infinisil> the roots are what prevent files from being gcd
<joko> joepie91: the user is deleted, but how to also delete NixOS' book-keeping mechanism?
<infinisil> lewo: Just in the derivation: mkDerivaiton { dontFixCmake = "true"; }
<adamt_> My last Arch install broke after a few days because of a broken update, so I'm quite fine with the lower frequency. We'll just package the things we need. YaY for bleeding edge. :-)
<joepie91> joko: no idea, to be honest. I don't know if there's a tool for that
<infinisil> lewo: Not sure if it's "true" or true or "1" or whatever, maybe any of these work
<joepie91> adamt_: fwiw, the lack of breakage in NixOS is more down to reproducible breaking than to the update frequency :P
<joepie91> that is, something either breaks for everybody or for nobody (modulo hardware differences)
<infinisil> and the tests..
<joepie91> tests only tell you whether it builds and/or some predefined features work
<boomshroom> infinisil: "skipping invalid root from ...system-{1..19}-link" along with several "removing stale link"s
<joepie91> useful, but not complete
<joepie91> and won't detect lots of more subtle ways of breakage
<infinisil> yeah
<ldlework> "Package ‘alsa-lib-1.1.4.1’ in /nix/store/c2lqf0224a0gvlx91ckhly2wzg6kn1f6-nixpkgs-18.03pre117690.ab2cc75f78/nixpkgs/pkgs/os-specific/linux/alsa-lib/default.nix:32 is not supported on ‘x86_64-darwin’, refusing to evaluate."
<infinisil> oh, but there are impurities here and there, so it's not completely "either it works for everybody or nobody"
<boomshroom> infinisil: The actual result is "/nix/var/nix/profiles/system-{20..27}-link", /run/booted-system and /run/current/system
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] guibou opened pull request #30611: szip: 2.1 -> 2.1.1 (master...guibou_bump_szip) https://git.io/vdFVY
NixOS_GitHub has left #nixos []
<lewo> infinisil: None of these seem to work
<infinisil> boomshroom: Well, not sure about all that, but the manpage for nix-store contains lots of stuff related to that
<ldlework> rycee any idea why suddenly alsa-lib is being built, and failing, on OSX?
<infinisil> lewo: Heh, I just wanted to see how other packages do it by ripgrepping for dontFixCmake, but there are no examples, it literally isn't used
<lewo> infinisil: I'm looking for an example where a setup hook is disable
<lewo> infinisil: yep
<ldlework> seemed to be a fluke I guess
<infinisil> lewo: How about just doing "${pkgs.cmake}/bin/cmake" where you call it and not including it in buildInputs
<infinisil> then the setup hook shouldn't be sourced i believe
<infinisil> not optimal, but it might work
<infinisil> lewo: Why do you want to avoid the setup hook being called though?
<infinisil> I think it would be better to fix the setup hook if it doesn't work correctly for you
<lewo> infinisil: because it fails in a complex (and dirty) softaware build. Moreover I know nothing about cmake :(
<lewo> so, I just wanted to see if the build work without this fix
<lewo> infinisil: I will try to replace the call of cmake "just to see"
<lewo> infinisil: thanks for your suggestion
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 3 new commits to master: https://git.io/vdFwH
<NixOS_GitHub> nixpkgs/master 36bbc3c rnhmjoj: nixos/compton: improve options type-checking
<NixOS_GitHub> nixpkgs/master 3918385 rnhmjoj: nixos/compton: use xrender by default
<NixOS_GitHub> nixpkgs/master 6991438 Joachim F: Merge pull request #30486 from rnhmjoj/compton...
NixOS_GitHub has left #nixos []
<disasm> infinisil: lewo you'll need to specify prefix if your overriding the configure with the cmake command.
scribbler has joined #nixos
thblt has joined #nixos
leat has joined #nixos
<boomshroom> "0 store paths deleted, 1317.69 [so close] MiB freed"
betaboon has quit [(Quit: WeeChat 1.9.1)]
ertes has joined #nixos
<boomshroom> I can't seem to find anything in nix-store --help that says anything about invalid roots.
<infinisil> boomshroom: hmm, how about just deleting those?
<infinisil> with rm
<boomshroom> infinisil: that sounds dangerous.
scribbler has quit [(Ping timeout: 258 seconds)]
<infinisil> I'm pretty sure it's designed this way
nschoe has quit [(Quit: Program. Terminated.)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] fpletz pushed 5 new commits to release-17.09: https://git.io/vdFr1
<NixOS_GitHub> nixpkgs/release-17.09 406fccb Will Dietz: musl: 1.1.16 -> 1.1.17, build with stack protector...
<NixOS_GitHub> nixpkgs/release-17.09 f7adcad Nikolay Amiantov: openra: 20161019 -> 20171014...
<NixOS_GitHub> nixpkgs/release-17.09 2432049 taku0: oraclejdk: 8u144 -> 8u151, 8u152...
NixOS_GitHub has left #nixos []
<infinisil> boomshroom: Similar to how result gets produces with nix-build which prevents it from being gcd, deleting result makes it possible to gc
<infinisil> and yours is already gc'd so it shouldn't be a problem to rm it
<infinisil> how you ended up at this situation i have no idea
<infinisil> There is nix-store --delete --ignore-liveness which ignores whether something is still being referenced, but I doubt you used that
mingc has joined #nixos
<boomshroom> Well it didn't error building the configuration, so let's soo if it works... after I get back from classes.
<boomshroom> goodbye!
boomshroom has left #nixos []
freusque has quit [(Quit: WeeChat 1.7.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rhendric opened pull request #30612: nixos/postfix: allow dollar variables in lists (master...fix/NixOS-30521) https://git.io/vdFoN
NixOS_GitHub has left #nixos []
<guillaum2> How do you setup a default target inside a shell.nix ? I have three derivation, how can i select one when `nix-shell` is called without explict `-A`?
<disasm> actually lewo did you try dontFixCmake = true; in the derivation?
<infinisil> guillaum2: let x = derivationA; y = derivationB; in x
<vandenoever> what is the configuration.nix statement to install a kernel module?
<infinisil> guillaum2: This makes it use derivationA, change it to `in y` to make it use B
<guillaum2> infinisil: and I can use derivationB by doing `nix-shell -A y`?
<infinisil> vandenoever: I'm pretty sure it's `boot.kernelModules = [ "foo" ]; boot.kernelPackages = [ pkgs.foomodule ];`
<infinisil> guillaum2: Ahh I see
<vandenoever> infinisil: not boot.extraModulePackages?
<infinisil> guillaum2: I'd do `{ drv ? "A" }: if drv == "A" then derivationA else derivationB
<infinisil> guillaum2: Then you can nix-shell for A and nix-shell --argstr drv B for B
<infinisil> vandenoever: Ah yeah that could be it, something like that
<infinisil> guillaum2: Or, hold on, testing something better
snikkers has joined #nixos
<guillaum2> infinisil: thank you.
<ldlework> infinisil when you have a chance do you think you could help me reason about this?
<guillaum2> infinisil: I wonder if i may have a default.nix containing all my derivations and a shell.nix linking to the only one.
erictapen has joined #nixos
zenAudio has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<infinisil> guillaum2: I have 2 other solutions
<infinisil> 1: Use multiple shell.nix files, one for each derivation
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] kquick closed pull request #30566: Libabc: add new libabc package (master...libabc) https://git.io/vd7ca
NixOS_GitHub has left #nixos []
<lewo> disasm: infinisil in fact, it partially works: when I set dontFixCmake = true; I don't get the message fixing cmake files... but it still tries to do some stuffs for cmake. I will investigate a bit more.
<infinisil> 2: Use passthru, which let's you do `nix-shell` which selects A, and `nix-shell -A b` which selects B
<infinisil> (or the argument method above)
digitus has joined #nixos
<catern> woaaah
<catern> a compiler is a curried interpreter
<ldlework> hi catern
<hodapp> catern: get outta here with that crap
<catern> I never knew that!!!
<catern> hodapp: what, you mean ostensibly deep and interesting but ultimately useless insights? :)
<infinisil> That's pretty deep
* ldlework languishes.
<catern> yeah it is but I'm kind of suspicious of anything that doesn't produce working code
<catern> yep!
<catern> was just reading an article about it
<hodapp> hmm. I should probably commit my nixpkgs stuff for newer TensorFlow
<hodapp> now that a newer version is probably out o_O
<catern> it was very very interesting
<guillaum2> infinisil: Thank you.
<TweyII> catern: But working *usefully* requires your interpreter to do a lot of evaluation under binders, which is Hard Work
<catern> TweyII: evaluation under binders?
<infinisil> guillaum2: Or you could just write a small script to invoke that calls nix-shell
<catern> TweyII: oh, right, variable bindings
<catern> yes
endforma1 has joined #nixos
<TweyII> catern: E.G. if you have a function like x: x + (1 + 3), you need the compiler to be smart enough to figure out that, even unapplied, this can be compiled down to x: x + 4
<catern> TweyII: well, you don't really need your *interpreter* to do that :)
lsix has quit [(Quit: Konversation terminated!)]
<catern> you just need your implementation of "curry" to do that :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 3 new commits to staging: https://git.io/vdF6P
<NixOS_GitHub> nixpkgs/staging eef0d09 Vladimír Čunát: Merge branch 'master' into staging
<NixOS_GitHub> nixpkgs/staging 90435ba Vladimír Čunát: Revert "wt: fixup build by using older boost again"...
<NixOS_GitHub> nixpkgs/staging c3263fc Vladimír Čunát: wt: put version into name, cleanup whitespace...
NixOS_GitHub has left #nixos []
<catern> or in general your base language
kiliankoe has joined #nixos
<TweyII> catern: Well, you need your function application to do it
<catern> Sure
<TweyII> But yes, the language the interpreter is written in is good enough
vandenoever has quit [(Ping timeout: 252 seconds)]
<TweyII> But maybe even harder :þ
<catern> So if you have a Sufficiently Intelligent Compiler, then it's easy to produce more :)
<TweyII> Yeah :)
betaboon has joined #nixos
<rycee> ldlework: Hmm, no idea. Is it HM that pulls in alsa? Do you have the alsa-lib drv file in your Nix store? If so, what does `nix-store -q --referrers /nix/store/…-alsa-lib-….drv` say?
<catern> hence a sufficiently intelligent compiler is the last invention that mankind need ever make :)
<lewo> infinisil: disasm in fact, I needed to set dontUseCmakeConfigure = true; So, it now works for me. Thanks
<ldlework> rycee I have no idea what that error was about, it only happend once, I think it was a fluke
<catern> (with apologies to I.J. Good)
<hodapp> catern: last one they'll need, or last one they'll make before humanity is destroyed?
<hodapp> we all know whose side you're on.
<ldlework> rycee I could much more use your help with my real question which has to with an Option that doesn't output any files. Since nothing in a config refers to the option's value, then then the option never get's processed
<catern> hodapp: well, I omitted the rest of the quote :) "provided that the compiler is docile enough"
<TweyII> catern: Well, you'd still have to make your interpreters
scribbler has joined #nixos
<guillaum2> infinisil: passthru is great, thank you.
<infinisil> ldlework: Is alsa available on darwin?
<ldlework> I don't care about the alsa problem
<ldlework> It went away
<infinisil> guillaum2: It's a bit ugly though :P
<catern> hodapp: "to tell us how to keep it under control"
<guillaum2> infinisil: yes, but it gives the default behavior AND access to the sub derivations ;)
<ldlework> rycee basically I have an Option that takes a list of sets. For each set in the list, it runs a derivation. But since nothing refers to the output of these derivations like nothing is set to `home.file` then the builds never happen because they never get fully evaluated
<guillaum2> infinisil: access to sub derivations is only needed for debuging.
<ldlework> I could really use help with this problem
riclima has joined #nixos
erictapen has quit [(Ping timeout: 260 seconds)]
<infinisil> ldlework: Well, where do you use there derivations?
<infinisil> If you don't use them anywhere it doesn't make sense to build them
<ldlework> I don't use them. They transform a file, and then push it to github
<rycee> ldlework: Alright. But what should happen instead? Somehow they must be used in some way.
<infinisil> ldlework: Sooo, you only want to keep them around so you don't need to refetch them if a gc happens?
<ldlework> no
<ldlework> My emacs configuration is an org-file. When I build my configuration from org-mode -> elisp
<ldlework> But I also export it to html and push it to github
<ldlework> But this second derivation never gets run because there is no output file to write to home.file
<rycee> ldlework: Do you push from the activation script?
<ldlework> No, I create a sub-derivation using runCommand
<infinisil> ldlework: Why not just home.file."my-org-config".source = drv.outPath
<ldlework> The html file is never output to the home directory since it isn't an artifact that actually needs a symlink in the home directory
<ldlework> I do that for the elisp conversion that I actually want in my home directory
scribbler has quit [(Ping timeout: 248 seconds)]
<ldlework> and that derivation works
<ldlework> but I do not want the html export in my home directory
<ldlework> I simply want to build it and push it to github
<infinisil> ldlework: Then use ".local/share/org-html/out.html" where data is usually stored
betaboon has quit [(Quit: WeeChat 1.9.1)]
<rycee> Yeah, but you have to run the git push from somewhere and I assume that has to refer to the thing you built.
<ldlework> rycee yes, I've been doing the git push from inside the derivation that does the html build
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vdFiV
<NixOS_GitHub> nixpkgs/master 5b530d4 David Johnson: oauth2_proxy: default address updated...
<NixOS_GitHub> nixpkgs/master 815bebf Joachim F: Merge pull request #30173 from dmjio/patch-1...
NixOS_GitHub has left #nixos []
jb55 has joined #nixos
pbogdan has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
betaboon has joined #nixos
<ldlework> The finished option is dumb, I was just thrashing about trying things to get the derivation to evaluate
<infinisil> ldlework: Um, you don't really have web access in derivations builds
<ldlework> But you can see I'm trying stuff to get the thing to evaluate
<ldlework> There is absolutely no problem with building the html and pushing to github, when I get the build to evaluate
<ldlework> it has never failed..?
civodul has quit [(Read error: Connection reset by peer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] 7c6f434c pushed 1 new commit to master: https://git.io/vdFiH
<NixOS_GitHub> nixpkgs/master 83fdd26 Michael Raskin: eudev: 3.2.1 -> 3.2.4
NixOS_GitHub has left #nixos []
<infinisil> Huh? Maybe I understood something wrong them, but I'm pretty sure normal derivations can't fetch stuff from the web
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vdFiQ
<NixOS_GitHub> nixpkgs/master 7867b50 gnidorah: nixos/pam: add swaylock (#29919)
NixOS_GitHub has left #nixos []
<ldlework> infinisil I am able to use git without issue inside runCommand
<infinisil> Do you have sandbox disabled?
erictapen has joined #nixos
<ldlework> I have no diea
<ldlework> I installed nix on OSX with the curl | sh script, then am just using HM
<ldlework> I haven't done anything special to configure Nix at all
<nliadm> I want to replace a package's postInstall hook via overrideAttrs, is there a way to get the arguments it was passed? e.g. which python and the like
<ldlework> The runCommand is just bash, so what would even prevent git from working? Nix builds don't take place in a container, etc
<ldlework> rycee is there anyway we could get a post-build hook?
<ldlework> Another strange thing is
<ldlework> Before I started using Options to do work, I was just writing functions and importing them
<ldlework> This same export function
<ldlework> then in my let clause I would just do `html_build = export { ... }`
<ldlework> I never referred to html_build name, but the export's derivation would get run anway
<ldlework> Are all let variables evaluated or something?
<rycee> Ya, this is a bit unorthodox :-) If you want git push to happen on HM activation then I would suggest putting the commands into a home.activation section (or write the commands into a shell script using `writeScript` and call this script from a home.activation section).
<ldlework> rycee I don't want it to happen on activation, only during build
<ldlework> that's the problem
<ldlework> Further, the things that do the building and pushing... I need an emacs with specific emacs packages to do the html export
<ldlework> But I don't need those packages in my actual emacs that get's installed
<ldlework> The fact that this export was taking place entirely within the runCommand is advantageous
civodul has joined #nixos
pbogdan has joined #nixos
<sphalerite> I'd just make a wrapper
<ldlework> a wrapper?
marusich has quit [(Quit: Leaving)]
__Sander__ has quit [(Quit: Konversation terminated!)]
marusich has joined #nixos
dtzWill has quit [(Ping timeout: 258 seconds)]
marusich has quit [(Client Quit)]
scribbler has joined #nixos
<hyper_ch> again big kde update
<hyper_ch> will it be rolled back again or note.... :)
<rycee> Builds are kind of geared towards determinism and as such network operations and such are not recommended. The non-deterministic stuff belong more to the activation script. Although ideally the activation script should be reasonably robust and not leave your system in an inconsistent state so I would suggest against network operations there as well.
dtzWill has joined #nixos
<rycee> So basically, I would suggest installing the git push script to your user environment and then call that after switching your generation.
<ldlework> ...
<ldlework> I'm stunned.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] obadz pushed 1 new commit to master: https://git.io/vdFXJ
<NixOS_GitHub> nixpkgs/master ea35bc9 edef: nixos/ecryptfs: init...
NixOS_GitHub has left #nixos []
pbogdan has left #nixos ["ERC (IRC client for Emacs 25.3.1)"]
civodul has quit [(Remote host closed the connection)]
scribbler has quit [(Ping timeout: 252 seconds)]
<hyper_ch> infinisil: what's your howto script again for clever's k-thingy?
<taaperotassu> Does anyone here use i3 and polybar? I am wondering if anyone else is having strange behaviour. Always after using i3 refresh.. my polybar becomes unresponsive
loz1 has joined #nixos
<ldlework> rycee I take it this means you wont approve of my plugin PR heh
<loz1> hi guys
<loz1> here's what I don't get about nix-shell
<loz1> how do I start it with a specific package version?
pbogdan has joined #nixos
<loz1> nix-shell -p python36Packages.jupyter perl zeromq-3.2.5 imagemagick gcc
<loz1> error: syntax error, unexpected INT, expecting ID or OR_KW or DOLLAR_CURLY or '"', at (string):1:109
<loz1> I need zeromq-3.2.5, but it fails like this and gives me 4 which is incompatible with what I'm doing
<loz1> I mean it's such an obvious thing, just add the right directory to the $PATH
<ldlework> rycee infinisil also, any idea why my derivations were being evaluated when they were produced by a imported function which just called runCommand and assigned to a let variable? I never referred to these let variables containing derivations, and yet the derivations were built anyway.
<ldlework> Are let variables automatically evaluated?
<rycee> ldlework: I like the idea of the plugins. But like I wrote in the comment I think this can be accomplished using regular modules and the `imports` option. I'm not completely certain, though. If it is not possible to do with the modules and imports then I think your plugins idea could be merged…
<ldlework> rycee the thing is, my plugin system lets plugin's export library code that get's merged into pkgs. That is, plugins can make pkg library functions and stuff available. They also export a .module attribute which get's merged into the `imports` option during HM's evalModules setup.
<rycee> ldlework: Yeah, but I guess a `nixpkgs.overlays`, like in NixOS, would accomplish the same?
<ldlework> I switched my exporting from just being a function to a declared Option that my plugin then attempts to handle in its config. But since it's config has nothing to write out, the derivations never get evaluated. When I just called the export function and assigned the derivation to a let variable (and never referenced that let variable) the derivations got built.
<ldlework> rycee overlay would just add to pkgs right? It wouldn't add the plugin option declarations to the Option's tree right?
<rycee> ldlework: Hmm, if you replace the derivation with `builtings.throw "why am I here?"` and run again with `--show-trace` then it should show you why it ended up being evaluated.
<ldlework> neat
jgertm has joined #nixos
<rycee> ldlework: Yeah, you would still also have to include the options in your module: `{ option = { myoption = mkOption { … }; }; config = { nixpkgs.overlays = [ … ]; }; }`
riclima has quit [(Quit: riclima)]
<ldlework> yeah my thing results in a pretty nice UX
riclima has joined #nixos
ma27 has quit [(Ping timeout: 246 seconds)]
ThatDocsLady has quit [(Quit: Leaving)]
<rycee> But `{ imports = [ (fetchSomehow "myoptionmodule") ]; myoption = "whatever"; }` doesn't seem too terrible and it has the benefit of working exactly like in NixOS configuration.
freeman42x[NixOS has joined #nixos
<ldlework> Its just more work that every user of a plugin has to do
<ldlework> When the plugin could just easily specify that information without any work by anyone.
ma27 has joined #nixos
FRidh has joined #nixos
<ldlework> Also, just using imports = [] doesn't make new library code available in pkgs
erictapen has quit [(Ping timeout: 248 seconds)]
erictapen has joined #nixos
goibhniu has quit [(Ping timeout: 240 seconds)]
leat has quit [(Ping timeout: 248 seconds)]
hotfuzz_ has joined #nixos
hotfuzz has quit [(Ping timeout: 240 seconds)]
<hyper_ch> that howto lacks link to clevers kexec :)
ma27 has quit [(Ping timeout: 258 seconds)]
<hyper_ch> thx
ma27 has joined #nixos
<keta_suki> Should invoking kexec normally work on nixos? My machine just freezes on a black screen whenever I try ask systemctl to do so. Now that I think of it, it might be due to the noveau driver not reinitializing the GPU.
<hyper_ch> keta_suki: what kexec are you talking about? clever's?
<keta_suki> euh just vanilla kexec syscall
<hyper_ch> kexec is still black magic for me
<hyper_ch> I've heard rumors and legends about how the real gurus use that dark magic to deploy nixos on far far away servers
<hyper_ch> in other words - can't help you, sorry
<infinisil> should include that eh
<keta_suki> haha yeah, that's what happens if you can't use PXE ona a remote server. hyper_ch: thank you anyways :) brb
<hyper_ch> infinisil: well, I know where to find it :)
leat has joined #nixos
<hyper_ch> keta_suki: clever wrote a kexec expression that builds a nice initrd to to boot up nixos to which you can either can ssh into or if you use his other script it will automagically setup the server
<hyper_ch> infinisil: just thought for your notes it would be good if you had it refernced directly
<infinisil> ldlework: I'm with rycee here, your plugin idea is fully achievable with normal modules if we add a nixpkgs.overlays option
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zimbatm opened pull request #30614: buildkite-agent: 2.1.13 -> 2.6.6 (master...buildkite-agent-2.6.6) https://git.io/vdFy3
NixOS_GitHub has left #nixos []
<ldlework> How does an overlay add library code and declare/define options at the same time?
<guillaum2> what is the politic of pull request when I want to introduce a version of a package with a different config (for example, hdf5 with the szip/zlib flag setup)?
nix-gsc-io`bot has joined #nixos
<infinisil> keta_suki: I've used clever's kexec thing multiple times and it works great :)
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/6d000dbe6f (from 84 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 2 new commits to staging: https://git.io/vdFyW
<NixOS_GitHub> nixpkgs/staging ddc41d7 Vladimír Čunát: zanshin: fixup build by using older boost again...
<NixOS_GitHub> nixpkgs/staging fd0e61a Vladimír Čunát: vowpalwabbit: fixup build by using older boost again...
NixOS_GitHub has left #nixos []
<ldlework> infinisil that's the only thing I don't get
ssmike has quit [(Ping timeout: 258 seconds)]
<infinisil> ldlework: No, you do `imports = [ (fetchFromGitHub { ... }) ]`, the file you fetch contains: `{ options = ...; config = { nixpkgs.overlays = [ ... ]; ... }; }`
<hyper_ch> also check out clever's full kexec repo.... he just automates everything
<ldlework> infinisil Sure but then it isn't making any new library code in pkgs available.
<ldlework> My plugin system does both, I keep trying to communicate that but failing.
<hyper_ch> I still haven't tried it but it looks awesome
<infinisil> ldlework: That file is the plugin
<infinisil> the user doesn't need to write that
ssmike has joined #nixos
<joko> I was wondering if it is currently possible to read variables from a postgres server in your configuration.nix when you rebuild nixos, any thoughts on that?
<ldlework> Hmm, I think I just don't know enough to understand.
<infinisil> ldlework: Okay hold on I'll make an example
RayNbow` has joined #nixos
<infinisil> Oh wait, I can't because nixpkgs.overlays isn't there yet
<infinisil> Well let's assume it is
erictapen has quit [(Ping timeout: 240 seconds)]
mortum5 has quit [(Ping timeout: 240 seconds)]
freeman42x[NixOS has quit [(Quit: Leaving)]
RayNbow`TU has quit [(Ping timeout: 248 seconds)]
pxc has joined #nixos
snikkers has quit [(Ping timeout: 246 seconds)]
Guest17 has joined #nixos
<infinisil> ldlework: Something like this: https://git.io/vdFS4
<infinisil> Note that I didn't evaluate this or anything, but this could provide the same thing as your example in the PR
Guest17 has quit [(Client Quit)]
mortum5 has joined #nixos
<ldlework> infinisil super interesting
erasmas has quit [(Quit: leaving)]
hotfuzz has joined #nixos
<ldlework> infinisil I have an unrelated thing I haven't figured out that you could show by editing that gist. Basically, if I change the option declaration like this: https://gist.github.com/dustinlacewell/b15246ebf2d3cc3630e3e496f4a068ee
hotfuzz_ has quit [(Ping timeout: 240 seconds)]
<ldlework> how can we change the config to process each of the sources and write them to their various output files?
<ldlework> oops
<ldlework> forgot to add the `target` option
<octe> i'm trying to package a thing, it's fetched via url and builds fine. but i want to replace one file in the resulting package with one i have locally
<octe> can i do that?
ma27 has quit [(Ping timeout: 252 seconds)]
frankpf has joined #nixos
<ldlework> octe sure just do something like `rm target_file.ext; ln -s ${./local_file.ext} target_file.ext`
<ldlework> pretty sure
<ldlework> or however you'd prefer to do it in the bash
<infinisil> ldlework: cfg.sources then looks like [ { source = ..; user = ..; ... } { ... } ], you can do with that whatever you want
<infinisil> e.g. use map
<ldlework> ah 👍 I just need to slog through the FP logic of it then
<octe> ldlework, in the install phase?
<ldlework> octe yeah, same place you're fetching stuff from remote and doing the build
<ldlework> you could also add a new phase before the install phase, etc
<octe> right, the file i want to use to replace is next to my default.nix.. so i just tried cp file $out/file
<ldlework> I'm not positive but I think the phases just get concatenated together
<octe> but it can't find the file
<ldlework> nah, it isn't in out
<ldlework> you use "path" values to refer to input files
<ldlework> notice my example
<ldlework> ln -s ${./local_file.ext} target_file.ext
<octe> oh right
<infinisil> Actually, if you assign installPhase = "foo", the original installPhase is gone
<ldlework> local_file.ext is next to your default.nix
<octe> sorry, thanks, that seems to work :)
<rycee> Turned out that nixpkgs.overlays was pretty simple to add. Could just add <nixpkgs/nixos/modules/misc/nixpkgs.nix> as a module and do some minor fixes for it to work.
Guest17 has joined #nixos
<ldlework> infinisil sure but you can do installPhases = ["foo"] ++ installPhases
<ldlework> or something right
<infinisil> rycee: Nice :D
<ldlework> rycee nice
<ldlework> I think I'm onboard with the nixpkgs.overlays method
<infinisil> ldlework: Yeah that can work, but it's a string, so you need "foo\n" + installPhase;
ylwghst has joined #nixos
<ldlework> infinisil not installPhase, installPhases
<ldlework> which lists the installPhases right?
<ldlework> So you don't need to even edit the main installPhase
<ldlework> but I'm probably wrong
<infinisil> Did you see that somewhere or is this a speculation?
<rycee> I'll try to get it into HM over the weekend. Needs a few cleanups first.
<ldlework> I feel so dumb with Nix
<ldlework> infinisil I'm pretty sure I've seen derivations with more than one install phase
<infinisil> ldlework: You're doing pretty well for using it only such a short while!
ma27 has joined #nixos
<infinisil> rycee: Could you open a PR so I could help with it maybe?
<ldlework> Maybe this is what I'm thinking about? https://nixos.org/nixpkgs/manual/#ssec-controlling-phases
<infinisil> ldlework: Yeah that's phases = [ "buildPhase" "installPhase" ] or something like that
ssmike has quit [(Remote host closed the connection)]
<ldlework> ah had the name wrong
ssmike has joined #nixos
<Dezgeg> setting phases = ...; considered harmful
<rycee> infinisil: Yeah, I'll see if i have the time to put a PR.
<keta_suki> hyper_ch: infinisil Thanks, I'll take a look
<ldlework> infinisil hmm, if I use map and stuff to iterate over the attrset of build jobs... that just produces a list right? Who's contents wont be evaluated!
<infinisil> ldlework: Well you need to use those somewhere
<ldlework> Oh so maybe I need to actually merge a computed attrset with home.file
<infinisil> it doesn't make sense to evaluate something if the result is throws away
<ldlework> instead of imperatively assigning each one in a for-loop
ma27 has quit [(Ping timeout: 258 seconds)]
<ldlework> infinisil does it make sense to convert my build's somehow into a thing that can be merged into the config set?
<infinisil> there is no for loop in nix anyways :P
<ldlework> Yeah exactly :P
<infinisil> ldlework: Yeah that's what you'd do
<infinisil> ldlework: Need help with that?
<ldlework> So maybe I use map to produce a list of attrsets with key-value, then I use that once function that converts that to an attrset, then I merge it against something in config
<ldlework> let me give it a go
ylwghst has quit [(Quit: Lost terminal)]
kuchi has joined #nixos
frankpf has quit [(Quit: Leaving)]
digitalmentat has joined #nixos
<steveeJ> pierron: it's an upstream issue that we can't solve
<digitalmentat> what version of OS X do I need to be careful with when installing the latest version of Nix? I vaguely remember seeing someone tweet a warning...
kuchi has quit [(Quit: WeeChat 1.9.1)]
kuchi has joined #nixos
<disasm> high sierra
<digitalmentat> disasm, thanks!
Guest17 has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
MichaelRaskin has joined #nixos
Guest17 has joined #nixos
Guest17 has quit [(Client Quit)]
Guest17 has joined #nixos
<infinisil> ldlework: You don't need to use config.home.file //
ris has joined #nixos
<infinisil> it all gets merged, you can't override anything
<ldlework> oh because the module system merges it
<ldlework> right
<ldlework> I think I also need to assign value an instance of whatever Option type home.file is
<ldlework> rather than just the output of the build
<infinisil> nah that should works, the options are set to normal nix values
<infinisil> work*
<ldlework> infinisil yeah but I think its a set with `source` and `text` attributes
<ldlework> not the direct contents of the file
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #30615: vim-plugins: Add zig-vim (master...feature/zig-vim) https://git.io/vdF79
NixOS_GitHub has left #nixos []
<infinisil> ldlework: home.file."foo".source = bar; is equal to home.file = { foo = { source = bar; }; };
<ldlework> indeed
<infinisil> Ah yeah
<infinisil> need an attrset there
nil has quit [(Ping timeout: 246 seconds)]
<ldlework> Now I get "value is a partially applied built-in function while a list was expected, at" https://gist.github.com/dustinlacewell/5dde15fe92bacf8650a30a76ebd48344#file-default-nix-L52
<ldlework> Oh I forgot an argument to map
<infinisil> yup
nil has joined #nixos
<ldlework> nice it works now
<ldlework> I think forcing the user to write the exports out to a file is an 👍 comprimise I guess
<infinisil> ldlework: What do you mean?
<infinisil> Ah
<ldlework> Like even though they just want to build init.html and push it up to github pages, forcing them to also write init.html to their home directory is an 👍 comprimise
<infinisil> Well if the user just wants to build something he shouldn't use home-manager for that
<infinisil> because home-manager, as the name, manager home
<infinisil> manages*
<infinisil> as the name implies*
<ldlework> I mean, if you adopt HM, then it is the thing you use to do your dotfile management
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/6d000dbe6f (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
nix-gsc-io`bot has quit [(Client Quit)]
<ldlework> A nice thing like publishing your literate-programming-style configuration to a docs site when your dotfiles are built is pretttttty nice.
<infinisil> well sure, and if you use it for a dotfile you are assigning a file in home, so i don't see the problem
<ldlework> A secondary asset is built and deployed
<ldlework> elisp != html
<infinisil> yeah that's nice, but not very nixy tbh
Guest17 has quit [(Quit: Textual IRC Client: www.textualapp.com)]
<ldlework> I mean, if HM had a secondary activationScript called postBuildScript, that was run once, when a new generation was produced that would be fine
<ldlework> But doing those kinds of things everytime you switch between a generation seems overly wasteful
<infinisil> nix is declarative, it doesn't make sense to have that
vktec has joined #nixos
<ldlework> It has an activation script already!
<infinisil> If you want actions to run after a rebuild, you do that with something like alias rebuild="home-manager switch && git push"
<ldlework> It already has an activation script. A postBuild script seems perfectly cromulent.
<infinisil> ldlework: Yeah, but activation script say exactly how it needs to apply this config to ~, they don't do anything
<ldlework> they can do whatever you want
<infinisil> home-manager, the binary, is what executes the activation script to make it apply immediately
<ldlework> yup
<ldlework> it could do the same thing with a postBuild script, only once when a new generation is actually built
<ldlework> it would be the same thing
<ldlework> I could probably use the activationScript logic to build a postBuild script if I can figure out how to find the right point to execute it when a new generation is built
<infinisil> Meh, nix isn't made for that
<ldlework> infinisil also, just doing && doesn't solve it
<ldlework> That will run anytime you run switch, not everytime a generation is built
<infinisil> yeah sure, but i hope you see what I'm trying to say
<ldlework> You're trying to conflate the properties of HM and Nix
<ldlework> :)
<digitalmentat> I often find oneshot systemd units to be perfect for this sort of thing
<infinisil> Ohh right, good call digitalmentat
<ldlework> No systemd on OSX
<digitalmentat> NixOS makes it trivial to create one
<digitalmentat> oh I see
<ldlework> And that seems like just abusing systemd for what is really something related to buildtime
<ldlework> not system configuration
<infinisil> well but it's not really what he needs, systemd oneshot units aren't thought for pushing things to github after a build
<ldlework> It seems like "HM feature" is the 👌 ontological placement for this kind of thing
<digitalmentat> then push manually or add shell alias
<infinisil> really what you need is just a simple script that does the build and push
<digitalmentat> however, NixOS would be better for managing dot files IMHO if at all possible
<digitalmentat> shove them into the Nix store and symlink to your homedir
<ldlework> then HM is not the thing I use to manage my home environment anymore
<ldlework> That's exactly what HM is doing
<digitalmentat> I don't understand home manager well enough to comment on whether it's better suited or not
ylwghst has joined #nixos
<ldlework> Its just a bash script that executes a package build with nix-env, with an expression you wrote.
phreedom has quit [(Ping timeout: 246 seconds)]
<infinisil> digitalmentat: home-manager uses the nixos module system as a base, but provides different base images, ones focused on managing your home directory
<ldlework> The expressions describe package out puts. Once the build is done, HM symlinks everything into your home directory.
<digitalmentat> oh I see
<digitalmentat> I did not know that
<digitalmentat> I've been doing that manually this whole time, lulz
<ldlework> It also lets you describe an "activation" bash script which is run anytime you activate a certain generation
<digitalmentat> (by manually, I mean writing that Nix code)
<ldlework> I'm arguing a "postBuild" bash script could also be supported anytime a new build generation is produced
<MichaelRaskin> I guess you could add an activation script to the module that checks if some path is in the list of already-pushed things, and if no, adds it and pushes.
<ldlework> Sure, if rycee rejected the idea, that will probably be the only option. Wasteful overhead though.
<ldlework> stateful artifacts, etc
<infinisil> I think the best solution is to modify home-manager to support `home-manager activivate <path>` which activates a home-manager build
<infinisil> then have a script that does `home-manager build; do stuff; home-manager activate`
<MichaelRaskin> Sorry? You have to have stateful something to do pushes only once per non-trivial build
<infinisil> Exactly ^^
<infinisil> pushing to github is inherently stateful
<ldlework> MichaelRaskin HM knows when a new generation was produced, and when it didn't do anything because nothign changed.
<ldlework> It should run the postBuild script every single time a new generation was created
<MichaelRaskin> No it doesn't
<ldlework> No it doesn't what
taktoa has quit [(Remote host closed the connection)]
<MichaelRaskin> HM asks Nix to make sure some path is valid.
<MichaelRaskin> Nix doesn't tell if there was something to be done.
TweyII has quit [(Ping timeout: 240 seconds)]
<ldlework> What do you mean by path?
<MichaelRaskin> Nix store path.
<ldlework> How does HM count the generations?
<MichaelRaskin> I think it asks nix-env to count them.
<MichaelRaskin> So it doesn't.
Judson1 has joined #nixos
<ldlework> So could it ask them to count them, do the build, and then ask them to count them?
vktec has left #nixos ["So long and thanks for all the fish"]
Judson1 is now known as Guest43864
<infinisil> It actually lists all profiles with ending home-manager.. and looks at the last number there
<ldlework> Seems like its still enough info
<MichaelRaskin> if you go that way, there is no cost to do exactly the same around HM
<ldlework> Though I guess -technically- I could do that same logic in my own HM wrapper.
<ldlework> Yeah
<MichaelRaskin> Count, call HM, count again, decide.
leat has quit [(Ping timeout: 248 seconds)]
jsgrant has joined #nixos
<ldlework> I guess I need to find the mechanism by which it counts.
<infinisil> Tbh, I wouldn't want my config to get immediately pushed, I often try various things, rebuilding every minute
<ldlework> Onward!
<MichaelRaskin> ls /nix/var/nix/profiles/something
<infinisil> ldlework: Just look at the source
<ldlework> yup
<infinisil> it's literally one line
<MichaelRaskin> Please note that if you build configurations A and B elternatively, the generation count generally will increase.
<jsgrant> What is the option to edit /etc/issue (if there is one ... assume there has to be, can't find any)
<infinisil> jsgrant: environment.etc.issue.text = "foobar"?
<jsgrant> infinisil,: Hm, should that be on nixos.org/nixos/options.html?
<jsgrant> Searched 'issue' and nothing; Assume that would pick up.
<infinisil> jsgrant: What's special about issue?
<infinisil> never heard of that file tbh
<gchristensen> jsgrant: "issue" is variable: https://nixos.org/nixos/options.html#environment.etc.%3Cname%3F%3E.text
<jsgrant> gchristensen: Ah! Okay.
<jsgrant> So it's generalized to /etc
<jsgrant> Explains why not easily searchable.
<jsgrant> Or 'at all' really. :^)
<jsgrant> gchristensen: Bookmarked, ty.
<gchristensen> jsgrant: I found the second link via https://search.nix.gsc.io/?q=issue&i=nope&files=nixos&repos=
jgertm has quit [(Ping timeout: 248 seconds)]
<jsgrant> Oh, that's pretty neat!
scribbler has joined #nixos
python476 has quit [(Ping timeout: 248 seconds)]
jbgi has joined #nixos
<infinisil> gchristensen: Is that pretty much a ripgrep web version for nixpkgs?
<gchristensen> no, it is Hound, which maintains an in-memory / on-disk index of the codebase with trigrams
* jsgrant finally moved all his boxes over, finally, again; Keeping it on for at least a year & giving a fair shake.
<jsgrant> Just been dipping toes before & backing out way too often , before.
kuchi has quit [(Quit: WeeChat 1.9.1)]
scribbler has quit [(Ping timeout: 248 seconds)]
erasmas has joined #nixos
<ldlework> MichaelRaskin hmm, now I'm a little confused in reading the source about the activation script. Is the activation script actually run inside the HM derivation build? IE, the environment in which the activation script is run, is actually a GC'd build environment?
kuchi has joined #nixos
<gchristensen> activation scripts aren't run in a build env
<gchristensen> they mutate your actual host
<ldlework> You're talking about the HM activation script specifically?
<gchristensen> oh I have no idea about home manager
<infinisil> both nixos and home-manager do it the same
<ldlework> I know nothing about nixos :)
<infinisil> Well since you know about home-manager you implicitly know some stuff about nixos ;)
<ldlework> Ah OK
<jsgrant> Oh, is Home-Manager a peruser Nix?
<infinisil> jsgrant: A per-user nixos rather, it manager your home with modules
leat has joined #nixos
Judson is now known as Guest62251
Guest62251 has quit [(Killed (kornbluth.freenode.net (Nickname regained by services)))]
Guest43864 is now known as Judson
<infinisil> nixos modules even
Judson1 has joined #nixos
Judson1 is now known as Guest16503
<jsgrant> Bookmarked too. :^)
<Judson> Sorry if I missed a reply - does anyone know about the state of the ruby buildPackage or bundix?
<jsgrant> Lots of useful info, for just popping in.
<ldlework> infinisil so there is a main HM derivation somewhere right? Does that derviation have a buildStep / installStep, etc?
<ldlework> home.activationPackage perhaps
taktoa has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jwiegley pushed 1 new commit to master: https://git.io/vdFND
<NixOS_GitHub> nixpkgs/master 86b8e28 John Wiegley: startkde was removed by 0cd1b028174fe250c071c735be231db881fe964f
NixOS_GitHub has left #nixos []
<ldlework> hmm I don't see where home.activationPackage is actually defined in the "config" step sense
<ldlework> oh there it is
<disasm> digitalmentat: I got a better idea... why not have a postBuild that executes anytime it's ran and then the logic in your postbuild script can detect the case where you want it to do something or noop
<ldlework> aha, infinisil maybe I could add a postBuild phase to home.activationPackage?!
<ldlework> I know you don't like it, but perhaps it would work?
<ldlework> That should be doable even from inside the modules I think...
<infinisil> you shouldn't touch anything outside of $out in a derivation
<ldlework> Sure, I wouldn't
<ldlework> That would be the point, I'd be able to refer to the html output there and upload it to github before the activation package is finished building
<ldlework> I'd be inside the package build itself. But I'm not sure how to override/extend home.activationPackage from a module yet
ssmike has quit [(Ping timeout: 240 seconds)]
<infinisil> alright how about this
<ldlework> different modules could extend the step to do their various things, and I would have to maintain all this outside-of-HM tooling
<ldlework> wouldn't*
leat has quit [(Ping timeout: 248 seconds)]
FRidh has quit [(Ping timeout: 248 seconds)]
<infinisil> You add a script to $out that pushes your config
<infinisil> no execute, just put a script that does it
<infinisil> then you can /nix/var/nix/profile/per-user/<user>/home-manager/<script> to upload the current config
Oida has quit [(Ping timeout: 240 seconds)]
oida has joined #nixos
<digitalmentat> that postBuild would have to be in a non-deterministic derivation though...
<digitalmentat> no?
<digitalmentat> unless that derivation does indeed change
digitalmentat has quit [(Quit: Leaving)]
<infinisil> Actually this is a great idea
<ldlework> Yours or mine
leat has joined #nixos
<infinisil> mine of course xD
<infinisil> nah sry,
<infinisil> But a derivation needs to be stateless, and not do anything outside $out in a build
<ldlework> It doesn't need to do anything outside of $out, unless you're considering the git push
<infinisil> my idea is to add a home.extraBuilderCommands, same as with nixos, option, that adds extra commands to the builder package
<michaelpj> in particular, if it does anything else it'll fail with sandboxing enabled, which disables network access
<ldlework> but it's git-pushing an $out artifact
<ldlework> I don't think HM uses any sandboxing
<infinisil> and these extraBuilderCommands can put a script in $out/foo that does an additional thing, such as git push itself to github
<michaelpj> yes, but one day it'll probably become the default
<michaelpj> in nix
<michaelpj> it's just against the nix philosophy, so you're generally going to have a bad time if you try and do that
<ldlework> I don't even see what about a build actually changes if you do a git push it in it or not
<ldlework> since the build output is not dependent on the push, it shouldn't actually play into this nix philosophy rhetoric
<ldlework> But I'm pretty dumb
<ldlework> I've been wrong about just about every intuition I've had about nix 🤣
<michaelpj> from nix's point of view you're running a program that reaches out into the network - anything could happen. The simple solution is just to ban it, and do any impure stuff you need to do afterwards. That's what the activation stuff is for - actually mutating your host/the world
Fare has quit [(Ping timeout: 248 seconds)]
ertes has quit [(Ping timeout: 252 seconds)]
<ldlework> I mean you can say all network operations turn the build impure, but it seems to me that is only true if the build is casually dependent on the outcome of the network operation.
riclima has quit [(Quit: riclima)]
<ldlework> If its not, then I've just probably have an ill-conception of what it means for the build to be impure
<ToxicFrog> "pure" generally means "without hidden dependencies or side effects", and doing a git push is definitely a side effect
<infinisil> what if you're not ldlework and you want to build this derivation
<ldlework> Why?
<ldlework> The build doesn't actually depend on the git push
<infinisil> then you don't have push access and it'll fail
<ToxicFrog> Then why is it part of the build?
<ldlework> the build output
<michaelpj> it's not just the build, it's the action. Nix fundamentally assumes that derivation builds are referentially transparent, but yours isn't. If you ask to build a derivation nix could build that once, multiple times, or no times and that would be fine. Except you'd get a different number of pushes
<ldlework> anything that might go into the cryptographic hash
<ldlework> is what I mean by depend on
<ldlework> it obviously logically depends on the git push
python476 has joined #nixos
<ldlework> But not in the techncial sense of build output determinism that you're leaning on
<infinisil> That's not the definition of pure though
<ldlework> Its totally disjoint from that
<ldlework> I don't see how any other definition could matter
<ldlework> Its like if you pinged a server in the build, in a try/except case where in all cases you don't depend on the outcome at all
<ldlework> Its meaningless to say the build "depends" on this network operation
<ldlework> if it fails or succeeds the outcome of the build is the same
<ldlework> if you are not the right user or anything else, the same build result takes place
<ldlework> wrong auth token? build still succeeds with the same cryptographic output it would have it the right auth was present and the build took place.
<michaelpj> ldlework: would you be surprised if you asked to build the derivation and the git push didn't occur? or occurred multiple times?
<michaelpj> both of those are valid things for nix to do so long as it provides you with the right output at the end
<ldlework> I would be surprised if that behavior changed Nix's conception of whether it was cryptographically distinct
<michaelpj> the point I'm trying to make is that nix wants assumes referential transparency, not just "no effects that affect the build output". The former is what makes binary-cache substitutability okay, which is pretty critical
<ldlework> Yes, but in this cases it is subtitutable
leat has quit [(Ping timeout: 264 seconds)]
<ldlework> The determinis is the same, because the network operation has literally zero casual relationship with the rest of the build
<ldlework> determinism*
<ldlework> Yes, the result on GitHub might not be deterministic
<ldlework> But Nix doesn't care about that at all
ylwghst has quit [(Remote host closed the connection)]
<michaelpj> sure, my point is that Nix is going to behave as though it's referentially transparent, and if it let you have effects everywhere that would be *bad for you* because they'd be evaluated in unpredictable ways
<ldlework> You get all of the intended guarantees
<ldlework> of Nix
ris has quit [(Ping timeout: 246 seconds)]
<michaelpj> if you do it in an activation script you have none of these problems
<michaelpj> everything is predictable and composes nicely
riclima has joined #nixos
<MichaelRaskin> Well, if push failure fails the build, it is not referentially transparent.
<MichaelRaskin> I wonder how much sandboxing is currently the Nix default and when it will increaseÖ
<ldlework> Yes, but I went out of my way a few times to say that it isn't
<MichaelRaskin> increase…
<infinisil> ldlework: Here, for you: https://github.com/rycee/home-manager/pull/101
<MichaelRaskin> I guess Nix already sandboxes enough that the push will fail.
<ldlework> infinisil lol damn
<ldlework> that would've taken me the rest of the day
<LnL> when sandboxing is enabled it would fail yes
<ldlework> But the build will be the same
<LnL> with sandboxing you won't have any network acess
<michaelpj> it's not just about the build
<ldlework> you keep saying that
<ldlework> but with regards to Nix guarantees, afaict, it is about the build
<ldlework> Anything else is something you're adding ontop
<ldlework> About being able to also be assured about how Github is mutated
<ldlework> If you this in a sandboxed environment where there are no network operations, sure, Github wont be mutated how you expect
<ldlework> But as far as Nix can tell, and all those guarantees that come with it, it will be indifferent to the outcome
<michaelpj> nix is about purely functional software packaging, if it has outside effect it's not pure, no? determinism is a benefit you get from doing this, not the primary goal
<ldlework> If there's something of import that I'm missing, I genuinely want to understand it. I'm just stating the case as I understand it.
<LnL> but that would cause the build to fail
<ldlework> The package is pure.
<ldlework> LnL why would it cause the build to fail?
<ldlework> You can in the bash wrap all the git stuff in something that will never fail.
<LnL> sure that would work
<MichaelRaskin> That requires manually doing omething correctly
<MichaelRaskin> Nix guarantees are about minimizing the effects of typical manual errors.
<ldlework> Which is 👍 for package design imo
<ldlework> s/package/plugin
<michaelpj> look - why do we care about purely functional packaging? well, so we can compose things together and they work nicely without effects all over the place. That lets us do all kinds of nice things, and making more deterministic software is *one* of those things, but not the extent. So we ban effects, and that includes your github pushing
<ldlework> Actually why would it even cause the build to fail?
<ldlework> bash doesn't fail out when a command fails by default
<ldlework> So you'd have to go out of your way to make the git failure fail the whole script
<LnL> that's the default behaviour for builders
<ldlework> I've had the git fail when I had the wrong token, and the build still succeeded
<ldlework> I'm using runCommand
<ldlework> though if I use infinisil's new thing I wont be
<ldlework> but HM's derivation is a mkDerivation package
<ldlework> so I assume it is the same
<michaelpj> tbh this entire debate is basically "why can't I have benign effects like logging in a pure Haskell function?", so I defer to previous discussion
<ldlework> michaelpj that's useful, thank you
<ldlework> I'm genuinely interested so I'l at least try to look into that. I don't know haskell though.
<ldlework> Also, to keep this real, we're talking about dotfile management.
<ldlework> I personally want as much conveneince as possible
goodwill has quit [(Quit: ...)]
goodwill has joined #nixos
<catern> use ocaml or sml
maigel[m] has joined #nixos
<ldlework> michaelpj if you happen to know any good previous discussions, I'd take a look. logging is a great way to frame it.
betaboon has quit [(Quit: WeeChat 1.9.1)]
betaboon has joined #nixos
<mbirkis> anyone have experience using https://github.com/jeaye/nixos-in-place? anything special i should be aware of?
<jeaye> Never heard of it.
scribbler has joined #nixos
<jeaye> mbirkis: Are you installing on Digital Ocean, or just a normal machine?
<mbirkis> jeaye: it is on online.net machine
dbmikus has quit [(Ping timeout: 248 seconds)]
<jeaye> Hm, ok. I don't know of anyone who's tried that yet and I'm not sure if those machines will have specific network interface set ups or something.
<jeaye> mbirkis: What's the host OS?
<mbirkis> host os is ubuntu
<jeaye> LVM?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] primeos opened pull request #30617: iniparser: 3.1 -> 4.0 (master...iniparser) https://git.io/vdbfU
NixOS_GitHub has left #nixos []
<mbirkis> no LVM, boot, and root partitions
<mbirkis> oldfashioned
<jeaye> That's good, in this case. Dynamic IP, or static?
scribbler has quit [(Ping timeout: 248 seconds)]
<mbirkis> static ip
<jeaye> Ok, so you'll need to configure that again, once NixOS is installed. Does this hoster provide a web console for accessing tty?
<mbirkis> yes it does
riclima has quit [(Quit: riclima)]
betaboon has quit [(Quit: WeeChat 1.9.1)]
catch22 has joined #nixos
<jeaye> Ok, that will likely be needed. From what it sounds like, you'll be able to do the install without much issue (Ubuntu + no bells or whistles) and you'll likely need to jump into the console and set up your static IP using the typical Nix approach in order to get network up.
betaboon has joined #nixos
<mbirkis> ok, so i just clone the repo, run the script, tty in to fix stuff, and profit :)
<michaelpj> ldlework: I had a blog post in mind, but I now can't find it (typical). I'll ping it to you if I find it :)
<jeaye> mbirkis: I'd back up anything important.
betaboon has quit [(Client Quit)]
<mbirkis> jeaye: ofcourse... but thanks for reminding me
<jeaye> mbirkis: You may need to restore the machine if things fail, since everything that'll happen will be as root.
<sphalerite> Once again I call upon the zfs wizards… Does anyone know if I can permanently set ownership on a zvol? I'd like my user to have r/w access to one zvol all the time, so I can just run the VM as that user
betaboon has joined #nixos
<jeaye> mbirkis: For Digital Ocean, they manually prod and poke at /etc/network/interfaces so the Digital Ocean option links that into the new install and then sets up a systemd service: https://github.com/jeaye/nixos-in-place/blob/master/stage2#L14 to run a simple script: https://github.com/jeaye/nixos-in-place/blob/master/setup-network which brings the interfaces up.
betaboon has quit [(Client Quit)]
<mbirkis> jeaye: this is a baremetal server
betaboon has joined #nixos
<jeaye> Ah, great.
<jeaye> mbirkis: Well, if there's any documentation that can be added, based on your experience with this, let me know.
<ldlework> rycee can we merge infinisil 's 101 merge? :)
<ldlework> PR*
<mbirkis> jeaye: will do, thanks for the insights
betaboon has quit [(Client Quit)]
JosW has joined #nixos
betaboon has joined #nixos
riclima has joined #nixos
riclima has quit [(Client Quit)]
jbgi has quit [(Quit: WeeChat 1.9.1)]
civodul has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #30221: nixos-generate-config: lessen priority for cpuFreqGovernor (master...patch-14) https://git.io/vdz7X
NixOS_GitHub has left #nixos []
a6a3uh has joined #nixos
jgertm has joined #nixos
JosW has quit [(Quit: Konversation terminated!)]
<ldlework> Yeah very nice
guillaum2 has quit [(Quit: Lost terminal)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vdbUD
<NixOS_GitHub> nixpkgs/master 75a5364 Thomas Mader: dub: 1.1.0 -> 1.4.1 (#28396)...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vdbTI
<NixOS_GitHub> nixpkgs/master 916c0a6 Frank Doepper: biboumi: init at 6.1 (#30193)...
NixOS_GitHub has left #nixos []
scribbler has joined #nixos
ssmike has joined #nixos
scribbler has quit [(Ping timeout: 240 seconds)]
mortum5 has quit [(Ping timeout: 240 seconds)]
<woffs> joachifm: thanks for merging! I'd appreciate additional maintainers for biboumi.
digitalmentat has joined #nixos
<digitalmentat> domenkozar, is there a security report somewhere of the impact from installing Nix 1.11.15 on High Sierra? Are we still within a period of responsible disclosure which is why no official announcements have been made on the website with details?
adamt_ is now known as adamt
mortum5 has joined #nixos
mortum5 has quit [(Max SendQ exceeded)]
<adamt> Am I missing something, or does the kea package lack systemd-unit and any form of configuration options?
mortum5 has joined #nixos
<digitalmentat> adamt, not all derivations under pkgs/ have corresponding NixOS modules declaring NixOS options and defining a systemd configuration, that might be the case for kea
scribbler has joined #nixos
ssmike has quit [(Ping timeout: 248 seconds)]
<adamt> digitalmentat, ah. Why would people spend time on the pkgs but not on the nixos module? Is it packages that comes from plain nix?
<MichaelRaskin> Packages are usable outside NixOS; and if you have just a manually-written config for the service, it doesn't look nice enough to submit as a module for inclusion.
<digitalmentat> adamt, often times one will have a module written that isn't very nice but the derivation is still useful to the community
<cransom> i don't know the proportion, but a good number of packages are also not services that require system configuration either
<MichaelRaskin> Also, if you submit a package, everyone gets nice Hydra builds and saves five minutes of build time per update or something; for a service the balance is different.
scribbler has quit [(Ping timeout: 248 seconds)]
<infinisil> I see 738 nixos modules
<digitalmentat> it takes a lot of effort to write a polished NixOS module that generally useful
<infinisil> but there's like 17000 packages
wlhlm has joined #nixos
<digitalmentat> like cransom said not every "package" needs a NixOS module
<adamt> Fair enough. Kea needs a module, though. Oh well, another thing to write. :P
<digitalmentat> I highly recommend contributing your module when you finish it :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LutzCle opened pull request #30618: makemkv: 1.10.6 -> 1.10.7 (master...master) https://git.io/vdbIN
NixOS_GitHub has left #nixos []
<cransom> i don't see anything wrong with bare minimum functionality in a service. if all it does is have an enable option that creates a service and you dump config text to location for it to run, thats somewhere to start with.
betaboon has quit [(Ping timeout: 240 seconds)]
<MichaelRaskin> PR backlog! Less code → faster review → to hell with the trivial service.
<sphalerite> ^
<cransom> some software though, it just doesn't want to be bottled. like the sumologic agent? it assumes it can just have /opt/something and write anywhere it wants and hard codes scripts. it was my first attempt at a module and it was too gross to keep using
<adamt> digitalmentat, will do. Although at this point I'm/we're mostly reviewing the amount of packages to upversion/fix/create/... if changing to nixos :P
<adamt> MichaelRaskin, so that's a vote against the bare minimum service/module?
<infinisil> With nix/nixos we basically fix every broken package out there :P
<digitalmentat> adamt, I have found nixpkgs to be fairly up-to-date w.r.t package versions
<digitalmentat> the beautiful thing about it being declarative is that you have, quite possibly, the most rigorous description for how to build packages out there
<infinisil> Cannot confirm that, namecoin hasn't seen an update in three years until recently
<infinisil> as an example
<adamt> digitalmentat, yeah, it's not bad, but so far the list includes kubernetes (from 1.7 to 1.8), zabbix (really really outdated), kea (missing module), so not to bad so far :P
<michaelpj> the thing is that at the moment updates are usually demand-driven. It would be nice to have some kind of system that encouraged us to update packages when newer versions are available, even if nobody has actually needed that version yet
<michaelpj> I don't know how other distros manage this
<infinisil> michaelpj: But it's hard to update stuff you don't know, because you can't test it efficiently
<michaelpj> sure - by "us" I meant the maintainer of the package
<infinisil> ah
<digitalmentat> we use it (Nix + nixpkgs + NixOS) extensively in production and it is pretty amazing as a devenv + build/CI + production OS
<michaelpj> even if it just emailed me saying "hey, this package you maintain has a newer version, maybe think about updating it sometime", I'd probably do that
p4cman has quit [(Quit: Connection closed for inactivity)]
<infinisil> versions are one of the things where nix has a worse experience than other PM's
<michaelpj> and that has an API, so you could probably hook that up to a little service
<adamt> michaelpj, it should be pretty easy to make something that warns on new tags or branches matching a specific pattern (like vX.Y), as long as you got a pointer to the vcs of the package :-)
mbirkis has quit [(Quit: WeeChat 1.4)]
<roberth> adamt, michaelpj, it's not a solution for updating packages in nixpkgs itself, but this is a relevant blog post by Rok Garbas: https://garbas.si/2016/updating-your-nix-sources.html
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #30407: lxc: 2.0.8 -> 2.1.0 (master...lxc_2.1.0) https://git.io/vd1fO
NixOS_GitHub has left #nixos []
<michaelpj> looks like something like https://github.com/repology/repology/issues/308 would be pretty handy
<michaelpj> roberth: yeah, more widespread use of automatic updaters might make it possible to do this stuff automatically, but I'd settle for being notified of when it needed to be done manually
leat has joined #nixos
<infinisil> Notification: "The package <foo> received an update from 1.1 to 1.2, click here to cd to its build and test it", and upon testing it a PR gets created automagically :O
<infinisil> s/and test it/to test it/
kp__ has joined #nixos
a6a3uh has quit [(Quit: Bye)]
ylwghst has joined #nixos
<michaelpj> that would be pretty glorious. It feels like you ought to be able to do something sensible for most packages which fetch from tags in a git repo if you specify a tag pattern that matches release tags
<symphorien> I subsccribe to the rss of the corresponding package in tracker.debian.org to get notified when upstream releases a new version, they already have all the necessary automation
kp__ has quit [(Quit: WeeChat 1.9.1)]
kp__ has joined #nixos
leat has quit [(Read error: No route to host)]
<Sonarpulse> is ivy, that java tool, in nixpkggs?
<Sonarpulse> I just want to run https://github.com/sualeh/SchemaCrawler
<Sonarpulse> no idea how
betaboon has joined #nixos
hamishmack has quit [(Ping timeout: 260 seconds)]
ma27 has joined #nixos
sigmundv has quit [(Ping timeout: 240 seconds)]
mbirkis has joined #nixos
<adamt> Can nix generate json config files?
<mbirkis> jeaye: the script ran ok, but for some reason it did not boot
<mbirkis> i am installing using a rescue console instead
ma27 has quit [(Ping timeout: 240 seconds)]
leat has joined #nixos
<MichaelRaskin> adamt: to be clear — it _is_ a vote in favour of «bare package first in a separate PR», I didn't mean that the second — service module — PR does harm to the project, it's just that nobody gets around to also submitting it.
kiloreux has quit [(Ping timeout: 240 seconds)]
kiloreux_ has quit [(Ping timeout: 248 seconds)]
<adamt> MichaelRaskin, fair enough.
<adamt> Sleep tight guys and ladies :-)
thblt has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dywedir opened pull request #30619: youtube-dl: 2017.10.01 -> 2017.10.20 (master...youtube-dl) https://git.io/vdbOd
NixOS_GitHub has left #nixos []
digitalmentat has quit [(Quit: Leaving)]
adamt has quit [(Ping timeout: 248 seconds)]
ylwghst has quit [(Quit: Lost terminal)]
leat has quit [(Ping timeout: 240 seconds)]
hamishmack has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dywedir opened pull request #30620: fzy: 0.7 -> 0.9 (master...fzy) https://git.io/vdb3d
NixOS_GitHub has left #nixos []
MP2E has joined #nixos
elninja44 has joined #nixos
civodul has quit [(Quit: ERC (IRC client for Emacs 25.3.1))]
Ivanych has quit [(Ping timeout: 246 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vdbsZ
<NixOS_GitHub> nixpkgs/master bd8daca Vladimír Čunát: Merge branch 'staging'...
NixOS_GitHub has left #nixos []
<sphalerite> How do I get a nix-shell with the stdenv including the C compiler? I see there's a stdenvNoCC, but that seems to be redundant at least for hte purposes of nix-shell since nix-shell -p stdenv doesn't include the compiler.
<sphalerite> I can of course do nix-shell -p stdenv gcc
<sphalerite> but is there a neater way?
<jeaye> mbirkis: Hm
leat has joined #nixos
jgertm has quit [(Ping timeout: 260 seconds)]
<infinisil> sphalerite: nix-shell '<nixpkgs>' -A stdenv
<sphalerite> infinisil: that seems to me like it gets the pieces for building stdenv, not stdenv itself…?
<sphalerite> and indeed it also doesn't include gcc :)
<infinisil> what /is/ stdenv really though
<infinisil> really? it does for me
jgertm has joined #nixos
hiratara has quit [(Ping timeout: 255 seconds)]
hiratara has joined #nixos
<infinisil> sphalerite: https://git.io/vdbGU
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vdbGk
<NixOS_GitHub> nixpkgs/master 1d317bd Vladimír Čunát: scons: fix meta eval
NixOS_GitHub has left #nixos []
<infinisil> i have a doubt that the --pure isn't working for some reosan
<infinisil> Oh yup
<infinisil> Never mind then
nckx has quit [(Quit: Restarting my GuixSD server — https://gnu.org/s/guix)]
<Leo`> I'm trying to create an env with various Django packages but I want to use Django 1.8 exactly. The thing is that when I do something like python.withPackages (ps: [ ps.django_1_8 ps.djangorestframework ]), then djangorestframe starts pulling another version of Django and I have a conflict...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] mimadrid opened pull request #30622: tmuxinator: 0.9.0 -> 0.10.0 (master...update/tmuxinator-0.10.0) https://git.io/vdbZZ
NixOS_GitHub has left #nixos []
<Leo`> This is a simple example but in the end I need tons of other packages. I don't think overriding them all is the solution?
<Leo`> Is there something cleaner?
python476 has quit [(Ping timeout: 264 seconds)]
<infinisil> Leo`: Would using an older nixpkgs version where 1.8 was the default work for you?
cement has quit [(Ping timeout: 260 seconds)]
<michaelpj> perhaps you just want to override `django` to be django 1.8?
<infinisil> Oh yeah that's better ^^
<Leo`> Perhaps? I don't know. That could break things?
<Leo`> What's the point of having several Django version in nixpkgs if we have a single version of all the extra libs. :/
<Leo`> versions*
<Leo`> *Just noticed right now the NixOS logo was made of lambdas.*
<infinisil> Took me a while to notice too xD
<infinisil> Overriding it for all packages could certainly break things, but I'd say that's unlikely. Using a different nixpkgs version almost certainly won't break anything, but it's not as nice
leat has quit [(Ping timeout: 240 seconds)]
<Leo`> Yes. Plus I don't want to do that globally.
<Leo`> I still want the rest of my system to use recent packages. :p
slack1256 has joined #nixos
ma27 has joined #nixos
iqubic has joined #nixos
endforma1 has quit [(Quit: WeeChat 1.9.1)]
<slack1256> what is the deal with openGL on nixos?
endformationage has joined #nixos
<slack1256> I got to `nix-env -u --eq mplayer' for it to work on some nixos-rebuild . Maybe can it be capture correctly on nixpkgs?
<slack1256> *can't
jushur has joined #nixos
<srhb> slack1256: The deal is that it's impure.
<infinisil> Leo`: You should use a nix-shell for that then
hiratara has quit [(Quit: ZNC - http://znc.in)]
ma27 has quit [(Ping timeout: 248 seconds)]
<rycee> ldlework: #101 is merged now.
<rycee> infinisil: https://github.com/rycee/home-manager/pull/102 the nixpkgs module PR
<ldlework> vbwoo
<infinisil> rycee: Yeah I'm just looking at it now
<rycee> The main issue remaining is how to make the changes in the HM config apply to Nix commands running outside the HM context.
<rycee> Similar issue to this: https://github.com/NixOS/nixpkgs/issues/25264
<infinisil> Is this really needed/wanted though?
simukis has quit [(Ping timeout: 240 seconds)]
<ldlework> ...
<infinisil> Hmm... I mean the config.nix doesn't really need to be managed by the user anymore with home-manager
<infinisil> And now it uses an overlay for the installation so config.nix isn't needed anymore
<infinisil> It just somehow feels wrong to write a nix file with nix itself
<rycee> In general I think so. For example, assume the future xdg module inserts an overlay that enables packages to, e.g., read configuration from XDG_CONFIG_HOME. Then you'd want the program read the config from there even when running in a nix-shell.
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/1d317bd84a (from 45 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<rycee> Well, the clever way would be to write a config.nix that loads the home.nix module and returns config.nixpkgs.config…
<rycee> That may have performance implications, though. So I cannot say if that will end up being the best way to do it.
* infinisil thinks about that
* infinisil agrees
<infinisil> Why would that give bad performance though?
<infinisil> Oh because all of the home-manager config needs to be evaluated
<infinisil> rycee: I mean, config.nix can only contain allow{Broken,Unfree} = {true,false}; and packageOverrides, right?
<infinisil> and packageOverrides is a strict subset of overlays
hiratara has joined #nixos
<infinisil> so I think it could be enough to just write allow{Broken,Unfree} to config.nix
<infinisil> and the nixpkgs.overlays could be written to ~/.config/nixpkgs/overlays.nix
kkini has quit [(Remote host closed the connection)]
kkini has joined #nixos
<infinisil> Wait no that doesn't work, you can't just write nix from nix
<michaelpj> I'm a bit confused by this - I'd expect home-manager to be like nixos: have options for config/overlays, but those are independent from the config/overlays in your home directory. The former would apply to home-manager operations, and the latter to independent nix commands
<michaelpj> if you want them all to be the same you can set up some symlinks
<infinisil> michaelpj: That's what I was thinking of at first
<infinisil> But thinking about it again, that's just another different semantic which may even be more confusing
<infinisil> nixos overlays already don't apply to the users nix
<infinisil> same with config
<infinisil> I think it would be much nicer to have something like a home.manageConfig and home.manageOverlays option which you can enable though
<infinisil> or nixpkgs.manage{Config,Overlays} probably
keta_suki has quit [(Remote host closed the connection)]
<michaelpj> idk, what's wrong with `homeManager.nixpkgs.config = import some/file; home.".config"."nixpkgs"."config.nix" = some/file` or whatever the syntax is
keta_suki has joined #nixos
<rycee> Yeah, the easy out would be to expect the user to put `nixpkgs.config = import ~/.config/nixpkgs/config.nix` in their HM config.
hamishmack has quit [(Quit: hamishmack)]
<rycee> Right. And similar for `nixpkgs.overlays`.
<michaelpj> I mean, I already do essentially that for nixos
<michaelpj> it's a bit surprising when you first realise that those aren't really "global" settings, but then it makes sense
<infinisil> Hmm, so to just have it manage files like normal and let the user decide what he wants to put in config.nix without any convenient option
<infinisil> that sounds good to me, it could always change later
pxc has quit [(Ping timeout: 240 seconds)]
digitus has quit [(Quit: digitus)]
oida has quit [(Ping timeout: 246 seconds)]
hamishmack has joined #nixos
phreedom has joined #nixos
oida has joined #nixos
justanotheruser has joined #nixos
justanotheruser has quit [(Client Quit)]
elninja44 has quit [(Remote host closed the connection)]
oida has quit [(Ping timeout: 240 seconds)]
mortum5 has quit [(Ping timeout: 255 seconds)]
oida has joined #nixos
justanotheruser has joined #nixos
justanotheruser has quit [(Client Quit)]
justanotheruser has joined #nixos
pxc has joined #nixos
justanotheruser has quit [(Quit: WeeChat 1.7.1)]
justanotheruser has joined #nixos
erasmas has quit [(Quit: leaving)]
adc has quit [(Ping timeout: 240 seconds)]
NightTrain has joined #nixos
justanotheruser has quit [(Client Quit)]
justanotheruser has joined #nixos
Kingsquee has joined #nixos
<gchristensen> someone said I should make an index of of the services I have, so I made one, but I don't think anyone will find any surprises: https://nix.gsc.io
markus1189 has joined #nixos
* ekleog was just surprised by https://channels.nix.gsc.io/graph.html
<ekleog> :þ
markus1199 has quit [(Ping timeout: 240 seconds)]
MP2E has quit [(Remote host closed the connection)]
kp__ has quit [(Quit: WeeChat 1.9.1)]
jgertm has quit [(Ping timeout: 248 seconds)]
python476 has joined #nixos
<infinisil> Oh my god are you serious, nix is trolling me
<infinisil> I see (_: _: {}) in nixpkgs, me thinks "Oh cool, didn't know nix could ignore arguments like this!". Well, turns out that's not exactly what it's doing
adc has joined #nixos
<infinisil> _ is a valid variable name :/
ryantrinkle has quit [(Ping timeout: 240 seconds)]
<CrazedProgrammer> yeah, you can shadow variables
<CrazedProgrammer> and _ is a valid identifier
<gchristensen> _- is also a valid id :)
<infinisil> What is this blasphemy
keta_suki has quit [(Quit: WeeChat 1.9.1)]
Sonarpulse has quit [(Ping timeout: 248 seconds)]
<CrazedProgrammer> it makes complete sense :)
slack1256 has quit [(Remote host closed the connection)]
<gchristensen> I'm not sure _complete_ sense but I can see how it came to be :)
thc202 has quit [(Ping timeout: 240 seconds)]