<bgamari> Is it normal to get 60kByte/s downloads from cache.nixos.org?
<bhipple[m]> It's normally very fast
<gchristensen> where are you in the world?
<bgamari> north east of the US
phreedom has quit [(Ping timeout: 248 seconds)]
<gchristensen> I'm getting 8569k/s in rural western MA
<bgamari> gchristensen, you are in Western MA?
<gchristensen> yeah
jb55 has quit [(Ping timeout: 255 seconds)]
oida has quit [(Ping timeout: 246 seconds)]
bebarker has joined #nixos
phreedom has joined #nixos
<bebarker> I'd like to run a nix-shell with a derivation defined in a .nix file not in the nixpkgs tree - is this possible by some means?
<clever> bebarker: nix-shell vim.nix
oida has joined #nixos
<clever> if the file doesnt need any arguments
<bebarker> clever, ok, I tried that, but the files in $out/bin appear to not be added to the PATH
<bebarker> i verified they are there, e.g.: /nix/store/g1zisjcq1wisxk2kppgy7gmx2l0zs56v-gurobi-7.5.1/bin/
<clever> bebarker: ahh, you want to use the result of it, not build it under the shell
<bebarker> yes!
<clever> bebarker: nix-shell -p '(import ./gurobi.nix)'
<clever> all -p does, is generate a dummy derivation to "build", and puts all of the arguments into the buildInputs
<clever> and its just dumb string manipulation, so you can inject code into that
Judson has quit [(Ping timeout: 258 seconds)]
<bebarker> clever ooh, I've got to write that down now, I always find myself wanting to do this
<clever> bebarker: another option is to just write a second file, that does nothing and depends on gurobi
<bebarker> i may need to take that approach more as i start to pull in multiple custom packages anyway I suppose. thanks!
<clever> bebarker: that allows me to just "nix-shell vim.nix" and i get a fully configured editor, without any lasting changes to the machine
<bebarker> great, that sounds like what I'm looking for
ertes has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jerith666 opened pull request #30623: webkitgtk 2.4: fixup build by using older icu again (master...webkit-icu) https://git.io/vdb0C
NixOS_GitHub has left #nixos []
<clever> bebarker: as a nixos module that installs vim: https://github.com/cleverca22/nixos-configs/blob/master/vim.nix#L37
<clever> bebarker: and then just a dummy derivation i can shell into: https://gist.github.com/cleverca22/9c4a83b06121108607b54771a38ebbaa
wlhlm has quit [(Ping timeout: 252 seconds)]
ryantrinkle has joined #nixos
betaboon has quit [(Quit: WeeChat 1.9.1)]
betaboon has joined #nixos
acowley_away is now known as acowley
simpson has joined #nixos
<simpson> Hi. I notice that Impressive, the PDF presentation tool, is not packaged and also that its upstream is a little quiet. Are there PDF presentation tools in nixpkgs already which work well on cheap i915 graphics?
ylwghst has joined #nixos
betaboon has quit [(Quit: WeeChat 1.9.1)]
betaboon has joined #nixos
TaoHansen[m] has joined #nixos
drakonis has joined #nixos
ylwghst has quit [(Client Quit)]
<TaoHansen[m]> i'm running Nix on top of GuixSD. video editors that use MLT, like Shotcut and Kdenlive can't find OpenGL. what do i need to link to get them functional?
<gchristensen> I don't think that'll work, I think our opengl programs only work under nixos
MP2E has joined #nixos
python476 has quit [(Ping timeout: 240 seconds)]
<drakonis> why would you do that...
<gchristensen> use nix on guixsd?
<drakonis> yes
<drakonis> that sounds like some very crazy stuff
rburkholder has quit [(Read error: Connection reset by peer)]
<gchristensen> to get all the benefits of nix (guix) with the unfreeness of nix :)
<drakonis> like the unstoppable force meets the unmovable object
rburkholder has joined #nixos
adc has quit [(Ping timeout: 248 seconds)]
<requisitebits> ebkitgtk 2.4: fixup build by using older icu again (master...webkit-icu) https://git.io/vdb0C
<requisitebits> 17:27 -!- NixOS_GitHub [~NixOS_Git@192.30.252.34] has left #nixos []
<requisitebits> 17:29 < clever> bebarker: as a nixos module that installs vim: https://github.com/cleverca22/nixos-configs/blob/master/vim.nix#L37
<requisitebits> nevermind that; just copy-paste shenanigans ;)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Moredread opened pull request #30624: yubico-piv-tool: 1.3.0 -> 1.4.4 (master...yubico-piv-tool-1.4.4) https://git.io/vdbEM
NixOS_GitHub has left #nixos []
iqubic has quit [(Ping timeout: 252 seconds)]
oida has quit [(Ping timeout: 240 seconds)]
<TaoHansen[m]> gchristensen: hmm but Pitivi does?
Oida has joined #nixos
<gchristensen> ?
<TaoHansen[m]> drakonis: what gchristensen said. :-)
<TaoHansen[m]> runs without complaint
<TaoHansen[m]> also a video editor
<gchristensen> is it based on opengl?
<TaoHansen[m]> shouldn’t all these things depend on OpenGL?
<TaoHansen[m]> pardon my supreme ignorance
<gchristensen> I don't think necessarily
<gchristensen> pitivi seems to not
<TaoHansen[m]> got it. thanks for your help. i’ll just use Pitivi if there isn’t a workaround
betaboon has quit [(Quit: WeeChat 1.9.1)]
betaboon has joined #nixos
<TaoHansen[m]> drakonis: actually this is only part of the why. Nixpkgs has a whole lot more packages than Guix. so i just draw from their repos when Guix doesn’t have what i want
<TaoHansen[m]> “it’s like Voltron. the more you hook up, the better it gets.”
<gchristensen> but why guix at all?
<gchristensen> not a loaded question, just curious
mbrgm has quit [(Ping timeout: 240 seconds)]
mbrgm has joined #nixos
orivej has quit [(Ping timeout: 255 seconds)]
ylwghst has joined #nixos
<Acou_Bass> gchristensen: guix is great :D scheme is even easier than the nix expression
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] hamishmack opened pull request #30625: r-modules: Fix a number of popular R packages (master...r-fixes) https://git.io/vdbgD
NixOS_GitHub has left #nixos []
hellrazo1 has joined #nixos
lambdamu_ has joined #nixos
hellrazor has quit [(Ping timeout: 246 seconds)]
etu has quit [(Read error: Connection reset by peer)]
etu has joined #nixos
lambdamu has quit [(Ping timeout: 260 seconds)]
bgamari has quit [(Quit: ZNC - http://znc.in)]
dieggsy has joined #nixos
<drakonis> now that's a question i wanted answered
<drakonis> both have very distinct opinions on how to run the same concept
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vdb2Y
<NixOS_GitHub> nixpkgs/master 4a8116c André-Patrick Bubel: yubico-piv-tool: 1.3.0 -> 1.4.4
<NixOS_GitHub> nixpkgs/master df528e4 Tim Steinbach: Merge pull request #30624 from Moredread/yubico-piv-tool-1.4.4...
NixOS_GitHub has left #nixos []
bgamari has joined #nixos
ylwghst has quit [(Quit: Lost terminal)]
ylwghst has joined #nixos
notdaniel has joined #nixos
nisstyre has quit [(Ping timeout: 255 seconds)]
ylwghst has quit [(Quit: leaving)]
ylwghst has joined #nixos
betaboon has quit [(Quit: WeeChat 1.9.1)]
Supersonic112 has quit [(Disconnected by services)]
betaboon has joined #nixos
betaboon has quit [(Client Quit)]
Supersonic112_ has joined #nixos
betaboon has joined #nixos
Supersonic112_ is now known as Supersonic112
acowley is now known as acowley_away
jb55 has joined #nixos
betaboon has quit [(Client Quit)]
betaboon has joined #nixos
betaboon has quit [(Quit: WeeChat 1.9.1)]
betaboon has joined #nixos
ylwghst has quit [(Quit: Lost terminal)]
Arcaelyx_ has quit [(Ping timeout: 248 seconds)]
Arcaelyx has joined #nixos
betaboon has quit [(Quit: WeeChat 1.9.1)]
notdaniel has quit [(Quit: Leaving)]
betaboon has joined #nixos
nisstyre has joined #nixos
Pwnna has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ebzzry opened pull request #30627: pell: 0.0.1 -> 0.0.2 (master...pell-0.0.2) https://git.io/vdbag
NixOS_GitHub has left #nixos []
Pwnna has left #nixos ["Leaving"]
frankpf has joined #nixos
ivanivan has joined #nixos
<ivanivan> Is there a "correct" way to delete the `result` symlink created by nix-build?
<ivanivan> The docs say you shouldn't rename it, because it would disappear as a garbage-collection root
<simpson> Do you want to keep the GC root?
betaboon has quit [(Quit: WeeChat 1.9.1)]
<ivanivan> I want to allow the target to be garbage collected. I might be misunderstanding what a gc "root" is exactly though.
<simpson> The docs just mean that if you rename the symlink, it might stop working.
betaboon has joined #nixos
<simpson> You can just delete the symlink with normal tools.
<ivanivan> meaning the gc attempts might stop working?
betaboon has quit [(Client Quit)]
betaboon has joined #nixos
frankpf has quit [(Quit: Leaving)]
nisstyre has quit [(Changing host)]
nisstyre has joined #nixos
betaboon has quit [(Client Quit)]
dbmikus has joined #nixos
ivanivan has quit [(Quit: WeeChat 1.9.1)]
hamishmack has quit [(Remote host closed the connection)]
hamishmack has joined #nixos
boxofrox has quit [(Quit: WeeChat 1.9)]
<disasm> meaning the blocking of gc might stop working if you rename
<disasm> deleting it will allow gc
Mateon2 has quit [(Ping timeout: 240 seconds)]
nisstyre has quit [(Ping timeout: 252 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] SeanZicari opened pull request #30629: Xosview (master...xosview) https://git.io/vdbVp
NixOS_GitHub has left #nixos []
<ldlework> rycee what about nixpkgs.overlays?
schoppenhauer has quit [(Ping timeout: 260 seconds)]
schoppenhauer has joined #nixos
adc has joined #nixos
nisstyre has joined #nixos
pxc has quit [(Ping timeout: 248 seconds)]
iqubic has joined #nixos
dieggsy has quit [(Remote host closed the connection)]
nisstyre has quit [(Changing host)]
nisstyre has joined #nixos
drakonis has quit [(Read error: Connection reset by peer)]
pie_ has quit [(Remote host closed the connection)]
dbmikus has quit [(Ping timeout: 240 seconds)]
pie_ has joined #nixos
pie_ has quit [(Read error: Connection reset by peer)]
pie_ has joined #nixos
contrapumpkin has quit [(Ping timeout: 258 seconds)]
contrapumpkin has joined #nixos
<michaelpj> does hydra not build mono? I'm finding I have to compile it myself every time I update because steam needs it, which is a bit of a pain
<hyper_ch> yu have time to play games? :)
<michaelpj> because I'm away on work and too jetlagged to sleep yet ;)
<michaelpj> but hey, building packages is fun too ;)
ssmike has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] adisbladis opened pull request #30630: firefox-beta-bin: 57.0b6 -> 57.0b10 (master...firefox-beta-bin-57_0b10) https://git.io/vdbrS
NixOS_GitHub has left #nixos []
notdaniel has joined #nixos
<hyper_ch> michaelpj: https://xkcd.com/303/
<disasm> bebarker: here's a default.nix skeleton I use everywhere... basically for your case, just add your package in buildInputs. You can do that directly similar to how you run nix-shell -p that clever showed, or clean it up and do a let pkg = import ./foo.nix; in and then use pkg in buildInputs.
<hyper_ch> ansible? not nixops?
<disasm> hyper_ch: most of my clients aren't even using nix, let alone nixos yet sadly. All my personal stuff is nixops now though (including this d.o box I use for connecting to IRC)
<disasm> I'm working on a standardized platform management nixops set of roles that as soon as I find a client interested in nix though, I'll be ready :) So far got most of the monitoring stuff done, ldap SSO with ssh keys in ldap, playing with gocd instead of jenkins for build server and a few other things.
<adisbladis> disasm: Did you publish your nixops configs somewhere?
<adisbladis> Ohh I really like that helpful shellHook :>
<adisbladis> Gonna steal that one
<disasm> not yet, the structure is based off of https://github.com/xtruder/nix-profiles
<disasm> adisbladis: you can thank gchristensen for telling me about that awesome trick :)
MP2E has quit [(Remote host closed the connection)]
<hyper_ch> disasm: another one to put on my list - so I have plenty of people to ask when I start uing nixops :)
puckipedia has quit [(Read error: error:1408F119:SSL routines:SSL3_GET_RECORD:decryption failed or bad record mac)]
puckipedia has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] kquick opened pull request #30632: multicompiler: add multicompiler package (master...mvcc) https://git.io/vdbos
NixOS_GitHub has left #nixos []
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/1d317bd84a (from 7 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
endformationage has quit [(Quit: WeeChat 1.9.1)]
Wizek has quit [(Quit: Connection closed for inactivity)]
<hyper_ch> is there actually a nice syntax highlighting for .nix in kate?
mkoenig_ has quit [(Remote host closed the connection)]
xd1le has joined #nixos
pxc has joined #nixos
frankqux2 has quit [(Ping timeout: 258 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] michaelpj opened pull request #30634: redshift: allow using geoclue2 as the location provider (master...imp/redshift-geoclue) https://git.io/vdbKe
NixOS_GitHub has left #nixos []
frankqux1 has joined #nixos
ma27 has joined #nixos
pxc has quit [(Ping timeout: 240 seconds)]
ssmike has quit [(Ping timeout: 240 seconds)]
iyzsong has joined #nixos
jgertm has joined #nixos
notdaniel has quit [(Quit: Leaving)]
pie_ has quit [(Ping timeout: 240 seconds)]
jgertm has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterromfeldhk opened pull request #30635: androidndk: add Darwin support (master...androidndk/darwin) https://git.io/vdbKo
NixOS_GitHub has left #nixos []
mgttlinger has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peterromfeldhk closed pull request #30635: androidndk: add Darwin support (master...androidndk/darwin) https://git.io/vdbKo
NixOS_GitHub has left #nixos []
jgertm has joined #nixos
jgertm has quit [(Ping timeout: 248 seconds)]
Mateon2 has joined #nixos
ssmike has joined #nixos
jushur has quit [(Quit: The Borg joined forces with Skynet, Resistance is futile! Uploading has begun!)]
ssmike has quit [(Ping timeout: 255 seconds)]
ssmike has joined #nixos
demego has quit [(Remote host closed the connection)]
demego has joined #nixos
pikajude has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
pikajude has joined #nixos
scribbler has joined #nixos
scribbler has quit [(Remote host closed the connection)]
scribbler has joined #nixos
xelxebar has joined #nixos
<xelxebar> I'm a bit stumped. How can I go about installing the nix-install nix-generate-config etc tools?
<xelxebar> I see the *.nix expression files under /nix/store/<blah>-nixpkgs-<blah>/nixos/modules/installer/tools/
<xelxebar> FWIW, I'm running a nix store on a non nixos system
simukis has joined #nixos
mutagenfork has joined #nixos
kiloreux has joined #nixos
kiloreux_ has joined #nixos
notdaniel has joined #nixos
jsgrant has quit [(Remote host closed the connection)]
scribbler has quit [(Remote host closed the connection)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/df528e4472 (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
notdaniel has quit [(Quit: Leaving)]
pxc has joined #nixos
jb55 has quit [(Ping timeout: 240 seconds)]
pxc has quit [(Ping timeout: 258 seconds)]
ma27 has quit [(Ping timeout: 258 seconds)]
ssmike has quit [(Ping timeout: 240 seconds)]
voiceftp has quit [(Quit: Leaving)]
scribbler has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] matthewbauer opened pull request #30640: cmake: setup CMAKE_FRAMEWORK_PATH (master...cmake-frameworks) https://git.io/vdbPY
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] cocreature opened pull request #30641: ghcjs: Do not mark as broken (master...unbreak-ghcjs) https://git.io/vdbPG
NixOS_GitHub has left #nixos []
<CcxWrk> I see that there are no overlay-style binaries for installing Nix on ARM, while there are full NixOS builds. Is there a reason for that? Could I build my own?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joncojonathan opened pull request #30642: keepass: 2.36 -> 2.37 (master...update-keepass2_3_7) https://git.io/vdbP2
NixOS_GitHub has left #nixos []
a6a3uh has joined #nixos
jensens has joined #nixos
adamt has joined #nixos
adamt has quit [(Changing host)]
adamt has joined #nixos
hamishmack has quit [(Quit: hamishmack)]
ma27 has joined #nixos
<clever> CcxWrk: i have nix running on one of my raspberry pi's, ive given my hydra a kick to get it going again
Ivanych has joined #nixos
<CcxWrk> clever: So you built Nix from source there?
roflukulus has joined #nixos
<CcxWrk> Or via hydra on different arch I guess.
mgttlinger has quit [(Quit: Connection closed for inactivity)]
scribbler has quit [(Ping timeout: 260 seconds)]
FRidh has joined #nixos
hamishmack has joined #nixos
<neonfuz> recommended chinese font package?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vdbXR
<NixOS_GitHub> nixpkgs/master 525e121 Vladimír Čunát: xorg.libXfont: 1.5.2 -> 1.5.3...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to staging: https://git.io/vdbXE
<NixOS_GitHub> nixpkgs/staging f70118b Frederik Rietdijk: Merge remote-tracking branch 'upstream/master' into HEAD
NixOS_GitHub has left #nixos []
roflukulus has left #nixos []
roflukulus has joined #nixos
roflukulus has quit [(Quit: Leaving.)]
roflukulus has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to release-17.09: https://git.io/vdbXw
<NixOS_GitHub> nixpkgs/release-17.09 2b0ccb1 Vladimír Čunát: xorg.libXfont: 1.5.2 -> 1.5.3...
NixOS_GitHub has left #nixos []
ssmike has joined #nixos
<roflukulus> Hi, this is nearly my first day in nixos. When i add pidgin to configuration.nix and do a nix-rebuild switch, my screen flickered and the system was unusable. After reboot everything is fine. Any workarounds against this behaviour? Do nix-rebuild test first?
<srhb> roflukulus: nixos-rebuild test only activates the configuration but does not set it bootable for the next boot, so that wouldn't change anything in this case.
<srhb> (meaning you're back to your old system once you reboot)
<jluttine> hmm.. how can i add some my own packages to pkgs in configuration.nix?
<srhb> jluttine: There's a myriad of ways. How about packageOverrides?
<srhb> Or maybe overlays.
<roflukulus> srhb: I see, so what should I do best? I had this behaviour also with atom.
<srhb> roflukulus: I don't think we have enough information on what you did and what happened to give any sensible advice.
wlhlm has joined #nixos
<roflukulus> srhb: what you need? configuration.nix? the nix-shell command on topic gives me undefined variable 'nix-info'
<srhb> roflukulus: The changes you made before rebuilding would be better.
<srhb> (That said I have no idea about X issues, so I personally probably won't be able to help, but maybe someone else will)
<roflukulus> https://github.com/roflukulus/nixos-stuff/blob/master/configuration.nix is my config file. I added pidgin to environment.systemPackages
<roflukulus> that was all i did before rebuilding
Guest64 has joined #nixos
<srhb> roflukulus: And you hadn't upgraded the channel or anything since last rebuild?
NightTrain has quit [(Quit: Lost terminal)]
<jluttine> srhb: ok! tried packageOverrides but got errors both with it being a top-level attribute name alongside config and option, and also with being under config. don't know where it should be put..
<srhb> jluttine: nixpkgs.config.packageOverrides :)
<jluttine> ah
<srhb> Since it configures the "system" nixpkgs
<roflukulus> srhb: Nope. I don't even know how to do that, yet. :-)
<clever> CcxWrk: i believe i had built nix from source with ./configure, then i used that nix to build nix with nix
<clever> CcxWrk: which resulted in a normal nix build inside /nix/store/
<srhb> roflukulus: Hm, no idea, except that shouldn't happen (but you already figured that out) :-P
dywedir has joined #nixos
Isorkin has quit [(Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)]
<srhb> jluttine: Personally I have that be = import ./overrides.nix; which then contains a function pkgs : { ... } with all my definitions
<jluttine> srhb: thanks, that works! amazing. it wasn't directly told in https://nixos.org/nixpkgs/manual/#sec-modify-via-packageOverrides but now that you mentioned this, yes, it's in the file path
<srhb> jluttine: scroll down to the third box :)
<jluttine> srhb: yep, thanks! i'm always having difficulties finding the right place from the docs. i google and google and browse the docs and in the end the info was still somewhere else :/
<srhb> jluttine: Yes, the split between nixos and nixpkgs manuals can be a little confusing.
<srhb> jluttine: You get used to it :)
<CcxWrk> clever: I see. So if my device isn't capable of doing that, I guess I should take an emulator, compile Nix by hand there, rebuild so it becomes self-contained and then just move the /nix directory to the actual device.
<CcxWrk> Does Nix support some kind of distcc setup to get the compilation processes out of the emulator?
<clever> CcxWrk: nix has its own build slave setup, but it assumes you can run nix on the target machine
<avn> CcxWrk: better just mount /nix from other device, not alter /nix to /some
<srhb> CcxWrk: nix.buildMachines perhaps?
<avn> otherwise you can't use binary caches
<clever> avn: as long as you move the entire /nix to /nix on another device, it will survive
<avn> clever: I know, just tried to explain things
<CcxWrk> I'll see if I can get bindmounts to work there, then I'll be able to use /nix, otherwise I guess I'll have to rebuild from scratch.
a6a3uh has quit [(Quit: Bye)]
<CcxWrk> srhb: Where is that documented?
<CcxWrk> But I'm leaning towards using musl (if that's an option) so I guess that has no binary channels anyway.
<srhb> CcxWrk: Presumably in the nix manual
<srhb> Though apparently not...
<CcxWrk> srhb: That's the one I just searched and found nothing. :]
<srhb> CcxWrk: Meh. It's documented in the nixos options then. For some reason :P
nikivi has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<clever> CcxWrk: which device are you trying to target?
<clever> CcxWrk: and what prevents you from running normal glibc based nix on it?
<jluttine> hmm.. i'm running "nixos-rebuild build" and got errors because it tries to download some non-existent package. i've removed all references to this package but still it tries to download it for some reason. could there be some caching causing this?
<CcxWrk> Xperia Pro. 512MB RAM. Most of which is occupied by Android.
ssmike has quit [(Ping timeout: 255 seconds)]
<clever> jluttine: can you gist the full error?
<srhb> jluttine: That sounds like you didn't remove all references to it.
<srhb> :-P
<clever> CcxWrk: ah, you could use a different arm device with a compatible cpu
<clever> CcxWrk: do you know if its armv6, armv7 or aarch64?
<jluttine> srhb: yep..
<clever> jluttine: nginx depends on nextcloud which depends on calendar.tar.gz
<clever> jluttine: can you gist your configuration.nix file?
Isorkin has joined #nixos
<clever> or add it to the existing gist
<jluttine> clever: well, that's quite complicated. i'm working on those nginx, nextcloud and calendar nix-files myself
<jluttine> clever: a huge bunch of files
<clever> ah
<CcxWrk> armv7el iirc. I also have N900 which I'm interested in getting Nix on, which is similar HW and saner system (Maemo~=Debian)
<jluttine> i grepped and there was no "calendar" string anywhere
<jluttine> so i don't understand
<clever> CcxWrk: ah, thats compatible with the rasberry pi 2 and 3, and also the qemu emulation i have, one min
<clever> jluttine: can you gist the files involved in nextcloud and the contents of /nix/store/hl95ln7vif73kiz13wsf3ydq7nn97xfb-nginx.conf.drv and /nix/store/b3k0ivqdiasar8k618l4vbxdqzr7zqwn-nextcloud-12.0.2.drv
<clever> CcxWrk: this build of qemu allows you to run armv7 binaries on an x86 machine, without any kernel/system emulation, just build qemu-user-arm, and run the register script as root
<clever> CcxWrk: and the nix on line 12, is a patched copy of nix, that supports "build-extra-platforms = armv7l-linux" in /etc/nix/nix.conf, which will convince nix-daemon that the x86 machine can "just run" arm binaries
proteusguy has quit [(Remote host closed the connection)]
<clever> CcxWrk: when the 2 are combined properly, the machine can just run any arm binary, including an arm compiler
mortum5 has joined #nixos
ison111 has quit [(Ping timeout: 248 seconds)]
<CcxWrk> But then I will still be using gcc compiled for arm emulated via qemu, right? Unlike swapping it for cross-toolchain that can run natively. But I assume that would invalidate Nix's purity.
<jluttine> it's a bit of a mess
<jluttine> i'm trying to create a modular web app system for nextcloud
<jluttine> work in progress..
<clever> CcxWrk: there is also a cross-compile framework in nixpkgs, but its got some kinks in it, and nix-env on the arm wont use the cross-compiled libraries, so it would have to rebuild it all again
<jluttine> anyway, afk for many hours ->
<clever> jluttine: reading the nextcloud .drv file, i can see calendar.tar.gz is in its $src
<clever> jluttine: and that nextcloud derivation is the root for something in nginx
<joko> Speaking of cross compilation, is it now possible to cross-build all your arm system on an amd64 host? I have a Wandboard which just needs NixOS :)
<clever> jluttine: i can also see that you have that commented out on line 27-ish
<clever> joko: i have done most of that before, it just had a few kinks with the kernel and xargs, they may have since been resolved
<clever> jluttine: the next thing to check would be "nixos-rebuild build -vvvvvv" and go over every .nix file its reading
<joko> clever: so I don't have to build anything at all on the arm side? That would be awesome!
orivej has joined #nixos
xd1le has quit [(Ping timeout: 246 seconds)]
<CcxWrk> clever: I see. I have no clue how to use the snippet you linked me though. Or how to modify the build to use musl as base.
<clever> CcxWrk: the musl stuff would come afterwards, and this part wouldnt have to change any
<clever> CcxWrk: the parts i linked, purely make an x86 machine capable of running arm code, so you can use an x86 machine instead of an arm machine
<clever> CcxWrk: to start with, are you going to use a nixos or other linux for the build host?
pie_ has joined #nixos
<CcxWrk> I have Gentoo + Nix on the machine I want to build on. (and user qemu already installed via portage if that helps)
<clever> CcxWrk: ah, thats half the work
<clever> CcxWrk: git clone the nix-misc repo i linked previously, and run "nix-build -A nix" and let me know when that finishes
ris has joined #nixos
FRidh has quit [(Ping timeout: 240 seconds)]
catch22 has quit [(Remote host closed the connection)]
<clever> CcxWrk: oh, and the qemu-user binary you have from portage, is it static or dynamic linking?
<clever> CcxWrk: dynamic breaks ldd, which messes up the initrd generation for nixos
<clever> though with android, that doesnt matter much
<CcxWrk> kthnx, will try in a bit
<CcxWrk> dynamic most probably
<clever> CcxWrk: after nix is done building nix, you can do something like: ./result/bin/nix-build '<nixpkgs>' -A hello --argstr system armv7l-linux
<clever> CcxWrk: which will run the native arm7 -> arm7 compiler to build hello world
pxc has joined #nixos
<clever> CcxWrk: oh, and it needs build-extra-platforms = armv7l-linux in /etc/nix/nix.conf
mutagenf1rk has joined #nixos
<gleber_> I am getting collisions warnings whenever I do nixos-rebuild on files /nix/store/*-virtualbox-5.1.26/ (with two different hashes). Any pointers how to debug and fix it?
wlhlm_ has joined #nixos
mutagenfork has quit [(Ping timeout: 248 seconds)]
pxc has quit [(Ping timeout: 252 seconds)]
wlhlm has quit [(Ping timeout: 252 seconds)]
<clever> gleber_: what lines have you added to configuration.nix that reference virtualbox?
<gleber_> clever: environment.systemPackages = with pkgs; [ ... virtualbox ... ];
<gleber_> clever: virtualisation.virtualbox.host.enable = true;
<gleber_> clever: these two
<clever> gleber_: the service options add it to systemPackages for you
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/2b0ccb1c68 (from 64 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
<clever> gleber_: removing the virtualbox under systemPackages should silence the warning
<gleber_> clever: it did!
<gleber_> clever: thanks. Shouldn't this be idempotent with regards one to another?..
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joncojonathan opened pull request #30643: Added joncojonathan to maintainers (master...addMeToMaintainers) https://git.io/vdbMV
NixOS_GitHub has left #nixos []
<clever> gleber_: the service installs a modified copy of the vbox package, based on your hardening and headless options
<clever> so it may install a copy without the xorg components
<gleber_> clever: ah!
<clever> and the 2nd one you added is the original with the defaults
<clever> so they have different hashes
<gleber_> clever: makes sense, thank you!
<clever> yep
phreedom has quit [(Ping timeout: 252 seconds)]
hotfuzz_ has joined #nixos
hotfuzz has quit [(Ping timeout: 240 seconds)]
FRidh has joined #nixos
keta_suki has joined #nixos
<adamt> Did anybody manage to install Maple (from Maplesoft) on nixos?
<srhb> adamt: That's a Java thing, isn't it? I think I may have had it working at one point.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] woffs opened pull request #30644: pulsemixer: init at 1.3.0-license (master...pulsemixer) https://git.io/vdbDL
NixOS_GitHub has left #nixos []
<srhb> adamt: (Also hey, are you my coworker? :-P)
<adamt> srhb: Yup^2
<srhb> :)
<srhb> I don't have a key anymore, is there a demo version I can try out?
ylwghst has joined #nixos
<joko> Is it possible to use inherit on an array?
<adamt> srhb, I doubt it. Seems like you have to fill out a form and apply for an evaluation license :P
<srhb> Darn.
<srhb> adamt: Where are you stuck? Perhaps I can help out anyway.
<joko> I meant on a list, sth like [ (inherit machines;) ]
<CcxWrk> clever: run "nix-build -A nix" in the cloned repo?
<clever> CcxWrk: yeah
<CcxWrk> Does it auto-parallelize somehow, or are some tweaks needed to get it running on all 8 cores?
<clever> CcxWrk: it will obey the core config in your existing /etc/nix/nix.conf
<srhb> joko: What is machines?
<srhb> joko: It seems like you either want to append to a list or simply use [ machines ];
<clever> CcxWrk: but you can also use "-j 8 -Q --option build-cores 8" to force it to use the cores
<adamt> srhb: I'm not stuck per see, in the sense that i haven't bothered trying myself yet, thinking it might be futile to get Maple to run. :P
<srhb> adamt: Actually, java applications tend to behave mostly as on other systems.
<srhb> If they have external dependencies, they're usually no worse than any other nix derivation.
mortum5 has quit [(Remote host closed the connection)]
<CcxWrk> clever: Finished.
<srhb> adamt: You may have to use the usual fix for grey-screen java applications in tiling WMs though.
<clever> CcxWrk: now add the extra platforms to nix.conf, and then try to build hello-world with the resulting nix
<clever> CcxWrk: the -j flags above can also be used to speed that arm build up
<srhb> adamt: At least I do in XMonad :)
vandenoever has joined #nixos
<CcxWrk> clever: Does that pass makeopts? Or just builds more packages in parallel?
<clever> CcxWrk: "-j 8" runs 8 packages in parallel, and "--option build-cores 8" passes "-j 8" to make, within each package
<clever> CcxWrk: and both cause heavy interleaving of the output, making it rather unreadable, so -Q will silence all output
<adamt> srhb, let me download it and see how i'm supposed to install it on normal distributions.
<srhb> adamt: OK :) I'll be around for a few hours.
FRidh has quit [(Quit: Konversation terminated!)]
FRidh has joined #nixos
<joko> srhb: you are totally correct, I don't need attributes... Let's see how it goes
<srhb> adamt: Is this a sign that you're committing your personal laptop to nix? ^^
<srhb> joko: Ah, good :)
<CcxWrk> clever: I see. And they would be equivalent to build-max-jobs and build-cores in nix.conf respectively. Anything to pass -l along with -j to make?
<clever> CcxWrk: i believe build-max-jobs is the default for the nix level -j
<clever> CcxWrk: and --option is just a generic way to override anything in nix.conf
<adamt> srhb: It's a sign of me investigating options. :P
<srhb> :)
<CcxWrk> clever: Finished the hello world. Though it seems like it just fetched stuff from binary channels.
<clever> CcxWrk: did you also pass --argstr system ... ?
<CcxWrk> Ah, not finished: error: a ‘armv7l-linux’ is required to build ‘/nix/store/i6p69aslp862nrd5vzxxy1hkj769fxql-bootstrap-tools.drv’, but I am a ‘x86_64-linux’
<CcxWrk> ▶ ./result/bin/nix-build '<nixpkgs>' -A hello --argstr system armv7l-linux
<clever> CcxWrk: your missing the extra platforms in nix.conf
Guest64 has quit [(Quit: Textual IRC Client: www.textualapp.com)]
<clever> "build-extra-platforms = armv7l-linux" in /etc/nix/nix.conf
<clever> CcxWrk: that just silences the safety check that just failed, and tells nix to blindly try running any armv7l-linux binary it needs
<clever> which would normally result in errors, but qemu-user makes it work
<CcxWrk> It's there, along with build-max-jobs = 8. It's only those two lines as I just created the file little while ago.
<clever> CcxWrk: are you using nix-daemon?
ma27 has quit [(Ping timeout: 248 seconds)]
<CcxWrk> It's running, yeah. Need to restart it?
<clever> yep
<clever> also
<clever> you must run the nix-daemon from the result symlink
thc202 has joined #nixos
<clever> its the daemon that does that safety, so it has to run the patched version to allow bypassing it
<CcxWrk> So if I just stop it for a while it should work?
catch22 has joined #nixos
<clever> you can either
<clever> a: stop nix-daemon temporarily, and use the patched nix-build as root
<clever> b: stop nix-daemon, then run the patched nix-daemon from the nix-misc/result symlink as root
<CcxWrk> unset NIX_REMOTE; got while setting up the build environment: executing ‘/nix/store/1zfrihkxqjqph4kd70syz14zbkmhcps5-busybox’: Exec format error
<clever> CcxWrk: then binfmt-misc isnt configured to auto-run qemu-user
<clever> echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\x00\xff\xfe\xff\xff\xff:$out/bin/qemu-wrap:P' > /proc/sys/fs/binfmt_misc/register
<clever> CcxWrk: something like this will have to be ran, with the absolute path to your qemu-user-arm binary
mutagenf1rk has quit [(Ping timeout: 252 seconds)]
<CcxWrk> echo escapes are non-portable, but surely there's ready script for this somewhere :] let me check
<fearlessKim[m]> someone asked me on github for the size of a closure. Is "nix-store -q --size $(readlink -e $(which msmtp))" ok ?
<clever> fearlessKim[m]: thats only the size of msmtp itself
<clever> CcxWrk: you can either find the gentoo version of it, or just do "nix-build -A qemu-user-arm -o qemu-user && ./qemu-user/bin/register" to build it with nix and auto-register it
<clever> $ du --max=1 -h -c $(nix-store -qR /run/current-system) | sort -h | tail
<clever> 269M /nix/store/yi8cw982zkjc738r0xq9px6w5700frzz-clang-4.0.1
<clever> 3.4G total
<clever> fearlessKim[m]: this will show you the entire closure, and what the fattest things are
<clever> and that should have been --max=0
<srhb> adamt: Ugh, the installer is not java.
<clever> fearlessKim[m]: and if your using a compressing filesystem, you may also want to give du a --apparent-size
<CcxWrk> clever: It's `/etc/init.d/qemu-binfmt start` apparently, hello world running now again.
<clever> 576M /nix/store/yi8cw982zkjc738r0xq9px6w5700frzz-clang-4.0.1
<srhb> adamt: Looks like you'll need to either patchelf it to get the ld path right or build an FHS environment.
<clever> CcxWrk: that causes a 300mb size difference in my clang
<clever> CcxWrk: ah, that works
<clever> fearlessKim[m]: oops, the clang msg was for you
sigmundv has joined #nixos
<srhb> and patchelf fails on it for some reason...
<srhb> So I guess your best bet is a FHSenv
<clever> srhb: what does "file" say about the binary?
<srhb> MapleToolbox2016.2LinuxX64Installer.run: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, stripped
<srhb> Hm, statically linked
<clever> patchelf only works on things with dynamic linking
<srhb> Yeah
<clever> srhb: what error does it fail with when ran?
<srhb> patchelf: patchelf.cc:320: void ElfFile<Elf_Ehdr, Elf_Phdr, Elf_Shdr, Elf_Addr, Elf_Off, Elf_Dyn, Elf_Sym>::parse() [with Elf_Ehdr = Elf64_Ehdr; Elf_Phdr = Elf64_Phdr; Elf_Shdr = Elf64_Shdr; Elf_Addr = long unsigned int; Elf_Off = long unsigned int; Elf_Dyn = Elf64_Dyn; Elf_Sym = Elf64_Sym]: Assertion `shstrtabIndex < shdrs.size()' failed.
<clever> when just running the installer directly
Wizek has joined #nixos
<clever> since patchelf cant patch static's (and they dont need patching)
<CcxWrk> clever: It seems rather slow to just unpack it's thing. I guess that's the price of qemu.
<srhb> Yeah, I guess it's just an actual error in the installer
<srhb> Exit code nonzero, no interesting output.
<clever> CcxWrk: yeah
<srhb> So it's probably making assumptions of the file system and crashing
<clever> srhb: strace the installer
<srhb> FHSEnv it is.
<clever> srhb: strace -f ./installer
<srhb> open("/lib64/ld-linux-x86-64.so.2", O_RDONLY) = -1 ENOENT (No such file or directory)
<srhb> ...fun
<clever> srhb: aha, i think i know what it is
<clever> srhb: one min
<srhb> clever: :)
k2s has joined #nixos
<clever> srhb: "nix-shell -p upx" and then "upx -l installer"
<srhb> oooh, that might indeed make sense
<srhb> Hm, file is too large -- skipped
<clever> upx will unpack the real binary in ram, then run /lib64/ld-linux-x86-64.so.2 against the unpacked result
<clever> and patchelf cant patch the compressed sections
p4cman has joined #nixos
<clever> try running strings or --version over it, and see what the contents are
<clever> it might be a different packer
<clever> srhb: or just upx -d
<avn> in worst case -- /nix/store/......./ld-linux-x86-64.so.2 installer (with properly set LD_LIBRARY_PATH) should works
<clever> avn: i dont think that will work, because the resulting binary is hard-coded to open /lib64/ld-linux-x86-64.so.2
<clever> and libredirect wont work either, because its static!
<srhb> clever: upx -d errors out in the same manner. --version has no output. Sneef.
<clever> avn: is the file publicly downloadable?
<srhb> But yes, it seems very likely that it's a packer-like thing.
<clever> there is another util i know of that can help, but i have yet to get it working under nix
<MichaelRaskin> There is FHS env builder in Nixpkgs
hellrazo1 has quit [(Quit: WeeChat 1.9.1)]
<srhb> MichaelRaskin: Yes, and that works. :)
<MichaelRaskin> Maybe it is simpler to declare «Maple is as bad as Steam»
<srhb> It's just so messy...
<srhb> Hehe, yes.
FRidh has quit [(Ping timeout: 248 seconds)]
<clever> MichaelRaskin: there is still the difference between needing the FHS at build time, vs at runtime
<srhb> I think it could absolutely be patched after running the installer from the FHSenv
<clever> yeah
<MichaelRaskin> Is it even possible to use FHSenv at build time? I thought root access was involved
<clever> srhb: if you have a non-nixos machine, you could try running binwalk over the installer
<MichaelRaskin> Well, I guess ptrace is an option, but I would exepect that to be slow.
<srhb> I don't right now, but I could set up a vm.
<clever> MichaelRaskin: i dont know how, but the FHSenv is able to mess with the root dir without uid 0
<srhb> Isn't it just a chroot?
<MichaelRaskin> Hm. Maybe use namespaces.
<srhb> oh
<MichaelRaskin> (Which we have on by default and which are horrible for security approximately once in three months)
<CcxWrk> clever: So whenever this finishes, what should I do with it?
<clever> CcxWrk: that will build the entire compiler toolchain and also confirm that the compiler is working
ma27 has joined #nixos
<srhb> adamt: Ok, so, there's a fast way and a right way... Pick your poison ;-)
<clever> CcxWrk: the next step, would be to grab the closure of hello with "nix-store -qR /nix/store/hash-hello", tar the whole thing up, then unpack it on the phone at /nix/ (optionaly with a chroot to get it in the right spot) and try to run hello-world
<clever> CcxWrk: once its confirmed working, you can use nix to build anything in nixpkgs
<clever> CcxWrk: and if you build an arm copy of nix with this, you can use nix-copy-closure to shuffle things between the 2 devices
<CcxWrk> Great, thanks. How would I go about switching this over musl then? (once I confirm the basic glibc hello works)
<clever> CcxWrk: something within nixpkgs would have to be changed, to replace libc with musl
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/2b0ccb1c68 (from 2 hours ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
nix-gsc-io`bot has quit [(Client Quit)]
<adamt> srhb, depends, how slow is the right way?
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
<srhb> adamt: Probably quite slow. I'm still figuring out if I can even automate running the unpacking phase of the installer.
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
<adamt> (sorry, was just afk while it was downloading, 10Mbps *sigh*)
<srhb> :P
<srhb> No problem.
erictapen has joined #nixos
<fearlessKim[m]> clever: thanks, the nix-store calls don't seem too effective when the program is installed via nix-home. for instance nix-store -qd $(which msmtp) returns /nix/store/jknpxwzbmx6fjd1idiv1i8bsh4lbpcyf-home-manager-path.drv :s
<adamt> I don't even have a readme, just an ELF binary.
<srhb> adamt: The issue is that the installer appears to be some kind of packed container of some dynamically linked binaries. We'd normally want to patch those binaries to not point at /lib64 etc.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar pushed 1 new commit to master: https://git.io/vdby2
<NixOS_GitHub> nixpkgs/master 96b339f zimbatm: buildkite-agent: 2.1.13 -> 2.6.6...
NixOS_GitHub has left #nixos []
python476 has joined #nixos
<clever> fearlessKim[m]: you want -qR i believe
<srhb> adamt: I can't figure out how to unpack it manually, unfortunately, so we'll have to instead build a fake FHS chroot to allow the right paths to exist.
FRidh has joined #nixos
<adamt> srhb: Would that be the quick way, or a third way?
FRidh has quit [(Client Quit)]
<srhb> It's pretty quick. The patching of the resulting libraries is a bit slower, though.
<fearlessKim[m]> smae for qR, it returns the home-manager closure I believe
<fearlessKim[m]> clever ^
<srhb> clever: I think (buildFHSUserEnv{ name = "foo"; }).env will suffice
<clever> fearlessKim[m]: what is the output of which msmtp?
kiloreux__ has joined #nixos
a6a3uh has joined #nixos
<clever> srhb: hmmmm, yeah, maybe
<srhb> adamt: Did you notice that you can't execute the file?
pie_ has quit [(Ping timeout: 252 seconds)]
<fearlessKim[m]> clever: readlink -e $(which msmtp)
<fearlessKim[m]> /nix/store/cm0vwg6l0mhbimz01jr2d2c5ng68xn1i-msmtp-1.6.6/bin/msmtp
dywedir has quit [(Remote host closed the connection)]
<adamt> srhb, no, I didn't try, i know it won't work. :P
<clever> fearlessKim[m]: try the nix-store -qR on the readlink'd version
<srhb> adamt: Try placing that in a shell.nix, executing nix-shell from the same directory, then running the installer again
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar closed pull request #30426: Fix munin_stats plugin when running munin-node only (master...fix-munin_stats-plugin) https://git.io/vd1uS
NixOS_GitHub has left #nixos []
kiloreux has quit [(Ping timeout: 260 seconds)]
kiloreux_ has quit [(Ping timeout: 260 seconds)]
kiloreux has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar closed pull request #30625: r-modules: Fix a number of popular R packages (master...r-fixes) https://git.io/vdbgD
NixOS_GitHub has left #nixos []
<clever> srhb: all .env does is setup a shellHook, to run the namespacing wrapper when you enter nix-shell
<clever> srhb: but you could potentialy run that wrapper at build time, within another derivation
<srhb> clever: Right. :) I think we're just going for a quick runtime fix for understanding quickly. The installer also required manual intervention, unless we can pipe in the answer to a number of interactive questions.
roflukulus has left #nixos []
<adamt> srhb, funny, it wanted to install into /opt/something, and claimed i lacked disk space, however, /opt just doesn't exist. Buggy installer :P
<srhb> adamt: Huge surprise! :-)
<adamt> srhb, should i run the installer with root privileges? Or, I suppose this is my actual question: What would be a suitable place to tell the installer to install to?
<srhb> adamt: No, just somewhere in your homedir for now
<clever> adamt: does it accept anything like --help now?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] primeos pushed 1 new commit to master: https://git.io/vdbyF
<NixOS_GitHub> nixpkgs/master 2d8b952 Michael Weiss: gns3Packages.{server,gui}Preview: 2.1.0rc2 -> 2.1.0rc3
NixOS_GitHub has left #nixos []
<srhb> adamt: We will still need to patch up the resulting libraries
ris has quit [()]
<adamt> srhb, okay. Installer is running. Probably downloading updates now. This is messy, all updates will probably also need to be patched somehow
<fearlessKim[m]> clever that worked (closure size)
<srhb> adamt: Yep.
<srhb> adamt: We have a utility called patchelf that will need to be liberally applied afterwards.
<adamt> clever, yeah, it actually had a --help it seems
<clever> adamt: that may have options to just unpack things to the current directory
<srhb> Oh, and it has an unattendedmode as well.
<srhb> That's very helpful for real packaging of this.
hellrazor has joined #nixos
<srhb> yep, --mode unattended and --installdir /some/path
<adamt> Would propably have to figure out what the option file can contain as well
<srhb> Yes.
<srhb> I think your best bet for now is to just manually patch up things and then you'll be better equipped to package it, if you choose to do so :)
<srhb> It's not exactly an easy one :-P
<fearlessKim[m]> I am tyring nix-env -iA msmtp but it is already installed . I get the error "nd ‘/nix/store/bkml8563x7kvz7xxk6ghh86x664miyhl-home-manager-path/bin/msmtp’; use ‘nix-env --set-flag priority NUMBER PKGNAME’ to change the priority of one of the conflicting packages" but I dunno what to use as PKGNAME ? "msmtp" is not accepted
<clever> fearlessKim[m]: its simpler to remove it from home-manager first
k2s has quit [(Quit: Leaving)]
notdaniel has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/df528e4472 (from 9 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
<adamt> The maple installer really should be logging something about the updates being fetched. Zzz.
<srhb> Maybe you can skip the updates for now.
iyzsong has quit [(Ping timeout: 240 seconds)]
<srhb> I got as far as it whining at my license, so perhaps it's not so bad at all.
<srhb> I only needed to patch the interpreter and the path to libstdc++.so.6
<srhb> Of course, it might fail gloriously when it gets further than checking the license :P
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] basvandijk opened pull request #30646: opencv: 3.2.0 -> 3.3.0 (master...opencv-3.3.0) https://git.io/vdbSF
NixOS_GitHub has left #nixos []
<clever> srhb: there is a windows util similar to strace, and i have discovered at least one application, that fails all license checks if that util has been ran even once, until you reboot to clear the state
<adamt> srhb, it's done now anyways
<clever> srhb: so attempting to debug anything on the system, breaks that software and forces you to reboot the entire machine
<adamt> except it couldn't activate maple for some reason, but it can probably wait.
<srhb> clever: I don't actually have the license, so the behaviour is expected.
nckx has joined #nixos
<srhb> adamt: OK, so, there's some shell wrappers in bin that ultimately seem to launch cmaple in the bin.x86_64_LINUX directory
<adamt> srhb, I think we have different versions of it. Mine haven't asked for license key yet.
<srhb> adamt: No, I was further in, I think :)
betaboon has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] geistesk opened pull request #30647: sent: 0.2 -> 1 (master...sent-1) https://git.io/vdbSN
NixOS_GitHub has left #nixos []
<adamt> srhb, agreed, bin/maple launches cmaple
<srhb> adamt: So we'll need to patch that one first.
<srhb> Lessee.
<srhb> adamt: ldd on it should show you a path that does not exist outside the fhsenv
<srhb> (If you're in the FHSenv, it might just work...)
<srhb> Though that's probably naive.
<clever> it may need other libraries added to the fhs
<srhb> Yeah.
<adamt> srhb, actually running bin/maple just complains about (..)/license.dat missing
<srhb> That's targetPkgs = pkgs: [ ... ] right?
<srhb> adamt: Oh, okay, looks like you're good to go in the fhsenv then
<srhb> Not sure how to get that file though
<srhb> what!
a6a3uh has quit [(Ping timeout: 240 seconds)]
ylwghst has quit [(Quit: Lost terminal)]
<srhb> Does the activation script work?
<adamt> there's no script, it just says to start maple and let it activate..... le sigh.
<srhb> there is, bin/activation
<adamt> oh.
<srhb> It might need more deps though
<srhb> Looks like java, for instance
<adamt> it just exits with code 1
thblt has joined #nixos
<srhb> add targetPkgs = pkgs: [ pkgs.jre ]; to your fhsenv and rerun the shell
<srhb> And maybe add some output to the activation script
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vdb9L
<NixOS_GitHub> nixpkgs/master bb66299 Vincent Laporte: ocamlPackages.zed: 1.4 -> 1.5
NixOS_GitHub has left #nixos []
<adamt> i can run the java-binary it tries to run though
<adamt> (without the extra pkgs)
<srhb> Oh
<srhb> I see.
<srhb> Wait, why can you?
<srhb> I feel like it should be missing some libraries itself.
<srhb> Oh, right, the fhsenv has the interpreter for that too.
k2s has joined #nixos
<srhb> So why is it failing...
<adamt> "String index out of range: -1"
<adamt> try unsetting DISPLAY and run it (then it forces console activation apparently)
<adamt> and exits with -1
<srhb> I'm seeing something different if I run the java command manually.
notdaniel has quit [(Quit: Leaving)]
<srhb> Which should be fixable with more libraries in the fhsenv
<adamt> srhb, this is what I get: http://nixpaste.lbr.uno/rz7oGD4Z?nix
kvz has quit [(Ping timeout: 248 seconds)]
k2s has quit [(Remote host closed the connection)]
k2s has joined #nixos
srhb has quit [(Ping timeout: 248 seconds)]
erictapen has quit [(Ping timeout: 240 seconds)]
kvz has joined #nixos
srhb2 has joined #nixos
<srhb2> ouch. My irc bouncer died.
<srhb2> adamt: I typed a whole bunch of things into the void.
<srhb2> adamt: Can you try activation with these targetPkgs? [ xorg.libXext xorg.libX11 xorg.libXrender xorg.libXtst xorg.libXi ];
srhb has joined #nixos
<srhb> test
<srhb> there we go...
srhb2 has quit [(Client Quit)]
<srhb> adamt: I just noticed I've been using the 2016 installer to test things out with, so some things may indeed differ.
<srhb> Couldn't find a link for the 2017 installer.
<Mic92> aminechikhaoui: would you also use DiffEngineResourceState for the security rules group?
<adamt> srhb, yeah, sec, i'll try activation again with that.
<srhb> adamt: Great :)
<adamt> And long live IRC and typing into the void.
<srhb> Indeed.
<adamt> srhb, same result. And I have to go now, sorry, thanks for the help so far. :(
<srhb> adamt: OK, take care :)
<adamt> (I'm actually heading to Copenhagen :P)
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
guest521[m] has joined #nixos
<srhb> adamt: You're very adventurous! :-)
erictapen has joined #nixos
oahong has quit [(Ping timeout: 246 seconds)]
oahong has joined #nixos
oahong has quit [(Changing host)]
oahong has joined #nixos
oahong has quit [(Ping timeout: 248 seconds)]
k2s has quit [(Remote host closed the connection)]
oahong has joined #nixos
oahong has quit [(Changing host)]
oahong has joined #nixos
<aminechikhaoui> Mic92: not much inclined to rewriting existing resources as that will eventually need a db migration due to the changes in the state.
<Mic92> aminechikhaoui: I currently look, how I can upgrade this to boto3
<Mic92> for ipv6
ssmike has joined #nixos
<Mic92> so we finally can get ipv6 on hydra
<Mic92> I mean the website
<Mic92> man, dynamic typing is scary, if people changing there apis
simendsjo has joined #nixos
kozaim has joined #nixos
<aminechikhaoui> Mic92: yeah upgrading to boto3 should be fine I guess, I try to use it for new resources already
nocent has joined #nixos
<Mic92> aminechikhaoui: https://boto3.readthedocs.io/en/latest/reference/services/ec2.html?highlight=Exception#EC2.Vpc.security_groups boto3 seems to not have a vpc-id filter unlike the public API
sigmundv has quit [(Ping timeout: 240 seconds)]
ssmike has quit [(Ping timeout: 240 seconds)]
stanibanani has joined #nixos
hellrazor has quit [(Quit: WeeChat 1.9.1)]
sigmundv has joined #nixos
Oida has quit [(Ping timeout: 246 seconds)]
<aminechikhaoui> Mic92: use https://boto3.readthedocs.io/en/latest/reference/services/ec2.html?highlight=Exception#EC2.Client.describe_security_groups instead
<aminechikhaoui> that's the decribe security groups api which has all the needed filters
<Mic92> ok
erictapen has quit [(Read error: No route to host)]
Oida has joined #nixos
sigmundv has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 2 new commits to master: https://git.io/vdbQ6
<NixOS_GitHub> nixpkgs/master 7008e53 Will Dietz: vim-plugins: Add zig-vim
<NixOS_GitHub> nixpkgs/master f06f04d Daiderd Jordan: Merge pull request #30615 from dtzWill/feature/zig-vim...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] geistesk opened pull request #30648: firehol: 3.1.4 -> 3.1.5, iprange: 1.0.3 -> 1.0.4 (master...firehol) https://git.io/vdbQ9
NixOS_GitHub has left #nixos []
mithsv has quit [(Remote host closed the connection)]
mithsv has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vdb7L
<NixOS_GitHub> nixpkgs/master 2f540c3 joncojonathan: Added joncojonathan to maintainers...
NixOS_GitHub has left #nixos []
Oida has quit [(Ping timeout: 240 seconds)]
betaboon has quit [(Quit: WeeChat 1.9.1)]
keta_suki has quit [(Quit: WeeChat 1.9.1)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar pushed 1 new commit to master: https://git.io/vdb7G
<NixOS_GitHub> nixpkgs/master d222538 Moritz Kiefer: ghcjs: Do not mark as broken...
NixOS_GitHub has left #nixos []
betaboon has joined #nixos
Oida has joined #nixos
Kingsquee has quit [(Quit: https://i.imgur.com/qicT3GK.gif)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl closed pull request #30642: keepass: 2.36 -> 2.37 (master...update-keepass2_3_7) https://git.io/vdbP2
NixOS_GitHub has left #nixos []
pie_ has joined #nixos
Oida has quit [(Ping timeout: 246 seconds)]
hellrazor has joined #nixos
drp has joined #nixos
Oida has joined #nixos
hellrazor has quit [(Client Quit)]
k2s has joined #nixos
k2s has quit [(Client Quit)]
Oida has quit [(Ping timeout: 248 seconds)]
joepie91 has quit [(Quit: Konversation terminated!)]
joepie91 has joined #nixos
joepie91 has quit [(Changing host)]
joepie91 has joined #nixos
Oida has joined #nixos
joepie91 has quit [(Read error: Connection reset by peer)]
joepie91___ has joined #nixos
joepie91___ has quit [(Changing host)]
joepie91___ has joined #nixos
joepie91___ is now known as joepie91
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vdb5C
<NixOS_GitHub> nixpkgs/master 53f8adb Vincent Laporte: ocamlPackages.omd: 1.3.0 -> 1.3.1
NixOS_GitHub has left #nixos []
Oida has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl closed pull request #30619: youtube-dl: 2017.10.01 -> 2017.10.20 (master...youtube-dl) https://git.io/vdbOd
NixOS_GitHub has left #nixos []
Oida has joined #nixos
proteusguy has joined #nixos
pie_ has quit [(Ping timeout: 258 seconds)]
iqubic has quit [(Remote host closed the connection)]
iqubic has joined #nixos
sigmundv has joined #nixos
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
Oida has quit [(Ping timeout: 260 seconds)]
Svarog has joined #nixos
ericsagnes has quit [(Ping timeout: 240 seconds)]
keta_suki has joined #nixos
<joko> I typically use nix-env -qaP ".*pattern.*" to find packages, is it possible to make it case insensitive?
Oida has joined #nixos
<srhb> joko: It is.
<srhb> Er
<srhb> I misread that as case sensitive :-)
<srhb> No, you'll have to do something like nix-env -qaP | grep ...
sigmundv has quit [(Ping timeout: 240 seconds)]
<joko> okidoki
<infinisil> Oh boy, how about this: nix-env -qaP | fzf -i
<infinisil> insanely cool, i might just use that from now on
<joko> infinisil: awesome!
<hyper_ch> infinisil: teting now clever's kexec and nixops
<infinisil> hyper_ch: Nice :D
<hyper_ch> well, preparing stick with debian to install on old notebook first
<joko> hyper_ch: how you combine those two? Are you installing nixos over another distro and after a proper reboot you manage it via nixops?
<hyper_ch> joko: installing debian
hellrazor has joined #nixos
<hyper_ch> joko: then using clever's kexec to start/reboot into nixos
<hyper_ch> joko: and then doing the install from there
ericsagnes has joined #nixos
<clever> joko: the kexec trick gives you the full nixos installer, running from a ramdisk, so you are free to then format the drive and install nixos normally
<joko> hyper_ch: and the nixops part?
<hyper_ch> according to clever and infinisil, you can deploy nixos bascially on any machine
<clever> i now have 3 variants of that ramdisk installer
<hyper_ch> so going to try this
ma27 has quit [(Ping timeout: 248 seconds)]
pxc has joined #nixos
<hyper_ch> clever: you're not asleep? oO
Oida has quit [(Ping timeout: 258 seconds)]
<clever> this uses kexec to forcibly hijack any running linux machine
Neo-- has joined #nixos
<hyper_ch> ‎[15:10] ‎<‎clever‎>‎ this uses kexec to forcibly hijack any running linux machine --> that sounds very hackerish
<clever> this sets up a full netboot server on my laptop, so any machine plugged into the ethernet jack can netboot into the installer
ma27 has joined #nixos
<clever> this just copies the same files to /boot/ and adds them to grub
<clever> so you can now boot into the installer at any time
<joko> Pretty neat!
<clever> with #1, you can boot the nixos installer onto any remote machine that you have root on
<clever> and if the bios obeys the MBR, you can easily install nixos to the drive
<clever> but you only get 1 chance to do it right
<joko> And is there any way to do an unattended installation afterwards? I'm working on that with some helper bash functions, but I was hoping to automate it a bit more
<clever> joko: thats where justdoit.nix comes in
dragon__ has joined #nixos
<dragon__> hello hello
<clever> joko: this is a bash script, that does the entire install with 1 command
Oida has joined #nixos
<infinisil> I would like to automate this at some point: https://github.com/Infinisil/guides/blob/master/DO-ZFS-NixOS.org
<clever> joko: and its written as a nixos module, so you add it to the imports for the installer (methods 1-3 above), and it will already be "installed" when you boot the installer
zarel has joined #nixos
<dragon__> for some reason "ld -lssl" tells me "cannot find -lssl" evne though I have openssl installed, same for lcrypto
<clever> infinisil: i have also added zfs on lvm on luks to justdoit
<infinisil> zfs on lvm? why?
<clever> dragon__: ld will never find things you have installed, you must use nix-shell
<joko> clever: so once it boots, you type justdoit?
<hyper_ch> clever: what about encrypted zfs?
<clever> infinisil: in this case, i wanted a single luks to protect both swap and zfs
<clever> joko: yep
<dragon__> oh
<hyper_ch> and make it remotely rebootable
<dragon__> I am trying to get gerbil scheme to work
<dragon__> I have the nix package installed
<clever> hyper_ch: 1: i havent tested zfs encryption on my end yet
pxc has quit [(Ping timeout: 258 seconds)]
<clever> hyper_ch: 2: that wont encrypt swap, and i dont trust a zvol with swap
<hyper_ch> clever: been using it for than 2 weeks now
<dragon__> the "cannot find -lssl" fiirst came from trying to compile executables with gxc
<joko> I am happily using zfs over luks on a couple of machines
<hyper_ch> clever: it will encrypt swap.. you crate an encrypted dataset
<hyper_ch> and in that dataset you create sub sets ... one could be swap I guess
<clever> hyper_ch: thats swap on a zvol, which has had deadlocking issues in the past
<hyper_ch> well, I don't use swap normally
<joko> Are you still using swap, guys?
<clever> hyper_ch: zfs needs to allocate ram to do IO, and allocating ram inside the swap thread is bad
<infinisil> hyper_ch: You can't use a dataset for swap
<hyper_ch> joko: not on 16gb ram notebooks
<hyper_ch> infinisil: well, I don't use swap :)
<clever> joko: mainly planning ahead for hibernation
<dragon__> I tried to use nix-shell -p gerbil to make it work but it didn't.. I guess I'm not doing things correctly
<clever> dragon__: nix-shell -p openssl stdenv
<CrazedProgrammer> running zfs + lz4 compression on 8gb without swap, living on the edge :)
<dragon__> !
<dragon__> thank you
<hyper_ch> you still could create a luks partition with random key for swawp and create encrypted zfs as well
<clever> hyper_ch: random key doesnt play nicely with hibernation
<dragon__> hm
<dragon__> same error
<infinisil> Is there some way to cache nix-env -qaP easily? I know to have it 100% correct it needs to evaluate it, but still, some way?
<clever> hyper_ch: the machine has to be able to read the swap after a cold boot, to restore the contents of ram
<hyper_ch> clever: I don't use hibernation either on my notebook
hellrazor has quit [(Quit: WeeChat 1.9.1)]
<clever> dragon__: what about when you add --pure to nix-shell?
<clever> infinisil: nox has a cache built into it, and i also just use tab-completion in nix-repl
Oida has quit [(Ping timeout: 248 seconds)]
<clever> joko: the main issue right now with the kexec trick, is getting the network online
<dragon__> trying pure, adding gcc and gambit to the deps
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] geistesk opened pull request #30650: et: 2017-03-04 -> 0.1 (master...et-0.1) https://git.io/vdbFf
NixOS_GitHub has left #nixos []
<clever> joko: if the datacenter supports dhcp, thats easy, but with some, you have to configure a static ip
<clever> joko: and you must know the name systemd will assign if you want to configure the static ip
<dragon__> it works now !
<dragon__> thanks a lot.
<hyper_ch> but I'm sure clever has already figured how on how to do the static ip thing
<dragon__> I got an idea of how things work better now also
<clever> joko: DO is also special, in that the static ip is unique to the instance, and they try to edit your /etc/networking/interfaces file to fix the config for you
<dragon__> thank you for that =)
<clever> hyper_ch: one trick, i have configured the kexec image to reboot the machine every hour on the hour
<infinisil> I just want the output of nix-env -qaP, nox gives me a lot of other stuff. I want to pipe the output
<clever> hyper_ch: so if i do get the network config wrong and loose all control, it will reboot itself, restoring control to the original OS
<clever> then i can make another guess and try again
<hyper_ch> clever: that's clever :)
<hyper_ch> or can't you just ssh into the machine and check?
<hyper_ch> what network anme is and settings?
<clever> the last machine i used it on, still called the card eth0
<clever> it wasnt using the new naming style
<hyper_ch> I still wonder why they changed that
<hyper_ch> eth0 is such a good name
<gchristensen> to be predictable!
<hyper_ch> eth0 is predictable
<clever> hyper_ch: what about when you have 2 network cards?
<gchristensen> sometimes eth0 and eth1 would swap names
<clever> hyper_ch: which driver loads first?
<gchristensen> and then you'd be forwarding packets the wrong way and expose your network to the public by mistake
Oida has joined #nixos
<hyper_ch> geez, old notebook with spinning disk is so slow
<clever> in the old days, there was udev rules to bind a given name to a given mac, so it would be random on the first boot, and stick to that random layout
erictapen has quit [(Read error: Connection reset by peer)]
<hyper_ch> joko: setting a host id in the configuration.nix
<clever> joko: zfs expects a networking.hostId option in the nixos config, which is just a random blob of hex
<hyper_ch> 6 character hex value
<clever> joko: and every machine should have a unique value, so they cant import eachothers pools by mistake
<hyper_ch> or is it 8 chars?
<joko> I was more curious on the < ${./target-config.nix} part
<joko> of *
<hyper_ch> joko: that's his template configuration.nix
<clever> joko: its applying sed to target-config.nix (in the same directory) to create the final working configuration.nix of the install
<hyper_ch> < --> read from file > output as file
hellrazor has joined #nixos
<clever> and because i did this at the nix level
<clever> < ${./target-config.nix}
<joko> Oh, my sed-fu is not that strong apparently >_<
<hyper_ch> so, debian installed
<clever> it will import a copy of that nix file into the store, and insert in the storepath
<Yaniel> because eth0 is whatever is initialised first, which can change
<clever> and the bash script will just magically depend on the nix file
<hyper_ch> now I need clever to hold my hand ;)
<Yaniel> so systemd tries to name them based on their position on hte motherboard or something like that
<clever> 03:00.0 Ethernet controller: Intel Corporation 82583V Gigabit Network Connection
<clever> 2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
<clever> the 3 and 0 match up between the name and lspci
<dragon__> sorry to bother again : if nix-support/dynamic-linker no longer exists, where is it now ?
<clever> dragon__: where are you looking for it exactly?
<dragon__> packaging binaries tuto on nixos wiki.
<dragon__> " --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \"
<clever> it should still be at $NIX_CC/nix-support/dynamic-linker
<clever> but make sure you eval that within the nix-shell
Oida has quit [(Ping timeout: 248 seconds)]
<hyper_ch> clever: not sure how to actually get this running now... debian installed on old notebook... how to use kexec? donwload the repo to my working machine? or git clone to the old notebook?
<clever> hyper_ch: its designed to be used without any nix on the target
<clever> hyper_ch: did you read the session.md file yet?
<Yaniel> if you are crazy enough you could even have multiple usb network adapters which can be plugged in in any order
<hyper_ch> clever: I read the README.md
<clever> hyper_ch: look at session.md
<hyper_ch> ok :)
<dragon__> even in nix-shell : cat: /nix-support/dynamic-linker: No such file or directory
<clever> dragon__: try nix-shell -p gcc
<Yaniel> (and yes been there done that)
Oida has joined #nixos
<dragon__> clever, you're a lifesaver. Thanks.
<clever> Yaniel: this machine is a little more busy: https://gist.github.com/cleverca22/c0a498de27d3931711b5a7ccb11e63da
<Yaniel> and they had to be configured for completely separate subnets that really shouldn't get mixed up
<Yaniel> looks similar to what I had set up
<clever> Yaniel: i can see the 2nd and 3rd card, are on bus 4, slot 2, function 0 and 1
<Yaniel> except in my case two of them were enp0usb2p3dN
<Yaniel> or something like that
bennofs has joined #nixos
<clever> Yaniel: that is an old rack-mount server with a dual port gigabit on the motherboard, and an extra gigabit in a pci slot
<Yaniel> yup
<clever> Yaniel: in my most recent NAT case, i was dealing with 2 different types, wifi and ethernet: https://github.com/cleverca22/nixos-configs/blob/master/netboot_server.nix
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] frontsideair opened pull request #30651: nodejs: 6.11.1 -> 6.11.4 (master...nodejs-6.11.4) https://git.io/vdbFQ
NixOS_GitHub has left #nixos []
<clever> so its not really possible to get them swapped
<clever> Yaniel: the above module sets the laptop up sort of like a reverse router
<clever> Yaniel: the wifi is the WAN port, the ethernet is the LAN port, complete with dhcp, bind, and NAT
<MichaelRaskin> gchristensen: re: predictable names: I would mayb buy this story if _predictable_ names didn't shift around in my experience
<clever> Yaniel: and the dhcp server is configured to allow netboot, complete with tftpd and nginx, serving a nixos installer
<infinisil> do mac addresses map uniquely to network interfaces?
<infinisil> or is this something different
<clever> infinisil: with the modern systemd config, the interface name maps to the pci device location within the hardware
<Yaniel> MichaelRaskin: yeah, the idea is awesome, but in practice there are still many cases where it fails
<clever> 04:02.1 Ethernet controller: Intel Corporation 82546GB Gigabit Ethernet Controller (rev 03)
<clever> 4: enp4s2f1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
<clever> infinisil: this is a pci device on bus 4, slot 2, function 1
Oida has quit [(Ping timeout: 240 seconds)]
<grahamc> Same ;)
<infinisil> Newly with DigitalOcean, they give you access to a disk that contains a json file with the network intefaces, ip address, gateway, and the mac address
<infinisil> I'm thinking if this can be used for specifying interfaces manually in the nixos config
<MichaelRaskin> Yaniel: by the time this idea was implemented, NIC fingerprinting for ensuring persistent names for every device was already working, though.
<clever> infinisil: there is also a service you can run in nixos, that will query the same info over 169.something
dragon__ has quit [(Remote host closed the connection)]
<infinisil> clever: This is for when nixos isn't yet on the machine
<clever> infinisil: its just a small daemon written in go, that generates systemd config on the fly
<clever> so it could be used any time systemd is available
dragon__ has joined #nixos
<nocent> I find it a bit odd that on my first nixos install, my NIC had the interface name enp4s0, even though it was the only interface (besides lo). A few reboots later, it only then realized to rename the NIC to eth0.
<infinisil> Ah, this could be included in the kexec thing
<clever> infinisil: and i think its just a matter of configuring the interface to 169.254.0.1/16 and downloading http://169.254.169.254/metadata/v1.json
<srhb> nocent: Uh, I didn't think it was every supposed to be renamed eth0
Oida has joined #nixos
<srhb> ever*
<clever> infinisil: yeah, if your building a kexec image for digitalocean, just drop this into the imports list, and it should just work
<infinisil> It Just Works (tm)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vdbbR
<NixOS_GitHub> nixpkgs/master c15c012 Rommel Martinez: pell: 0.0.1 -> 0.0.2
NixOS_GitHub has left #nixos []
<srhb> nocent: Not as long as usePredictableInterfaceNames is ture at least
<clever> ah, thats what it was called: https://nixos.org/nixos/options.html#predictable
<clever> was trying to remember the magic name for it
<srhb> Need more aliases... "deterministic", "sensible", ...
<clever> yeah, that can also help, just flip it on and shove an IP onto eth0
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg closed 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 []
<clever> only issue, is that you still dont know the predictable name, and have to continue to do that for the nixops config forever into the future
<Yaniel> infinisil: mac addresses can be spoofed easily (heck you can do that from configuration.nix IIRC)
<clever> which reminds me, dealing with zfs and nixops looks like it could be tricky
<clever> idealy, every machine should have a unique hostid, generated at install time
<clever> how does nixops know what id to bake into the image?
proteusguy has quit [(Ping timeout: 248 seconds)]
<infinisil> Don't you specify that yourself in the nixops config file?
phI||Ip has quit [(Quit: ZNC 1.6.1 - http://znc.in)]
<clever> currently, you would need to discover what the right id is for that install (or generate a new one, and set forceimportroot)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vdbbw
<NixOS_GitHub> nixpkgs/master c144035 mimadrid: rofi: 1.4.1 -> 1.4.2
NixOS_GitHub has left #nixos []
<clever> and you cant just set forceimportroot once, because thats state
Kim has quit [(Quit: WeeChat 1.9.1)]
<infinisil> isn't forceImportRoot on by default?
<clever> ah yeah
<joko> clever: any idea how to auto-detect /dev/sda or /dev/vda for justdoit?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg closed pull request #30556: asciidoctor: 1.5.5 -> 1.5.6.1 (master...asciidoctor-1.5.6.1) https://git.io/vd7vX
NixOS_GitHub has left #nixos []
<clever> that also explains the lack of problems when i did some maintaince on my laptop
<clever> joko: i could add an if statement near the top to just check both sda and vda, and use whichever exists
<clever> joko: currently, it has a range of nixos options, which you can then set in the configuration.nix nearby
fendor has joined #nixos
<clever> joko: for example, you can add kexec.justdoit.rootDevice = "/dev/vda"; in https://github.com/cleverca22/nix-tests/blob/master/kexec/configuration.nix
<fearlessKim[m]> noob questio; a python package test requires <stdarg.h>; which from my research is clang specific ? I've included "clang" in my buildInputs but it then includes " /nix/store/rww78vdn2rkayrnqsjl8ib5iq2vfm3sw-gcc-6.4.0/include/c++/6.4.0/iostream" which is gcc :/ is that weird ?
sigmundv has joined #nixos
<hyper_ch> clever: I didn't get auto-logged in :(
<clever> hyper_ch: you need to add your ssh pubkey to configuration.nix
<hyper_ch> ah to the configuration.nix
<hyper_ch> not to the remotes authorized keys
<hyper_ch> ok
<clever> an example is already in place
<hyper_ch> or one could just create a default root password?
<clever> hyper_ch: you can also add it to /ssh_pubkey on the debian host, before you run the kexec script
<clever> by default, nixos doesnt allow password auth for root
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] schneefux opened pull request #30652: shaarli: 0.9.1 -> 0.9.2 (master...pkg.shaarli) https://git.io/vdbb7
NixOS_GitHub has left #nixos []
<joko> I think in the latest NixOS installation ISOs it allows
erictapen has joined #nixos
<clever> joko: thats a special thing in the installation images
<joko> true
<joko> bingo
<clever> this also forcibly sets sshd to not run on boot
<clever> so that module is probably in scope and allowing it
<hyper_ch> clever: anyway, good to test your working on hourly reboot :9
<joko> I was always wondering how nixos-install is working afterwards
<joko> e.g. if I copy my whole configuration on a new host, then it breaks out of space
<joko> or how I would force some closures to get installed
<clever> joko: previously (a few months ago), it was basically just a script to run nix-build under a chroot, after using rsync to get just nix inside /mnt/nix/store/
<clever> joko: but recently, it got redone, and a bug was introduced, it now builds the entire system on the host rootfs (in the ramdisk), then copies it to the target
<joko> https://github.com/NixOS/nixpkgs/pull/30192 <- this fails because it tries to build the closure inside the vm without internet access :(
<joko> clever: oh, now I see why my first case fails
<clever> joko: all paths in system.extraDependencies are just written to a random file within the nixos build, and never touched again
<clever> joko: that causes nix to count them as a dependency, and copy them in for you
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bendlas pushed 1 new commit to master: https://git.io/vdbNn
<NixOS_GitHub> nixpkgs/master f0a0f02 Yuriy Taraday: chromium: 61.0.3163.100 -> 62.0.3202.62...
NixOS_GitHub has left #nixos []
<nocent> infinisil: lol, there's a nixos option for everything. I wonder why they commented it out since 17.09
<clever> At least for now. It would increase the ISO size by ~10 MB,
bennofs has quit [(Ping timeout: 255 seconds)]
<clever> anyways, its getting late here, i should get back to bed
<Dezgeg> maybe we need to get on times and replace it with nethack
<nocent> clever: Gotcha, gnite!
<hyper_ch> clever: it seems to reboot soon :)
<joko> clever: night, night, thanks for all the help!
bennofs has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg closed pull request #30650: et: 2017-03-04 -> 0.1 (master...et-0.1) https://git.io/vdbFf
NixOS_GitHub has left #nixos []
joepie91 has quit [(Read error: Connection reset by peer)]
joepie91 has joined #nixos
joepie91 has quit [(Changing host)]
joepie91 has joined #nixos
joepie91 has quit [(Read error: Connection reset by peer)]
bennofs has quit [(Ping timeout: 248 seconds)]
joepie91 has joined #nixos
joepie91 has quit [(Read error: Connection reset by peer)]
joepie91 has joined #nixos
joepie91 has quit [(Changing host)]
joepie91 has joined #nixos
orivej has quit [(Ping timeout: 264 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bendlas pushed 1 new commit to release-17.09: https://git.io/vdbNP
<NixOS_GitHub> nixpkgs/release-17.09 527eb2b Yuriy Taraday: chromium: 61.0.3163.100 -> 62.0.3202.62...
NixOS_GitHub has left #nixos []
b has joined #nixos
Neo-- has quit [(Ping timeout: 240 seconds)]
Oida has quit [(Ping timeout: 248 seconds)]
mkoenig has joined #nixos
dbmikus has joined #nixos
Oida has joined #nixos
<hl> nixpkgs$ nix-build -I nixos-config=./nixos/modules/installer/cd-dvd/system-tarball-fuloong2f.nix -A config.system.build.tarball nixos
<hl> results in 'infinite recursion encountered, at undefined position'
<hl> branch: master
<hl> any ideas?
Oida has quit [(Ping timeout: 246 seconds)]
Oida has joined #nixos
ToxicFrog has quit [(Ping timeout: 240 seconds)]
stanibanani has quit [(Ping timeout: 240 seconds)]
mutagenfork has joined #nixos
jtojnar_ has joined #nixos
ssmike has joined #nixos
Oida has quit [(Ping timeout: 240 seconds)]
jtojnar has quit [(Ping timeout: 260 seconds)]
Oida has joined #nixos
thblt has quit [(Ping timeout: 260 seconds)]
jtojnar_ is now known as jtojnar
proteusguy has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] DIzFer opened pull request #30653: steam-chrootenv: change curl to gnutls, add libtbb (master...steam-civ-be-fixes) https://git.io/vdbAN
NixOS_GitHub has left #nixos []
Oida has quit [(Ping timeout: 248 seconds)]
betaboon has quit [(Quit: WeeChat 1.9.1)]
proteusguy has quit [(Ping timeout: 240 seconds)]
betaboon has joined #nixos
Oida has joined #nixos
mutagenfork has quit [(Ping timeout: 240 seconds)]
iqubic has quit [(Remote host closed the connection)]
keta_suki has quit [(Remote host closed the connection)]
keta_suki has joined #nixos
Oida has quit [(Ping timeout: 264 seconds)]
Oida has joined #nixos
<sphalerite> Is there a neat way to work with rust crates through nix while using nightly rust from nixpkgs-mozilla yet?
justanotheruser has quit [(Quit: WeeChat 1.7.1)]
<Svarog> hah, i'm still fighting with rust in nix as well
b has quit [(Quit: Lost terminal)]
periklis has joined #nixos
justanotheruser has joined #nixos
justanotheruser has quit [(Client Quit)]
justanotheruser has joined #nixos
Oida has quit [(Ping timeout: 240 seconds)]
ivanivan has joined #nixos
Oida has joined #nixos
b has joined #nixos
ivanivan has quit [(Client Quit)]
keta_suki has quit [(Quit: WeeChat 1.9.1)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f0a0f02b22 (from 60 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
periklis has quit [(Remote host closed the connection)]
periklis has joined #nixos
Oida has quit [(Ping timeout: 252 seconds)]
Oida has joined #nixos
<Svarog> sphalerite, the snippet tilpner posted the other day had something about overriding the rust compiler with a specific nightly snapshot - did that not work or are you after something else?
<sphalerite> What I'm imagining ideally is having rust crates mapped to nix packages, but I'm guessing that's too optimistic :p
<Svarog> ah
<Svarog> hmm i thought i saw some tool called something like nixcrate
kkini has quit [(Remote host closed the connection)]
hellrazor has quit [(Quit: WeeChat 1.9.1)]
Oida has quit [(Ping timeout: 248 seconds)]
<Svarog> hmm that doesn't look like it helps now that i've read what it does
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vdbhe
<NixOS_GitHub> nixpkgs/master a86fe91 Nikolay Amiantov: bazel_0_4: try to fix on Darwin...
NixOS_GitHub has left #nixos []
ivanivan has joined #nixos
Oida has joined #nixos
proteusguy has joined #nixos
jb55 has joined #nixos
Oida has quit [(Ping timeout: 240 seconds)]
Oida has joined #nixos
<xelxebar> Does anyone know offhand what package nix-install, nix-generate-config, etc are associated with?
<Yaniel> `nix` presumably
<sphalerite> xelxebar: if you mean nixos-install, nixos-generate-config, nixos-rebuild, they're each their own package iirc
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] hhomar opened pull request #30655: gnome-themes-standard: 3.22.1 -> 3.22.3 (master...gnome-themes-standard-3.22.3) https://git.io/vdbhu
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vdbhg
<NixOS_GitHub> nixpkgs/master 0ce09af Nikolay Amiantov: bazel_0_4: additonal fix for Darwin
NixOS_GitHub has left #nixos []
<xelxebar> sphalerite: Oops. Thanks for catching that. Hmmm, I can't seem to find them.
<sphalerite> xelxebar: they're in nixpkgs/nixos
<sphalerite> hang on
<sphalerite> nixos/modules/installer/tools/tools.nix
<sphalerite> it's a bit inconvenient to get them from just a plain nix installation
<xelxebar> Yeah, this is where we hit my newbieness. I did end up finding that path, but I'm not sure what to do with it.
Oida has quit [(Ping timeout: 240 seconds)]
<xelxebar> A plain nix-instantiate on tools.nix doesn't work because we need the correct args
<sphalerite> `nix-build '<nixpkgs/nixos>' -I nixos-config=configuration.nix -A config.system.build.toplevel` (make a configuration.nix containing `{...}: {}`) will get you a tiny little nixos build which should contain the tools
<sphalerite> oh yeah, and it probably won't llike the empty configuration and you'll have to stick some dummy values in there
Oida has joined #nixos
<infinisil> xelxebar: What do you need them for? Testing?
<xelxebar> sphalerite: Thanks.
<xelxebar> infinisil: I'm trying to install nixos into a btrfs subvolume and the live cd for some reason thinks my btrfs volume has problems (maybe because the btrfs tool is pretty old?)
<Svarog> i think buildRustPackage is broken when a package has subrepositories that are not in the registry (or are in the registry but the package uses local modified versions not in the registry)
<xelxebar> I just can't mount my drive from the live cd. But I've already got a nix store on my current machine and all I really need is nixos-install.
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/527eb2ba51 (from 83 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
Oida has quit [(Ping timeout: 246 seconds)]
Isorkin has quit [(Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org)]
Oida has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] schneefux opened pull request #30656: shaarli-material: 0.8.3 -> 0.9.1 (master...pkg.shaarli-material) https://git.io/vdbje
NixOS_GitHub has left #nixos []
erictapen has quit [(Read error: Connection reset by peer)]
hellrazor has joined #nixos
Oida has quit [(Ping timeout: 246 seconds)]
<xelxebar> sphalerite: Bam. Looks like it's gonna work. Appreciate your swift help.
<ivanivan> Any advice on how best to load nix-installed bash completions from bashrc?
<ivanivan> I'm currently doing the following, and it works, but maybe there's a better way?
<ivanivan> if [ -d ~/.nix-profile/etc/bash_completion.d ]; then
<ivanivan> # git completion
<ivanivan> [ -r ~/.nix-profile/etc/bash_completion.d/git-completion.bash ] && \
<ivanivan> . ~/.nix-profile/etc/bash_completion.d/git-completion.bash
ToxicFrog has joined #nixos
<ivanivan> # git prompt
<ivanivan> [ -r ~/.nix-profile/etc/bash_completion.d/git-prompt.sh ] && \
<ivanivan> . ~/.nix-profile/etc/bash_completion.d/git-prompt.sh
<ivanivan> ...
<ivanivan> y
<ivanivan> Y
<ivanivan> sorry for the sloppy paste job
Svarog has quit [(Quit: Ex-Chat)]
<xelxebar> It'd be nice to have the nixos installer tools easily available as a package for bare nix stores
sigmundv has quit [(Ping timeout: 248 seconds)]
<sphalerite> ivanivan: `shopt -s nullglob; for f in ~/.nix-profile/etc/bash_completion.d/* ; do . $f ; done ;`
<sphalerite> you may also want to unset nullglob afterwards, especially since it's an interactive shell
leat has joined #nixos
Oida has joined #nixos
ylwghst has joined #nixos
jensens has quit [(Ping timeout: 252 seconds)]
<ivanivan> sphalerite: i'm worried that the sourced completion files might rely on the nullglob setting (though I guess they should set it explicitly if so)
<sphalerite> I doubt that
<sphalerite> but what you can also do is…
<sphalerite> `for f in ~/.nix-profile/etc/bash_completion.d/* ; do [[ -r $f ]] && . $f ; done`
<ivanivan> sphalerite: i like that compromise. thanks!
leat has quit [(Ping timeout: 260 seconds)]
Oida has quit [(Ping timeout: 260 seconds)]
Oida has joined #nixos
ivanivan has quit [(Quit: WeeChat 1.9.1)]
python476 has quit [(Ping timeout: 255 seconds)]
anderslundstedt has quit [(Quit: leaving)]
Oida has quit [(Ping timeout: 248 seconds)]
<ylwghst> Hi
<ylwghst> Which one is better:
anderslundstedt has joined #nixos
Oida has joined #nixos
Svarog has joined #nixos
<Svarog> sphalerite, have you seen this before: https://nest.pijul.com/pmeunier/nix-rust
<Svarog> it sounds like it converts rust crates to nix expressions
<sphalerite> nice
<xelxebar> ylwghst: I like the one with 'nixos' on it.
<sphalerite> ylwghst: only just realised your name reads nicely as "yellow ghost"
<ylwghst> xelxebar: me too going to create repo in a while
<ylwghst> sphalerite: youre right haha
proteusguy has quit [(Read error: Connection reset by peer)]
Oida has quit [(Ping timeout: 248 seconds)]
leat has joined #nixos
Oida has joined #nixos
erictapen has joined #nixos
Isorkin has joined #nixos
anderslundstedt has quit [(Remote host closed the connection)]
Oida has quit [(Ping timeout: 264 seconds)]
anderslundstedt has joined #nixos
ison111 has joined #nixos
Oida has joined #nixos
<joepie91> ylwghst: I prefer the one with text as well, I think - I do think the text color for the username is too light :)
<ylwghst> joepie91: could be
proteusguy has joined #nixos
Oida has quit [(Ping timeout: 240 seconds)]
<adisbladis> ylwghst: Looks great
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] woffs opened pull request #30657: haskellPackages.amqp-utils: fix dependencies (master...unbreak-amqp-utils) https://git.io/vdNvO
NixOS_GitHub has left #nixos []
Oida has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] c0bw3b opened pull request #30658: putty: 0.67 -> 0.70 (master...pkg/putty) https://git.io/vdNvW
NixOS_GitHub has left #nixos []
leat has quit [(Ping timeout: 248 seconds)]
Svarog has quit [(Quit: Ex-Chat)]
tempeh has joined #nixos
Oida has quit [(Ping timeout: 255 seconds)]
noobly has joined #nixos
<noobly> Can someone package up shapeshift for a noob like me
fendor has quit [(Ping timeout: 248 seconds)]
ssmike has quit [(Ping timeout: 240 seconds)]
Oida has joined #nixos
hellrazor has quit [(Quit: WeeChat 1.9.1)]
Oida has quit [(Ping timeout: 240 seconds)]
mithsv has quit [(Remote host closed the connection)]
mithsv has joined #nixos
<sphalerite> Anyone built coreboot on nixos? I'd like to build it for my (ARM) chromebook
<noobly> Can someone package up shapeshift for a noob like me
pie_ has joined #nixos
leat has joined #nixos
Oida has joined #nixos
proteusguy has quit [(Remote host closed the connection)]
dbmikus has quit [(Ping timeout: 252 seconds)]
Neo-- has joined #nixos
proteusguy has joined #nixos
simendsjo has quit [(Ping timeout: 240 seconds)]
noobly has quit [(Ping timeout: 260 seconds)]
Oida has quit [(Ping timeout: 240 seconds)]
Oida has joined #nixos
kozaim has quit [(Quit: leaving)]
periklis has quit [(Remote host closed the connection)]
Oida has quit [(Ping timeout: 246 seconds)]
<ylwghst> How i shoud get the sha256 sum to pass this:
<joko> ylwghst: search for the invalid hash? 0kk2m9ac9fw5s97pdanm63jgl6gky4ay9n2l30q68qqkjc4x12ax
bennofs has joined #nixos
Oida has joined #nixos
<ylwghst> joko: trying to build this
bennofs has quit [(Client Quit)]
<ylwghst> the hash i provided is different
<adisbladis> ylwghst: You can use nix-prefetch-url to get that sha
<adisbladis> ylwghst: There is also the `fetchFromGithub` method you might be interested in
<ylwghst> thanks
Oida has quit [(Ping timeout: 240 seconds)]
<adisbladis> ylwghst: If you want to use `fetchFromGithub` there is nix-prefetch-git
<xelxebar> sphalerite: Are you hitting any specific problems building coreboot? As long as you have gcc, glibc etc, the toolchain should bootstrap the crosscompilers for you.
<ylwghst> ok
<ylwghst> will give it try later
ylwghst has quit [(Remote host closed the connection)]
<sphalerite> xelxebar: no, I haven't started trying yet because I also don't really know what I'm doing in addition to being on nixos :p
<sphalerite> adisbladis: nix-prefetch-git doesn't help for fetchFromGitHub, only for fetchgit
Oida has joined #nixos
<sphalerite> I wrote a little tool that can do fetchFromGitHub for the lazy though, https://github.com/lheckemann/nix-prefetch
<sphalerite> ylwghst: ^
<joachifm> nix-prefetch-url --unpack
<joachifm> ^ to get the checksum of the archive contents
<sphalerite> but then you have to work the URL out yourself :p
<joachifm> nix-prefetch-url --unpack -A foo.src
Neo-- has quit [(Ping timeout: 246 seconds)]
<Dezgeg> or instead of bothering all those error-prone steps, just copy-paste the hash from the error message
<joachifm> is pretty cool
<joachifm> or that :)
<xelxebar> sphalerite: I'd try following along the build howto on the coreboot wiki. All the required build packages are in nixpkgs.
<sphalerite> Dezgeg: or use my tool which outputs the full fetchFromGitHub expression :D
noobly has joined #nixos
<Dezgeg> well, the same approach works for all things, fetchpatch fetchurl fetchgit etc...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] peti pushed 2 new commits to master: https://git.io/vdNUJ
<NixOS_GitHub> nixpkgs/master 2d7705f Frank Doepper: haskellPackages.amqp-utils: fix dependencies
<NixOS_GitHub> nixpkgs/master b3b9ff4 Peter Simons: Merge pull request #30657 from woffs/unbreak-amqp-utils...
NixOS_GitHub has left #nixos []
<Dezgeg> without requiring a special tool for each of them
Oida has quit [(Ping timeout: 260 seconds)]
<Ralith> what's the nix-env incantation to install a nix-build result?
ylwghst has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joncojonathan opened pull request #30660: Update dejadup36 3 (master...update-dejadup36_3) https://git.io/vdNUZ
NixOS_GitHub has left #nixos []
<maurer> Ralith: Usually pretty similar to the nix-build invocation, just with -f to point to the .nix file
<maurer> e.g.
<maurer> nix-env -i -f default.nix
Oida has joined #nixos
<Ralith> maurer: no, the result symlink, not the .nix
<maurer> Assuming that nothing's changed, shouldn't it end up using the cached result?
<Ralith> somewhat beside the point of the question
<Ralith> I know there's a way to feed it a store symlink, but I can't recall what
<Dezgeg> maybe just nix-env -i result (or if that doesn't work, nix-env -i $(readlink result))
<Ralith> readlink did it
Oida has quit [(Ping timeout: 258 seconds)]
Oida has joined #nixos
dustmote has joined #nixos
<dustmote> Is it ok to put /nix/store behind a symlink?
pxc has joined #nixos
<dustmote> I'd like to have it on a separate partition from /
<dustmote> But probably the same partition as /home
<dustmote> .. so, symlinks
<maurer> dustmote: I don't think symlinks work, but I've used a bind-mount for it successfully
<dustmote> Oh, I'm not familiar with that, but it sounds like the right approach
ryantrinkle has quit [(Ping timeout: 240 seconds)]
<dustmote> So for my scheme I'd need a normal mount for the partition containing /nix/store and /home, plus two bind-mounts to wire the directories to the correct places in /, right?
<dustmote> Thanks, maurer
<maurer> Yeah, that's the basic idea
pxc has quit [(Ping timeout: 248 seconds)]
Oida has quit [(Ping timeout: 248 seconds)]
<woffs> nix-env -i ./result
Oida has joined #nixos
ylwghst has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] c0bw3b opened pull request #30661: librepo: 1.7.20 -> 1.8.1 (master...pkg/librepo) https://git.io/vdNTZ
NixOS_GitHub has left #nixos []
jgertm has joined #nixos
dustmote has quit [(Quit: bye)]
Oida has quit [(Ping timeout: 255 seconds)]
leat has quit [(Read error: Connection reset by peer)]
Oida has joined #nixos
<srhb> Can I bail out of the nix sandbox for the purpose of pushing things over the network? I want ocharles microci to push some artifacts.
Oida has quit [(Ping timeout: 255 seconds)]
mutagenfork has joined #nixos
<MichaelRaskin> You do control Nix settings, right? So sandboxing is relaxed, not full-strict?
<srhb> Yes.
<srhb> Am I missing something obvious? :-P
<MichaelRaskin> «If this option is set to relaxed, then fixed-output derivations and derivations that have the __noChroot attribute set to true do not run in sandboxes.»
<srhb> Oooh
<srhb> Nifty!
<srhb> MichaelRaskin: Thanks, didn't know of that :)
<seanparsons> Would I be correct in thinking that I'd need to provide the option for this in some different way for the kernel module? https://unix.stackexchange.com/questions/28736/what-does-the-i8042-nomux-1-kernel-option-do-during-booting-of-ubuntu
Oida has joined #nixos
zarel has quit [(Quit: Leaving)]
<seanparsons> This answer makes me think so, but I'm being dense and not seeing how to do so in NixOS: https://unix.stackexchange.com/questions/28736/what-does-the-i8042-nomux-1-kernel-option-do-during-booting-of-ubuntu#comment79645_28810
<infinisil> srhb: Why can't you do that outside of nix?
<infinisil> reminds me of the discussion about pushing to a repo while building a derivation
<infinisil> yesterday
<srhb> infinisil: NOt sure how to integrate that with micro-ci, that's the only reason.
* infinisil checks out micro-ci's module
Oida has quit [(Ping timeout: 240 seconds)]
<infinisil> Wait, there is none
<srhb> It has a module?
<srhb> Yeah
Oida has joined #nixos
<srhb> Easy alternatives are welcome, I just need to run a nix-build and then an upload command on each commit on github. :)
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/527eb2ba51 (from 4 hours ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
nix-gsc-io`bot has quit [(Client Quit)]
<srhb> Setting up gitlab seems over the top :-P
<srhb> Oh well, maybe I will anyway.
<infinisil> I mean, gitlab's options are well established iirc
leat has joined #nixos
<srhb> True enough.
<infinisil> srhb: Hmm, I'd think it should be easy to add a postBuildHook to micro-ci
<infinisil> well maybe not easy, but not hard
<srhb> I suppose I could even alter my derivation to just push on build.
<infinisil> it's pretty much just a single haskell file
jgertm has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] schneefux opened pull request #30662: nixos/kibana: add passwordFile option (#24288) (master...module.kibana) https://git.io/vdNkV
NixOS_GitHub has left #nixos []
<infinisil> I don't like the idea of making a derivation impure
Oida has quit [(Ping timeout: 240 seconds)]
<srhb> Me neither.
<MichaelRaskin> Oh well, let me check — there is an obvious trick.
<MichaelRaskin> Yes, it works.
ylwghst has joined #nixos
<MichaelRaskin> runCommand "test4" {outputHashAlgo="sha256"; outputHash="0mdqa9w1p6cmli6976v4wi0sw9r4p5prkj7lzfd1877wk11c9c73";buildInputs = [curl];} "curl -k -v https://nixos.org/; touch $out"
<MichaelRaskin> That works.
<srhb> Heh!
<noobly> can someone package shapeshift pls
<MichaelRaskin> It will be rebuilt for every new name
<MichaelRaskin> The hash does not depend on the name.
<infinisil> My eyes! The impurity!
<MichaelRaskin> It is pure.
<MichaelRaskin> It is hash-guaranteed to be empty.
<infinisil> Wait what does that do then
Oida has joined #nixos
<srhb> It creates an empty out, so that's fine...
<MichaelRaskin> I built a fixed-output empty-output derivation.
<srhb> It's pure modulo fireTheMissiles
<MichaelRaskin> That happens to do some network steps in the middle.
<srhb> Who cares about the rest of the world anyway... :-)
<Isorkin> Hi. How to enable custom kernel config?
<infinisil> But then it's not pure, it can have side-effects
<MichaelRaskin> Rest of the world? Who told you it exists?
<MichaelRaskin> Nix-side it is pure…
<MichaelRaskin> It even fails if network access fails.
<MichaelRaskin> Which is, admittedly, impure
<michaelpj> it'll fail if sandboxing is enabled, no?
<infinisil> meh
<MichaelRaskin> But convenient.
<MichaelRaskin> Nope.
<infinisil> why not?
<MichaelRaskin> It has the same ontological status as fetchurl.
<MichaelRaskin> The output hash of the empty file is known in advance, so it is fixed-output derivation.
<michaelpj> it *should* fail if sandboxing is enabled :p
<Dezgeg> don't you risk the command not getting run again, in case you already have an empty file in the store?
<MichaelRaskin> michaelp: then fetchurl cannot work!
tempeh has quit [(Quit: WeeChat 1.9)]
<infinisil> How does this sandbox network access prevention work again
<MichaelRaskin> Dezgeg: it requires an empty file with the same name.
hoverbear has joined #nixos
<Dezgeg> oh, it needs the name to match
dragon__ has quit [(Remote host closed the connection)]
<MichaelRaskin> So you will just use the hash of the artifact to push as the name of the pseudo-build.
<ldlework> MichaelRaskin I was making this argument yesterday
<ldlework> It did not seem to move anyone.
<michaelpj> MichaelRaskin: sure, I understand why the escape hatch is there, I'm just spitballing
<joko> Anyone knows how to create a cache (secondary) http(s) server to hold my Hydra files?
dragon__ has joined #nixos
<MichaelRaskin> michaelpj: network outcomes do not alter the store state, though.
<infinisil> It's still hacky, even if it works ldlework
<hoverbear> Does anyone have an example of using `nixpkgs.overlays`? I would like to add the `nixpkgs-mozilla` overlay
<ldlework> infinisil yes but people were making purity arguments that I think were a farce (not that I don't think they were trying to help)
<infinisil> oh it's totally impure
<michaelpj> I do think Dezgeg's point (similar vein to what I was saying yesterday) is a good one - if you rely on the way effects are run by nix, you're going to have a bad time because it assumes it can have whatever evaluation model it likes
<MichaelRaskin> ldlework: well, this trick is exactly the thing with pushes-done-list that you didn't like.
Oida has quit [(Ping timeout: 248 seconds)]
<MichaelRaskin> Just inside the store this time.
<ldlework> MichaelRaskin I just mean the argument that the package, as far as nix is concerned, is NOT impure
<ldlework> Since whatever is being accused of being impure, has no functional or casual relationship with the package
<MichaelRaskin> Note that it is a _different_ build with fixed output
<ldlework> So the purity argument become meaningless, without import.
<ldlework> Of no consequence.
<MichaelRaskin> Which means _another_ set of guarantees are enforced.
<infinisil> ldlework: purity means that there are no side effects, and there obviously can be side effects here
<Dezgeg> but who guarantees nix isn't going to be optimizing fixed-output lookups by ignoring the name field?
<ldlework> As far as nix is concerned, there are none.
<MichaelRaskin> You need to separate fixed-output side-effect build and the clean one, though.
<infinisil> there is no "as far as nix is concerned" with the definition of purity
<ldlework> You can say that, but since this impurity doesn't have any effects for the guarantees Nix provides, I argue you saying that actually is meaningless.
<ldlework> Its more posture than substance.
<MichaelRaskin> But for guarantees to work you still need to run a _separate_ build for pushing.
<ldlework> How so?
Alling has joined #nixos
Oida has joined #nixos
<ldlework> I can make a build that pings a server, then does nothing else. It will always build the same package.
<MichaelRaskin> Because in my trick the network activity happens in a fixed-output build.
<MichaelRaskin> Exactly.
<MichaelRaskin> It cannot produce anything meaningful not known in advance.
<ldlework> I can also make it build a binary and ping a server.
<MichaelRaskin> Nope.
<ldlework> It will be the same.
<ldlework> Yes?
<MichaelRaskin> Nope, because Nix cannot ensure the separation in the second case.
<ldlework> Ah 👍 I see that argument that's fine.
<Alling> I need the Python package bs4 (beautifulsoup4) available in mitmproxy. It is in buildInputs but not in propagatedBuildInputs for mitmproxy. How can I add it?
<infinisil> oh i get it now
<ldlework> But in practical senses, the single build is the same.
<MichaelRaskin> No, in terms of mistake detection.
<ldlework> That' fine, I agree with you.
<ldlework> But it is possible to build a build that has no cryptographic consequence.
tgunb has joined #nixos
<ldlework> Its "pure"
<infinisil> so nix isn't actually fully pure
<ldlework> The world supports the cases where someone writes some bash and the network operation inside doesn't effect the build, and for all technical senses of the word, the build is still pure.
<ldlework> It is, you're just using a meaninless sense of the word.
<MichaelRaskin> ldlework: well, not really meaningless.
<hoverbear> So overlays go in `~/.config/nixpkgs/overlays` but what if I want them system wide for use in my `/etc/nixos/configuration.nix`?
<tgunb> can someone point me to the part of the nix doc, that tells me, how persistent configuration files should be added to the system. ( i want to add another file in xorg.conf.d.)
<ldlework> infinisil yes, and for the cryptographic output of Nix, it is pure
<ldlework> Nix cannot know about the cryptographic state of external services.
schoppenhauer has quit [(Ping timeout: 240 seconds)]
<ldlework> Builds remain pure.
<ldlework> The wider internet does not.
<ldlework> I'll say, packages remain pure.
<infinisil> from wiki: "Evaluation of the result does not cause any semantically observable side effect or output, such as mutation of mutable objects or output to I/O devices (usually—see below)."
<ldlework> Yes, and if you care about repeatbly built packages
<ldlework> This is exactly the case
<infinisil> yeah sure, but it's not strictly pure is what I'm saying
Oida has quit [(Ping timeout: 240 seconds)]
<MichaelRaskin> Nix is also not perfectly pure about bit-perfect reproducible builds, unfortunately.
<ldlework> Sure then nothing is since everything affects my CPU cache
<hoverbear> tgunb: I am also not sure.
<infinisil> true
<ldlework> who cares?
<MichaelRaskin> It prevents us from having multiple nice things, actually.
<ldlework> What the ability to ping a server?
<MichaelRaskin> Lack of bit-perfect reproducibility.
<hyper_ch> infinisil: already rebuilding with encrypted zfs?
<ldlework> My who cares was a follow up to my own statement, not the bit perfect observation
<ldlework> sorry
<infinisil> hyper_ch: Nah
schoppenhauer has joined #nixos
Oida has joined #nixos
scribbler has joined #nixos
<infinisil> Nix derivations build stuff, and that's their purpose, pushing stuff to a server is totally not what they're intended for
<ldlework> Its a tool to do work.
<infinisil> Nix isn't the solution for everything
<ldlework> Its true, I should remember to ask you next time.
<MichaelRaskin> infinisil: and Nix language is for defining packages, writing a complicated fixpoint-based modules system is definitely what it was intended for.
<michaelpj> hoverbear: `nixpkgs.overlays` in configuration.nix. There's a section in the Nixpkgs manual about overlays that explains this
<srhb> In CI talks, has anyone gotten a circleci 2.0 build up with persisted nix store?
<michaelpj> hoverbear: okay, so you understand that the ones in your home directory and the ones in the nixos configuration are conceptually distinct? But if you want to use the same ones, just use symlinks or whatever
Oida has quit [(Ping timeout: 240 seconds)]
<hoverbear> michaelpj: Yes, I understand that. I'd like to make the overlay available systemwide. According to "On a NixOS system the value of the nixpkgs.overlays option, if present, is passed to the system Nixpkgs directly as an argument." from the first link it reads like I should pass it an array of file paths like `nixpkgs.overlays = [./nixpkgs-mozilla/rust-overlay.nix]` or as a string. (New to nix, apologies for being a
<hoverbear> bit daft about the syntax)
<hoverbear> (This is assuming the overlay is at `/etc/nixos/nixpkgs-mozilla/rust-overlay.nix`
<LnL> I think you might have to use (import /path/to/overlay.nix)
<Biappi> i am trying to understand how to install a ruby program using nix on osx. i am completely unfamiliar with ruby, and i am told i need to do "gem install programname", is there a nix equivalent way of installing it?
<hoverbear> LnL: Ohh I will try this thank you. :)
<tgunb> hoverbear: that's unfortunate. but someone has to know that, right?
<tgunb> another question: where can i see all valid values for services.xserver.layout?
<michaelpj> tgunb: is `environment.etc` what you're looking for?
<michaelpj> (`man configuration.nix`)
<ldlework> infinisil so did you and rycee decide that the nixpkgs.overlay was not good for HM?
Oida has joined #nixos
<tgunb> looks like it. thanks.
<infinisil> ldlework: The PR is there, 101
<infinisil> um, or 102
leat has quit [(Ping timeout: 260 seconds)]
<ldlework> ah I looked right at that and didn't recognize it as the thing I was looking for
<infinisil> understandable, there's no explicit overlays in there
<hoverbear> LnL: Trying to import them results in "value is a function while a set was expected"
Mateon2 has left #nixos []
Oida has quit [(Ping timeout: 248 seconds)]
<MichaelRaskin> An overlay is a function that gets the package set as a parameter.
<LnL> hoverbear: hmm, that overlay is a file with self: super: ... right?
<michaelpj> hoverbear: that's odd. To be clear, you're doing `nixpkgs.overlays = [ import ./nixpkgs-mozilla/rust-overlay.nix ];`?
<LnL> you need to use parenthesis around the import
<LnL> otherwise you get a list with 2 items
<hoverbear> LnL, michaelpj: Ah, no I was putting them in `imports` at the top. Using that (with parents) seems to work!
<hoverbear> Thank you
iqubic has joined #nixos
<LnL> ah
<rycee> ldlework: Yes, I think it is safe to say that HM will support nixpkgs.overlays before too long.
<ldlework> noice
Oida has joined #nixos
abbradar has joined #nixos
<ldlework> that'll be the last thing I'm looking for I think. I think infinisil figured out how to use the overlays and the extra commands to do everything I've been trying over the last couple of days.
sheyll has quit [(Ping timeout: 248 seconds)]
hotfuzz_ has quit [(Quit: WeeChat 1.9.1)]
hotfuzz has joined #nixos
<infinisil> rycee: (i commented on the pr btw)
sheyll has joined #nixos
<abbradar> Good day all! Whom can I ask for a custom Hydra jobset? Need to fix TensorFlow on Darwin but don't have a Mac and don't want to pollute master with "trying to fix" commits
<infinisil> not entirely convinced on the thing i said regarding the combination of the default config/overlay with the home-manager one
<rycee> infinisil: Yeah, I got notified about that. I'll probably not look at them in depth today but I appreciate your comments and will work on either tomorrow or Monday.
<infinisil> Looking at it a bit better, I found out that the config is exported as pkgs.config (which i found out a few days ago), but overlays isn't
<iqubic> rycee: Will HM ever be part of nixpkgs official? Like so I can add HM to my systemPackages?
<hoverbear> Now I just need to puzzle out how to get the system to actually install Rust.... Definiting it in systemPackages doesn't work.
scribbler has quit [(Remote host closed the connection)]
<LnL> abbradar: how much of a rebuild is it?
<abbradar> LnL: two packages -- bazel_0_4 and tensorflow itself
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor pushed 2 new commits to master: https://git.io/vdNL5
<NixOS_GitHub> nixpkgs/master 4c449e0 Daniel Kuehn: sudo: Add optional dependency to SSSD, enabled by setting withSssd to true
<NixOS_GitHub> nixpkgs/master eafcfaf Daniel Kuehn: sssd: Add optional bindings for building sssd library that sudo can use to fetch sudoers rules from SSSD
NixOS_GitHub has left #nixos []
<infinisil> iqubic: It could be any day, but the problem with it is that you'd need a PR to update anything home-manager, which is kinda annoying since it may update a lot
<rycee> infinisil: Yeah, I'm thinking that will not happen internally since HM would then need to distinguish between when it runs on NixOS and when it runs on other systems. A NixOS user should be able to do it manually though by simply loading up the system config and putting, e.g., `nixpkgs.config = sysconfig.nixpkgs.config;` in their configuration
Oida has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] bjornfor closed pull request #30445: sudo and sssd: Enable sssd support in sudo and building of sudo library in sssd (master...sssd-sudo-integration) https://git.io/vdMne
NixOS_GitHub has left #nixos []
<abbradar> LnL: I don't have any experience with Darwin however so I expect N tries, where N > 1
<rycee> iqubic: There is a PR here: https://github.com/NixOS/nixpkgs/pull/30330
<iqubic> What does nixpkgs.config = sysconfig.nixpkgs.config do?
<infinisil> rycee: Ah, you mean the nixos config and overlay attrs? I actually just mean the users ones
leat has joined #nixos
<abbradar> (I want to make custom release.nix to only build those two)
Oida has joined #nixos
<rycee> iqubic: But I'm not very fond of putting the whole of HM (both command and modules) as a single Nixpkgs package.
<iqubic> rycee: I understand.
<LnL> abbradar: I can make a jobset on my hydra if you send me a branch
<abbradar> LnL: ok, I'll prepare it and ping you. thanks!
<iqubic> So for now, will I have to installing via "git clone" and "nix-env"?
<rycee> iqubic: Mainly because HM and its modules are moving quite fast (including the "stable" branch) so the package version in Nixpkgs would have to be updated very frequently…
<LnL> abbradar: you don't need to mess with release.nix I already have some stuff for that
<ldlework> Does it make sense to use a HM channel for the modules?
<infinisil> just thought about that too ^^
<ldlework> And just merge the tooling
<michaelpj> the one thing that feels weird about HM in nixos is that the modules are different. e.g. you'll have two ways to enable redshift, which don't share any code
<rycee> ldlework: Yes, a channel would be a possibility but it would require some surrounding infrastructure.
<abbradar> LnL: ah, good. then: github.com/abbradar/nixpkgs -b tensorflow
<ldlework> rycee like hosting infrastructure?
<rycee> ldlework: Another alternative would be to simply put "home-manager=https://github...." in NIX_PATH. I guess channels are sort of on their way out anyway…
<infinisil> michaelpj: Yeah, integration into nixpkgs would need to happen for this to get better
<ldlework> ah
<iqubic> michaelpj: What do you mean by "two ways to enable redshift?"
<ldlework> that seems easy enough yeah
<ldlework> Can an overlay point to a git repo?
<ldlework> Or tarfile?
<rycee> michaelpj: Yes, that is unfortunately the case at the moment. I'm having hopes that the situation will be improved if the NixUP work gets rolling again.
<michaelpj> iqubic: the nixos redshift module and the HM redshift module
<rycee> michaelpj: The main stumbling block right now is the difficulty of using the NixOS systemd module in HM.
<michaelpj> it's not clear to me what stops this working now. Is it that the "user-services" bit of the nixos systemd module would need to be standalone?
Oida has quit [(Ping timeout: 246 seconds)]
<michaelpj> ah
<infinisil> i actually think these service modules should be directly at their package definitions
<michaelpj> yeah, I don't really understand the full module system enough to understand why that is :D
<infinisil> because it's the package that really should define it
<iqubic> michaelpj: Oh, I see.
<ldlework> NixUP looks dead
<michaelpj> (redshift is on my mind recently since I just opened a PR improving the nixos one... which then won't benefit the HM one)
<infinisil> hmm, i mean one could just import the nixpkgs module one
ssmike has joined #nixos
<michaelpj> well, I assume that e.g. the systemd module makes lots of assumptions that it's on a nixos system
<hoverbear> How can I reference things inside this new overlay I've imported? Eg I want to 'use' https://github.com/mozilla/nixpkgs-mozilla/blob/master/rust-overlay.nix#L273
<infinisil> michaelpj: Oh right, forgot about that
Oida has joined #nixos
<michaelpj> you'd want to have a systemd-user module that just assumed an ambient systemd, not necessarily a nixos one
<michaelpj> or was parameterized somehow
<sphalerite> hoverbear: just refer to attributes inside it. If you've installed it correctly, you should for instance be able to do nix-shell -p rustChannels.nightly.rust
dbmikus has joined #nixos
<hoverbear> sphalerite: Well I'm trying to put it into my `/etc/nixos/configuration.nix` file
<infinisil> hoverbear: It should be pkgs.rustChannels.nightly.rust then
<sphalerite> aah right
<hoverbear> Ahhhhh
<sphalerite> hoverbear: in that case you need to put the overlay in the nixpkgs.overlays option
<hoverbear> sphalerite: It is =D
<sphalerite> oh right
<hoverbear> infinisil: In this case `pkgs` does not exist
<infinisil> hoverbear: add pkgs to the argument list at the top
<hoverbear> infinisil: It is :S
Alling has quit [(Ping timeout: 260 seconds)]
<infinisil> hoverbear: { pkgs, ... }: { <your system config here> } ?
<Twey> Is Nix lazy in the keys of attrsets, or just the values? (in other words, if I have an attrset with 10,000 keys, am I going to regret it? ;) )
<hoverbear> infinisil: `{ config, pkgs, ... }: { nixpkgs.overlays = [(import ./nixpkgs-mozilla)]; pkgs.rustChannels.stable.rust = true; }`
<Unode> Is there any way to create a systemd service with multiple ExecStart commands?
<hoverbear> Unode: ExecPreStart :)
<infinisil> hoverbear: Oh, yeah you need to put it in systemPackages
<Unode> hoverbear: need at least 3 commands :/
<infinisil> environment.systemPackages = [ pkgs.rustChannels.stable.rust ];
<hoverbear> Ahhhhh
Oida has quit [(Ping timeout: 240 seconds)]
<infinisil> Unode: Just create script and call that as your single command
dieggsy has joined #nixos
<hoverbear> infinisil: omg it worked =D
<Unode> infinisil: unsure how to do that
<Twey> hoverbear: You want bleeding-edge, constantly-updating rustc and cargo for all users on your system?
<infinisil> ExecStart = pkgs.writeScript "exec" "#!${pkgs.bash}/bin/bash\n echo hi there; command 2;";
Oida has joined #nixos
<Twey> hoverbear: I'm usually on the other end of this around here, but that sounds like a terrible idea :þ
<Unode> infinisil: I see
<hoverbear> Twey: YEs.
<hoverbear> Twey: I'm a Rust dev :)
<Unode> also, is there any reason why services created by nixos end up as fifos or pipes in the store?
<infinisil> I agree with Twey, I actually did this with firefox once
<iqubic> Rust is weird as heck.
<hoverbear> I am under the impression nixos will let me define a specific compiler version in an env anyways
<Twey> hoverbear: Me too! But that means I've got a bunch of shell.nix'es lying around that call rustChannels.nightly.rust
<infinisil> And it's horrible to always potentially have to download a new version on every rebuild
<infinisil> well at max every hour
<Ralith> Twey: stable != bleeding-edge
<hoverbear> Twey: I'm sure I'll find a better way but right now I'm just starting with Nix and trying it because I need to zap my system before a trip to the US
<Twey> Ralith: That's true
erictapen has quit [(Ping timeout: 240 seconds)]
<hoverbear> So zapped it with nixos to try it on my trip
<Twey> hoverbear: Okay :)
<Twey> iqubic: You use Nix and think Rust is weird? :þ
<hoverbear> atm I just want to be able to go `nvim thing.rs` and `cargo build`. Learn the "proper way" as I go
<Ralith> hoverbear: fwiw the more idiomatic thing is to set up the rust overlay in your user environment, and then have your packages have a shell.nix which pulls in an appropriate version
hotfuzz has quit [(Quit: WeeChat 1.9.1)]
<Twey> hoverbear: The Mozilla overlay is kind of bad for this because its packages are non-deterministic — they will always try to pull a new Rust from whatever channel you're using
<Twey> hoverbear: So sometimes upstream updates Rust and your work breaks…
<Ralith> no need for global config, let alone globally installed tools
<iqubic> Twey: That is correct
<hoverbear> Ralith: I gather there is some magic file `env.nix` or something that lets me create a dev shell per git repo or something?
<Twey> I need to do something about that some day
<iqubic> I also think Java is weird.
<iqubic> Is rust OOP?
<hoverbear> iqubic: No it's C like with Functional inspirations
<Twey> iqubic: It's like Haskell — type classes
<Twey> (in that respect)
<Twey> (not in general)
<iqubic> Twey: I see.
erictapen has joined #nixos
<iqubic> I actually know a fair bit of haskell
<Ralith> hoverbear: there's no magic
<hoverbear> iqubic: It's lots of generics and structures with capabilities attached to them.
<Twey> iqubic: With a magic Self argument though
<infinisil> iqubic: Soo, you have such a strong opinion on rust without even knowing it?
<infinisil> :/
<iqubic> infinisil: Yeah.
Oida has quit [(Ping timeout: 248 seconds)]
<hoverbear> Twey: Hardly magic. `fn foo(self)` can be called with `foo(1)` and it's fine.
<iqubic> I'm going to watch this: https://www.youtube.com/watch?v=U1EFgCNLDB8 and then come back.
<dieggsy> is there a way to troubleshoot nix programs suddenly not respecting fontconfig?
<Ralith> hoverbear: drop a shell.nix in your file, `nix-shell` uses that by default and drops you into a suitable env
<Ralith> er
<Ralith> in your project dir
<hoverbear> Ralith: Okay I will try that but I want a quick shower first =D
<dieggsy> I had specified the font "Iosevka Term" for various programs installed with nix-env, when all of a sudden they turned to courier yesterday...
<Twey> hoverbear: It's better to see Nix as a programming language than as a package manager, in my experience. So you don't need to use magic — you just write a little script that sets up an environment with those things in it (and Nix/nixpkgs/nix-mozilla) provides tools to help you do that.
<hoverbear> iqubic: Here is a better preview of the kind of PLT chops rust has: https://www.youtube.com/watch?v=fI4RG_uq-WU
Kim has joined #nixos
<Twey> hoverbear: I don't mean self, I mean Self.
<hoverbear> Twey: Slightly magic I guess :)
<Twey> hoverbear: The chief difference between Rust traits and Haskell typeclasses is that Haskell doesn't have the special Self argument — instead of saying T: Foo<U, V> you say Foo<T, U, V>
<hoverbear> Twey: I'm mostly here for the declarative configuration and the idea of having a file I can proviusion onto a machine and have it exactly what I want.
dragon__ has quit [(Ping timeout: 246 seconds)]
<Twey> hoverbear: (though inside the compiler, that's not really special)
<hoverbear> Twey: Ah ok. Yeah I guess it's a bit special
<Twey> hoverbear: Those things are corrolaries :)
<hoverbear> Twey: Right. :) I'm coming from Arch + Ansible provisioning which worked fine but was slow and not ~~really~ declarative
<Twey> And wow, I got the bracketing wrong in that message. It's not often I make typos that I can't regex away. But you get the idea.
Oida has joined #nixos
<hoverbear> But this system will exist for a grand total of 7 days then it gets flashed again so if I can have a config that is portable that's awesome
m0rphism has quit [(Quit: WeeChat 1.9.1)]
<infinisil> nix is fast?
m0rphism has joined #nixos
<dieggsy> welp, uninstalling and reinstalling seems to help, somehow.
dieggsy has quit [(Remote host closed the connection)]
scribbler has joined #nixos
Oida has quit [(Ping timeout: 260 seconds)]
Oida has joined #nixos
<Twey> hoverbear: It's portable but IME there's usually some hardware-specific configuring to do
ylwghst has quit [(Remote host closed the connection)]
srhb has quit [(Quit: Quit)]
kiloreux has quit [(Ping timeout: 248 seconds)]
kiloreux__ has quit [(Ping timeout: 240 seconds)]
Mic92 has quit [(Quit: WeeChat 1.9.1)]
Oida has quit [(Ping timeout: 252 seconds)]
Mic92 has joined #nixos
<MichaelRaskin> Well, if it is about the same hardware, just wiping the laptop after the border crossing — that should work
reinzelmann has joined #nixos
tgunb has quit [(Quit: Leaving.)]
<hyper_ch> so for border crossing
<hyper_ch> make backup with zfs
<hyper_ch> install some kubuntu
ylwghst has joined #nixos
<hyper_ch> cross border
Oida has joined #nixos
<hyper_ch> restore zfs snapshot :)
<hyper_ch> with gigabit it shouldn't take too long
ryantrinkle has joined #nixos
<sphalerite> yay got libreboot running on my chromebook!
hotfuzz has joined #nixos
<infinisil> hyper_ch: What do you have on your computer that's worth doing that lol
<hyper_ch> infinisil: lots of sensitive client information
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg closed pull request #30658: putty: 0.67 -> 0.70 (master...pkg/putty) https://git.io/vdNvW
NixOS_GitHub has left #nixos []
<hyper_ch> and generally, everone should encrypt their data
<infinisil> Well not everyone
<hyper_ch> yes, everyone
Oida has quit [(Ping timeout: 248 seconds)]
<infinisil> It would give my grandma more problems than benefits if i made her use encryption :P
tgunb has joined #nixos
<joko> It would give more to you :P
dbmikus has quit [(Ping timeout: 258 seconds)]
<hyper_ch> why? you setup everything and she just needs to remember the password
<infinisil> > she just needs to remember the password
<hyper_ch> make sure that je won't write it down on a postit and attach it to the screen
<infinisil> And that's where a problem is
<hyper_ch> you shouldn't underestimate your grandma ;)
<infinisil> Especially older people tend to forget a lot of stuff
<MichaelRaskin> What you want, is to write down the password on a note under the keyboard, and write a panic password on a postit on the monitor.
<infinisil> And what's the reason of encryption if the password is literally on the computers screen lol
<Twey> A lot of operating systems nowadays have transparent encryption — it just looks like logging in normally
<Twey> NixOS, of course, is not one of those operating systems :þ
Oida has joined #nixos
<hyper_ch> it's not? oO
<infinisil> Well, once you have encryption it can be transparent
<infinisil> but you need to set it up, which is non-trivial
miriam59 has joined #nixos
<infinisil> and too much for the avg joe
<hyper_ch> I'm avg joe
<infinisil> but, if my idea of managing data, and partitions too, with nixos succeeds, this might change!
Nobabs27 has joined #nixos
<infinisil> Knowing about ZFS already pretty much puts you out of qualification for the avg joe hyper_ch :P
<hyper_ch> infinisil: not really
<hyper_ch> I barely know how to turn on my internet
Oida has quit [(Ping timeout: 260 seconds)]
<hoverbear> So removing a package from the configuration.nix doesn't remove it when you run rebuild?
<hyper_ch> it will be removed from that generation
<hyper_ch> but still be present in earlier generations
<hoverbear> So I rebuilt and rebooted and it is still there :$
<infinisil> hoverbear: Define "it's still there"
<hyper_ch> you still have the old generations
<iqubic> If you run "nix-collect-garbage -d" than older generations will go POOF
<infinisil> don't do this pls ^^ You can't rollback after that
<hyper_ch> hoverbear: "atmoic upgrades" that can be "rolled back"
<Ralith> hoverbear: you don't need to reboot for most changes to become visible, fwiw
<hoverbear> infinisil: rustc is still there but it's out of my config
<hoverbear> I can exec it
<infinisil> hoverbear: what's the output of `which rustc`
Oida has joined #nixos
<sphalerite> yep, that's to be expected
<sphalerite> That way you can instantly switch back to the older config
c74d has joined #nixos
<hoverbear> infinisil: in .nix-profile/bin
<infinisil> then you installed it to your user with nix-env
<Twey> hyper_ch: No, at least the way I have it set up you have to enter a passphrase into a black console before anything GUI happens
<iqubic> infinisil: I usually make sure the latest generation works, then clear out the older generations.
<sphalerite> ooooh
<sphalerite> that means it's installed in your user profile
<sphalerite> As opposed to your system generation
<hyper_ch> Twey: encrypted root zfs?
<hoverbear> Bollockz
<Twey> hyper_ch: LVM, but yeah
<infinisil> iqubic: Can't say I'd recommend that. generations are pretty much zero-cost
<iqubic> infinisil: I suppose that's true.
<sphalerite> I usually delete generations older than 7 days
<hoverbear> infinisil: docs say nix-env -e should remove it but I get no output?
<Twey> infinisil: Well, they keep old packages around — all those hard drives get expensive :þ
<iqubic> How do you do that sphalerite?
<hyper_ch> my generations over the past 2 weeks take 54GB :)
<infinisil> hoverbear: nix-env -q to see what it's called, copy it and then nix-env -e <what you copied>
<Twey> hoverbear: If you type the wrong package, nix-env -e will finish silently
<sphalerite> hoverbear: nix-env is a bit of a screwy tool
<hoverbear> Ah ok. Awesome.
<iqubic> hyper_ch: That's bigger than my entire root partition.
<sphalerite> iqubic: nix-collect-garbage --delete-older-than 7d
<hyper_ch> iqubic: well, there was a kde update that got rolled back again
<hyper_ch> and then re-issued
<infinisil> Oh my god
<Twey> (which is probably bad, there's a new set of tools in the works with a nicer CLI, but it hasn't landed yet)
<infinisil> Check this out: `nix-env -q | fzf | xargs nix-env -e`
Nobabs25 has joined #nixos
<infinisil> Much better way to uninstall ^^
<iqubic> I only ever use nix-env for one thing: installing home-manager.
<infinisil> I love fzf
<Twey> infinisil: That uninstalls everything, surely :þ
<iqubic> fzf is good.
<hyper_ch> infinisil: better way to uninstall?
<iqubic> I need to install that on my current system.
<hyper_ch> iqubic: zfs?
<hyper_ch> no need for a root partition with zfs :)
<iqubic> hyper_ch: I use ext4
<infinisil> Twey: Nah, have a look yourself
k2s has joined #nixos
<sphalerite> Twey: nope, fzf will let you choose from the items listed on its stdin
<infinisil> fzf is an interactive selection tool, outputs a single item
<Twey> Oho
Oida has quit [(Ping timeout: 258 seconds)]
<hyper_ch> iqubic: I used to use ext4
<infinisil> and fzf is fuzzy and looks super nice
Nobabs27 has quit [(Ping timeout: 240 seconds)]
<hyper_ch> (still using it on servers though=
<iqubic> I'm going to be looking into filesystem types when I get my new laptop soon.
<iqubic> Not sure how I want to partition that yet.
k2s has quit [(Client Quit)]
* infinisil waits for someone to recommend zfs to him
<hyper_ch> infinisil: I know you wanna use encrypted root zfs ;)
<infinisil> oh it's already done
<infinisil> hyper_ch: I do!
<iqubic> I'll need to Dual boot Windows10 so that might be a bit of a stumbling block.
<c74d> infinisil: I recommend ZFS to you
<hyper_ch> iqubic: why not upgrade windows 10 to linux?
<infinisil> c74d: Oh wow never heard of that \s
<iqubic> There are certain applications I need for school tht only run on Windows.
<iqubic> Also, gaming is a thing I do.
<Twey> iqubic: It's not a problem
Oida has joined #nixos
<iqubic> Though I might be able to get away with wine for those things.
<Twey> (if anything, I think it makes your partitions neater)
<infinisil> iqubic: I recommend making 1 partition (or however many windows needs) for windows, and 1 partition for ZFS and nixos
<Twey> Why are people recommending ZFS?
<iqubic> How well does Adobe LightRoom work with Wine?
<c74d> infinisil: ohh I thought 'him' was you
<Twey> I remember when ZFS was cool :þ
<hoverbear> Hm, okay, awesome, I got my package building
<iqubic> That's the main program I need windows for.
<nocent> Or you might wanna try out putting windows in a vm with GPU passtrough for your games
<hyper_ch> iqubic: you shouldn't waste your time with gaming.. except LoL
<infinisil> Twey: "was"? It's getting cooler all the time, especially with native encryption in the next major update (referring to ZFSonLinux here)
<hyper_ch> NixOS unstable delievers native encryption already today
<infinisil> Twey: And it's the most stable FS today with cool stuff
<iqubic> Twey: That's not too good.
<Twey> iqubic: Yeah, probably stick with dual-booting
<sphalerite> iqubic: use darktable instead :p
<Twey> iqubic: Or some kinds of VM would probably be okay
<iqubic> nocent: How well will Lightroom work in a VM?
<iqubic> sphalerite: LOL
<iqubic> Does that work just as well?
<sphalerite> I have no idea. I've never used lightroom
<Twey> iqubic: VirtualBox at least does GPU passthrough, which would probably make it perform decently
<hoverbear> sphalerite: If they want give Adobe money every month and run windows thats their choice
<Twey> Or there's Xen, though that's a bit of a pain to set up
<hoverbear> Twey: Passthrough is only avaialable on a few AMD cards iirc
<Twey> DarkTable works well enough for my photographer ex, but I can't judge myself
<hyper_ch> what is lightroom needed fore?
<Twey> Give it a go I guess?
<hoverbear> hyper_ch: Lighting tables
<hyper_ch> what are lighting tables?
<sphalerite> hyper_ch: it's for photo processing
<hyper_ch> ah, for creating fake images :)
<iqubic> hyper_ch: I'm taking a Digital Photography class at school, and my teacher expects that we process the photos we take.
<sphalerite> advanced fancy artsy stuff
<nocent> iqubic (IRC): The overhead is pretty minimal. You only need some ram to support both operatings systems, and make sure your mobo/GPU configuration supports vfio for GPU acceleration if that is needed
<ldlework> what is the best thing for learning haskell, which will teach me FP, if I'm dumb?
<hoverbear> It's basically photoshoop with less direct tools
<c74d> How does one manually verify a file against a NixOS checksum?
<hoverbear> ldlework: Haskell
<ldlework> (read: multi-decade imperative pleb)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] primeos pushed 1 new commit to master: https://git.io/vdNYR
<NixOS_GitHub> nixpkgs/master a022182 Michael Weiss: nvme-cli: 0.9 -> 1.4
NixOS_GitHub has left #nixos []
<hyper_ch> shasum256 file ?
<hyper_ch> sha256sum file
<ldlework> hoverbear I mean, what resource is recommended.
<c74d> ldlework: I liked Real World Haskell, but I get the impression that it's out of date by now
<hoverbear> ldlework: http://learnyouahaskell.com/
Oida has quit [(Ping timeout: 246 seconds)]
<ldlework> I hear learnyouahaskell isn't really the best these days but I forgot from who I heard that hm
<iqubic> It's nt really the best.
<iqubic> c74d: It is out of date.
<ldlework> iqubic do you have a recommendation?
<sphalerite> aww, the lectures for https://github.com/bobatkey/CS316-17 aren't recorded. Otherwise I'd recommend that
<iqubic> ldlework: take a look at this: https://github.com/bitemyapp/learnhaskell
scribbler has quit [(Remote host closed the connection)]
Oida has joined #nixos
<c74d> hyper_ch: Does sha256sum recognize NixOS's hashes?
iqubic has quit [(Remote host closed the connection)]
<c74d> The ones that are like "1b1qjwxjk4y91l3iz157kms8601n0mmiik32cs6w9b1q4sl4pxx9"
<hyper_ch> not sure what you mean
tempeh has joined #nixos
<c74d> as opposed to being in hexadecimal
<tempeh> which is preferable to source a package, sourceforge or github? or is sourceforge even acceptable
<catern> oh hey!
<hyper_ch> not sure what makes you think of hexadecimal hashes
<c74d> tempeh: surely GitHub, though I'm no authority
<hoverbear> tempeh: Github > Bitbucket > Gitlab > * > A Dog's Breakfast > SourceForge
<hyper_ch> tempeh: github
<hyper_ch> there's even special github command for getting sources
<tempeh> that's what i figured. thanks
<catern> will this be helpful for GL on Nix on foreign distros, or even GL on NixOS? https://github.com/NVIDIA/libglvnd
<hyper_ch> fetchFromGitHub
<aminechikhaoui> ehm, shouldn't builds be sandboxed by default in nixos ?
<infinisil> I'm kind of holding myself back from doing any haskell or in fact any other development because I've been wanting to use emacs for it for a while, and i can't seem to get enough motivation for getting into emacs
<hoverbear> Okay now to figure out how to get nixos to provision my nvim configs....
<c74d> hyper_ch: ah, sha256sum doesn't recognize NixOS hashes; it just complains "no properly formatted SHA256 checksum lines found"
<sphalerite> infinisil: I've been doing Haskell with (neo)vim for a year and a half or so
<hoverbear> neovim <3
<abbradar> catern: yep, it will help at least partially, we plan to move to it eventually
<hyper_ch> c74d: what are you doing?
<abbradar> it didn't handle all APIs last time I checked and mesa support was still experimental
erictapen has quit [(Ping timeout: 240 seconds)]
<sphalerite> I'd like to switch to emacs too though. One day.
<hyper_ch> sphalerite: it's a good OS but has no decent editor...
Oida has quit [(Ping timeout: 255 seconds)]
<catern> hyper_ch: evil-mode :)
<hoverbear> hyper_ch: I heard you can run nvim in it
<infinisil> Can neovim be used with the vim configurable stuff in nixpkgs?
<sphalerite> infinisil: yes
<catern> infinisil: have you tried using magit?
reinzelmann has quit [(Quit: Leaving)]
<catern> magit is a good way to get into Emacs I think :)
<infinisil> catern: I have not, but it's a think I definitely have to check out when I get into emacs
Oida has joined #nixos
<c74d> hyper_ch: The source for broadcom-bt-firmware-12.0.1.1012 won't download for me (I just get "Connection reset by peer" from download.windowsupdate.com), but another user gave me what may or may not be a copy of the file. Before I put it in my store, I want to verify that it matches the broadcom-bt-firmware source's hash.
<sphalerite> also, does anyone happen to know stuff about chromium os, particularly its verified boot thingy? I'm having some trouble trying to boot my own thing and was wondering if my favourite community can help me more quickly than #chromium-os :p
<infinisil> Have heard a lot about it, and am sick of using a CLI for git
<sphalerite> Specifically, I'd like to boot a custom image on my C201 chromebook, but I'm having some trouble packing the kernel up right — it refuses to boot, just giving me an unfriendly beep. In http://sprunge.us/VfRD the output of futility show suggests that the image I'm getting is missing a kernel preamble. What am I doing wrong?
<catern> abbradar: will it fix the issues of running Nix on a foreign distro and getting the right GL library?
<sphalerite> infinisil: cli git is best git
<infinisil> (I know i could use tig or so for having a ncurses interface, but still)
<hyper_ch> c74d: you sure they used sha256?
<sphalerite> oh boy oh boy nixcon in a week
<catern> abbradar: (that is, if the foreign distro is using libglvnd)
<infinisil> sphalerite: \o/
miriam59 has quit [(Ping timeout: 260 seconds)]
<hyper_ch> oh dear....
<hyper_ch> and it's even close to me I think
<c74d> hyper_ch: it says `sha256` in the derivation
<abbradar> catern: yeah, should do. well, only partially those drivers are usually not linked statically
<Twey> hyper_ch, c74d: Aren't Nix hashes base32?
<abbradar> so you can get distro's libstdc++ as your libstdc++
<infinisil> Twey: The /nix/store/<hash>-name hashes
<infinisil> are base32
<hyper_ch> Twey: I don't know what kind of hash c74d has and what he tries to compare against
<abbradar> and things go to hell
<sphalerite> c74d: the hash in a store path will depend on the filename as well. It's complicated
<hyper_ch> nixcon is only around 2h car drive away
miriam59 has joined #nixos
<catern> abbradar: even if they were linked statically you would still have that issue, right?
<hyper_ch> sphalerite: he's not trying to compare against a path file from what I see
<catern> abbradar: if your application used one libstdc++, and the driver used another...
<catern> luckily drivers are usually plain C right?
ylwghst has quit [(Quit: Lost terminal)]
<catern> and glibc is backwards-compatible
<hyper_ch> from what I gather he got sources for broadcom
<hyper_ch> and wants to check them with the given checksum for that file
<Dezgeg> well mesa for instance links to tons of libraries
<abbradar> catern: shouldn't be a problem because APIs exposed are pure C and if the library is linked statically libstdc++ symbols are not exported IIRC
<catern> ah, I see
<c74d> I want to compare against the hash given in the .nix file: `sha256 = "1b1qjwxjk4y91l3iz157kms8601n0mmiik32cs6w9b1q4sl4pxx9";`
<abbradar> catern: nope, I think at least Mesa's radeon uses C++
ma27 has quit [(Ping timeout: 240 seconds)]
<catern> argh, ah well :(
<hyper_ch> ah ok... I was mistaken then
<Dezgeg> but rather than libglvnd, this should be the solution: https://git.collabora.com/cgit/user/vivek/libcapsule.git/tree/README
<abbradar> catern: we have used to have several workarounds for that in Steam
<Dezgeg> (based on what it actually claims to achieve, no idea what it currently can)
<abbradar> catern: Steam Runtime has its own libstdc++ and when combined with Radeon FOSS drivers you get crash
<catern> hmm... what is the workaround?
<c74d> On the other hand, this computer has no Bluetooth hardware, so maybe I could just make it stop trying to install Bluetooth firmware
ylwghst has joined #nixos
<catern> Dezgeg: well, I guess libglvnd + libcapsule would fix it, if used together
justanotheruser has quit [(Ping timeout: 260 seconds)]
<avn> abbradar: glsl compiler use c++, not radeon backend (and all gallium backends use llvm libraries, which are c++)
<abbradar> catern: in the old times it was replacing their libstdc++ with our own, some games broke but some worked
<abbradar> avn: ah, thanks
<abbradar> catern: nowadays I don't remember exactly what changed but their Runtime doesn't conflict anymore, we just always expose our own libstdc++
<catern> didn't they stop shipping a runtime or something?
<Dezgeg> I don't see what libglvnd would accomplish anymore if libcapsule were used, since we install separate openGL drivers to separate store paths anyway
ma27 has joined #nixos
<catern> Dezgeg: it would get rid of the need for the NixOS-specific /run/gl/ thing
<catern> (if I understand correctly)
<abbradar> catern: no, they still have it (at least we do. it would be hilarious if actually they have it disabled by default now and we need it only because we ourselves export STEAM_RUNTIME=/some/path :D)
<catern> I wonder if libglvnd might also incorporate functionality like libcapsule anyway, that seems pretty essential
<Dezgeg> that would be ideal, yes
<nocent> Is there anything holding back systemd to be updated to version 235 in nixpkgs? It is required for stuff like source based routing.
orivej has joined #nixos
<nocent> I don't know how to add additional routing tables since systemd is outdated, and the rt_tables file is not in the usual /etc/iproute2/ directory
<jtojnar> how do you fix a broken system? it does not show a login prompt on tty https://paste.gnome.org/plxjcjxpd and when I chroot into the machine, I am unable to rebuild it https://paste.gnome.org/pazhir4fu
dieggsy has joined #nixos
<hoverbear> Too many levels of symbolic links is a fun error
<catern> libglvnd is quite exciting then
<catern> it's like nscd
<catern> which is necessary on foreign distros to avoid NSS plugin headaches
<Dezgeg> would be nice if you could actually configure nscd to do no caching and just as a pass-thru (without hacks iirc)
<catern> last time I investigated it, I definitely remember seeing that you can do exactly that
<catern> it might be a fairly recent feature or something
<c74d> It seems that every time I build something with Nix after my nightly automatic GC run, Nix downloads `paxctl`, even though PaX is no longer supported — why?
<hoverbear> So I'm not quite clear on this. There is both a systemwide (`/etc/nixos/*`) and a userwide configuration (`??`), as well as any environments I want to define in some `nix-shell blah.nix` invocation. Is there any best practice documents about what to put where?
<catern> paxctl is in stdenv but not needed at runtime by anything?
<infinisil> pactl?
<infinisil> Oh there's also paxctl
<Dezgeg> hmm, I seem to have just specified 'positive-time-to-live passwd 0', maybe that JustWorked correctly then
Neo-- has joined #nixos
<sphalerite> catern: the nixos kernel used to have grsecurity and it was relevant to that I think
<catern> right, I was answering hoverbear
<catern> er
<catern> answering c74d, sorry hoverbear my comment was unrelated to you
<sphalerite> oops
<michaelpj> hoverbear: I think some principle of minimum scope applies. If it has to be in the system config because it affects the whole host, put it there. If it has to be in your user config becasue you want to it to always be there, then put it there. Basically, keep things as local as possible.
srhb has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vdNON
<NixOS_GitHub> nixpkgs/master 835201e Andrew Kelley: zig: init at 0.1.1
<NixOS_GitHub> nixpkgs/master b591b5c Joachim F: Merge pull request #30598 from andrewrk/zig...
NixOS_GitHub has left #nixos []
ylwghst has quit [(Quit: Lost terminal)]
<hoverbear> michaelpj: I see these dotfiles: https://github.com/lheckemann/dotfiles how do I define something like that for my user?
<sphalerite> hoverbear: those are mine :) I install my stuff using nix-env -f graphical.nix -ir
<michaelpj> hoverbear: so, full-on user management isn't really here yet (you can have a look at home-manager), but you can put things in your user nix profile imperatively with nix-env and friends
<michaelpj> okay, my turn for a weird problem: I'm trying to use the breeze-plymouth theme, I've got `boot.plymouth = { enable = true; theme = "breeze"; themePackages = [pkgs.breeze-plymouth]; };`, but then I get "output ‘/nix/store/dy6km0sanbzj7sxsggplg8npihy5sshm-extra-utils’ is not allowed to refer to path ‘/nix/store/m5hmg2b9qnwgpsc2bj3z172wkfc0ca8i-plymouth-0.9.3’"
<hoverbear> sphalerite: So you make a machine, import your system specific file to the `/etc/nixos/` and run a build, then import your user config with `nix-env -F graphical.nix -ir` executed after?
<sphalerite> hoverbear: the user stuff in my dotfiles repo is completely independent of the system config
<hoverbear> michaelpj: That looks vaguely like a permission issue
<hoverbear> sphalerite: I'm speaking generally :)
<michaelpj> now, looking at what happens, I can see that plymouth puts a bunch of stuff into `boot.initrd.extraUtilsCommands`, and that has `allowedReferences = ["out"]`, but that just makes me confused as to how this worked at all - surely that must always have been referencing plymouth?
<michaelpj> (without the breeze theme it works, to be clear)
<sphalerite> hoverbear: more or less
<hoverbear> sphalerite: There isn't a combination way to do both system and all users in one go?
Neo-- has quit [(Ping timeout: 255 seconds)]
<sphalerite> michaelpj: looks to me like a bug in the plymouth module. It copies plymouth into the initrd but not the theme
<sphalerite> I think.
<sphalerite> I might be reading it wrong though
<michaelpj> ah I see
<michaelpj> that would make sense
<sphalerite> hoverbear: I think you can define user-specific packages in the system config, but I haven't looked into that really
<hoverbear> sphalerite: Ohhh that would be spectacular
<michaelpj> sphalerite: well, except that the reference it's complaining about is to plymouth, not to the theme. Also, `plymouth.nix:105` looks like it copies the theme in
<sphalerite> hoverbear: https://nixos.org/nixos/options.html#users.users+packages
<michaelpj> that's the weird thing - it would make more sense if the error was about references to the new theme!
<sphalerite> michaelpj: aah maybe the theme references plymouth
<michaelpj> ah, good shout
<michaelpj> it does indeed
<hoverbear> Does it reference a different version?
<michaelpj> no, same version, it's just something with how this `allowedReferences` thing works
<sphalerite> seems like it would require patching the theme to refer to plymouth's library through a different path.
<sphalerite> Sounds messy
<sphalerite> it has a huge dependency closure in general
<michaelpj> no, I think you were right originally - it leaves some references to the theme in there, and it's then the transitive reference that's the problem
<sphalerite> so I think breeze-plymouth is, in its current state at least, completely unusable
<joko> What would be the proper way of escaping {} in writeScriptBin?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rybern opened pull request #30663: bowtie2: init at 2.3.3.1 (master...add-bowtie2) https://git.io/vdN3X
NixOS_GitHub has left #nixos []
<joko> I mean, I don't want them to be evaluated by nix, just passed to Bash
tempeh has quit [(Quit: WeeChat 1.9)]
<infinisil> joko: {} itself shouldn't need escaping
<sphalerite> joko: what infinisil says. If it's ${}, turn it into ''${}
<infinisil> ${} does need escaping, and you do it with ''${} if you used '' quotes, and \${} if you used " quotes for your string
<joko> thank you, guys, it moved :D
jb55 has quit [(Ping timeout: 260 seconds)]
dustmote has joined #nixos
<dustmote> Is there any disadvantage to installing everything (/boot too) inside of a luks primary partition on a series of logical volumes?
<sphalerite> michaelpj: I think it could probably be fixed with some screwing around with patchelf
<sphalerite> err no… the library doesn't even get copied in
<sphalerite> It's breeze.plymouth that's causing the disagreements
<michaelpj> sphalerite: I think I figured some of it out. Problem a) the copying of the themes was copying the symlinks to directories, not the directories recursively, leaving references in. Problem b) the definition file for breeze.plymouth has a reference to plymouth in it
<xelxebar> How can I setuid a binary when I'm just running a nix store, not nixos?
<michaelpj> yeah
<infinisil> dustmote: I think other channels such as #linux would know better
<dustmote> infinisil: ok ty
<xelxebar> Apparently setting security.setuidPrograms = [...] in configuration.nix works, but I don't have that config. Is there something similar for .config/nixpkgs/config.nix?
<sphalerite> michaelpj: AFAICT it only has a reference to breeze-plymouth in it
<sphalerite> michaelpj: what's referring to plymouth is breeze-text.so
<michaelpj> so, fixing problem a has allowed me to progress to it complaining about a reference to breeze-plymouth, which fits with that
<infinisil> xelxebar: Well since it's a nixos module option, most likely not
<xelxebar> :(
<michaelpj> sphalerite: it seems pretty tricky to get rid of all the nix store references for this thing...
<infinisil> xelxebar: Well you can't have the easy configuration of nixos but use another distro :/
<sphalerite> michaelpj: tricky, but not impossible :D
<infinisil> xelxebar: I have no idea about this, but there must be a way to do that on other distros
<sphalerite> xelxebar: setuid is messy. I recommend sticking to software from your distro for anything that needs setuid
<michaelpj> sphalerite: is there a way to patch a a nix store path back into a non-store reference?
<michaelpj> I think that's what I'd need to do
<xelxebar> infinisil: Thanks. I'll just stick with my distro's package for now.
<ldlework> Anyone here use F# from Nix?
<sphalerite> michaelpj: not really — what we'd want in this case is to change the nix store path we have into a *different* nix store path (that of the extra-utils derivation)
<michaelpj> right, that's what I meant, it is still a store path
dustmote has quit [(Quit: bye)]
<sphalerite> also, breeze-text won't work right since the shared library it needs doesn't get copied in
<hoverbear> Hm, interesting. my KDE widget configuration windows have nothing in them. THey're just frames.
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to release-17.09: https://git.io/vdNsu
<NixOS_GitHub> nixpkgs/release-17.09 4d9fa46 Tuomas Tynkkynen: nixos/tests: Fix merge error breaking evaluation...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vdNs2
<NixOS_GitHub> nixpkgs/master 34621ab Tuomas Tynkkynen: nixos/tests: Fix typo (grafama -> grafana)
NixOS_GitHub has left #nixos []
<michaelpj> sphalerite: for the breeze.plymouth issue, I could blindly substitute `*/share/plymouth` for `$out/share/plymouth`, or is there a more reliable way?
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable advanced to https://github.com/NixOS/nixpkgs/commit/0ce09afcfa (from 5 hours ago, history: https://channels.nix.gsc.io/nixos-unstable)
nix-gsc-io`bot has quit [(Client Quit)]
<sphalerite> I think there is a more reliable way but it's more complicated, involves patching plymouth and stuff :/
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to master: https://git.io/vdNs6
<NixOS_GitHub> nixpkgs/master 2f3786e Tuomas Tynkkynen: nixos/tests/gitolite: Don't build during evaluation...
NixOS_GitHub has left #nixos []
c0bw3b has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to release-17.09: https://git.io/vdNsD
<NixOS_GitHub> nixpkgs/release-17.09 c880756 Tuomas Tynkkynen: nixos/tests/gitolite: Don't build during evaluation...
NixOS_GitHub has left #nixos []
c0bw3b has left #nixos []
catch22 has quit [(Read error: Connection reset by peer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jmitchell opened pull request #30664: vault: 0.8.1 -> 0.8.3 (master...pkg-vault-update) https://git.io/vdNGt
NixOS_GitHub has left #nixos []
fendor has joined #nixos
Oida has quit [(Ping timeout: 252 seconds)]
ma27 has quit [(Ping timeout: 260 seconds)]
c74d has left #nixos []
Oida has joined #nixos
jb55 has joined #nixos
p4cman has quit [(Quit: Connection closed for inactivity)]
Oida has quit [(Ping timeout: 248 seconds)]
ylwghst has joined #nixos
orivej has quit [(Ping timeout: 248 seconds)]
<michaelpj> alright, made breeze work, now let's see about breeze-text
python476 has joined #nixos
Oida has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] copumpkin pushed 2 new commits to master: https://git.io/vdNZC
<NixOS_GitHub> nixpkgs/master b023332 Renaud: librepo: 1.7.20 -> 1.8.1
<NixOS_GitHub> nixpkgs/master 261bd27 Daniel Peebles: Merge pull request #30661 from c0bw3b/pkg/librepo...
NixOS_GitHub has left #nixos []
Oida has quit [(Ping timeout: 258 seconds)]
tobiasBora has joined #nixos
<tobiasBora> Hello,
<tobiasBora> I'd like to know, how could I install nix for a single user as a non root user ?
Oida has joined #nixos
<tobiasBora> for example by using ~/nix instead of /nix
<catern> nix-user-chroot is one good one
<catern> way*
<srhb> Does anyone have an example nixos config for a gitlab shell runner?
<srhb> They just die with forbidden here.
Oida has quit [(Ping timeout: 240 seconds)]
tgunb has quit [(Quit: Leaving.)]
<tobiasBora> If I get this error: $ unshare --user --pid echo YES
<tobiasBora> unshare: unshare failed: Operation not permitted
<tobiasBora> that means that I can't use nix-user-chroot ?
<catern> that's what the wiki page says, yes
<catern> you can still use PRoot though
phreedom has joined #nixos
dustmote has joined #nixos
<dustmote> maurer: did you use --bind or --rbind?
<MichaelRaskin> I think Nixpkgs kernel doesn't allow to unshare PID namespace as non-root user, whatever I do (unshare --user first, for example)
<tilpner> Does "zcat /proc/config.gz | grep USER_N" return n?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar pushed 2 new commits to master: https://git.io/vdNnu
<NixOS_GitHub> nixpkgs/master d96b0ac Michael Peyton Jones: geoclue2: fix typo
<NixOS_GitHub> nixpkgs/master 2ac89a6 Michael Peyton Jones: redshift: allow using geoclue2 loation provider
NixOS_GitHub has left #nixos []
Oida has joined #nixos
dustmote has quit [(Quit: bye)]
<sphalerite> MichaelRaskin: what about with unshare -r ?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 closed pull request #30664: vault: 0.8.1 -> 0.8.3 (master...pkg-vault-update) https://git.io/vdNGt
NixOS_GitHub has left #nixos []
<sphalerite> tobiasBora: I think the wiki is wrong
<sphalerite> Try unshare --map-root-user --pid
<sphalerite> Not sure though
<tobiasBora> sphalerite: same error, on debian sid
<sphalerite> Ah OK then yeah I think it won't work
<sphalerite> Although as far as I remember it worked on Debian...
<tobiasBora> proot error: '/home/<user>/.nix' is not a regular file
<tobiasBora> I tried others commands, like ./proot_5.1.1_x86_64_rc2--no-seccomp -R ~/.nix -b /bin
<tobiasBora> but it does not work
<MichaelRaskin> sphalerite: yes, unshare -r is included in whatever
Oida has quit [(Ping timeout: 248 seconds)]
tgunb has joined #nixos
justanotheruser has joined #nixos
<tgunb> guys, transmission_gtk has the same nix-expression like nix. (therefore it doesn't come with the gui.)
fendor has quit [(Read error: Connection reset by peer)]
hiratara has quit [(Ping timeout: 255 seconds)]
ylwghst has quit [(Quit: Lost terminal)]
<tgunb> who is responsible for that/where should i report that, if this is not the right place?
hiratara has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] michaelpj opened pull request #30665: plymouth: fix breeze-plymouth (and other themes) (master...imp/plymouth-themes) https://git.io/vdNcw
NixOS_GitHub has left #nixos []
Oida has joined #nixos
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/4d9fa46b4d (from 75 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
<nix-gsc-io`bot> Channel nixpkgs-17.09-darwin advanced to https://github.com/NixOS/nixpkgs/commit/c880756823 (from 68 minutes ago, history: https://channels.nix.gsc.io/nixpkgs-17.09-darwin)
nix-gsc-io`bot has quit [(Client Quit)]
srhb has quit [(Quit: Quit)]
marantz has joined #nixos
Oida has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub pushed 1 new commit to master: https://git.io/vdNCt
<NixOS_GitHub> nixpkgs/master 255130b Pascal Wittmann: bro: 2.5.1 -> 2.5.2
NixOS_GitHub has left #nixos []
<marantz> I'm trying to follow the install instructions for python3.6-ledger-autosync-0.2.3 but get an error saying error: beautifulsoup-3.2.1 not supported for interpreter python3.6m I believe if I try to install the python27 version of the package it doesn't have this trouble. Is this a bad package or something I haven't done? my system have very little software install on it, not even python
tgunb has quit [(Quit: Leaving.)]
Oida has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #30660: Update dejadup36 3 (master...update-dejadup36_3) https://git.io/vdNUZ
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vdNCz
<NixOS_GitHub> nixpkgs/master 2653547 schneefux: shaarli-material: 0.8.3 -> 0.9.1
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vdNC2
<NixOS_GitHub> nixpkgs/master 6321999 Heitham Omar: gnome-themes-standard: 3.22.1 -> 3.22.3
NixOS_GitHub has left #nixos []
tgunb has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] michaelpj opened pull request #30666: plasma5: use mkDefault for a few options that users might want to set (master...imp/plasma-mkdefault) https://git.io/vdNCi
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #30652: shaarli: 0.9.1 -> 0.9.2 (master...pkg.shaarli) https://git.io/vdbb7
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 2 new commits to release-17.09: https://git.io/vdNCy
<NixOS_GitHub> nixpkgs/release-17.09 59e7a91 schneefux: shaarli-material: 0.8.3 -> 0.9.1...
<NixOS_GitHub> nixpkgs/release-17.09 fb3583d schneefux: shaarli: 0.9.1 -> 0.9.2...
NixOS_GitHub has left #nixos []
Oida has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to release-17.09: https://git.io/vdNC5
<NixOS_GitHub> nixpkgs/release-17.09 85143e2 Tuomas Tynkkynen: nixos/release: Disable some NixOS tests that never passed on 17.09...
NixOS_GitHub has left #nixos []
tgunb has quit [(Quit: Leaving.)]
Oida has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] pSub pushed 2 new commits to master: https://git.io/vdNWT
<NixOS_GitHub> nixpkgs/master b6a2ff1 Pascal Wittmann: homebank: 5.1.5 -> 5.1.6
<NixOS_GitHub> nixpkgs/master 7d8e1c3 Pascal Wittmann: zim: 0.67-rc2 -> 0.67
NixOS_GitHub has left #nixos []
Oida has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vdNWk
<NixOS_GitHub> nixpkgs/master 941014f Ryan Bernstein: bowtie2: init at 2.3.3.1
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 2 new commits to master: https://git.io/vdNW3
<NixOS_GitHub> nixpkgs/master c047df3 geistesk: iprange: 1.0.3 -> 1.0.4
<NixOS_GitHub> nixpkgs/master 54dbe1d geistesk: firehol: 3.1.4 -> 3.1.5
NixOS_GitHub has left #nixos []
dustmote has joined #nixos
<dustmote> How do i override a filesystem option set in hardware-configuration.nix in the normal configuration.nix ?
srhb has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] c0bw3b opened pull request #30667: nsjail: git-2015-08-10 -> 2.1 (master...pkg/nsjail) https://git.io/vdNWR
NixOS_GitHub has left #nixos []
<infinisil> dustmote: fileSystem."/foo" = mkForce { ... };
<dustmote> overriding filesystem."/".device for luks as the as nixos manual describes results in an error "the unique option ... is defined multiple times"
<dustmote> Maybe the manual needs to be updated to include mkForce?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vdNWu
<NixOS_GitHub> nixpkgs/master f0fd8e3 geistesk: sent: 0.2 -> 1...
NixOS_GitHub has left #nixos []
<infinisil> dustmote: Can you link me to this section?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #30666: plasma5: use mkDefault for a few options that users might want to set (master...imp/plasma-mkdefault) https://git.io/vdNCi
NixOS_GitHub has left #nixos []
<infinisil> Because I don't think the manual makes the example with overriding the autogenerated one, but rather an example to specify it manually
<dustmote> Yeah
<dustmote> I think youre right
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] badi opened pull request #30668: nixos/unified-remote: init at 3.6.0.745 (release-17.09...unified-remote) https://git.io/vdNWo
NixOS_GitHub has left #nixos []
<infinisil> ;)
nh2 has joined #nixos
nh2 has quit [(Client Quit)]
<tobiasBora> Hum... I can't find how to use proot to install nix with no root access
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vdNWh
<NixOS_GitHub> nixpkgs/master 1e56016 adisbladis: firefox-beta-bin: 57.0b6 -> 57.0b10
NixOS_GitHub has left #nixos []
<dustmote> prefixing my option value with "pkgs.lib.mkForce" worked; thanks!
<dustmote> ^infinisil
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 1 new commit to staging: https://git.io/vdNlJ
<NixOS_GitHub> nixpkgs/staging 16e7374 Tuomas Tynkkynen: Merge remote-tracking branch 'upstream/master' into staging
NixOS_GitHub has left #nixos []
<infinisil> dustmote: Nice :D. Usually you'd add lib to the argument list ( { lib, pkgs, ... }: { <config> }), then use lib.mkForce, but it doesn't really matter
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #30651: nodejs: 6.11.1 -> 6.11.4 (master...nodejs-6.11.4) https://git.io/vdbFQ
NixOS_GitHub has left #nixos []
Ivanych has quit [(Ping timeout: 248 seconds)]
miriam59 has quit [(Ping timeout: 240 seconds)]
nh2 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vdNl0
<NixOS_GitHub> nixpkgs/master 794ecdd Clemens Lutz: makemkv: 1.10.6 -> 1.10.7
NixOS_GitHub has left #nixos []
hiratara has quit [(Quit: ZNC - http://znc.in)]
<dustmote> infinisil: ah, but that's helpful for when try to read other people's nix expressions
<dustmote> Ty
nix-gsc-io`bot has joined #nixos
jb55 has quit [(Ping timeout: 248 seconds)]
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/c880756823 (from 2 hours 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] globin closed pull request #30667: nsjail: git-2015-08-10 -> 2.1 (master...pkg/nsjail) https://git.io/vdNWR
NixOS_GitHub has left #nixos []
hiratara has joined #nixos
simukis has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/vdNlX
<NixOS_GitHub> nixpkgs/master 582afac dywedir: fzy: 0.7 -> 0.9
NixOS_GitHub has left #nixos []
dustmote has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #30611: szip: 2.1 -> 2.1.1 (master...guibou_bump_szip) https://git.io/vdFVY
NixOS_GitHub has left #nixos []
tgunb has joined #nixos
ylwghst has joined #nixos
tgunb has quit [(Quit: Leaving.)]
miriam59 has joined #nixos
astsmtl has quit [(Ping timeout: 240 seconds)]
Mic92 has quit [(Read error: Connection reset by peer)]
Mic92_ has joined #nixos
miriam59 has quit [(Ping timeout: 248 seconds)]
astsmtl has joined #nixos
astsmtl has quit [(Changing host)]
astsmtl has joined #nixos
tgunb has joined #nixos
jb55 has joined #nixos
<tgunb> does someone here use pidgin-with-plugins? i installed it and pidgin-otr, but otr doesnt appear in the plugin list
ryantrinkle has quit [(Ping timeout: 240 seconds)]
<dtzWill> are we gathering/reporting nix-info output somewhere? (still need more reports?)
marantz has quit [(Quit: Leaving.)]
marantz has joined #nixos
ylwghst has quit [(Quit: Lost terminal)]
<MichaelRaskin> I think we hope to gather it organically in the issues now.
<MichaelRaskin> (maybe not yet, but there was a plan to gradually change the issue template towards promoting nix-info use)
<dtzWill> oh, I somehow read that as "want to help? -> nix-info"
<dtzWill> like we were reporting them to help ... nvm haha O:)
<MichaelRaskin> I think you read it right — _before_ merging samples were gathered just to test various things
wlhlm_ has quit [(Quit: Leaving)]
<MichaelRaskin> Now there is a hope that all the obvious cases have been tested and we should see how it behaves in the wild for people with actual Nix-related problems.
<disasm> dtzWill: it merged! :)
<dtzWill> \o/
thc202 has quit [(Ping timeout: 260 seconds)]
<tgunb> i get this error: $ nix-shell -p nix-info --run nix-info;
<tgunb> error: undefined variable ‘nix-info’ at (string):1:66
<tgunb> (use ‘--show-trace’ to show detailed location information)
<MichaelRaskin> What channel are you at?
<Ralith> tgunb: as a general rule, in nix, separately installed packages can't see eachother
<Ralith> tgunb: the correct way to use pidgin-with-plugins looks like: (pidgin-with-plugins.override { plugins = [ purple-hangouts ]; })
<MichaelRaskin> To install nix-info from the channel version
<Ralith> tgunb: the reason for this is so that it's possible to have multiple versions of a plugin on your system if you need to, for example
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/66b5cec754 (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<tgunb> im on stable
<MichaelRaskin> Well, nix-info got merged into unstable only recently.
<tgunb> k
<MichaelRaskin> And did not get picked to stable.
<MichaelRaskin> so, -f is required.
<disasm> MichaelRaskin: you sure? I'm on stable and have it now
<Ralith> yeah, I have it on 17.09
<disasm> and I have proof: system: "x86_64-linux", multi-user?: yes, version: nix-env (Nix) 1.11.15, channels(root): "nixos-17.09.1756.c99239bca0", nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
<disasm> :)
<MichaelRaskin> Hm, dunno, I am never quite sure about stable, I don't believe in it.
<MichaelRaskin> Maybe nix-channel --update would be enough.
<Ralith> tgunb: were you able to get pidgin working?
<tgunb> Ralith: im having trouble trying to apply what you wrote. i tried nix-env -E 'your expression', but that doesnt work.
<Ralith> nix-env -E is weird as hell and I don't understand it
<tgunb> am i supposed to pass the whole nix expression and replace your part?
dbmikus has joined #nixos
<Ralith> your intuition was imo spot on, nix-env -E is just screwy
<tgunb> or how can i tell nix-env to substitute just that part?
<Ralith> I put all my stuff in my local packageOverrides
<Ralith> I have no idea how to make nix-env -E work
<Ralith> without cheating, anyway
miriam59 has joined #nixos
<tgunb> k, how does your override look like?
<tgunb> and where am i supposed to put it? (its getting late and im loosing motivation to read the doc)
mc_der has joined #nixos
<ldlework> 👏🏼 installing an F# environment with Nix was 👌
<disasm> tgunb: are you on nixos or just nix?
<tgunb> nixos
<mc_der> Hi, Could someone point me to 'eli5' resources regarding sha256 and depsSha256? I am trying to build some small Rust package, yet I don't know what to do with the hash parts. The source is here, in case smn would like to look at it? (on Ubuntu With Nix I am) : https://gist.github.com/mehandes/7610e94e4c2a63b70e8e258558e4da25
miriam59 has quit [(Ping timeout: 248 seconds)]
<tgunb> mc_der: i have no idea, but are you using nix-hash?
<disasm> tgunb: it goes in nixpkgs.config = { }
<mc_der> tgunh: I used nix-prefetch-url, but stil don't know what to do with the other hash value
jushur has joined #nixos
<disasm> tgunb: I know your not using python, but it's the same as this: https://nixos.org/nixpkgs/manual/#how-to-override-a-python-package-from-configuration.nix
pxc has joined #nixos
<tgunb> does that apply even if i installed nix as normal user and not system-wide?
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.09-small advanced to https://github.com/NixOS/nixpkgs/commit/85143e2ee2 (from 82 minutes ago, history: https://channels.nix.gsc.io/nixos-17.09-small)
nix-gsc-io`bot has quit [(Client Quit)]
<tgunb> mc_der: can you give me a sample output?
<disasm> mc_der: typically I just break the hash by changing one char in the hash, build, and it outputs what the hash should be, then update the hash.
markus1199 has joined #nixos
<disasm> tgunb: oh, I thought you were using nixos... then it's ~/.config/nixpkgs/config.nix -- https://nixos.org/nixpkgs/manual/#sec-modify-via-packageOverrides
<disasm> ldlework: I have an ascii text client, was that emoji about F# installation good or bad? :)
<mc_der> tgunb: Here you are: https://gist.github.com/Pszek/bcd7a98ad016d1514400b241356f9f14 [sorry for double post, but the mention was cutted]
<disasm> hyper_ch: regarding the xtruder profiles... I use them with regular nixos as well :) they extend very well to nixops when you start deploying with nixops.
markus1189 has quit [(Ping timeout: 240 seconds)]
<ldlework> disasm good :)
<disasm> mc_der: cool, so just put 11cylqg8jb0zkikizmaasqbnzdzf66azh349740yw3p49xdmiwbs in as the hash for the just package
pxc has quit [(Ping timeout: 240 seconds)]
sigmundv has joined #nixos
<disasm> ooh, someone that knows how rust works in nixos, I'll let tgunb field this one then :)
<mc_der> disasm tgunb: Thank you. This makes me laugh "Currently it is obtained by inserting a
<mc_der> fake checksum into the expression and building the package once. The correct
<mc_der> checksum can be then take from the failed build.
<tgunb> disasm: i am on nixos, but i install my package from my normal user. i thought this was the whole idea behind nix.
<tgunb> mc_der: i just searched for depssha256 on nixos.org
<disasm> tgunb: ah, then yeah, that place in your home directory is where you'd do it.
<disasm> tgunb: I put everything in configuration.nix myself
miriam59 has joined #nixos
<ldlework> Why can't I install pkgs.FSharpAutoComplete? "attribute ‘FSharpAutoComplete’ missing"
sigmundv__ has joined #nixos
<symphorien> ldlework: it's pkgs.dotnetPackages.FSharpAutoComplete
<mc_der> tgunb: are you familiar with that error? https://gist.github.com/mehandes/8b3a23caa9eb7ebf1ab2d286ac707bde My searches showed only that it was the case with wrong ver of Rust (stable instead of nightly), but that shouldn't be the sace here (but not 100% sure)
<ldlework> Oh I didn't even realize such sub-attributes was possible
<disasm> ldlework: pkgs.dotnetPackages.FSharpAutoComplete
<ldlework> thank you
<disasm> oh, I'm too late, lol
<ldlework> ninj'd
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dezgeg pushed 7 new commits to staging: https://git.io/vdNRv
<NixOS_GitHub> nixpkgs/staging cc048f0 Tuomas Tynkkynen: audit: 2.7.7 -> 2.8.1
<NixOS_GitHub> nixpkgs/staging 89e5c3b Tuomas Tynkkynen: devicemapper: 2.02.173 -> 2.02.175
<NixOS_GitHub> nixpkgs/staging 462fe50 Tuomas Tynkkynen: e2fsprogs: 1.43.4 -> 1.43.7
NixOS_GitHub has left #nixos []
<disasm> mc_der: I know absolutely nothing about rust... but I have heard a bunch of people say it's best to use the mozilla overlay. Not sure if that solves the problem or not https://github.com/mozilla/nixpkgs-mozilla
<tgunb> mc_der: no, sorry.
miriam59 has quit [(Ping timeout: 240 seconds)]
<ldlework> Package ‘FSharp.AutoComplete-0.18.2’ in /nix/store/nixpkgs/pkgs/top-level/dotnet-packages.nix:537 is not supported on ‘x86_64-darwin’, refusing to evaluate. 😭
<mc_der> disasm, tgunb: thanks. One last thing to check would be to use sandboxed build.
<disasm> ldlework: looks like it's time to switch to nixos :)
<ldlework> I can't for work
<disasm> ldlework: I was half joking :)
<ldlework> disasm isn't there some thing I can write that will override the platforms attribute to include darwin?
<ldlework> to at least see if it would work
<tgunb> disasm: does that look ok?
<disasm> ldlework: you could try updating the platforms to with platforms; (linux ++ darwin);
<ldlework> Yeah but what's the trick for actually doing the override? I don't want to literally edit the nixpkgs source
<disasm> ldlework: that would be meta.platforms
<ldlework> I thought you could perform such overrides from within your modules.
<disasm> ldlework: if it does work, please PR the change in nixpkgs, others will thank you :)
<disasm> ldlework: yeah... same thing we're helping tgunb with
<ldlework> ha
<ldlework> ah neat
<ldlework> Oh I don't know if HM supports that
<ldlework> I think this depends on https://github.com/rycee/home-manager/pull/102
<drp> can anyone point me to the manual section or a blog post that deals with nix packages and man pages? I have got nix installed on ubuntu and was wondering how you would integrate nix packages more with the system, e.g. man pages for nix packages and icons for desktop apps in ubuntu menu
<disasm> ldlework: so... I think if I read that correctly is home manager managing that file, which I heard infinisil talking about yesterday and didn't like
dbmikus has quit [(Ping timeout: 240 seconds)]
<disasm> but you could always update that file manually
<ldlework> oh okay so Nix is still utilizing that file
<disasm> and home manager *should* respect it I would think since it just uses nix-env
<disasm> ldlework: correct, that file works with plain nix-env :)
* ldlework tries
<tgunb> hmm, after adding a missing ; i get 'undefined variable pidgin-otr'
marantz has quit [(Quit: Leaving.)]
<tgunb> idlework: can you tell me, how to create these messages?
nisstyre has quit [(Ping timeout: 252 seconds)]
<ldlework> disasm https://gist.github.com/dustinlacewell-wk/6e2766ab41625327f7dc300cc0a1bf0c how do I get the stdenv platforms argument in to scope?
<ldlework> "undefined variable linux"
<ldlework> tgunb create what messages?
<ldlework> Oh we literally are asking the same question
<ldlework> lmao