<orivej>
universalpackage: AFAIK there is no way to make `ld` (and by extension `gcc`) write relative paths for the shared libraries, you have to use patchelf if you want this
<universalpackage>
nvm it was LD_LIBRARY_PATH instead of LIBRARY_PATH, but unfortunately ldd defaults to the systems libc if LD_LIBRARY_PATH is not specified when ldd'ing
frankpf has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dalaing opened pull request #31068: nixos manual: Adds some examples of how to use fdisk. (master...fdisk-examples) https://git.io/vFOkN
NixOS_GitHub has left #nixos []
<dalaing>
heh, I should probably have discussed that / sought opinions on it before I put it up
scribbler has joined #nixos
<dalaing>
clearly that means I need more coffee...
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] orivej pushed 2 new commits to master: https://git.io/vFOI3
<tilpner>
Not everyone needs a swap partition, but the manual is probably not the right place for the "do I need swap" discussion :/
aminechikhaoui has quit [(Ping timeout: 258 seconds)]
srdqty has joined #nixos
<dalaing>
for sure, it just seemed to fit with the rest of the examples - there's also a discussion around "do I need a boot partition"
<dalaing>
we've had a few people trip up with UEFI vs not UEFI (typically in virtualbox) as well, it all seems to be in the manual, but could perhaps be clearer
<dalaing>
might write up some notes next time we onboard someone and put forward some kind of PR for that as well
scribbler has quit [(Remote host closed the connection)]
scribbler has joined #nixos
<cheshircat>
Hey, question, does anyone have experience packaging Electron software? I want to get the new Signal Desktop working
<dalaing>
just fixed a copy-pasto / typo, I do need more coffee
<ghostyy>
i am having a strange problem where gp exits with segfault approximately 50% of the time i start it? has anyone else had something similar happen to them on nixos?
<dalaing>
heh, I think it's necessary, reviewers will decide if it's good or not :)
<dalaing>
I'm doing a touch of stunt flying with fdisk, so that people don't have to do disk size maths
ylwghst has quit [(Ping timeout: 248 seconds)]
<dalaing>
ie (for UEFI) set up partition 3 as boot at 512 Mb, set up partition 2 as swap at 8GB (or whatever), set up partition 1 as root with the remaining space
joehh has quit [(Ping timeout: 240 seconds)]
<dalaing>
then use expert mode to clean up the ordering
<dalaing>
we'll see how that turns out I guess
ylwghst has joined #nixos
gandreani has quit [(Quit: night!)]
<adisbladis>
dalaing: I will usually order them differently. Put boot and swap partitions first and then default to "rest" for primary
<dalaing>
I'm trying to make all of this line up with the other examples and docs :)
<dalaing>
which have primary as partition 1 and swap as partition 2
<dalaing>
otherwise I would have exactly what you describe
<disasm>
dalaing: thanks for working on this! If you want to continue to help with documentation going forward, there's a group of us in #nixos-docs. You're welcome to join us!
<dalaing>
I'm mostly trying to get this done because I know someone who flipped a table when they reached the "use fdisk" part with no further details - I have a bet with myself that I can get this done in a smaller amount of time than they have spent complaining about it :)
pxc has quit [(Read error: Connection reset by peer)]
otulp has quit [(Ping timeout: 248 seconds)]
pxc has joined #nixos
<adisbladis>
dalaing: Wait. Are you saying that the fdisk user experience is not intuitive? :D
damke has joined #nixos
<ldlework>
Hmm 👍 I can only conclude the single-user Nix does not work properly on OSX
<adisbladis>
ldlework: My colleagues would say differently
<ldlework>
Well that's not really helpful
<ldlework>
adisbladis The multiuser install is hardcored into the Nix install script
<ldlework>
Commenting it out, the script will fail when it is unable to setuid when running as your normal user
<ldlework>
Using sudo (which the script complains wont work) installs nix, but then /nix is owned by root.
<ldlework>
Chowning /nix to your user makes the Nix commands work, but ultimately fail any builds due to the inability to setuid once again
<cbarrett>
disasm: I guess I'm more interested in the docker-compose side of things than actually building the docker images themselves. that part seems to work ok, it's the container orchestration that I'm hoping to make smoother
<cbarrett>
adisbladis:
MrCoffee has quit [(Quit: Lost terminal)]
<cbarrett>
oops
<cbarrett>
adisbladis: docker-compose related things
<adisbladis>
cbarrett: Ahh check. I was gonna send you the same link as disasm
<cbarrett>
:D
<cransom>
i don't htink nix-shell will give you the kind of docker-compose/orchestration functionality you are probably looking for
<cbarrett>
why not? I just meant that I want to be able to have a dev environment set up after I run nix-shell and shut down when I exit out
<cransom>
is it just going to start up containers and you kill them when you leave it?
acowley is now known as acowley_away
tylerjl has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<cbarrett>
cransom: are you familiar with docker-compose? does a bit more than just start containers
damke has quit [(Ping timeout: 240 seconds)]
<cransom>
yes, it would define networks and create links between containers, define storage, mounts, etc.
<cbarrett>
disasm: yeah! disnix is on my radar. just not sure how to map between disnix and our existing docker-compose stuff
<ldlework>
cbarrett nix-shell is more like using an attached Docker container with bash as the entry point or something
<cbarrett>
sure, is there really such a big difference though?
<cbarrett>
wasnt really the critical part of what I was asking about i thought, maybe im wrong
<cransom>
maybe my question is, if you do your deployment via a docker-compose file and you want your dev to look something like what your production is, a different process for testing and running your dev env than production is going to prop up some issues at some point
<ldlework>
agreed
<cransom>
that wasn't a questioni suppose, but an observation.
<ldlework>
using the same exact tooling for deploying your services locally and to CI/production is a huge boon
<cransom>
i've been working around a homegrown build pipeline that someone built where the tools in use to develop are fast, but in no way look like even the qa env so you end up tweaking code in multiple places. usually after waiting 2 hours for the qa build to fail and then you go back and fix your initial commit
<cbarrett>
these are true enough in the abstract but in my specific case, no
<cbarrett>
also we aren't using docker compose for deployment, just for setting up the dev environment
<ldlework>
cransom same. I just onboarded to a new company doing SRE and its ridiculous how many issues I've run into because of how CI is slightly different
<cbarrett>
other container management is used for prod
<ldlework>
cbarrett what exactly do you mean by dev environment
<ldlework>
as in, providing tooling and shell-based environment for developing some project?
<cransom>
ldlework: high 5. while holding back tears.
<ldlework>
or do you mean standing up a service's components up locally?
<cbarrett>
the latter. never heard anyone use "dev environment" for #1
<ldlework>
I have, plenty
<cbarrett>
good for you
* ldlework
backs away...
<ldlework>
cransom I used to work at Docker Inc. Things are highly standardized there, using good best practices. It was really nice.
<ldlework>
At least I have a sense of what to aim for at the new place ;)
<adisbladis>
At my work we just "nix-shell --pure" for our dev environments (and with that I mean dropped in to a shell with all the tooling). Optionally there is a custom made service run script that sets everything up from scratch every time and optionally runs the test suite.
<adisbladis>
We then use the same nix files as for the dev environments to build production docker images
<adisbladis>
It's pretty nice.
<adisbladis>
I don't see containers as a development tool.
<ldlework>
adisbladis absolutely, one upside to using containers for development is that nobody has to have the dependencies to do work - one major downside though is that since tooling and dependencies are wrapped up in the container, your local editor and so on cannot benefit from language facilities and so on. nix-shell bridges the gap. And yeah, if you just run Nix OS in your containers then you're getting that good reproducability. But be assured
<ldlework>
swaths of people are using containers for development.
<NixOS_GitHub>
[nixpkgs] yegortimoshenko opened pull request #31071: nixos-prepare-root: chmod if dir already exists (master...nixos-install/mkdir-or-chmod) https://git.io/vFOc7
NixOS_GitHub has left #nixos []
damke_ has joined #nixos
iqubic has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vFOWs
<NixOS_GitHub>
nixpkgs/staging 7320572 Vladimír Čunát: closure-info: half-blind attempt to fix on Hydra...
NixOS_GitHub has left #nixos []
pxc1 has quit [(Ping timeout: 240 seconds)]
Lisanna has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterromfeldhk opened pull request #31073: jazzy: init at 0.9.0 (master...jazzy) https://git.io/vFOWR
NixOS_GitHub has left #nixos []
Lisanna has quit [(Client Quit)]
<srhb>
Was it Bas van Dijk that spoke about maintaining a private nixpkgs by keeping patches on top of some upstream channel? Is there a writeup of this approach somewhere (or was it in the slides?)
<kuznero>
Hi All! Excellent sessions on NixCon this year! Thanks to the speakers!
damke_ has quit [(Ping timeout: 240 seconds)]
leat has joined #nixos
scribbler has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging: https://git.io/vFOlm
<NixOS_GitHub>
nixpkgs/staging c4be15a Vladimír Čunát: closure-info: another half-blind attempt to fix on Hydra...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] yegortimoshenko opened pull request #31075: runescape-launcher: init at 2.2.4, fixes #30582 (master...runescape-launcher/init) https://git.io/vFOl6
NixOS_GitHub has left #nixos []
ambro718 has joined #nixos
scribbler has joined #nixos
damke has quit [(Ping timeout: 240 seconds)]
endformationage has quit [(Quit: WeeChat 1.9.1)]
pie_ has quit [(Ping timeout: 248 seconds)]
pie_ has joined #nixos
damke has joined #nixos
scribbler has quit [()]
<hl>
What is the situation with the availability of mingw-w64 on NixOS Linux for targeting Windows?
zzamboni has quit [(Read error: Connection reset by peer)]
rogue_koder_ has quit [(Quit: Konversation terminated!)]
yegortimoshenko has joined #nixos
<gchristensen>
manveru: ping?
<yegortimoshenko>
there is an issue open that says that specifying phases directly is discouraged. how do i disable unpackPhase w/o touching phases?
<gchristensen>
yegortimoshenko: unpackPhase = ":"
<yegortimoshenko>
gchristensen: thanks. your borg is cool
<gchristensen>
thanks! :)
zzamboni has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to master: https://git.io/vFO8y
<NixOS_GitHub>
nixpkgs/master 06d7e54 Vladimír Čunát: Merge branch 'staging'...
NixOS_GitHub has left #nixos []
damke has quit [(Ping timeout: 240 seconds)]
magnetophon has quit [(Remote host closed the connection)]
damke has joined #nixos
dkellner has joined #nixos
thc202 has joined #nixos
TechTonic9Nail has joined #nixos
<TechTonic9Nail>
Whats this
proteusguy has quit [(Ping timeout: 240 seconds)]
damke has quit [(Read error: Connection reset by peer)]
damke_ has joined #nixos
<disasm>
TechTonic9Nail: what's what?
ma27 has quit [(Ping timeout: 248 seconds)]
ison111 has quit [(Ping timeout: 260 seconds)]
<sphalerite>
How can I see how much would be downloaded by nix-store --repair-path?
<LnL>
srhb: I think he had a slide with an example
<sphalerite>
hl: I've used it to some degree of succedd
<sphalerite>
hl: I've got a draft of a blog post about it, I can probably publish it tomorrow
<hl>
Linus: Can you give me an example? There's no documentation and, though I can see mingw-w64 code in nixpkgs, I've no idea how to make use of it...
<sphalerite>
The main pain point was library
<hl>
Linus: That would be extremely useful, thank you.
<sphalerite>
Libraries*
<sphalerite>
If you're willing to manage your libraries manually it should be fine. I myself tried to use libraries through nixpkgs which required a lot of changes
jushur has quit [(Ping timeout: 260 seconds)]
jacob has joined #nixos
pie_ has quit [(Ping timeout: 260 seconds)]
lissyx has quit [(Remote host closed the connection)]
<gilligan_>
For those who were at the NixCon2017 hackathon - would be great if you could reply to https://twitter.com/tpflug/status/925430148622581760 and tell me what you were working on during the Hackathon ;-) *Thank You*
zzamboni has quit [(Quit: Leaving.)]
zzamboni has joined #nixos
barru_but_spooky is now known as barrucadu
symplectico_ has joined #nixos
ma27 has quit [(Ping timeout: 248 seconds)]
ckauhaus has joined #nixos
nslqqq has joined #nixos
pie_ has joined #nixos
zzamboni has quit [(Quit: Leaving.)]
<sphalerite>
TechTonic9Nail has been trolling #systemd, just a warning...
ssmike has quit [(Ping timeout: 264 seconds)]
zzamboni has joined #nixos
ThatDocsLady has joined #nixos
ma27 has joined #nixos
ssmike has joined #nixos
zzamboni has quit [(Client Quit)]
jtojnar has quit [(Remote host closed the connection)]
yegortimoshenko has quit [(Ping timeout: 246 seconds)]
paraseba has quit [(Remote host closed the connection)]
damke has joined #nixos
damke_ has quit [(Ping timeout: 240 seconds)]
<guillaum2>
is there a way to populate "src" variable with the result of a command (for example, "git ls-files") ?
<manveru>
gchristensen: pong
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
<tilpner>
guillaum2 - You could use runCommand for that, but it won't work well for network remotes
erictapen has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] domenkozar closed pull request #31030: Flag my-self as owner of Nixpkgs and NixOS internals (master...add-nbp-codeowner) https://git.io/vFmlq
NixOS_GitHub has left #nixos []
MP2E has quit [(Remote host closed the connection)]
<tilpner>
Or I may be confusing that with git ls-remote...
Wharncliffe has joined #nixos
davidak has quit [(Ping timeout: 248 seconds)]
<guillaum2>
tilpner: thank you, I'm trying that.
whald has joined #nixos
hamishmack has quit [(Quit: hamishmack)]
zzamboni has quit [(Quit: Leaving.)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] zimbatm pushed 1 new commit to master: https://git.io/vFOKz
whald has quit [(Remote host closed the connection)]
thblt has joined #nixos
whald has joined #nixos
zzamboni has quit [(Ping timeout: 248 seconds)]
hamishmack has joined #nixos
zzamboni has joined #nixos
joehh has joined #nixos
zzamboni has quit [(Ping timeout: 240 seconds)]
<thblt>
Hi! I'm trying to use my Yubikeys as U2F devices on Firefox 56.0.1 on NixOS 17.09, but Firefox doesn't seem to see the keys. Everything's fine from Chromium. Any idea how I can start troubleshooting that?
<michaelpj>
thblt: afaik Firefox just doesn't support that. I discovered this to my disappointment some time ago. There's a FF issue open for it somewhere
tanonym has quit [(Quit: leaving)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] gnidorah opened pull request #31081: mpv: wayland support by default (master...mpv) https://git.io/vFOiT
NixOS_GitHub has left #nixos []
<michaelpj>
there's an extension that claims to make it work, but it didn't work for me
<thblt>
michaelpj: There are two configuration options in recent Firefox to enable it. It's supposed to work, I think.
<thblt>
security.webauth.u2f and security.webauth.u2f_enable_usbtoken
<thblt>
I'm asking #firefox too, but the channel seems dead.
<michaelpj>
huh, interesting
<michaelpj>
which FF version is that in? nightly?
zzamboni has quit [(Ping timeout: 260 seconds)]
ssmike has joined #nixos
<thblt>
The keys exist (defaulted to false) in Fx 56.0.1 shipping with NixOS 17.09.
<tilpner>
thblt - irc.mozilla.org/#firefox might be a little more active
<thblt>
tilpner: thanks, I'll give this a try. Just need the time to find out how to connect to two servers on ERC :)
TechTonic9Nail has quit [(Ping timeout: 240 seconds)]
ssmike has quit [(Remote host closed the connection)]
zzamboni has joined #nixos
ssmike has joined #nixos
<michaelpj>
thblt: I'd be interested to hear what you find out, since I'd like that to work
nh2 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] flokli opened pull request #31082: libtasn1: fix CVE number (master...cve-2017-10790) https://git.io/vFOia
NixOS_GitHub has left #nixos []
<thblt>
michaelpj: sure!
symplectico_ has quit [(Ping timeout: 240 seconds)]
orivej has joined #nixos
thblt has quit [(Remote host closed the connection)]
zzamboni has quit [(Ping timeout: 240 seconds)]
zzamboni has joined #nixos
<toogley>
tilpner: .deb is just the package format (like a zip file) for debian. so i guess not
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
proteusguy has quit [(Remote host closed the connection)]
<kuznero>
Is it possible to list a remove individual generations with nix-collect-garbage or somehow differently?
Itkovian has joined #nixos
<MichaelRaskin>
you can go to /nix/var/nix/profiles and remove just the ones you want to remove
<MichaelRaskin>
Then nix-store --gc
<woffs>
MichaelRaskin: I do not know what you are talking about. :) split on DRI side?
<kuznero>
Or is it possible to create sticky generations that are not auto-cleaned up by `sudo nix-collect-garbage -d`? I would like to not only keep latest, but a couple of gens
<kuznero>
MichaelRaskin: Thanks! will try that
a6a3uh has quit [(Quit: Bye)]
<kuznero>
MichaelRaskin: after I did that, on reboot I can still see old generations. Doesn't `nix-store --gc` re-generate grub entries like `nix-collect-garbage -d` ?
<MichaelRaskin>
Did nix-collect-garbage learn to do that? Didn't know
<MichaelRaskin>
Well, you could run it without -d
Itkovian has quit [(Ping timeout: 248 seconds)]
<kuznero>
Still see all the old gens
<kuznero>
It probably does that with -d option only
<MichaelRaskin>
That's what I expected. nixos-rebuild is what updates the GRUB menu
acarrico has quit [(Ping timeout: 260 seconds)]
Neo-- has quit [(Remote host closed the connection)]
<MichaelRaskin>
I wonder if nix-collect-garbage updates boot meny when called with some of the advanced options like older-then, in case it deletes nothing
<kuznero>
Ah :( You are right of course. :)
Neo-- has joined #nixos
<kuznero>
That way there is always one extra gen in my grub
<MichaelRaskin>
Maybe it just never updates it, because it is not NixOS-specific
<MichaelRaskin>
We-ell, you could probably call /run/current-system/bin/switch-to-configuration boot
<kuznero>
Running `sudo nixos-rebuild switch` another time didn't produce another gen, but cleaned up old ones :)
<kuznero>
That's good enough
a6a3uh has joined #nixos
erictapen has quit [(Ping timeout: 240 seconds)]
damke has joined #nixos
proteusguy has joined #nixos
damke_ has quit [(Ping timeout: 240 seconds)]
erictapen has joined #nixos
erictapen has quit [(Remote host closed the connection)]
erictapen has joined #nixos
proteusguy has quit [(Max SendQ exceeded)]
<kuznero>
What is the process of moving packages from nixpkgs:staging further to nixpkgs-channels?
MichaelRaskin has quit [(Ping timeout: 246 seconds)]
<curaloucura>
hello everyone. I just reinstalled my nix-os on my macOS high Sierra to fix a bug after the update. but I can't seem to be able to install any package that was on python27Packages
zzamboni has quit [(Remote host closed the connection)]
<curaloucura>
nix-env -iA nixpkgs.python27Packages.pip worked. I didn't try to install with the full patch
zzamboni has joined #nixos
<curaloucura>
| => nix-env -iA nixpkgs.python27Packages.ansible error: attribute ‘ansible’ in selection path ‘nixpkgs.python27Packages.ansible’ not found
<yegortimoshenko>
curaloucura: i don't see ansible in python27Packages either, try: `nix-env -iA nixpkgs.ansible_2_2`
<yegortimoshenko>
or `nix-env -iA nixpkgs.ansible` for ansible 2.3
<curaloucura>
it worked without the python27Packages
<curaloucura>
thank you, it's been a while without updating my nix
<yegortimoshenko>
i don't think python27Packages has ansible attribute, at least not anymore. but all packages present in python27Packages should work
<curaloucura>
yes, probably did change in the last year or so. I had a working script
<curaloucura>
everything running again
<yegortimoshenko>
curaloucura: you can make sure that the script remains runnable forever by setting nixpkgs explicitly to a certain version, check out nix-shell man page
<yegortimoshenko>
e.g. `nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/0672315759b3e15e2121365f067c1c8c56bb4722.tar.gz -p ansible`
damke_ has joined #nixos
<yegortimoshenko>
but anyway, that's unfortunate. i don't think nixpkgs should remove attributes after renaming. maybe that's a mistake.
damke has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] domenkozar opened pull request #31086: osx_private_sdk: reduce output size and remove it from runtime closures (master...osx_private_sdk_remove_runtime) https://git.io/vFO5v
<pstn>
Seems like we need a solution for the electron situation with Signal moving their desktop app from chrom{e,ium} to electron. //Ralith
<nliadm>
I upgraded my laptop to 17.09 and gsd-datetime now segfaults, and my user doesn't show up in gdm
<nliadm>
anyone have thoughts on how to debug?
<bencoman>
bencoman
<yorick>
pstn: what is the electron situation? using pre-packaged binaries?
damke has joined #nixos
<yorick>
it would be pretty neat to share the same electron between multiple packages
davidak has joined #nixos
damke_ has quit [(Ping timeout: 240 seconds)]
<nliadm>
that seems like the least electron solution
<nliadm>
we should probably bundle some extra instances of chromium, just to keep in the spirit
<yorick>
it would save disk and memory space
lll_ has joined #nixos
<lll_>
which package do I need to install to get g++
lll_ is now known as typeggzero
<pstn>
yorick: Ralith mentioned in his riot package that the build process is somewhat broken. Now that I revisit it, it could be a problem exclusiely for riot though. https://github.com/Ralith/riot-electron-nix
<bencoman>
yes, for someone "learning" helps keep them in context without gettign distracted
<bencoman>
thanks for taking a look yorick. One thing though I'm not clear on is the effect of "export out=" -- I thought it might redirect build artifacts out of tree, but it seems not too. I've examined https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh but not grokked $out usage.
emiLio_esfoobar has quit [(Ping timeout: 240 seconds)]
<yorick>
bencoman: in a nix-build, $out would point to /nix/store/sdlijflfkjlfjr-yourpkg/ as a location for your package to be installed
<yorick>
bencoman: so the builders will look at $out to determine where to put the output
mizu_no__ has quit [(Client Quit)]
joehh has quit [(Ping timeout: 248 seconds)]
<typeggzero>
I added stdenv in my configuration.nix and still do not have g++ availible
<bencoman>
that sounds like what I would guess it to do, but following those example instructions under "Using nix-shell for package development", I don't "see" that happening - unless I'm missing something
<LnL>
typeggzero: what platform are you on?
<yorick>
typeggzero: just install pkgs.gcc
<typeggzero>
I got my mistake. I have only clang installed and the cc command is using clang. I assumed that I would have installed gcc. nvm then and ty :-)
<bencoman>
whoops, on the first shell line, I just fixed one ~/tmp/ that should have been ~/tmpdev/
<fearlessKim[m]>
from what I see , I can't enable the fetchSubmodules from fetchgit ? should I downloqd submodules in the unpackPhase ?
emiLio_esfoobar has joined #nixos
symplectico has quit [(Ping timeout: 255 seconds)]
<bencoman>
not that there were any submodules to download. So I don't know whether such woudl actually work. Or are you asking a different question?
monk has joined #nixos
monk has quit [(Client Quit)]
<fearlessKim[m]>
bencoman: shit I am more noob than you are? I had grepped the nixpkgs for submodule so it didn't find Submodule xD I did see the nix prefetch git parameter but not how it was passed by nixpkgs. Thanks !
monk has joined #nixos
monk has quit [(Client Quit)]
monk has joined #nixos
monk has left #nixos []
kmcia is now known as kmc
t184256 has joined #nixos
<t184256>
Hello, could you help a noob? I'm overriding pkgs.systemd. If I put the result into environment.systemPackages, I have two systemds. If I put it into nixpkgs.config.packageOverrides, lvm2 freaks out that the overrided systemd has no udev attribute.
<t184256>
When I check it with nix-repl, pkgs.systemd does have an udev attribute and I have zero idea where did it come from.
whald has quit [(Remote host closed the connection)]
<t184256>
But pkgs.systemd.overrideAttrs (oldAttrs: {name = "systemd-x";}) does not.
<ylwghst>
This is proper way according to Nix WiKi. Just declare this in configuration.nix and rebuild. Also remove tensorflow if you have installed it with nix-env
<ylwghst>
adisbladis: good
<DiThi>
adisbladis: thanks
<DiThi>
ylwghst: I have blender configured in that way already, in fact
<ylwghst>
DiThi: sorry I haven't realised you need it in nix-shell
ckauhaus has quit [(Remote host closed the connection)]
<adisbladis>
DiThi: Consider creating a shell.nix :>
<DiThi>
adisbladis: using the command line I get: error: anonymous function at /nix/store/z1r9k76k5840jv2v7zm2i1v0axxk8qgf-nixexprs.tar.xz/pkgs/development/python-modules/tensorflow/default.nix:1:1 called with unexpected argument ‘enableCuda’, at /nix/store/z1r9k76k5840jv2v7zm2i1v0axxk8qgf-nixexprs.tar.xz/lib/customisation.nix:74:12
<DiThi>
adisbladis: it seems your solution worked, but it's downloading a lot of things... it is possible that the channel switch wasn't effective until after the rebuild?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] rycee pushed 12 new commits to master: https://git.io/vF3eA
<NixOS_GitHub>
nixpkgs/master 4f88411 Robert Helgesson: eclipse-plugin-rustdt: fix Emacs nix-mode highlighting
<NixOS_GitHub>
nixpkgs/master 94f2fdf Robert Helgesson: eclipse-plugin-spotbugs: init at 3.1.0
<NixOS_GitHub>
nixpkgs/master 9242f2f Robert Helgesson: josm: 12921 -> 13053
NixOS_GitHub has left #nixos []
roberth has joined #nixos
slabity has joined #nixos
leat has joined #nixos
<slabity>
So some nixos options require a custom field name, such as 'extraUsers.<name?>'. How can I specify <name?> with a variable containing a string?
<globin>
slabity: you can do extraUsers.someusername, extraUsers."someusernamewith!specialchars" or extraUsers.${usernameFromVar}
<slabity>
globin: Thanks, ${name} worked perfectly
<slabity>
On another note, is there a shorthand for `if x == null then "default" else x`? I seem to use that a lot
<slabity>
Just as a way to set a variable's default if it's not set yet
<globin>
slabity: or x ? "default" could work too in that case
sphalerite has quit [(Ping timeout: 246 seconds)]
puffnfresh has quit [(Ping timeout: 240 seconds)]
Oo[m] has quit [(Ping timeout: 246 seconds)]
M-fishy has quit [(Ping timeout: 252 seconds)]
nixo[m] has quit [(Ping timeout: 252 seconds)]
M-berdario has quit [(Ping timeout: 252 seconds)]
<slabity>
globin: Thanks again, it worked perfectly.
thematter[m] has quit [(Ping timeout: 246 seconds)]
Obscurity[m] has quit [(Ping timeout: 255 seconds)]
M-liberdiko has quit [(Ping timeout: 240 seconds)]
edef[m] has quit [(Ping timeout: 240 seconds)]
Wysteriary[m] has quit [(Ping timeout: 240 seconds)]
kevincox has quit [(Ping timeout: 252 seconds)]
demyan[m] has quit [(Ping timeout: 252 seconds)]
abbafei[m] has quit [(Ping timeout: 246 seconds)]
unlmtd has quit [(Ping timeout: 240 seconds)]
Ralith has quit [(Ping timeout: 255 seconds)]
<dj_goku_>
so looking through the manaual I get that configuration for an application should be done through a *.nix file. I see there are some references for /root/some_app/some_key.file is there a reason not to put it in /etc/some_app/some_key.file
jlle[m] has quit [(Ping timeout: 240 seconds)]
zigschots20[m] has quit [(Ping timeout: 252 seconds)]
<dj_goku_>
so the convention would be something like /root/openvpn/some_key.file
Wysteriary[m] has joined #nixos
edef[m] has joined #nixos
<dj_goku_>
ldlework: yeah sounds reasonable, just all *nix like operating systems put them in /etc/openvpn/*
kevincox has joined #nixos
Oo[m] has joined #nixos
M-liberdiko has joined #nixos
<ldlework>
I mean contemporary user config should go in $HOME/.config/ but many things are older than that convention
scott1 has joined #nixos
puffnfresh has joined #nixos
M-berdario has joined #nixos
unlmtd has joined #nixos
Ralith has joined #nixos
sphalerite has joined #nixos
demyan[m] has joined #nixos
a6a3uh has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] yegortimoshenko opened pull request #31094: ibus: 1.5.16 -> 1.5.17, move ibus-setup back to dev, a lot of other changes (master...ibus/update) https://git.io/vF3Ut
NixOS_GitHub has left #nixos []
<tgunb>
danbst1: how do i add firefox-overlay? do i add a channel?
<toogley>
how would i set user-dirs.dirs in configuration.nix?
trevorriles has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
a6a3uh has quit [(Quit: Bye)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] domenkozar pushed 1 new commit to master: https://git.io/vF3Te
<NixOS_GitHub>
nixpkgs/master daf7868 Will Fancher: Fix buildStackProject in nix-build
<mekeor>
i'm trying to install nixos with full-disk encryption. do i need a boot-partition? my notebook does not use EFI, AFAIK. (because /sys/firmware/efi doesn't exist when i boot the minimal installation image.)
<toogley>
dj_goku_: i meant, i want to declaratively define xdg-user-dirs such that everything else than the downloads folder just goes into my $HOME. such as 'XDG_DESKTOP_DIR="$HOME/"' and so on.
iyzsong has quit [(Ping timeout: 248 seconds)]
ixxie has joined #nixos
leat has quit [(Quit: WeeChat 1.9.1)]
MercurialAlchemi has quit [(Ping timeout: 255 seconds)]
<toogley>
dj_goku_: i'm guessing i have to use pkgs.writeText
<tilpner>
writeText can't write into /home
<ixxie>
any jupyter users here ever try and set up Nix-built kernels?
<toogley>
hm, are there other solutions?
<tilpner>
home-manager provides and xdg module that you could use to write the user-dirs file. Otherwise you'll have to resort to activation scripts
yegortimoshenko has quit [(Ping timeout: 258 seconds)]
damke has joined #nixos
damke_ has quit [(Ping timeout: 240 seconds)]
cyris212 has joined #nixos
cyris212 has quit [(Client Quit)]
hlavaty has quit [(Remote host closed the connection)]
whald has quit [(Ping timeout: 255 seconds)]
jsgrant has joined #nixos
<ldlework>
clever you around?
damke has quit [(Ping timeout: 240 seconds)]
* jsgrant
is loosely considering getting a Pinebook; Wondering how trivial it'd be to get NixOS on it -- test-play dev laptop would be the exclusive use.
<jsgrant>
Assume would have to build most from source.
orivej has quit [(Ping timeout: 260 seconds)]
damke has joined #nixos
<slabity>
jsgrant: The pinebook has closed graphics drivers. Just a heads up
nh2 has joined #nixos
<slabity>
And the binary blobs are only for version 3.10 of the kernel
<Ralith>
philipp: yes, the brokenness in the riot package is mostly because npm is terrible; there might be a way to do the more generic stuff better but it's fundamentally sound.
a6a3uh has quit [(Quit: Hi)]
<ldlework>
I have converted my Nix installation on OSX to single-user. When I use NixOps to deploy I get: error: a ‘x86_64-linux’ is required to build ‘/nix/store/ww2z6pkfqzlin98sx5gkv55yqi8mynxn-append-initrd-secrets.drv’, but I am a ‘x86_64-darwin’
<ldlework>
I was under the impression that if you were on single-user install, that NixOps would use the newly created machine as a remote builder.
<Ralith>
philipp: reusing the electron package would be pretty awesome, though we may need to take care with compatibility for version bumps; so far I've never broken things by using too new an electrion but who knows how stable their APIs are
<pstn>
Ralith: Sounds good, I might be able to get a look at it tomorrow.
<Ralith>
cool, lmk how it goes
boxofrox has joined #nixos
damke has quit [(Ping timeout: 240 seconds)]
<Ralith>
the main thing that annoys me about the generic stuff in my riot package is that the output derivation name has no version number in it, and if I add one then it shows up in the script filename too
<Ralith>
ideally the script would be generated as part of the main derivation rather than being a dependent derivation
nh2 has quit [(Read error: Connection reset by peer)]
pbogdan has quit [(Ping timeout: 248 seconds)]
DiThi has quit [(Quit: Page closed)]
<boxofrox>
on nixos 17.03, i run `nix-env -qa | grep mariadb` and see a pkg for mariadb-client. when I edit configuration.nix to add pkgs.mariadb-client to the list of environment.systemPackages, `nixos-rebuild switch` errors with 'attribute mariadb-client missing`. I'm not sure what I'm doing wrong here.
<Ralith>
but I'm not really clear on what the idiomatic way to generate an executable script inside another derivation is
symplectico has quit [(Ping timeout: 255 seconds)]
damke_ has quit [(Ping timeout: 240 seconds)]
trevorriles has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<ldlework>
rycee using the DAG is there a way I can ensure one activation runs after another?
pbogdan has joined #nixos
periklis has joined #nixos
damke_ has joined #nixos
<boxofrox>
ah, I found it. `nix-env -qaP` shows mariadb-client is named pkgs.libmysql. I should write that down somewhere
trevorriles has joined #nixos
digitus has joined #nixos
mrkgnao has joined #nixos
erasmas has joined #nixos
nh2 has joined #nixos
<gchristensen>
hi everyone, my bot will now label PRs as having _no_ rebuilds. example: "10.rebuild-linux: 0" if you think this is an error, please ping me
tgunb has quit [(Ping timeout: 264 seconds)]
<dtzWill>
gchristensen: ♥ (will do, sounds great, thanks for your efforts!)
<gchristensen>
<3 :)
<dtzWill>
do we have a karma-bot or something? gchristensen++
endformationage has joined #nixos
<gchristensen>
I think [0__0] does something like that maybe but I don't know =)
<gchristensen>
this fixes the obvious problem of "are there no rebuilds, or did it just not get to it?"
rogue_koder has joined #nixos
<dtzWill>
ha! nice
<MoreTea>
gchristensen: awesome PR on the on-call security PR.
<gchristensen>
thank you! :)
jb55 has joined #nixos
marusich has quit [(Quit: Leaving)]
srdqty has joined #nixos
srdqty has quit [(Client Quit)]
<LnL>
!m gchristensen
<[0__0]>
You're doing good work, gchristensen!
leat has joined #nixos
kragniz is now known as kgz
damke_ has quit [(Ping timeout: 240 seconds)]
damke has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc reopened pull request #30777: DO NOT MERGE: testing to see if we got assimilated (master...do-not-merge) https://git.io/vdjox
<rycee>
The xmonad module is a good example, actually. It has one script that must run before linking the home files and one script that must run after linking the home files.
<jsgrant>
slabity: Well that's depressing for advertising themselves as somefactor of an 'open platform'.
<jsgrant>
"Light and Thin 64-bit ARM based Open Source Notebook"
<rycee>
ldlework: Feel free to use it :-) Generally the activation code should be fast and idempotent, though.
* jsgrant
wants a pi-book, but is not going to spend 300usd for it.
<jsgrant>
I've been using this ~7 y/o Toshiba Satellite & is certainly on it's last legs.
hellrazo1 has quit [(Quit: WeeChat 1.9.1)]
Neo-- has joined #nixos
<hyper_ch>
jsgrant: how about $299? I'd chime in $1 for you ;)
<jsgrant>
hyper_ch, Double that & we'll talk. :^)
<hyper_ch>
nah, that would be above my budget ;)
<jsgrant>
Maybe I'll just trawl Ebay & try to get a 100-150usd-ish Thinkpad or something.
trevorriles has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<andrewrk>
`patchelf --set-interpreter` is giving me `cannot find section`
<andrewrk>
but `patchelf --print-interpreter minikube` gives me `/lib64/ld-linux-x86-64.so.2`
<andrewrk>
sorry that first command should be `patchelf --set-interpreter $(cc -print-file-name=ld-linux-x86-64.so.2) minikube`
mekeor has quit [(Quit: digital revolution = cryptoanarchism + cybercommunism)]
<jsgrant>
Yeah, I think I'll do that.
<andrewrk>
I'll file an issue
<jsgrant>
Will give it two-weeks & think on it; Finish fleshing out this config.nix on this box first.
* jsgrant
is still holding his breath on that RISC-V rpi3-comparable board ... but can't/won't for another year. :^P
dieggsy has quit [(Remote host closed the connection)]
Yotam_ has joined #nixos
<Yotam_>
Hey all, where can I find the description/nix expression of pkgs.emacsPackagesNg?
<LnL>
nixer: there should be a StorePath field in the narinfo
nh2 has joined #nixos
<nixer>
LnL: I know that, but right now my system is trying to download a narinfo file from a custom cache and I'm trying to figure out what is missing.
damke_ has quit [(Read error: Connection reset by peer)]
damke has joined #nixos
Yotam_ has quit [(Quit: Leaving)]
<LnL>
did something break?
<gchristensen>
no, just experimenting :)
<LnL>
nix-env -qaP works fine
<gchristensen>
nice
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc closed pull request #30777: DO NOT MERGE: testing to see if we got assimilated (master...do-not-merge) https://git.io/vdjox
NixOS_GitHub has left #nixos []
<Ralith>
rycee: did overlay handling change recently? my mozilla-nixpkgs overlay seems to have silently broken
damke has quit [(Ping timeout: 240 seconds)]
mood has quit [(Ping timeout: 255 seconds)]
erictapen has joined #nixos
damke has joined #nixos
mood has joined #nixos
cement has joined #nixos
nh2 has quit [(Ping timeout: 240 seconds)]
orivej has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vF3RV
<NixOS_GitHub>
nixpkgs/master 7e31aef Vincent Laporte: ocamlPackages.lwt: remove spurious dependency on oasis
NixOS_GitHub has left #nixos []
nh2 has joined #nixos
jb55 has quit [(Ping timeout: 246 seconds)]
<infinisil>
Ralith: Unless you set the new nixpkgs.overlays option, it should be like before
roberth has joined #nixos
nh2 has quit [(Ping timeout: 240 seconds)]
<typeggzero>
I just installed dwarf-fortress. How can i start dwarf therapist?
betaboon has joined #nixos
nh2 has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] copumpkin opened pull request #1655: Don't freak out if we get a 403 from S3 (master...patch-1) https://git.io/vF3EW
NixOS_GitHub has left #nixos []
<Ralith>
infinisil: that's the option I was using previously, and it seemed to be working at the time; it certainly is not working now
<ArdaXi[m]>
typeggzero: If you've installed dwarf-therapist you should be able to run DwarfTherapist
<Ralith>
infinisil: I started using home-manager four days ago :P
<infinisil>
Ah i see, what's the error?
<typeggzero>
My mistake. I was thinking it would be included in the base dwarf-fortress.
<infinisil>
because i get a hash mismatch error for firefox-nightly-bin of the mozilla overlay
nh2 has quit [(Ping timeout: 240 seconds)]
<typeggzero>
so I will basicly install dfhack and dwarf therapist
pxc1 has joined #nixos
mbrgm has quit [(Ping timeout: 248 seconds)]
jb55 has joined #nixos
mbrgm has joined #nixos
<guillaum2>
Do you know how I can have a dynamic "version" field, coming from a file or a command. I want to use "git describe" to get my version name in a package stored inside a git repository.
Ramaness has joined #nixos
<ldlework>
guillaum2 can't you just run the appropriate bash command against the source?
trevorriles has joined #nixos
Neo-- has quit [(Ping timeout: 264 seconds)]
<TweyII>
guillaum2: You can use builtins.readFile to read a file at evaluation time… but you should do it carefully
<Ralith>
infinisil: the overlay just seems to be entirely missing; the expression is (import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz)) and it should be generating entries in pkgs named `rustChannelOf` and `latest`, but isn't
<guillaum2>
TweyII: and can I set a hook which is evaluated before evaluation time ? (to write the file using the command)
<TweyII>
guillaum2: No
<TweyII>
guillaum2: To write files, you want to build derivations
<TweyII>
guillaum2: If foo is a derivation, then evaluating foo will trigger the building of foo and the production of all foo's outputs
erictapen has quit [(Ping timeout: 255 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] edolstra pushed 1 new commit to master: https://git.io/vF3zB
<NixOS_GitHub>
nix/master e026bc3 Eelco Dolstra: fetchMercurial: Don't fetch hashes we already have
NixOS_GitHub has left #nixos []
<TweyII>
guillaum2: If foo has an output you want to read, you can do it, therefore
hellrazor has joined #nixos
nh2 has joined #nixos
damke has quit [(Ping timeout: 240 seconds)]
jsgrant has quit [(Remote host closed the connection)]
<rycee>
Ralith: Hmm, I don't think any recent change should affect the overlays option. I'll have a look.
<Ralith>
yeah, I don't see any thing in git
<Ralith>
it's possible I was somehow confused about it ever working
jb55 has quit [(Ping timeout: 246 seconds)]
ssmike has quit [(Ping timeout: 255 seconds)]
<ldlework>
🎉 I got home-manager to install 🐳 for Mac
<NixOS_GitHub>
[nixpkgs] qknight pushed 1 new commit to master: https://git.io/vF3ai
<NixOS_GitHub>
nixpkgs/master 2ddcdcc Sarah Brofeldt: nixos/postfix: support alternate smtp ports when relaying (#30685)...
NixOS_GitHub has left #nixos []
MP2E has joined #nixos
<rycee>
I've been waffling back and forth on whether the HM nixpkgs option should apply to Nix commands run outside the context of a HM configuration.
hotfuzz has quit [(Ping timeout: 248 seconds)]
<rycee>
It could be done but I'm not sure whether it is the expected thing to happen. And there is also a possible performance since you'd have to evaluate the HM configuration each time a Nix command wants to read the `config.nix`.
<tilpner>
It doesn't have to be by default, and if want to you could fail the build when a safety option is enabled
<Ralith>
tilpner: too much configurability can make things very confusing, though
<rycee>
Ralith: Btw, in my HM config I also have `xdg.configFile."nixpkgs/config.nix".source = dotfiles/nixpkgs-config.nix; nixpkgs.config = import dotfiles/nixpkgs-config.nix;`
Mykyta has joined #nixos
<tilpner>
Ralith - It's already confusing and unintuitive!
<Mykyta>
Hi, colleagues.
<Mykyta>
I am trying to overwrite a value of NIX_REMOTE and it does not work (overwriting it inside of py code)
<tilpner>
But you're right, rycee. I extracted my nixpkgs config from my nixos config because a no-op nixos-rebuild takes 10s
Bane^ has quit [(Ping timeout: 246 seconds)]
<tilpner>
Not all of that would need to be evaluated to just get nixpkgs, but still annoyingly much for e.g. tab completion
<Ralith>
rycee: that works, I guess!
<Ralith>
using nix to generate config files for nix is weird but gets the job done
<Mykyta>
Does anybody know the preference order between NIX_REMOTE and NIX_STORE
Ramaness has quit [(Ping timeout: 260 seconds)]
<Mykyta>
Anyway, how to overwrite a value of NIX_REMOTE option
<Ralith>
rycee: the xdg overlay trick worked a treat, btw
<Ralith>
thanks!
Bane^ has joined #nixos
ssmike has joined #nixos
ssmike has quit [(Ping timeout: 248 seconds)]
<Ralith>
given how demonstrably straightforward it is to export a home-manager-defined nixpkgs config I guess there's no need for explicit support of any kind
taktoa has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 5 new commits to master: https://git.io/vF3oJ
<NixOS_GitHub>
nixpkgs/master 933a9c5 Michael Alan Dorman: elpa-packages: 2017-11-01
<NixOS_GitHub>
nixpkgs/master 086f276 Michael Alan Dorman: org-packages: 2017-11-01
<NixOS_GitHub>
nixpkgs/master 70b132c Michael Alan Dorman: melpa-stable-packages: 2017-11-01
schoppenhauer has quit [(Ping timeout: 248 seconds)]
dywedir has joined #nixos
schoppenhauer has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 3 new commits to release-17.09: https://git.io/vF36V
<NixOS_GitHub>
nixpkgs/release-17.09 f4237e0 Márton Boros: nixos/gitlab: fix hard-coded database name...
<NixOS_GitHub>
nixpkgs/release-17.09 528e15d Márton Boros: nixos/gitlab: fix preStart script...
<NixOS_GitHub>
nixpkgs/release-17.09 18c5788 Márton Boros: nixos/gitlab: fix secret generation...
NixOS_GitHub has left #nixos []
ma27 has quit [(Ping timeout: 248 seconds)]
davidak has joined #nixos
gpampara has joined #nixos
<LnL>
Mykyta: what are you trying to do with NIX_REMOTE?
jbgi has joined #nixos
ThatDocsLady has quit [(Ping timeout: 258 seconds)]
ylwghst has quit [(Quit: Lost terminal)]
<cocreature>
Hey, I’m trying to write an out-of-tree nix test and I want to refer to the "make-test.nix" file in my pinned snapshot but my attempts result in "error: expression does not evaluate to a derivation (or a set or list of those)". any ideas what I’m doing wrong? http://nixpaste.lbr.uno/eLCrttcN?nix
<cbarrett>
manveru:
<Mykyta>
^ I need to set it to my value and in logs its still the same
<cbarrett>
manveru: my use case was installing the gems required to do `pod install` (cocoapods)
<cbarrett>
worked brilliantly. definitely going to be incorporating into my workflow in the futur
<cbarrett>
+e
kini has quit [(Quit: No Ping reply in 180 seconds.)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat pushed 10 new commits to release-17.09: https://git.io/vF3Py
<NixOS_GitHub>
nixpkgs/release-17.09 ecfa4f8 Tim Steinbach: cyrus_sasl: Fix CVE-2013-4122...
<Mykyta>
LnL: my python script sets the value of envVariables. I just try to reset envVars['NIX_REMOTE'] = <myValue>. When I run a subprocess if shows me the "deamon" value, but not mine one
kini has joined #nixos
<LnL>
and it's trying to use the store without talking to the daemon?
<cocreature>
huh it looks like nix-build doesn’t like being passed lambdas but I thought that’s what I had always done so far *confused*
<copumpkin>
you pass nix-env a lambda to -E
FRidh has joined #nixos
<copumpkin>
nix-build gets other stuff
<cocreature>
oh right I had the lambdas only in derivations that I called via callPackage not in the default.nix
<cocreature>
makes sense, thanks!
davidak has quit [(Quit: Leaving.)]
<cocreature>
hm wait no, I have lambda in my default.nix
ssmike has joined #nixos
erictapen has quit [(Ping timeout: 240 seconds)]
<cocreature>
and if I just use http://nixpaste.lbr.uno/omVHm3Tw?nix nix-build is happy (although) it obviously doesn’t do much. so lambdas seem to work sometimes™
ma27 has joined #nixos
ma27 has quit [(Client Quit)]
<cocreature>
ah make-test.nix introduces another lambda
ma27 has joined #nixos
ssmike has quit [(Ping timeout: 255 seconds)]
slabity has quit [(Quit: Page closed)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 20 new commits to release-17.09: https://git.io/vF3M4
<NixOS_GitHub>
nixpkgs/release-17.09 b52147e Ingo Blechschmidt: mupdf: correct license meta information...
<NixOS_GitHub>
nixpkgs/release-17.09 1398ef7 Chris Martin: nixos/acme: remove doc note about restarting nginx...
<mpickering>
What does symlinkJoin do? (or where is it documented)
<LnL>
it's similar to buildEnv if you're familiar with that
ma27 has quit [(Ping timeout: 240 seconds)]
waleee has joined #nixos
mahalel_ has quit [(Remote host closed the connection)]
gpampara has quit [(Remote host closed the connection)]
<mpickering>
nope sorry, is that documented anywhere?
kus_ubuntui686 has joined #nixos
kus_ubuntui686 has quit [(Max SendQ exceeded)]
mahalel_ has joined #nixos
<waleee>
What are some recommended options and additional configurations in configuration.nix for bash? (to achieve the same speed as you would per default in ubuntu)
<LnL>
both basically combine multiple packages into one by symlinking all the files
<tilpner>
waleee - What do you mean by speed?
<mpickering>
ok great cheers LnL
<waleee>
well, not taking a while to load
<LnL>
I think the difference is that symlinkJoin will never create symlinks to directories, don't recall exactly
<tilpner>
waleee - It does not take a while to load here, did you enable any unusual options?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Fuuzetsu pushed 1 new commit to master: https://git.io/vF39D
<ldlework>
rycee I'm sorry I should probably know this already, but if I want to set the source of a home.file to a file in a derivation how do I manage the syntax for that...?
<ldlework>
home.file."foo".source = "${package}/some_foo.ext"; doesn't work properly
<ldlework>
or should it
<mpickering>
It looks to me that the way the idris package management works is a bit idiosyncratic, using envHooks and so on
<benley>
Anyone know why we only build the gcc Objective C compiler on Darwin, not linux?
<waleee>
tilpner: https://pastebin.com/m0y5cE53 , something except enableCompletion that might cause bash's load time?
<tilpner>
waleee - I don't think I can help you with the slowness, but I can help you with the uglyness around programs.bash.interactiveShellInit
<tilpner>
waleee - You can use ''foo ... bar'' instead of "foo\nbar"
<tilpner>
waleee - These indented strings can span multiple lines without needing to escape newlines
<waleee>
yeah, that one got a bit ugly (pasted from a nixos-options output)
<benley>
or like, is there another way of building objective c / objc++ code on nixos other than gcc?
<benley>
oops, some scrolling got in the middle there
<LnL>
dunno, clang?
<tilpner>
waleee - Maybe try removing the "disable caching" part of your config, it sounds performance-sensitive
<waleee>
ok
<rycee>
ldlework: Hmm, maybe something like `home.file."foo".source = builtins.toPath "${package}/some_foo.ext";`?
<rycee>
ldlework: Nice work with the docker module :-)
<rycee>
ldlework: If I understand correctly then it sets up a system daemon? Maybe that part would be a good fit for nix-darwin?
freeman42x[NixOS has quit [(Ping timeout: 240 seconds)]
apeyroux has quit [(Quit: Lost terminal)]
zzamboni has joined #nixos
apeyroux has joined #nixos
ahstro has joined #nixos
<kkini>
wtf...
<kkini>
I'm trying to install nix on a couple machines behind a proxy using the binary tarball, and I'm having trouble because the curl that's included in the binary tarball can't seem to make HTTPS connections through the proxy
<kkini>
but only one one machine -- on a different machine, behind the same proxy, it has no problem making the connection (when it tries to do a `nix-channel --update`)
<gchristensen>
orivej: I can let you call grahamcofborg if you promise not to try mass rebuilds, and you review the changes prior to triggering it. you have to be gentlee, it is running on some volunteer hardware :)
<kkini>
I tried `ldd -v` on /nix/*-curl*/* on the machines, and there are no links out of the nix store except to /lib64/ld-linux-x86-64.so.4, which is just the system dynamic linker...
<kkini>
and I don't think there's any difference in how the proxy responds to requests from the two different machines, so what on earth...
<gchristensen>
kkini: probably an ssl validation error
<gchristensen>
your proxy is probably reesigning reqs
<kkini>
gchristensen: indeed the error message (when I set "-v" in ~/.curlrc) says "* error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol" just as in that issue
<kkini>
but I don't see why that would make it work on one machine and not another, when all the stuff in the binary tarball is supposed to be maximally self-contained... right?
zzamboni has quit [(Remote host closed the connection)]
<gchristensen>
did you check the env vars (end of the issue body?)
<kkini>
Oh, I'm an idiot. Yeah, they are different... somehow. (They were supposed to be replicated between the machines, but at some point one of them was changed to https. D'oh!)
<kkini>
Thanks, gchristensen :)
<gchristensen>
:)
ma27 has quit [(Ping timeout: 240 seconds)]
yegortimoshenko has joined #nixos
<yegortimoshenko>
i have a vague memory of seeing a xml parser for nix somewhere in NixOS/nixpkgs, was i dreaming or is that actually true
roberth has joined #nixos
jacob has quit [(Quit: Lost terminal)]
disasm has quit [(Quit: WeeChat 1.9.1)]
disasm has joined #nixos
<tilpner>
Maybe you're remembering toXML, which IIRC doesn't have a reading counterpart
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 2 new commits to master: https://git.io/vF3As
<NixOS_GitHub>
nixpkgs/master 2ad3933 Orivej Desh: autofs: do not strip needed symbols...
<NixOS_GitHub>
nixpkgs/master 2df0fe9 Franz Pletz: Merge pull request #31038 from orivej/autofs...
NixOS_GitHub has left #nixos []
<orivej>
gchristensen: I promise. Is its source code public?
<gchristensen>
yeah, but you probably don't want tosee it
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 2 new commits to release-17.09: https://git.io/vF3A0
<NixOS_GitHub>
nixpkgs/release-17.09 4200dcd Orivej Desh: autofs: do not strip needed symbols...
<NixOS_GitHub>
[nixpkgs] benley opened pull request #31108: openvpn-auth-ldap: init at 2.0.3 (master...openvpn-auth-ldap) https://git.io/vF3xe
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] aristidb closed pull request #29250: pulseaudio: enable by default in NixOS if sound is enabled (master...pulseaudio-by-default) https://git.io/v51m2
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vF3ph
<NixOS_GitHub>
nixpkgs/master e32352f Franz Pletz: nixpkgs manual: unfree packages are untested...
NixOS_GitHub has left #nixos []
vaibhavsagar has joined #nixos
<Unode>
Is there any quick way to have a "nix-shell -p zlib.dev --run 'make ...'" find the zlib headers?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nix] plesiv opened pull request #1657: Mention "float" type in builtins.typeOf section of the docs (master...docs-typeof-fix) https://git.io/vF3h3
NixOS_GitHub has left #nixos []
<Unode>
I thought adding .dev would be sufficient but it isn't. Make still fails to find -lz and zlib.h
<ahstro>
For some reason, my $EDITOR is unset in tmux, and Neovim doesn't use it's colorscheme... Anyone have had trouble with tmux and have any idea what might be going on?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] ttuegel pushed 1 new commit to master: https://git.io/vF3hb
<NixOS_GitHub>
nixpkgs/master 29798e8 Thomas Tuegel: ark: fix wrapProgram invocation
NixOS_GitHub has left #nixos []
<Unode>
ahstro: echo $TERM inside tmux
hotfuzz has joined #nixos
<ahstro>
Unode: Ooh, we're gettings somewhere! It's `screen` in tmux and `xterm-256color` in Konsole
<Unode>
might just be that you need screen-256color for proper colorscheme usage.
gilligan_ has joined #nixos
<ahstro>
Unode: Whoo, that did it! :D Thanks!
<ahstro>
Still no idea what the deal is with the EDITOR variable though..
hiratara has quit [(Ping timeout: 258 seconds)]
<MoreTea>
I like how niksnut had set EDITOR=ls :P
<Fuuzetsu>
on nix 1.12 trying to use nix build, I get "error: 'http://hydra.nixos.org' does not appear to be a binary cache", any ideas?
<Fuuzetsu>
I'm on master using ‘nix build nixpkgs.sloc --no-link’
<LnL>
hydra has not served caches in a very long time
<MoreTea>
yes, it'll probably break `git commit` (if you're not using -m) and other such commands.
<Unode>
any suggestions about my zlib question above? I was looking for something I could solve with a simple one-liner.
<Fuuzetsu>
even after removing hydra from my configuration.nix and running rebuild switch, it still gives me the same thing; I wonder where it could be getting it from still?
<LnL>
Fuuzetsu: does that also show up in nix show-config | grep 'substituters ='
hiratara has joined #nixos
<Fuuzetsu>
seems nix.conf didn't get updated..
<globin>
Unode: nix-shell -p pkgconfig -p zlib --run might work if the thing you're using is looking for them via pkg-config
<Fuuzetsu>
let me reboot brb
betaboon has quit [(Quit: WeeChat 1.9.1)]
<globin>
Unode: otherwise you'll might have to set NIX_CFLAGS_COMPILE="-I ${zlib.dev}/include"
<Unode>
globin: trying ...
<Fuuzetsu>
hm same after reboot, why is this damn file not updating
<Fuuzetsu>
can someone ‘ls -lha /etc/nix/nix.conf’?
<Unode>
globin: neither seems to help :(
<Unode>
unless I'm doing something wrong. NIX_CFLAGS_COMPILE you set inside the shell right?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dhess opened pull request #31110: armv7l-linux: add a beagleboard.org kernel + platform. (master...beaglebone) https://git.io/vFseu
NixOS_GitHub has left #nixos []
jb55 has quit [(Ping timeout: 240 seconds)]
<Fuuzetsu>
that's not good, can't rebuild switch for same reason now, good stuff
jb55 has joined #nixos
<Unode>
Fuuzetsu: it's a symlink on my system, as expected
<globin>
Fuuzetsu: --rollback should work without working binary caches
<globin>
Unode: correct
<Fuuzetsu>
Unode: to store or /etc/static/nix.conf?
<Unode>
Fuuzetsu: static
<Fuuzetsu>
(and then to store)
<globin>
Unode: do you have something to reproduce
<Unode>
globin: yes, the thing I'm trying to run https://github.com/luispedro/ngless, trying to compile "make samtools-1.4/ngless-0.5.0-samtools"
Mykyta has quit [(Ping timeout: 260 seconds)]
<Fuuzetsu>
ok I fixed it; hack was to pass --option binary-caches "" to nix-rebuild switch which then graciously updated my nix.conf too; I changed nix.maxJobs just to make sure it's triggered too, unsure if that's what really did it
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vFsep
<NixOS_GitHub>
nixpkgs/master bfd5778 Franz Pletz: tzdata; 2016j -> 2017c...
NixOS_GitHub has left #nixos []
<LnL>
Fuuzetsu: should be a symlink to /etc/static/nix/nix.conf or something
guillaum2 has quit [(Ping timeout: 260 seconds)]
ssmike has joined #nixos
<gilligan_>
sphalerite, around?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] fpletz pushed 2 new commits to release-17.09: https://git.io/vFsvT
<NixOS_GitHub>
nixpkgs/release-17.09 c567ec6 Franz Pletz: tzdata; 2016j -> 2017c...
NixOS_GitHub has left #nixos []
<c0bw3b>
eiiii i got PR#31111 \o/
<LnL>
oh, you didn't actually activate the change yet
iqubic has joined #nixos
jushur has quit [(Quit: The Borg joined forces with Skynet, Resistance is futile! Uploading has begun!)]
<Unode>
globin: any clues so far?
<Unode>
I mean, I can probably do it with a full blown derivation, but since I'm bumped into other zlib issues recently, I'm wondering if it's just be fumbling or if there's indeed something missing.
freeman42x[NixOS has joined #nixos
<gilligan_>
globin, you were working on nixbot during the nixcon hackathon - right?
<globin>
gilligan_: yes
<gilligan_>
globin, ok cool.. adding that to my blog post then ;)
<globin>
gilligan_: RFC will probably follow tomorrow, demo implementation tonight
<gilligan_>
if anyone else wants to let me know what they were working on so I can add it, that would be appreciated ;-)
mizu_no__ has joined #nixos
<fpletz>
gilligan_: other than security stuff, I was working on netboot.xyz support. not finished yet though… needs some perl hackery :)
<gilligan_>
fpletz, i shall add that. Thank you
<MoreTea>
Hm, can you recover from calling a function with the wrong arguments with tryEval?
<nh2[m]>
how do I show the age of some package in the nix store, as considered by `nix-collect-garbage --delete-older-than`?
<MoreTea>
This throws an error that cannot be caught by tryEval builtins.tryEval (({a}:a) { b = 1; })
<MoreTea>
I'm encountering this in the auto generated hex packages pkgs.beam.packages.erlang.alice
<domenkozar>
nh2[m]: it's based on root profile age
<nh2[m]>
domenkozar: can I query it somehow for some package? E.g. if I have `/nix/store/m74s3ylqgnpycnhaj1hxqax3xpx9l9z9-ghc-8.0.2`, can I somehow query which profiles link that and how old they are?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin pushed 2 new commits to mariadb-10.2: https://git.io/vFsfF
<NixOS_GitHub>
nixpkgs/mariadb-10.2 3becdb5 Robin Gloster: urweb: fix build
<NixOS_GitHub>
nixpkgs/mariadb-10.2 87a3649 Robin Gloster: Merge remote-tracking branch 'upstream/master' into mariadb-10.2
NixOS_GitHub has left #nixos []
<aminechikhaoui>
domenkozar: isn't it the registration time of the path in the db
<aminechikhaoui>
as in `nix path-info <path> --json`
kkini has quit [(Remote host closed the connection)]
simukis has quit [(Ping timeout: 240 seconds)]
kkini has joined #nixos
<domenkozar>
aminechikhaoui: but it still needs to consider liveliness
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] globin force-pushed mariadb-10.2 from 87a3649 to 4650a68: https://git.io/vFsJa
<NixOS_GitHub>
nixpkgs/mariadb-10.2 4cf50bb Robin Gloster: mariadb: 10.1.26 -> 10.2.6
<NixOS_GitHub>
nixpkgs/mariadb-10.2 56f4958 Robin Gloster: mariadb: fix lib cycle and hash
<NixOS_GitHub>
nixpkgs/mariadb-10.2 3a25ef3 Robin Gloster: mariadb: lib -> connector-c