<dhess>
I have 2 hosts that are managed by NixOps, both behind a firewall and with no need for public Internet access. Is there a way to have the NixOps deployment host push *all* of the packages to the target, including whatever is downloaded from the upstream binary caches?
<dhess>
Because I would like to completely cut off the target hosts from the public Internet.
<digitalmentat>
oh wait that's not a link to the package though
<benley>
the one-click install link would be one click away from that, yeah
<digitalmentat>
yeah I'm hoping to provide a README.md copy-pasteable line with `nix-install-package` that doesn't get stale
<benley>
that sounds nice
<benley>
so far I haven't found a way to get that url but maybe it's possible?
cgdub has joined #nixos
<digitalmentat>
yeah I can't find one on our hydra instance either
<pxc>
I have some very simple package updates which are one commit each in my own local branch of nixpkgs, which is based on nixos-16.09
<pxc>
should I make separate branches and then separate pull requests for each branch or might someone just be willing to glance and merge in one PR?
<pxc>
they're very simple commits. is that unhygienic?
<benley>
ideally you'd do one pull request per new package, but if it's a set of related things then imho a set of commits per package together in one pull request makes sense
<benley>
s/new//
<pxc>
okay, only a couple are related. I guess I'll be a good boy and branch properly then submit
eacameron has quit [(Remote host closed the connection)]
<pxc>
I was just looking for an out for my laziness lol
proteusguy has quit [(Ping timeout: 240 seconds)]
<digitalmentat>
pxc, the maintainers of nixpkgs are overloaded - making PRs as easy on them as you can is a good thing (says the one who submitted a monster PR not long ago)
<joachifm>
is the build farm down? all the machines are idle.
justanotheruser has quit [(Ping timeout: 264 seconds)]
<NixOS_GitHub>
[nixpkgs] chris-martin opened pull request #23971: doc/stdenv: how to mkDerivation with no srcs (master...pr/doc-stdenv-srcs) https://git.io/vyHM4
paperd has quit [(Read error: Connection reset by peer)]
dbmikus has joined #nixos
MP2E has joined #nixos
dbmikus has quit [(Ping timeout: 240 seconds)]
eacameron has quit [(Remote host closed the connection)]
eacameron has quit [(Read error: Connection reset by peer)]
eacameron has joined #nixos
dhess2 has quit [(Ping timeout: 240 seconds)]
<barrucadu>
clever: Thanks
eacameron has quit [(Ping timeout: 240 seconds)]
andymandias has joined #nixos
systemfault has joined #nixos
Rizy_ has quit [(Quit: Rizy_)]
<barrucadu>
Hmm, do I need to override the normal ghc for this to work? If I have another haskell dependency there the extra packages don't show up, eg, buildInputs = [ haskellPackages.mueval (haskellPackages.ghcWithPackages (p: [p.lens])) ]
marsam has joined #nixos
marsam has quit [(Remote host closed the connection)]
sivteck has quit [(Read error: Connection reset by peer)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
derjohn_mob has quit [(Ping timeout: 258 seconds)]
mudri has quit [(Quit: WeeChat 1.7)]
alx741 has quit [(Quit: alx741)]
<barrucadu>
Ok, it's mueval specifically messing things up
<NixOS_GitHub>
[nixpkgs] cleverca22 opened pull request #23974: qtmultimedia-5.7: disable alsa on darwin (master...qtmultimedia) https://git.io/vyHSp
Rizy has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 3 new commits to master: https://git.io/vyH9J
<NixOS_GitHub>
nixpkgs/master 9fd4966 Florent Becker: ocamlPackages.ocsigenserver: add pgocaml support
<NixOS_GitHub>
nixpkgs/master bc26feb Florent Becker: ocamlPackages.ocsigen_toolkit: init at 1.0
derjohn_mob has joined #nixos
d762b440__ has joined #nixos
filterfish_ has quit [(Remote host closed the connection)]
mbrgm has quit [(Ping timeout: 240 seconds)]
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
mbrgm has joined #nixos
<NixOS_GitHub>
[nixpkgs] copumpkin pushed 2 new commits to master: https://git.io/vyH9o
<NixOS_GitHub>
nixpkgs/master db05f41 michael bishop: qtmultimedia-5.7: disable alsa on darwin
<NixOS_GitHub>
nixpkgs/master 2eb48da Daniel Peebles: Merge pull request #23974 from cleverca22/qtmultimedia...
<NixOS_GitHub>
[nixpkgs] neilmayhew opened pull request #23975: citrix-receiver: New upstream release (master...update/citrix-receiver) https://git.io/vyHH3
dhess2 has joined #nixos
<barrucadu>
So close to this working. Now ghci can see the extra packages, but mueval can't. Hmm
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vyHHC
<NixOS_GitHub>
nixpkgs/master cc012b2 Vincent Laporte: ocamlPackages.functoria: init at 2.0.2...
Rizy has quit [(Read error: Connection reset by peer)]
mizu_no_oto has joined #nixos
griff_ has quit [(Quit: griff_)]
dhess2 has quit [(Ping timeout: 258 seconds)]
<barrucadu>
Problem solved: mueval doesn't have the NIX_GHC* environment variables set. Copying those from the ghc wrapper script and exporting them before calling mueval makes things work.
<tywkeene>
barrucadu: good job, doing god's work son
<barrucadu>
tywkeene: I thought God was a Lisp user, not a Haskeller? :p
griff_ has joined #nixos
<tywkeene>
barrucadu: God recognizes all languages based on his word
ilyaigpetrov has joined #nixos
danharaj has quit [(Ping timeout: 260 seconds)]
digitalmentat has quit [(Ping timeout: 246 seconds)]
<barrucadu>
Sweet, everything works. I have successfully nixed my irc bot, now hopefully I'll stop accidentally breaking its environment.
ryanartecona has quit [(Quit: ryanartecona)]
<contrapumpkin>
you talking about multiple LTS versions?
<tywkeene>
nixed sounds like a bad word in that context lmao
<contrapumpkin>
oh I was scrolled back, sorry
<dhess>
contrapumpkin: I was
systemfault has quit [(Quit: Bye!)]
danharaj has joined #nixos
dbmikus has joined #nixos
griff_ has quit [(Quit: griff_)]
eacameron has joined #nixos
dbmikus has quit [(Ping timeout: 240 seconds)]
Rizy has joined #nixos
Rizy has quit [(Quit: Rizy)]
mog has quit [(Ping timeout: 240 seconds)]
mog has joined #nixos
cgdub has joined #nixos
d762b440__ has quit [(Ping timeout: 258 seconds)]
hexagoxel has quit [(Ping timeout: 260 seconds)]
cgdub has quit [(Ping timeout: 264 seconds)]
hexagoxel has joined #nixos
sellout- has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Read error: Connection reset by peer)]
filterfish has joined #nixos
eacameron has quit [(Remote host closed the connection)]
danharaj has quit [(Ping timeout: 260 seconds)]
jsgrant- has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[at]jsgrant.io & I'll try to get back to you within 24 hours.)]
eacameron has joined #nixos
jsgrant- has joined #nixos
dhess2 has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
hexagoxel has quit [(Ping timeout: 260 seconds)]
dhess2 has quit [(Ping timeout: 256 seconds)]
hexagoxel has joined #nixos
mguentner has quit [(Quit: WeeChat 1.7)]
filterfish has quit [(Ping timeout: 264 seconds)]
<adelbertc>
anyone here have syntax highlighting and stuff setup for Vim to edit *.nix files ?
<c74d>
adelbertc: I thought that was installed by default
<adelbertc>
c74d: is it? if so my (neo)vim isn't picking it up
<adelbertc>
though i'm also using Plug to manage vim plugins
<c74d>
oh, it might not be installed by default for Neovim
<tywkeene>
I have syntastic, haven't done anything specific to nix files though
<adelbertc>
hmm
<adelbertc>
perhaps its installed by default on NixOS
<adelbertc>
im running Nix on Mac OS
<c74d>
ah
<c74d>
is your Neovim from Nix?
<tywkeene>
that's your problem right there, it aint got no gas in it
<adelbertc>
c74d: yep
cgdub has joined #nixos
griff_ has joined #nixos
proteusguy has joined #nixos
proteus-guy has joined #nixos
proteusguy has quit [(Ping timeout: 240 seconds)]
exarkun has quit [(Read error: Connection reset by peer)]
griff_ has quit [(Quit: griff_)]
nekroze has joined #nixos
justanotheruser has joined #nixos
sivteck has joined #nixos
justan0theruser has quit [(Ping timeout: 260 seconds)]
_deepfire has quit [(Ping timeout: 258 seconds)]
sivteck has quit [(Read error: Connection reset by peer)]
exarkun has joined #nixos
Havvy has joined #nixos
<nekroze>
It appears that there is a module and package for nagios but not nrpe, has anyone managed to package nrpe or is it part of the nagios plugins package?
<eacameron>
I'm tempted to use this to import *some* names but not all: with with pkgs; { inherit runCommand; };
<eacameron>
But the double "with" feels...awkward.
<simpson>
Does that even work?
dhess2 has joined #nixos
<eacameron>
simpson: Yes
tippenei1 is now known as tippenein
_deepfire has joined #nixos
dhess2 has quit [(Ping timeout: 240 seconds)]
dhess has quit [(Ping timeout: 246 seconds)]
hexagoxel has quit [(Ping timeout: 258 seconds)]
stepcut has quit [(Ping timeout: 240 seconds)]
hexagoxel has joined #nixos
mexisme2 has joined #nixos
mexisme has quit [(Read error: Connection reset by peer)]
jsgrant- has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[at]jsgrant.io & I'll try to get back to you within 24 hours.)]
filterfish_ has quit [(Ping timeout: 258 seconds)]
dbmikus has quit [(Ping timeout: 264 seconds)]
<adfaure>
Hello, I am trying to configure a service (Hound), so I added the folowing lines into my configuration.nix (http://pastebin.com/WpWrGSVr). But when I try to do rebuild_switch I have error: undefined variable 'services'. Can you help me please ?
<NixOS_GitHub>
[nixpkgs] peterhoeg opened pull request #23978: terraform: use generic builder and add 0.9.0 (master...u/tf) https://git.io/vyQfc
<NixOS_GitHub>
[nixpkgs] peterhoeg created u/tf (+1 new commit): https://git.io/vyQf4
<NixOS_GitHub>
nixpkgs/u/tf 389423b Peter Hoeg: terraform: use generic builder and add 0.9.0
ericsagnes has quit [(Ping timeout: 246 seconds)]
<NixOS_GitHub>
[nixpkgs] peterhoeg force-pushed u/tf from 389423b to 1da6367: https://git.io/vymv4
<NixOS_GitHub>
nixpkgs/u/tf 1da6367 Peter Hoeg: terraform: use generic builder and add 0.9.0
JagaJaga has joined #nixos
<NixOS_GitHub>
[nixpkgs] peterhoeg closed pull request #23978: terraform: use generic builder and add 0.9.0 (master...u/tf) https://git.io/vyQfc
proteus-guy has quit [(Ping timeout: 260 seconds)]
<sphalerite>
adfaure: is this at the top level of your configuration.nix?
<NixOS_GitHub>
[nixpkgs] peterhoeg force-pushed u/tf from 1da6367 to 3506036: https://git.io/vymv4
<NixOS_GitHub>
nixpkgs/u/tf 3506036 Peter Hoeg: terraform: use generic builder and add 0.9.0
<NixOS_GitHub>
[nixpkgs] peterhoeg deleted u/tf at 3506036: https://git.io/vyQfV
<adfaure>
Helloe sphalerite,yes this is the /etc/nixos/configuration.nix (I am running on nixos)
<adfaure>
Okay, it seems to works with config.services.hound.home
<NixOS_GitHub>
[nixpkgs] peterhoeg opened pull request #23979: terraform: use generic builder and add 0.9.0 (master...u/tf) https://git.io/vyQfw
<jophish>
I have some code which wants me to do horrible things like `npm install`. Does anyone know of any example code which might help me use nix to build this code?
proteus-guy has joined #nixos
eacameron has quit [(Ping timeout: 256 seconds)]
<NixOS_GitHub>
[nixpkgs] peterhoeg closed pull request #23890: kmod: 23 -> 24 and update kmod-blacklist-ubuntu to zesty (master...u/kmod) https://git.io/vyXd5
<NixOS_GitHub>
[nixpkgs] peterhoeg pushed 4 new commits to master: https://git.io/vyQJf
<NixOS_GitHub>
nixpkgs/master 0c262a6 Peter Hoeg: kmod-blacklist-ubuntu: 9.3 -> 22.1
<NixOS_GitHub>
nixpkgs/master 605ee9e Peter Hoeg: kmod-blacklist-ubuntu: do not blacklist i2c_i801
<NixOS_GitHub>
nixpkgs/master 89724f1 Peter Hoeg: kmod: 23 -> 24
takle has quit [(Ping timeout: 264 seconds)]
nschoe has joined #nixos
ericsagnes has joined #nixos
dhess2 has quit [(Ping timeout: 258 seconds)]
scealiontach has quit [(Ping timeout: 246 seconds)]
marusich has quit [(Ping timeout: 264 seconds)]
marusich has joined #nixos
JagaJaga has quit [(Ping timeout: 268 seconds)]
takle has joined #nixos
takle has quit [(Remote host closed the connection)]
<sphalerite>
jophish: I know there are two different npm2nixs and a node2nix... Not much more though
<jophish>
yeah, I've tried fiddling with them before without success :)
<FRidh>
simpson: typically you put your packages in an environment with `python.withPackages`. If you want to add any additional packages (like optional ones) you can do so. For the packages themselves we typically go for a minimal or recommended set of dependencies.
<sphalerite>
oh, ok
<jophish>
sphalerite: It seems as though I can run my program with `electron .` so nix-build -A electron seems to be working
<jophish>
hopefully I won't require any extra npm things if I use ghcjs to generate things
<sphalerite>
ah ok
<NixOS_GitHub>
[nixpkgs] peterhoeg opened pull request #23983: kmod: 23 -> 24 and update kmod-blacklist-ubuntu to zesty (release-17.03...u/kmod_stable) https://git.io/vyQUb
periklis has joined #nixos
<sphalerite>
but given the amount of sttributes in nodePackages, I'm guessing it's still an only slightly solved problem
hamishmack has quit [(Quit: hamishmack)]
<FRidh>
simpson: but there is no way to mention the optional packages. What one could do is explicitly add options for including those dependencies. In my opinion that's not worth the effort, but in the end that's up to the maintainer.
<simpson>
FRidh: Considering the value of e.g. pythonPackages.tahoe-lafs.withExtras [ "tor" "i2p" ];
dbmikus has quit [(Ping timeout: 240 seconds)]
<simpson>
It'd still be manually maintained, but there could at least be a standard way of expressing it.
dbmikus has joined #nixos
<FRidh>
simpson: in `python-packages.nix` there's no standard form for functions that are called
<simpson>
FRidh: Okay, thanks.
<simpson>
I guess I'll sleep on it. Night.
ixxie has joined #nixos
<FRidh>
although I could imagine agreeing on something like withExtras which is a set where the identifier matches that used in setup.py and the values are lists with dependencies.
dbmikus has quit [(Ping timeout: 240 seconds)]
hamishmack has joined #nixos
<FRidh>
Hydra is stuck again
thc202 has joined #nixos
<jophish>
hmm, what is the state of ghcjs in nixpkgs
<jophish>
looks to be broken :(
dhess has joined #nixos
<sphalerite>
How long does webkit take to build? >_>
chrch has joined #nixos
goibhniu has joined #nixos
<chrch>
hello, I'm looking to install a haskell package (available on hackage) which is not present in haskellPackages, how should I proceed to install it system wise wide with nix?
<LnL>
yeah the nix pills are also very nice, for some of the more advanced concepts
dbmikus has joined #nixos
<chrch>
thanks!
tv1 has joined #nixos
derjohn_mob has quit [(Ping timeout: 256 seconds)]
<nwspk>
How do I get the spell checking working in LibreOffice? It should use Hunspell, which I installed with a dict, but this didn't do the trick. Furthermore the hunspell-program doesn't even find the dictionary
<nwspk>
I'm having also the same issue with not finding aspell-dicts btw
tv has quit [(Ping timeout: 246 seconds)]
dbmikus has quit [(Ping timeout: 264 seconds)]
jensens has joined #nixos
<NixOS_GitHub>
[nix] aschmolck opened pull request #1280: Convert short nix options to long ones (master...short-options-to-long-ones) https://git.io/vyQtE
<sphalerite>
qknight: there's a problem with the SSL cert on nixcloud.io — it doesn't include www.nixcloud.io, which firefox sometimes tries to go to
<icetan>
nwspk: I had to symlink in the aspell directory from . nixprofile after nix-env -i
<nwspk>
icetan: which aspell directory? the one in the /nix/sotre/?
<nwspk>
and how should the symlink be named?
matumental has joined #nixos
<icetan>
nwspk: you can symlink the latest one you installed by taking it from ~/.nixprofile, I'm on my phone right now but I can paste the exact paths in a moment
filterfish_ has joined #nixos
<matumental>
how should I chmod a file in a package? qemu-bridge-helper in qemu needs u+s set, adding/overriding 'chmod u+s $out/libexec/qemu-bridge-helper' to postInstall seems to do nothing?
__Sander__ has joined #nixos
<nwspk>
icetan: I'm not really sure what you mean and would be very happy if you'd post your steps
<nwspk>
Thanks in advance (:
<manveru>
matumental: you need security.wrappers for that
<matumental>
thats looks like the ticket, awesome. Thanks manvera & LnL
dhess2 has joined #nixos
<matumental>
yup, that worked perfectly. Thanks a lot!
uralbash has left #nixos []
bennofs has quit [(Ping timeout: 258 seconds)]
<icetan>
nwspk: OK, now I'm at my computer
<sphalerite>
I never know whether or not to use the --unpack flag on nix-prefetch-url, and usually end up using it twice because I always get it wrong. Does anyone know how to work out whether to use it or not?
<NixOS_GitHub>
[nixpkgs] rht opened pull request #23985: zcash: reinit at 1.0.7 (master...zcash) https://git.io/vyQYw
<icetan>
so I just did: echo data-dir $HOME/.nix-profile/lib/aspell > ~/.aspell.conf
<nwspk>
icetan: wow~ that was quicker than expected
<icetan>
no symlink
<nwspk>
icetan: worked! thanks a lot
<icetan>
don't know if this helps your problem with hunspell and so on, but you might be able to do something similar
dhess2 has quit [(Ping timeout: 240 seconds)]
freusque has quit [(Ping timeout: 258 seconds)]
<NixOS_GitHub>
[nixpkgs] FRidh force-pushed python-wip from 03605ac to 74f25ad: https://git.io/vzaOS
<NixOS_GitHub>
nixpkgs/python-wip 9c3c22f Frederik Rietdijk: Python: redo setuptools bootstrapping
<NixOS_GitHub>
nixpkgs/python-wip 181d714 Frederik Rietdijk: bootstrapped-pip: remove unnecessary dependencies
<NixOS_GitHub>
nixpkgs/python-wip 87c08cb Frederik Rietdijk: pythonPackages.setuptools: pass --no-dependencies...
eacameron has joined #nixos
dbmikus has joined #nixos
eacameron has quit [(Ping timeout: 256 seconds)]
dbmikus has quit [(Ping timeout: 264 seconds)]
mg_ has quit [(Ping timeout: 256 seconds)]
derjohn_mob has joined #nixos
[0x4A6F] has quit [(Ping timeout: 240 seconds)]
[0x4A6F] has joined #nixos
freusque has joined #nixos
mg_ has joined #nixos
ixxie has quit [(Ping timeout: 260 seconds)]
matumental has quit [(Ping timeout: 260 seconds)]
freusque has quit [(Read error: Connection reset by peer)]
freusque has joined #nixos
<NixOS_GitHub>
[nixpkgs] lheckemann opened pull request #23986: renpy: mark as broken (master...renpy-broken) https://git.io/vyQZW
abcrawf has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vyQ8d
<NixOS_GitHub>
nixpkgs/master 14a3412 Michael Raskin: nixos: tests: firefox: make more comprehensive...
<NixOS_GitHub>
nixpkgs/master f9fb38f Michael Raskin: Merge pull request #23924 from 7c6f434c/improve-firefox-test...
<Mic92>
gchristensen: do you have a blueprint of your stickers? I would like to make new one.
<gchristensen>
a new design, or a new printt?
<Mic92>
gchristensen: new print
<Mic92>
For conferences
hexagoxel has quit [(Ping timeout: 260 seconds)]
abcrawf has joined #nixos
<gchristensen>
Mic92: the big one or little one or both?
hexagoxel has joined #nixos
Rizy has joined #nixos
<Mic92>
gchristensen: probably both, though the smaller ones are more popular.
<gchristensen>
Mic92: https://www.stickermule.com/en/user/1070778455/stickers here they both are, expensive if you buy 1, but if you buy 50 or 100 they're much cheaper, I don't mark these up at all, so it'd be the same price as if I sent you the designs (which I could probably do if you'd rather, but I'd have to dig around for them)
<FRidh>
Shall we merge master and staging into each other? There's a mass rebuild on both going on it seems.
<gchristensen>
FRidh: I can cancel jobs if you want to cross-merge
mogria has joined #nixos
<FRidh>
gchristensen: I suppose it would then take at least another 2 days before we could get a nixpkgs channel update
<NixOS_GitHub>
[nixpkgs] vcunat pushed 1 new commit to staging-17.03: https://git.io/vyQBL
<NixOS_GitHub>
nixpkgs/staging-17.03 df5a471 Michael Raskin: Merge pull request #23924 from 7c6f434c/improve-firefox-test...
<gchristensen>
I thought it was much faster now?
<joachifm>
nixos-unstable is 12 days old or so at this point ...
dhess2 has joined #nixos
digitalmentat has joined #nixos
<FRidh>
the macs don't seem to be building anything
<gchristensen>
:(
<joachifm>
my impression is that the build farm has been struggling a bit. yesterday it was entirely idle (no idea for how long)
<gchristensen>
I think you're right
<gchristensen>
I wonder if aarcch64 has anything to do with this. niksnut?
<joachifm>
wrt to the relase it'd be awesome if it could churn out new channels reliably
<wrl>
is there a way to set the console font from configuration.nix? got a hidpi screen and the text is mad small
<wrl>
google's not turning anything up
<makefu>
i18n.consoleFont = "Lat2-Terminus16";
pallav33 has joined #nixos
<makefu>
make sure to set fonts.fonts = [ pkgs.terminus_font ]; as well
<makefu>
or whatever font you want to use
i_rony|nb has joined #nixos
pallav33 has quit [(Remote host closed the connection)]
griff_ has joined #nixos
pallav33 has joined #nixos
pallav33 has quit [(Client Quit)]
pallav33 has joined #nixos
pallav33 has quit [(Client Quit)]
pallav33 has joined #nixos
pallav33 has quit [(Remote host closed the connection)]
pallav33 has joined #nixos
pallav33 has quit [(Remote host closed the connection)]
pallav33 has joined #nixos
<exarkun>
What does dockerTools.buildImage's `fromImage` support do at the Docker level?
pallav33 has quit [(Remote host closed the connection)]
derjohn_mob has quit [(Ping timeout: 268 seconds)]
<exarkun>
or maybe I should be looking at fromImageName...
pallav33 has joined #nixos
justbeingglad has joined #nixos
<exarkun>
can I get buildImage to build an image that's layered on top of another image built by an earlier buildImage?
spinus has joined #nixos
k2s has joined #nixos
k2s has quit [(Client Quit)]
<exarkun>
oh yea okay fromImageName seems to do something like what I want
eacameron has joined #nixos
pallav has quit [(Quit: pallav)]
pallav33 is now known as pallav
i_rony|nb has quit [(Ping timeout: 260 seconds)]
pallav has quit [(Quit: pallav)]
eacameron has quit [(Ping timeout: 240 seconds)]
pallav has joined #nixos
k2s has joined #nixos
k2s has quit [(Remote host closed the connection)]
katyucha has quit [(Quit: leaving)]
ravloony has joined #nixos
<georges-duperon>
Hi, I'm trying to debug a nix package build (it fails with a missing dependency, but doesn't say which, so I want an interactive shell to peek around).
tommyangelo_ has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub>
[nixpkgs] 7c6f434c pushed 2 new commits to master: https://git.io/vyQz0
<NixOS_GitHub>
nixpkgs/master b4fd04c Michael Raskin: pygame_sdl2: init at 6.99.10.1227
<NixOS_GitHub>
nixpkgs/master 8388cb8 Michael Raskin: renpy: 6.17.6 -> 6.99.12.4; still a strange mistake on launch
<goibhniu>
hi georges-duperon, are you using nix-shell?
<georges-duperon>
I tried setting configureScript = "/tmp/dummyScript.sh"; where dummyScript reads and executes commands from a fifo (thereby giving me a poor man's interactive shell), but it is ignored as this package uses CMake
<georges-duperon>
I tried nix-build -K pkgs/applications/graphics/solvespace/default.nix, but I get error: cannot auto-call a function that has an argument without a default value (‘stdenv’)
<georges-duperon>
goibhniu: No, I'm using nix-env -f $NIXPKGS -iA solvespace, where $NIXPKGS points to my customized git clone of https://github.com/nixos/nixpkgs.git
<goibhniu>
I suspect nix-shell is exactly what you're looking for
<goibhniu>
you can then step through the build phases etc.
mudri has joined #nixos
justbeingglad has left #nixos []
<georges-duperon>
goibhniu: Ok, thanks. Any pointer to how that invocation should look like? I'm googling it, and tried at random nix-shell -f $NIXPKGS -p solvespace, but that doesn't seem to be it.
<gchristensen>
joachifm: what has happened to grsec? I hear something changed
<joachifm>
gchristensen: can you elaborate?
<gchristensen>
something about no longer providing test patchces
_deepfire has joined #nixos
<joachifm>
gchristensen: hrm, that would imply no public releases at all; I've not heard anything about that
<gchristensen>
joachifm: yikes :/ ok I hope I'm wrong
<goibhniu>
there's also some stuff in the nixpkgs manual, but it seems quite haskell specific
spinus has quit [(Quit: Leaving.)]
<joachifm>
gchristensen: they stopped providing stable patches for free a while back, but that was ostensibly due to being ripped off by various commerical vendors from what I could understand. not sure why they'd stop providing test patches; hope that's not the case
derjohn_mob has joined #nixos
<georges-duperon>
goibhniu: Thanks a lot, that seems to work. The crucial invocation being nix-shell $NIXPKGS -A solvespace, where solvespace is the package to build. Now adding this to ~/notes/nixos-tricks.txt :)
<goibhniu>
excellent :D
dhess2 has joined #nixos
<icetan>
In hydra if I select "Previous Hydra evaluation" as an input, what should i expect the injected value to be?
dbmikus has joined #nixos
<icetan>
I guess the jobset as a dict?
<icetan>
but when i try to call it i get the error "attempt to call something which is not a function but a string, at ..."
<icetan>
and my code is: inputJobset.build { inherit system; }
<icetan>
where build is a job in the jobset
griff_ has quit [(Quit: griff_)]
sellout- has quit [(Ping timeout: 264 seconds)]
eacameron has joined #nixos
dhess2 has quit [(Ping timeout: 260 seconds)]
MaxxaM has joined #nixos
FRidh has quit [(Remote host closed the connection)]
<georges-duperon>
Elwyn: Then I can simply do nix-env -f "$NIXPKGS" -iA some-package
<georges-duperon>
Elwyn: no idea if it's stable, I'll let others here answer. I'm using 16.09, but on some occasions, I install recent / customized versions of a few packages using this technique. The advantage is that I don't need to do a full-sytem upgrade (if it ain't broken, don't fix it) just to get one new/updated/customized package.
<Elwyn>
thanks for the suggestion, georges-duperon
<Profpatsch>
globin: Do you monitor all pushes to master for stuff to backport?
<Profpatsch>
(just curious)
<globin>
Profpatsch: yes I go through all commits when fetching
<Profpatsch>
Ah, k.
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vyQPA
<NixOS_GitHub>
nixpkgs/master 3728143 Pascal Bach: prometheus-unifi-exporter: init at 0.4.0
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to release-17.03: https://git.io/vyQXa
<NixOS_GitHub>
nixpkgs/release-17.03 ca4ae43 Pascal Bach: prometheus-unifi-exporter: init at 0.4.0...
griff_ has quit [(Quit: griff_)]
<gchristensen>
Profpatsch: what does "T. systemd fanboi" mean?
mudri has quit [(Ping timeout: 268 seconds)]
jsgrant has joined #nixos
<warbo>
hi, I'm trying to make a derivation for https://github.com/whyrusleeping/ipns-pub which is written in Go and uses Gx to fetch dependencies; I've copied what (few) other Go/Gx packages seem to do, but am getting 'cannot find package "gx/ipfs/..." in any of:' errors
<warbo>
I've got basically no experience of Go, so am wondering if anyone here might have some tips?
<Profpatsch>
gchristensen: T. is an ironic way to sign messages, coming from 4chan and/or Reddit.
Elwyn has quit [(Remote host closed the connection)]
<Profpatsch>
I was not sure if it’s t. or T., it’s hard to google for instances. :)
<Profpatsch>
It’s far off in meme-land I’m afraid. :)
<gchristensen>
ok that is fine but what did _you_ mean
<Profpatsch>
I support their cause, but I’m too much of a systemd fanboy to work on it.
<gchristensen>
ah ok :) thank you
<Profpatsch>
np :P
stepcut has quit [(Remote host closed the connection)]
<Profpatsch>
(I’m not very deep into chan culture myself, I turn to it for comedic effect sometimes)
<Profpatsch>
(the bits I picked up over the last years anyway)
stepcut has joined #nixos
trizinix has quit [(Quit: Ex-Chat)]
stepcut has quit [(Remote host closed the connection)]
stepcut has joined #nixos
MercurialAlchemi has quit [(Ping timeout: 258 seconds)]
<philipp[m]1>
The main thing I got from this suckless mail is: People are using tox? For real stuff?
<philipp[m]1>
I mean: It's cool that this is possible now.
stepcut has quit [(Remote host closed the connection)]
mkoenig has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] joachifm pushed 3 new commits to master: https://git.io/vyQSA
<NixOS_GitHub>
nixpkgs/master 6d25f77 Jan Malakhovski: nixos: tor: add enableGeoIP
<NixOS_GitHub>
nixpkgs/master a047825 Jan Malakhovski: nixos: torify: disable by default, add some documentation as of why...
<NixOS_GitHub>
nixpkgs/master 01f8e21 Joachim F: Merge pull request #23962 from oxij/nixos/tor-sec...
thc202 has quit [(Ping timeout: 260 seconds)]
pdobrogost has joined #nixos
exi has joined #nixos
FRidh has joined #nixos
danharaj has joined #nixos
marsam has joined #nixos
trizinix has joined #nixos
dhess2 has joined #nixos
mogria has quit [(Quit: Leaving)]
<exarkun>
urgh. dockerTools.buildImage { fromImageName = "image that does not exist"; } appears not to be an error of any sort :/
<exarkun>
it's just silently equivalent to not having a base image?
marsam has quit [(Remote host closed the connection)]
<exarkun>
or I just totally don't understand the buildImage docs
marsam has joined #nixos
<manveru>
you don't need fromImageName if you don't have one
<manveru>
plus i think it's been broken for months
<exarkun>
:(
<manveru>
fromImage works
<manveru>
but nobody has updated the pulling for the new docker API yet, afaicr
dhess2 has quit [(Ping timeout: 246 seconds)]
<exarkun>
How does fromImage work? I'm about to try `fromImage = result-of-calling-buildImage;` - is that how it's meant to be used?
<manveru>
yes
<manveru>
it takes another buildImage as value
<exarkun>
Okay. Thanks.
<exarkun>
Seems to be doing some useful stuff.
marsam has quit [(Read error: Connection reset by peer)]
MP2E has joined #nixos
marsam has joined #nixos
<exarkun>
are nixpkgs/pkgs/build-support/docker/pull.{nix,sh} the things that are broken wrt the new Docker API?
<manveru>
yes
trizinix has quit [(Read error: Connection reset by peer)]
<exarkun>
pull.sh would probably be easier to write in another language. eg one with a Docker client library... Would there be objections to rewriting it in something else, Haskell or Python or whatever?
<gchristensen>
I have working code that "fixes" it but it is extremely extremely bad and I don't want to share it, b/c I don't want to be associated with it
<gchristensen>
someone else here said they had better code they were trying to open source from their work
trizinix has joined #nixos
ixxie has joined #nixos
phreedom has quit [(Quit: No Ping reply in 180 seconds.)]
trizinix has quit [(Read error: Connection reset by peer)]
taktoa has quit [(Ping timeout: 240 seconds)]
trizinix has joined #nixos
<trizinix>
I'm trying to package a python app that uses Autotools. Now configure finds the python modules and building the package succeeds, but when I run it, it fails with "module not found". My guess would be that $PYTHONPATH gets modified at build time but not at runtime. What's the best way to have $PYTHONPATH include all dependencies at run time?
<bennofs>
trizinix: is the package intended to be used as a library or as an executable?
<trizinix>
executable
<FRidh>
trizinix: use `buildPythonApplication` and pass `format = "other";" That should wrap your programs.
phreedom has joined #nixos
<bennofs>
FRidh: o.o what does format do?
<trizinix>
ok, will try that, thank a lot :)
thc202 has joined #nixos
<exarkun>
bennofs: eg `format = "wheel";`
<exarkun>
but I forget what "other" does.
<exarkun>
turn off all of the stuff that thinks it knows how to install a python package?
<FRidh>
"other" is for when you define your own build and install phases
<FRidh>
but still want the wrapping and such
<bennofs>
How's progress on autogenerating python packages for the easy cases at least?
freusque has joined #nixos
<exarkun>
Meh. I guess my journey of `fromImage` discovery was for nothing. It still builds the image repeatedly even if I factor out the contents to a separate object...
<exarkun>
Perhaps it's even worse ... now my Python code gets installed and tested twice.
<FRidh>
bennofs: I haven't looked at that anymore. pypi2nix should work just fine
<NixOS_GitHub>
[nixpkgs] fadenb opened pull request #23990: [WIP] openssh_hpn: build current version (master...openssh_hpn) https://git.io/vyQhf
phreedom has quit [(Ping timeout: 246 seconds)]
<eacameron>
How do I resize the harddrive on the VirtualBox demo appliance?
FRidh has quit [(Quit: Konversation terminated!)]
acowley_away is now known as acowley
phreedom has joined #nixos
Elwyn has quit [(Remote host closed the connection)]
<NixOS_GitHub>
[nixpkgs] globin pushed 1 new commit to master: https://git.io/vyQhN
<NixOS_GitHub>
nixpkgs/master 427edf1 Robin Gloster: robomongo: mark as broken
reinzelmann has quit [(Quit: Leaving)]
dhess2 has joined #nixos
Elwyn has joined #nixos
<frigate_freedom>
Hello, guys!
<frigate_freedom>
Another silly question from me: everything was OK, but now, when I trying to make nixos-rebuild it gives error: cannot coerce a function to a string, at /nix/var/nix/profiles/per-user/root/channels/
<Profpatsch>
Then you can add that e.g. to the init script option that gets called on system switch.
<dhess>
I'm trying to deploy to an arm7vl "none" target in NixOps for the first time, and I'm getting this error: "/nix/var/nix/profiles/system/bin/switch-to-configuration: line 3: use: command not found"
<dhess>
anyone seen that before?
<dhess>
The perl referred to in the switch-to-configuration script is present on the target
mt has joined #nixos
<dhess>
oh actually it's broken, though :(
<dhess>
-bash: /nix/store/pbs5sfnp9bfv27vz9m7h64w3zgkavfqd-perl-5.22.2/bin/perl: cannot execute binary file: Exec format error
<dhess>
roygbiv has quit [(Quit: ™)]
<gchristensen>
dhess: have you told nixops that the target system is arm7vl?
<dhess>
gchristensen: No. I asked on nix-dev about that and got no response :( Also I looked in both the NixOS and NixOps manuals and found no reference to a setting to do that.
<gchristensen>
ah, well so it isn't specific to nixops
<dhess>
So I assumed it would figure it out when I did the first deploy and it added the host's SSH keys
<dhess>
gchristensen: so how do I do that?
<gchristensen>
I'm looking it up ;)
deepwater has joined #nixos
<gchristensen>
nixpkgs.system = "????"; not sure what to put there, though. on armv8, it is aarch64-linux
<dhess>
it's odd because I thought of that last night when deploying (took forever!), and I checked the executables that "deploy" was pushing to the target. They were 32-bit ARM as expected
<dhess>
but that perl binary referred to in the switch-to-configuration script is x86-64
cryzed has joined #nixos
<NickHu>
I'm trying to disable the systemd-rfkill service because I'm using tlp. Is the 'nixos way' just to do a systemctl disable?
<dhess>
gchristensen: ugh, so I added that to that target's config and now I'm getting the dreaded "error: assertion failed at /home/dhess/git/dhess-nixos/nixpkgs/pkgs/os-specific/linux/kernel/generic.nix:32:1" error
<NickHu>
gchristensen: Ah, thank you
<dhess>
I thought NixOps was smart enough to build that on the target
<cryzed>
So I already know about "allowUnfree" and "nix-env -qaP", however even after having set allowUnfree in my configuration it still won't list unfree packages, forcing me to search for them on GitHub directly. People keep talking about "don't show unfree packages _by default_" -- well I disabled this default and kind of expected niv-env to respect that setting. Am I still missing something?
<dhess>
but I guess I need to set up distributed builds now
<dhess>
maybe I'll re-install this arm7vl host now. I suspect it's pretty hosed :)
stepcut has joined #nixos
<cryzed>
no one?
ixxie has quit [(Ping timeout: 260 seconds)]
<gchristensen>
I don't know, sorry cryzed
<cryzed>
gchristensen, still thank you :)
<NixOS_GitHub>
[nixpkgs] ehmry pushed 2 new commits to master: https://git.io/vy7k3
<NixOS_GitHub>
nixpkgs/master 7196d16 Emery Hemingway: shapelib: init at 1.4.0
<NixOS_GitHub>
nixpkgs/master fa65cc0 Emery Hemingway: xaster: init at release 208
<alebatt>
I'm just discovering nix on osx, is there a way in a nix-shell to be root, as i could be in a docker container ?
<alebatt>
without using sudo of course
<chakerbenhamed>
thanks Profpatsch I **think** it works.
<kriztw>
cryzed: can you give an example of something you can't find?
<cryzed>
sublime/sublime3
<Profpatsch>
alebatt: You start the nix shell as root?
<Profpatsch>
Maybe su -c works as well.
<cryzed>
"$ nix-env -qaP | grep sublime" I'm running this, however there are no results. When simply adding sublime3 to my system configuration it works without issues when issuing a rebuild
<NickHu>
cryzed: You are running that without the dollar at the start right?
<kriztw>
cryzed: that works for me, my only guess is that it isn't set the right place in your confix.nix
<cryzed>
NickHu, of course, I added this to indicate that I run the command as a regular user
<kriztw>
allowUnfree that is
Supersonic112 has quit [(Ping timeout: 240 seconds)]
<cryzed>
"nixpkgs.config.allowUnfree = true;" is in my configuration.nix
<cryzed>
I have since issued a rebuild along with a switch
<kriztw>
cryzed: you need to put allowUnfree in .nixpkgs/configuration.nix
<cryzed>
Isn't that specific to the ad-hoc nix-env... oh-
<cryzed>
Yeah, I'm an idiot
<kriztw>
sorry, .nixpkgs/config.nix
<cryzed>
thank you
<kriztw>
:D np
<cryzed>
kriztw, works now. Thank you :)
<cryzed>
I had somehow assumed that nix-env would inherit the configuration.nix settings
derjohn_mob has quit [(Ping timeout: 240 seconds)]
<cryzed>
I actually read that, but I suppose I still got mixed up somewhere along the way. Probably not helping that I'm a completely new user :). Well I'm glad it's being looked at, FWIW adding a simple explicit default of false to .nixpkgs/config.nix and configuration.nix with a short comment explaining the flag seems like a sane idea
teknico1 has left #nixos []
<alebatt>
Profpatsch: no
__Sander__ has quit [(Quit: Konversation terminated!)]
<Profpatsch>
alebatt: no what?
adfaure has quit [(Remote host closed the connection)]
<alebatt>
Profpatsch: I don't start nix-shell as root
<Profpatsch>
alebatt: You don’t want to?
<Profpatsch>
Or su root -c doesn’t work?
<Profpatsch>
Have you tried it?
<alebatt>
i don't want to, or at school, i have no root access
<alebatt>
And i am currently working for exemple with RAW socket, so root is needed
<Profpatsch>
alebatt: If you have no root access, how do you think nix-shell can make you execute anything as root?
<Profpatsch>
It can’t. Because you have no root access.
<cryzed>
The documentation claims that: "When you first install NixOS, you’re automatically subscribed to the NixOS channel that corresponds to your installation source.". However when I run "$ nix-channel list" on my system I get an empty line as my output -- is this default now hidden? I assume it's the stable channel (16.09 was the installation medium)
<Profpatsch>
cryzed: sude nix-channel
<cryzed>
eh --list
<cryzed>
alright, thank you
<alebatt>
Same as docker,
<cryzed>
ah, so it is user-specific, I see -- thank you again
<Profpatsch>
cryzed: There is one profile per nix-build suer3
<Profpatsch>
*user
<Profpatsch>
The one for root is the one that the nixos-commands use.
<cryzed>
So nix-env for my local non-root user is still completely missing a channel -- would I run into issues when tring to install software using nix-env -i as that user?
<cryzed>
I guess I could try
<Profpatsch>
cryzed: You can just add a channel with nix-channel
_deepfire has quit [(Ping timeout: 240 seconds)]
<Profpatsch>
cryzed: But you should probably use NIX_PATH instead.
<cryzed>
Profpatsch, I know -- however I remember trying to install software locally as non-root and it worked despite having no channels configured
<Profpatsch>
Since nix-channel is the discouraged method (and will be removed in a bit)
<kriztw>
cryzed: it works without a channel, I always run nix-channel commands as root
<kriztw>
cryzed: so I don't somehow get my user and system environments out of sync
<cryzed>
Ah I see -- so regular users default to the os-channel I suppose
<cryzed>
Profpatsch, I'll check NIX_PATH
_deepfire has joined #nixos
dhess2 has joined #nixos
<cryzed>
Profpatsch, wouldn't not using the channel require me to build all packages myself?
<Profpatsch>
cryzed: You can put a channel in NIX_PATH
<cryzed>
You seem to suggest that I clone the nixpkgs repository of the channel i want and then add it to my NIX_PATH?
ravloony has quit [(Ping timeout: 260 seconds)]
<cryzed>
Oh, I see
<Profpatsch>
Should be in the manual.
<cryzed>
I
<cryzed>
Ill check, thanks and sorry
<NixOS_GitHub>
[nixpkgs] NickHu opened pull request #23991: tvheadend: fix typo in package description (master...tvheadend) https://git.io/vy7tF
<cryzed>
(it isn't, there's only a single unrelated mention of it)
i_rony|nb has joined #nixos
k2s has joined #nixos
nschoe has quit [(Quit: Program. Terminated.)]
chakerbenhamed has quit [(Quit: WeeChat 0.4.2)]
k2s has quit [(Client Quit)]
i_rony|nb has quit [(Ping timeout: 260 seconds)]
ryanartecona has joined #nixos
<cryzed>
Profpatsch, do you mean some other/newer version of the manual?
<cryzed>
kriztw, :) good to know -- I already really like the concept of Nix and NixOS
<cryzed>
I'm just trying it out in a virtualbox for now, build my ideal configuration and hopefully get as comfortable with it, as I'm with my current setup
<cryzed>
and then make the switch hopefully :)
<cryzed>
Am I wrong in thinking that the nix-channel "settings" feels somehow stateful? Depending on which channel you have enabled your configuration might behave differently, and the setting is not part of the configuration.nix file itself. Is this why nix-channel is about to be removed?
<cryzed>
or deprecated
<Profpatsch>
cryzed: Probably.
<cryzed>
I see
<Profpatsch>
It can be completely replaced by using the well-known NIX_PATH approach.
<Profpatsch>
So the horrible CLI goes away, too.
acarrico has quit [(Ping timeout: 240 seconds)]
ixxie has joined #nixos
<cryzed>
I'll read up on this more as you suggested, thank you
<Profpatsch>
You can even give a .tag.gz url in NIX_pATH
<bennofs>
cryzed: I have my configuration.nix create a symlink in /run/current-system/nixpkgs to the nixpkgs that was used to build the system. Then I use that in NIX_PATH, so nix-env will use the same nixpkgs
<bennofs>
(and also in ~/.nix-defexpr)
JagaJaga has joined #nixos
<bennofs>
it works quite well, in that I can just nixos-rebuild switch -I nixpkgs=/path/to/my/nixpkgs and whatever version I used there will be "sticky" for all future nix operations if that system gets activated
<cryzed>
bennofs, I'll copy what you just said into a text file, because as of now I'm missing quite a few chunks of information to really know what it all means or how I could accomplish that on my own.
<cryzed>
Thank you
periklis has quit [(Ping timeout: 264 seconds)]
<Profpatsch>
In the end those NIX_PATH entries are just “global arguments” to nix expressions.
<Profpatsch>
A convenience.
alebatt has quit [(Ping timeout: 258 seconds)]
ambro718 has joined #nixos
jsgrant- has quit [(Quit: Peace Peeps. o/ If you need me asap, message me at msg[at]jsgrant.io & I'll try to get back to you within 24 hours.)]
<cryzed>
Is it common for desktop users to use the unstable channel?
civodul has joined #nixos
marsam has quit [(Remote host closed the connection)]
<Nafai>
I've never ran anything other than unstable on my desktops / laptops
<cryzed>
Just checking if I'm shooting myself in the foot
tokudan has joined #nixos
trizinix_ has quit [(Quit: Ex-Chat)]
frigate_freedom has left #nixos []
JagaJaga has quit [(Ping timeout: 240 seconds)]
<cryzed>
I'm trying to do this: nix.nixPath = nix.nixPath + ["https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz"]; in my configuration.nix file. First I got the error that "nix" is undefined, so I assumed that I'd have to add it to the function signature? at the top of the file, so actually bind it to a name. That I did, however now I'm getting the error "attribute nix is missing" -- am I doing something dumb?
<cryzed>
oh nix is the default namespace I think
Elwyn has joined #nixos
mizu_no_oto has joined #nixos
Elwyn has quit [(Read error: Connection reset by peer)]
<NixOS_GitHub>
[nixpkgs] ttuegel opened pull request #23992: KDE Applications: 16.12.2 -> 16.12.3 (master...kde-applications-16.12.3) https://git.io/vy7ns
danielrf has joined #nixos
<HappyEnte>
Heyho :), could somebody help me out and try launching termite/urxvt/xterm with bash as default shell from a nix-shell and try whether auto completion still works?
marsam has joined #nixos
<cryzed>
ok, I give up -- how would I modify the NIX_PATH environment variable using my configuration.nix file?
dhess2 has joined #nixos
wangoe has joined #nixos
mg_ has joined #nixos
marsam has quit [(Remote host closed the connection)]
<jack[m]>
heh. I just realized that I can put my rpi3 ontop of my nix box, and plug an ethernet and usb cable into it and have an aarch64 build slave.
* jack[m]
was pondering using binfmt_misc and qemu to set supportedSystems on the nixOS box to be .. everythign.
pie__ has joined #nixos
JagaJaga has joined #nixos
froglegstew has quit [(Remote host closed the connection)]
dhess2 has quit [(Ping timeout: 256 seconds)]
froglegstew has joined #nixos
pmahoney has joined #nixos
willingc has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<pmahoney>
is there a stdenv for darwin that uses gcc (instead of llvm/clang) ?
marsam has joined #nixos
<copumpkin>
no
<copumpkin>
any reason you want that?
<copumpkin>
most darwin stuff assumes llvm, on the apple side
<hodapp>
I am extremely lazy. I am trying to find a way to nuke my NixOS box and reinstall from its configuration.nix without having to move the box across the building to where it can get at Ethernet and a monitor.
<copumpkin>
hodapp: I think obadz wrote something called nixos-lustrate
<copumpkin>
that does sort of that
<hodapp>
huh
<pmahoney>
copumpkin: sure. just trying to get something building on darwin (pdsh). its configure is explicitly looking for gcc (easy enought to set CC=cc), but it may also require libgcc_s, but i've no idea if that would just work (apparently not)
<hodapp>
other question: can I get configuration.nix to insert a file into /etc? I need a script there that a udev rule can run.
<copumpkin>
yes
<hodapp>
how does one go about that?
<copumpkin>
there's a module called etc
<hodapp>
O_O
<hodapp>
how did I miss this
<copumpkin>
look at environment.etc
<copumpkin>
but in general, I'd have your udev rule in the store
<copumpkin>
I'm generally wary of putting more things into etc
<hodapp>
in the store? how do you mean?
<copumpkin>
how are you adding the udev rule?
<hodapp>
services.udev.extraRules
<hodapp>
where RUN=/etc/RT5370.sh and that's the script I need
<hodapp>
that of course could be anyplace
<copumpkin>
RUN=${my-script}
<hodapp>
where my-script is what?
willingc has joined #nixos
<copumpkin>
where my-script = pkgs.writeScript "haha.sh" ''my script"
<hodapp>
oh, no environment.etc needed?
bennofs has joined #nixos
<copumpkin>
nope
<hodapp>
w00t, that's easy
<copumpkin>
:)
<hodapp>
alright, I might just go bring this box over here, nuke it, and bring the old configuration.nix et al. over
<hodapp>
see if that solves the CUPS issue that is making me want to chuck this thing out a window
IRCFReAK has joined #nixos
<cryzed>
Profpatsch, so I removed the unstable channel I added using nix-channels. Now I attempted to modify nix.nixPath in my configuration and manually added the line: "nixpkgs=https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz" to it, in hopes that this would prepend the unstable channel to the search path -- however that doesn't work, after attempting to --upgrade the system again I get various errors about missing nix search paths (the ones that got
<cryzed>
removed when removing the channel) -- so I'm a bit lost at the moment. Seems like the best solution right now is using the channel after all?
IRCFReAK has quit [(K-Lined)]
ryanartecona has quit [(Quit: ryanartecona)]
griff_ has joined #nixos
alx741 has quit [(Quit: alx741)]
<Profpatsch>
cryzed: You have to set it to
<Profpatsch>
in the environment variable
<Profpatsch>
e.g. for the user in ~/.profile or ~/.bashrc or wherever you set it.
<cryzed>
Profpatsch, oh I had hoped to "fix it" in my configuration hm
<Profpatsch>
cryzed: Nope, you have to give that from outsude.
<Profpatsch>
*outside
<Profpatsch>
That’s the invocation of your configuration
<cryzed>
then I don't see the advantage over using nix-channel currently hmm
<cryzed>
but I suppose it's just an implicit -I in the end
JagaJaga has quit [(Ping timeout: 240 seconds)]
IRCFReAK has joined #nixos
IRCFReAK has quit [(K-Lined)]
IRCFReAK has joined #nixos
dhess2 has joined #nixos
dhess2 has quit [(Remote host closed the connection)]
Troupal has quit [(Quit: Konversation terminated!)]
IRCFReAK has quit [(K-Lined)]
wangoe has quit [(Read error: Connection reset by peer)]
datz_ has quit [(Quit: Leaving)]
Supersonic112 has joined #nixos
<bendlas>
Hey, is anybody working on bringing systemd 233 to NixOS?
<gchristensen>
we only just got 232! what is new?
<bendlas>
I've tried to update it, but when finishing building, it says something about a circular reference in the output paths ....
i_rony|nb has joined #nixos
batdog has quit [(Remote host closed the connection)]
disasm has joined #nixos
acowley is now known as acowley_away
<disasm>
hey folks... quick question. I want to install nixos to a different disk (different filesystem as well). Is the iso/squashfs route the best way to go or is there another tool I can use to install nixos from a running nix system.
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
pi3r has joined #nixos
<bennofs>
disasm: I think you may be able to just run nixos-install from a running system?
<disasm>
oh... so I can just run generate config on different root, replace config with my active configuration, and then chroot and run nixos-install
batdog has joined #nixos
<hodapp>
copumpkin: excellent, this worked fine, thanks
justbeingglad has left #nixos []
Wizek_ has joined #nixos
<disasm>
it's running, thanks folks!
<hodapp>
next: can I get CUPS to do the CUPS thing, without me having to throw the printer out a window?
<hodapp>
we'll see.
<philipp[m]1>
hodapp: but isn't that the cups thing?
batdog has quit [(Remote host closed the connection)]
timor has joined #nixos
wangoe has joined #nixos
<cryzed>
Personally I always had the issue with CUPS and avahi, where it managed to discover an avahi .local address on the network, but then created the entry without the local suffix through the webinterface
<cryzed>
I could fix that by editing the input value of the form element using the browser's inspection tools
<cryzed>
not ideal, but hey
derjohn_mob has joined #nixos
timor has quit [(Ping timeout: 260 seconds)]
MP2E has quit [(Ping timeout: 260 seconds)]
<hodapp>
philipp[m]1: ....is this a trick question?
<hodapp>
okay. CUPS says the printer is shared... but is the printer actually shared?
batdog has joined #nixos
jsgrant_ has joined #nixos
odi__ has joined #nixos
jsgrant has quit [(Ping timeout: 256 seconds)]
<cryzed>
Pretty sure that depends on how you configure CUPS
<cryzed>
or well the printer within CUPS
<hodapp>
what do you think I'm trying to do?
<hodapp>
hm, again seeing "DNS-SD registration of "EPSON Stylus NX300 @ nixprint" failed: Not permitted" in journalctl
odi has quit [(Ping timeout: 246 seconds)]
odi_ has quit [(Ping timeout: 240 seconds)]
<hodapp>
and nothing in avahi-browse -a
odi has joined #nixos
pi3r has quit [(Ping timeout: 240 seconds)]
<cryzed>
I think you might need nssmdns?
<cryzed>
although it should be a dependency then
<hodapp>
I'll add "services.avahi.mssmdns = true"
<hodapp>
nssmdns, rather
<cryzed>
sounds correct
thc202 has quit [(Ping timeout: 258 seconds)]
<benley>
augghhhhhghgh x11 keyboard mapping stuff is driving me absolutely insane
<benley>
or maybe it's kde's fault, I don't even know
<hodapp>
still nothing. I'll try rebooting
<cryzed>
benley, what's the issue?
<cryzed>
hodapp, good luck
<benley>
cryzed: every time anything changes related to xinput or udev, my keyboard layout gets reset to the generic pc104 layout
<cryzed>
benley, did you add the desired layout as a custom entry in KDE's keyboard settings?
<cryzed>
if not, it might just decide to switch back to the default one
<cryzed>
i.e. move it to the first position>?
<hodapp>
"DNS-SD registration of "EPSON Stylus NX300 @ nixprint" failed: Not permitted" again
alx741 has joined #nixos
acarrico has joined #nixos
<cryzed>
hodapp, sorry I don't know then :(
Kendos-Kenlen has joined #nixos
<benley>
cryzed: checking - but I think it doesn't let me, because the layout I need isn't defined in whatever thing is required to make it show up in the list of available keyboard models
<hodapp>
no one knows, I am apparently the only person to ever see this error message anywhere on the Internet
<bennofs>
hodapp: andymandias ^^^^ was working with cups yesterday
<benley>
cryzed: I'm trying to use xkbModel = "chromebook"
<bennofs>
hodapp: I think he wrote somehing about avahi stuff
<cryzed>
benley, ah -- where would it get it from if it's not defined in the xkb symbol files?
<benley>
It is in the xkb symbol files
<cryzed>
then KDE should be able to display it
<cryzed>
Try selecting "Any language" and then Layout:
<benley>
I can run `setxkbmap -model chromebook -option` to get the layout set the way I want it, but nothing to do with Chromebook shows up in the keyboard layout kcm control panel
<cryzed>
are you using plasma5 or kde4?
<benley>
plasma5. One moment while I explore the layouts tab a bit more.
<cryzed>
benley, my custom layout is at the very bottom of the layout list, if that helps
<hodapp>
bennofs: that looks like it might be the same issue
<cryzed>
but it might also be in alphabetical order for you
<hodapp>
if this works, I should write a blog post about this because of how utterly useless that error message is for diagnosing anything
<cryzed>
and do that for evdev.xml, base.xml and also in evdev.lst and base.lst
<cryzed>
I know it's a pain, but I had also to go trough that when creating my own keyboard layout
<benley>
Got it, already did. Perhaps my problem is that the system is not using my modified version of the xkb rules.
MichaelRaskin has joined #nixos
<cryzed>
that might be. I am not 100% sure how Nix works yet, but it's possible that you would have to modify the xorg/xkb dependency pulled in by plasma5
<cryzed>
by creating your own package/version of it
<cryzed>
which then builds against that and creates a new version/hash of plasma5
<chakerbenhamed>
Hey, I am trying to learn nix expression. I read all nixpills, and watched most of Nixcon-2015's videos. But still didn't understand it quit well. Is there any other interesting resources?
<gchristensen>
yowz, benley!
<andymandias>
hodapp: from what I remember avahi.publish.userServices = true; was the solution to that particular problem
<andymandias>
hodapp: the "DNS-SD registration" problem that is
<cryzed>
benley, but yeah that looks like what you want
<hodapp>
andymandias: it is not working out that way for me for some reason :(
<cryzed>
benley, I would just put this patch in a separate file that lives next to configuration.nix and import it at the top to keep it readable
<cryzed>
benley, the xkbDir probably needs to contain a full set of assembled xkb settings -- I'm not sure how you would go about that, except somehow keep a local copy up-to-date in your home dir
<benley>
I just copied the whole thing to see if I could get something working.
<benley>
once I work out a usable patch I'll hack it into the main package or something, and maybe try to submit it upstream if I can figure out how.
<MichaelRaskin>
ikwildrpepper: <ndowens08> sigh, wish I could merge my own updates :)
<cryzed>
benley, that would be awesome, since I'll be having the same issue sooner or later
<andymandias>
hodapp: I think you need avahi.publishing.enable = true; as well? not sure if userServices = true; forces that true or not
<hodapp>
andymandias: I'm trying that now
<hodapp>
andymandias: that's what it was, I'm pretty sure.
<andymandias>
hodapp: glad to hear it
<benley>
cryzed: thanks for your help, it's good to have some confirmation that I'm on the right track :)
scealiontach has quit [(Ping timeout: 256 seconds)]
<hodapp>
huzzaaaaah, next step: Google Cloud Print, maybe
<cryzed>
benley, although I'm a bit confused. In that linked blog post the author claims that overriding the xkbConfig in configuration.nix causes all packages that depend on that variable to be recompiled -- when you patch files of the xorg package in the manner that paste described, aren't you effectively doing the same? All packages would then have to depend on that new modified xorg package -- maybe I'm missing something
<cryzed>
benley, and of course :)
<hodapp>
oh, "Getting printer information failed" now on the client side... but this I think I've seen before
IRCFReAK has joined #nixos
takle has quit [(Remote host closed the connection)]
jekor has quit [(Remote host closed the connection)]
<cryzed>
hodapp, check if there's a .local for the printer's avahi address at the end
<hodapp>
there is
<cryzed>
damn
<cryzed>
can you ping it?
IRCFReAK has quit [(K-Lined)]
<hodapp>
nope, unknown host
<cryzed>
oh uh
<hodapp>
in my other machine I had had to add "1.2.3.4 fooprint.local" to networking.extraHosts to get another network printer (not CUPS, even) to work
<cryzed>
So there's something still not completely correct with the nss-mdns settings
deepwater has quit [(Remote host closed the connection)]
<hodapp>
this was just for a normal network printer
<cryzed>
well that's just doing avahi's job then
<cryzed>
avahi should resolve that hostname to the IP -- that way you just fixed it to a static one
<cryzed>
hm
<hodapp>
yeah, I just needed to print shit and didn't feel like doing the "real" fix
<hodapp>
I can ping nixprint, can't ping nixprint.local
<cryzed>
so services.avahi.enable = true and services.avahi.nssmdns = true?
<cryzed>
oh that's strange
odi has quit [(Ping timeout: 268 seconds)]
MP2E has joined #nixos
<cryzed>
It was the other way around for me (on arch)
<ndowens08>
LnL: no i didnt
<cryzed>
hodapp, did you try rebooting since changing those configuration entries?
<ndowens08>
LnL: ah now i do
<hodapp>
cryzed: not yet, I will
<LnL>
ndowens08: :)
<bennofs>
hodapp: can you try systemctl restart nscd ?
<hodapp>
bennofs: once I reboot I'll try
<bennofs>
hodapp: after reboot that shouldn't be needed anymore
<cryzed>
I think that would skip the reboot step
<cryzed>
well it's not like rebooting will hurt
odi__ has quit [(Ping timeout: 260 seconds)]
<hodapp>
gah, still just says "Waiting for printer to become available" in Firefox print dialog
<bennofs>
hodapp: perhaps you can just put an explicit IP?
<andymandias>
hodapp: these are kind of a shot in the dark, since I had them set before working on CUPS
<andymandias>
hodapp: I have avahi.nssmdns = true;, avahi.publish.addresses = true;, and avahi.publish.domain = true; set
<cryzed>
hodapp, does pinging .local now work?
<NixOS_GitHub>
[nixpkgs] manveru opened pull request #23995: marathonctl: init at 06-03-2017 (master...add-marathonctl) https://git.io/vy7oC
<hodapp>
andymandias: all server side?
<andymandias>
hodapp: all server side, client is not running NixOS
<bennofs>
hodapp: oh does printing on the server work?
<NixOS_GitHub>
[nixpkgs] ttuegel pushed 2 new commits to master: https://git.io/vy7oD
<NixOS_GitHub>
nixpkgs/master 06ece41 Thomas Tuegel: KDE Applications: 16.12.2 -> 16.12.3
<NixOS_GitHub>
nixpkgs/master 73ccc49 Thomas Tuegel: Merge pull request #23992 from ttuegel/kde-applications-16.12.3...
<hodapp>
bennofs: it's headless but I can do test page and such from there just fine
<bennofs>
hodapp: try systemctl stop firewall on the server
<hodapp>
firewall's not even enabled
<bennofs>
oh, I thought it got enabled by default?
<bennofs>
at least it used to be
<hodapp>
I disabled it
<bennofs>
ah ok
<hodapp>
probably unnecessarily, but was trying to get to the root of the problem
<bennofs>
should read configuration.nix
acarrico has quit [(Ping timeout: 246 seconds)]
IRCFReAK has joined #nixos
<ocharles>
Anyone looked at packaging Qt 5.8?
<bennofs>
ocharles: ttuegel is doing most Qt/Kde things i believe
mizu_no_oto has joined #nixos
IRCFReAK has quit [(K-Lined)]
acarrico has joined #nixos
<hodapp>
hrmph, prints from both NixOS boxes just disappear into the aether
<hodapp>
for OS X it just sits there saying "The printer is not responding" though it sees it
<hodapp>
but I can ping both nixprint and nixprint.local now
stepcut has quit [(Remote host closed the connection)]
dhess2 has joined #nixos
<bennofs>
hodapp: can you turn on logging for all involved cups instances? I don't really know how printing works if you've got a print server
<cryzed>
hodapp, you could try enabling the cups debug log
<cryzed>
and checking the log files -- but they are _very_ verbose
IRCFReAK has joined #nixos
<bennofs>
yeah but i think they have colors?
<bennofs>
or you can grep for error / fail
<cryzed>
I remember them being accessible via the browser (dont do that) and on the filesystem somewhere
<cryzed>
but mine were tens of megabyte
<bennofs>
I think I just accessed them with journalctl? iirc
<cryzed>
those are not the debug logs afaik
<cryzed>
but maybe they are
<bennofs>
depends on your cups config i think
<hodapp>
I've been using journalctl to access them
<cryzed>
probably, yes
<cryzed>
alright
Jackneill has joined #nixos
<andymandias>
hodapp: logs are probably the way to go, but I did notice you have "DefaultEncryption Never" in your extraConf
IRCFReAK has quit [(K-Lined)]
<hodapp>
andymandias: I think that was from some other problems I had after I was sick of CUPS being a miserable piece of shit about something
<hodapp>
I'll try removing that
<andymandias>
hodapp: getting OS X as a client working for me involved getting cups's ssl working, which at the time just involved creating the /etc/cups/ssl/ directory
zraexy has quit [(Ping timeout: 260 seconds)]
<NixOS_GitHub>
[nixpkgs] manveru opened pull request #23996: phraseapp-client: init at 1.4.3 (master...add-phraseapp) https://git.io/vy763
Jackneill has quit [(Max SendQ exceeded)]
takle has joined #nixos
Jackneill has joined #nixos
<hodapp>
hrmph, Firefox is still sitting there at "Getting printer information..."
<cryzed>
oh
<hodapp>
evince just said "Printer disappeared or cups-browsed shutdown", then switched to "Getting printer information failed"
<cryzed>
maybe... in Arch you needed something called gtk-printer-information? I think
<cryzed>
maybe it's that wait
<bennofs>
hodapp: can you try printing a test page from the cup webinterface perhaps?
<cryzed>
ah or that yes
<hodapp>
bennofs: that works. that has worked fine from the start.
<bennofs>
hodapp: on the client as well?
<cryzed>
in arch you need gtk3-print-backends so that it works with gtk3 application afaik
<cryzed>
ill check what that actually is
<hodapp>
bennofs: there's no real web interface on the client that does anything useful here
<bennofs>
hodapp: doesn't the client run a CUPS instance as well?
<cryzed>
these 2 apparently
cpennington has quit [(Remote host closed the connection)]
<hodapp>
bennofs: the CUPS instance on the client doesn't just add network printers to its configuration automatically
<hodapp>
and you don't have to in ordero t print
<bennofs>
hodapp: Or does it just connect to the server somehow? as I said, no idea how it works with print servers. I thought there was perhaps a CUPS instance on the client that forwards to the server
<hodapp>
you can do it that way, but you don't need to
<andymandias>
hodapp: okay, I finally snipped the potentially relevant portions out of my configuration.nix http://lpaste.net/353650
<hodapp>
our configurations should be identical aside from that extraConf, which pertains to just the web interface, right?
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
Kendos-Kenlen has quit [(Ping timeout: 260 seconds)]
givemeparttt2000 has joined #nixos
givemeparttt2000 has left #nixos []
mizu_no_oto has joined #nixos
<hodapp>
I don't even know what logs to look at for problems here
c0bw3b has joined #nixos
<chakerbenhamed>
Hey, I am trying to learn nix expression. I read all nixpills, and watched most of Nixcon-2015's videos. But still didn't understand it quit well. Is there any other interesting resources?
<ndowens08>
chakerbenhamed: what are you planning to do, packaging, modules or what?
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
<chakerbenhamed>
packaging and deploying with nixops
mizu_no_oto has joined #nixos
<ndowens08>
for packaging, Look at other packages, best thing to do IMO
<ndowens08>
mostly how I learn
<hodapp>
okay, OS X just printed successfully, but it took it awhile to actually "find" the printer, and on the 2nd attempt it's just sitting there
<hodapp>
bluuuuuuuuugh
<chakerbenhamed>
So the solution is just to dive into pkgs
<hodapp>
now "Getting printer information failed" from 1st NixOS box
<ndowens08>
chakerbenhamed: for me, yea that is how i did it. Look and try to understand what is going on, the syntax is mostly understandable
<ndowens08>
that one is a update, not one i made, but edited it to how I would do it
<hodapp>
it is boggling my mind a little bit that this error message never seems to actually mean *anything at all* besides a generic "derp, shit failed"
romildo has joined #nixos
romildo has left #nixos []
willingc has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vy71p
<NixOS_GitHub>
nixpkgs/master 81ad24d Tim Steinbach: linux: 4.10.2 -> 4.10.3
<chakerbenhamed>
Thanks ndowens08 ;)
<NixOS_GitHub>
[nixpkgs] NeQuissimus pushed 1 new commit to release-17.03: https://git.io/vy7MI
<NixOS_GitHub>
nixpkgs/release-17.03 5579e81 Tim Steinbach: linux: 4.10.2 -> 4.10.3
mizu_no_oto has quit [(Ping timeout: 264 seconds)]
Kendos-Kenlen has quit [(Quit: Konversation terminated!)]
acowley is now known as acowley_away
<manveru>
hehe
marsam has joined #nixos
hiratara has quit [(Ping timeout: 246 seconds)]
<manveru>
i stopped using λ as hostname because many programs just can't handle the insanity :(
<hodapp>
my hostnames are nothing special but for some reason this crap is still happening
batdog has quit [(Ping timeout: 240 seconds)]
<cryzed>
my hostname is host
<cryzed>
my username is user
Elwyn has quit [(Remote host closed the connection)]
<cryzed>
I learned from my mistakes in the past when trying to change a user and/or hostname -- some configuration files are simply too fond of resolving symlinks or relative paths...
<hodapp>
I just don't even give a shit about any of this... I would just like to be able to print
hiratara has joined #nixos
<hodapp>
and I don't see why I should have to be futzing around with hostnames to achieve this
<NixOS_GitHub>
[nixpkgs] ttuegel pushed 1 new commit to release-17.03: https://git.io/vy7So
<NixOS_GitHub>
nixpkgs/release-17.03 25d450c Thomas Tuegel: KDE Applications: 16.12.2 -> 16.12.3...
<bennofs>
hodapp: from the comments it sounds like this code is only getting run when there are jobs that failed in the queue
<hodapp>
bennofs: ahh, hmmm
srhb has quit [(Quit: Quit)]
<bennofs>
hodapp: also, that code seems to only make sure that if avahi is not present, then we don't disable the queue because avahi might come back later? that's how I understand that
<hodapp>
bennofs: it may be unrelated, I don't know
<hodapp>
just trying to guess because all of these error messages are beyond useless
<bennofs>
hodapp: do you see "Queue still has jobs or CUPS error" (the debug_printf) as well?
<hodapp>
bennofs: I don't know how to get to debug messages for cups-browsed
pmahoney has quit [(Ping timeout: 240 seconds)]
batdog has joined #nixos
<hodapp>
something is working far enough that OS X can see this printer and print to it, but it takes it sometimes minutes to actually finally send the print job
<bennofs>
hodapp: have you done 'cupsctl LogLevel=debug2' ?
<hodapp>
hmm, no .local names are even resolving on this box
dbmikus has quit [(Ping timeout: 256 seconds)]
<bennofs>
hodapp: or starting cups-browsed with -o DebugLogging=stderr should do it. Alternatively, put that in your cups config?
<hodapp>
nsswitch.conf doesn't even include mdns4_minimal or mdns4
<bennofs>
hodapp: then avahi can't work if nsswitch doesn't have that
<bennofs>
hodapp: have you enabled nssmdns on the client?
<ozer>
Anybody know how to cache python packages in nix-shell that populate PYTHONPATH? I notice the python interpreter does take noticeably longer to start with a long PYTHONPATH, and this effect is avoided on other Linux distributions (because they don't need to set PYTHONPATH)
<hodapp>
bennofs: that was the issue, btw
i_rony|nb has quit [(Ping timeout: 246 seconds)]
bkchr has joined #nixos
<MichaelRaskin>
ozer: I wonder if a symlinkJoin of the packages will work as the only PYTHONPATH entry
<ozer>
MichaelRaskin: how does that work?
<MichaelRaskin>
It is more or less lndir
<bkchr>
Hi, I'm trying to install nixos in a virtual machine and I'm stuck at configuring grub. If I run nixos-install I got the following erro "btrfs doesn't support blocklists"
<MichaelRaskin>
If there are /a/b/c and /d/b/e you get /j/b/ with symlinks c->/a/b/c and e->/d/b/e
<MichaelRaskin>
bkchr: well, in Qemu you could use Qemu itself as the bootloader
<ozer>
the b in /j/b/ doesn't refer to the b in /a/b/c right?
<MichaelRaskin>
You are using BIOS/Legacy boot
<MichaelRaskin>
ozer: yes
<MichaelRaskin>
bkchr: do you have GPT or MBR?
<ozer>
neato, so where should I start to learn how to use symlinkJoin
<NixOS_GitHub>
[nixpkgs] abbradar pushed 1 new commit to master: https://git.io/vy753
<NixOS_GitHub>
nixpkgs/master a8785da Nikolay Amiantov: emacs: fix runtime GTK3 dependencies...
acarrico has quit [(Ping timeout: 260 seconds)]
<MichaelRaskin>
gdisk tells you the type of the disklabel/partition table
<NixOS_GitHub>
[nixpkgs] abbradar pushed 1 new commit to release-17.03: https://git.io/vy75C
<NixOS_GitHub>
nixpkgs/release-17.03 b944312 Nikolay Amiantov: emacs: fix runtime GTK3 dependencies...
<NixOS_GitHub>
[nixpkgs] fpletz pushed 1 new commit to master: https://git.io/vy75X
<NixOS_GitHub>
nixpkgs/master 9536169 Franz Pletz: nixos/treewide: remove boolean examples for options...
erasmas has quit [(Quit: leaving)]
<clever>
bkchr: what did you set boot.loader.grub.device to?
<ozer>
also a side-issue of PYTHONPATH stuff... as far as I know it's impossible to use nix-shell with python35Packages and python27Packages, if both are specified in default.nix then one Python version's packages will overwrite PYTHONPATH
<bkchr>
clever: /dev/sda
<ozer>
I've also tried embedding nix-shell's with different python package versions and they do seem to append to pythonpath
<bkchr>
okay now it is working :)
<clever>
bkchr: the original error you pasted sounds like what happens when you set it to sda1
<bkchr>
Thanks clever and MichaelRaskin. I recreated the partitions
<ozer>
but then python interpreters don't know which version of packages to find in PYTHONPATH
<ozer>
in that case ^^^^^ PYTHONPATH only contains the path to numpy for python 2.7
stepcut has joined #nixos
<bennofs>
ozer: you could try nix-shell -p 'python35Packages.withPackages (pypkgs: [ pypkgs.numpy ])'
<bennofs>
ozer: and then same for python27Packages
<bennofs>
ozer: that'll build wrapped python executables with exactly the packages available that you specify
<hodapp>
you keep reminding me I need to fix my RStudio issue with bundled packages
<ozer>
bennofs: that sounds neat, so could I specify python3 and python2 packages in the same line / same default.nix?
<bennofs>
ozer: that should be possible, yes
marsam has quit [(Remote host closed the connection)]
<ozer>
bennofs: so I tried "nix-shell -p 'python35.withPackages (pypkgs: [ pypkgs.numpy ])" (python35Packages wasn't found, changed to python35) and the resulting shell doesn't have numpy available for import
srhb has joined #nixos
<bennofs>
ozer: try adding --pure ?
<ozer>
ok lemme try
<ozer>
yes that worked! Very interesting how it cleared PYTHONPATH
c0bw3b has left #nixos []
<ozer>
bennofs: thanks so much! will see if I can get this working now
<bennofs>
ozer: yes it does not use python path at all, instead the python command is now a wrapper that sets PYTHONHOME (or perhaps pythonpath?) just before launching the interpreter
<bennofs>
ozer: that's also why you needed --pure, because your PATH from your user env probably took precendence so you got the python from your user env, the non-wrapped one
<ozer>
interesting! I do however still need to set a custom PATH and PYTHONPATH for the software stack I'm working with, I guess I'll just need to do that inside nix-shell?
<bennofs>
ozer: yes
<ozer>
could I specify the vars in default.nix? Right now they're in configuration.nix
<bennofs>
ozer: i just checked, this will only set PYTHONHOME, not PYTHONPATH; so you're free to do with PYTHONPATH what you like
<bennofs>
ozer: yes, just add them to the derivation like PYTHONPATH = "..."
<bennofs>
ozer: all attributes defined on a derivation are exposed as env variables to a build (except meta)
endformationage has joined #nixos
<bennofs>
ozer: alternatively, you can execute arbitrary shell code in shellHook = " ... "
<clever>
and passthru behaves the same as meta
<ozer>
bennofs: that's very amazing, thank you thank you thank you
georges-duperon has quit [(Ping timeout: 240 seconds)]
<bennofs>
joepie91: can you try exporting those two LD_PRELOAD lines and then running uname?
takle has joined #nixos
<joepie91>
bennofs: exporting the first one breaks my powerline-shell PS1
<joepie91>
is that expected?
<joepie91>
uh oh
<joepie91>
bennofs: I can still run commands after running the first LD_PRELOAD
<joepie91>
but `uname` results in:
<joepie91>
uname: relocation error: /nix/store/68sa3m89shpfaqq1b9xp5p1360vqhwx6-glibc-2.25/lib/libdl.so.2: symbol _dl_catch_error, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference
<bennofs>
joepie91: yeah well your powerline probably uses uname :)
<clever>
bennofs: my nas is built against 2.24, and 2.25 is the one breaking everything
<clever>
i have a desktop on 2.25, checking it
<dhess2>
There used to be a way to specify `emacs=emacs2x-nox` in your config and get an Emacs built without X11 dependencies, but that doesn't appear to work anymore. Does anyone know the magic to get that working again?
<bennofs>
clever: well, that's weird. the funny thing is, every once in a while I try to learn about symbol versioning and how it exactly works, then I understand how it works and till I need that knowledge the next time I forgot how it works :D
<clever>
bennofs: my nixos-unstable desktop is running the "broken" 2.25 as the primary glibc
<joepie91>
apparently it doesn't use the electron dep
<joepie91>
but the one that ships with Atom's .deb
<clever>
it sounds like atom was built against atom was built against glibc 2.24, and is breaking the same as uname
<clever>
and only things built against 2.25 work on the new glibc
<bennofs>
clever: the problem is actually that the atom pkg was build with glibc 2.25 in mind
<chakerbenhamed>
I added a folder to the nixpath -I folder=pathTofolder. But I want to use one of it subfolders Do I access it like <folder/subfolder> because this give me an "Not found in Nixpath" error
<bennofs>
clever: and it forcibly puts glibc 2.25 into LD_PRELOAD, but atom calls the system uname which breaks
ambro718 has quit [(Quit: Konversation terminated!)]
<bennofs>
clever: note that the error is not coming from atom, but from the `uname` execv call it does to figure out if the system is supported
<clever>
bennofs: ahh, then add a glibc 2.25 uname into $PATH
<bennofs>
clever: that's still ugly :/
<bennofs>
clever: since anything in the atom-integrated terminal will break
<joepie91>
... Atom has an integrated terminal?
IRCFrEAK has joined #nixos
<bennofs>
i thought so?
<clever>
bennofs: then atom will need to be patched to unset the wrapper env variables when forking out children
<joepie91>
I don;t recall one
<joepie91>
and wouldn't it just be a tty.js anyway?
<bennofs>
well, it probably has some plugins that call some executables
<clever>
bennofs: or its rpath improve more to not need a wrapper
<joepie91>
yeah, that it does
<bennofs>
any such plugin will break
<joepie91>
but I don't think I'm using any besides Git
<bennofs>
joepie91: git will break probably
<joepie91>
hm :|
<joepie91>
so what made this magically break? because it worked a few days ago :P
<bennofs>
joepie91: it worked because you probably got an atom that was still on glibc 2.24 as your system is as well?
<bennofs>
perhaps there was a recent glibc update?
<bennofs>
don't think that atom updates change anything
<joepie91>
hm yeah, actually, you're right
<bennofs>
"The current GNU C library provides the run-time backward compatibility. That means executables and shared libraries built against the previous versions of glibc will continue to work with the current shared glibc, libc.so. This functionality is implemented with the symbol versioning in libc.so. This work is based on the effort from Eric Youngdale.
georges-duperon has joined #nixos
<bennofs>
Does seem kinda like a bug though if you read that
<joepie91>
bennofs: any way to list changes between system builds?
<joepie91>
generations, that is
<joepie91>
I know that it broke in my last big update cycle
<MichaelRaskin>
Well, nix-store -qR
<clever>
joepie91: there is a git hash for nixpkgs in the name of the generation
<bennofs>
joepie91: when was your last working version? before 2017-02-11 ?
<joepie91>
bennofs: pffft, thereabouts. I'm not sure whether it was before or after
<joepie91>
I last updated it recently-ish
<joepie91>
Atom that is
<joepie91>
clever: okay, how do I obtain that? :)
<joepie91>
I;m still flying blind in NixOS for the most part
<ozer>
bennofs: when I specify the nix-shell config you posted in default.nix inside buildInputs (like "nix-shell -p 'python35.withPackages (pypkgs: [ pypkgs.numpy ])"), I get a seemingly-unrelated error:
<ozer>
error: cannot coerce a function to a string, at /home/software/cuauv/software/nixos/configs/default.nix:5:3
<ozer>
that line number refers to the name attribute just above it
<bennofs>
ozer: you need ()'s around that
<bennofs>
ozer: since nipkgs lists are space-delimited
<ozer>
oh sorry I sent the wrong thing
<bennofs>
s/nipkgs/nix
<ozer>
but you are correct! thanks a lot
<ozer>
should have spotted that, have done functional programming before
<bennofs>
ozer: nix list syntax is really confusing though, so no worries. Did you know that [ if foo then bla else bar ] is valid without parens? It's just a little inconsistent
<bennofs>
clever, joepie91: I think the problem here is that glibc's multi-versioning does not support *multiple* glibc vesions in the same link
<chakerbenhamed>
I added a folder to the nixpath -I folder=pathTofolder. But I want to use one of it subfolders Do I access it like <folder/subfolder> because this give me an "Not found in Nixpath" error
<bennofs>
clever, joepie91: since glibc will put some private function as version GLIBC_VERSION, and if the private function is resolved from another GLIBC version then it's getting bad
<clever>
[clever@amd-nixos:~]$ ls -l /nix/var/nix/profiles/system*
<clever>
joepie91: this will list every build of nixos
<NixOS_GitHub>
[nixpkgs] joachifm pushed 3 new commits to master: https://git.io/vy7pJ
<NixOS_GitHub>
nixpkgs/master f9f15ff Will Dietz: irker: init at 2017-02-12
<NixOS_GitHub>
nixpkgs/master 2807d75 Will Dietz: irkerd service: init
<NixOS_GitHub>
nixpkgs/master 9a976c0 Joachim F: Merge pull request #23963 from dtzWill/feature/irkerd...
<clever>
joepie91: looks like i updated my channel on the 4tb, and have made another ~15 generations since
<clever>
4th*
<bennofs>
joepie91: perhaps it did have to do with the atom update? perhaps atom didn't check uname before?
<ndowens08>
then cd into it, find the category it should go in, mkdir PKGNAME, edit PKGNAME/default.txt and add callPackage for that pkg in pkgs/top-level/all-packages.nix
<bennofs>
joepie91: it might be easier to just figure out how to fix this :D
chakerbenhamed has quit [(Ping timeout: 240 seconds)]
<Profpatsch>
My my, the nixops CLI is horrendous.
<Profpatsch>
In so many ways.
<joepie91>
bennofs: I mean, both clever and you know way more about NixOS than I do, I suspect, so I'll just follow your lead :P
<joepie91>
(well, and about how library loading etc. works)
<tnias>
Is anyone using XEN on NIXOS? (or is it broken!?)
<joepie91>
I will refrain from "Xen is always broken" jokes
<joepie91>
:P
<clever>
tnias: i have tested it before, and i know of 2 people that are running nixos on dom0
<tnias>
clever: hmm okay. i am currently trying to use it. but after a short while there is a white horizontal line and everything is frozen. before the login shows
AllanEspinosa has joined #nixos
<clever>
tnias: i have had GPU problems with certain drivers in the past, before i used nixos
<clever>
tnias: its far more stable when xorg isnt enabled
<MichaelRaskin>
Well, problems with GPU drivers aren't that picky. They can find an excuse even if you don't run Xen
takle has quit [(Remote host closed the connection)]
<tnias>
clever: for now it is 'just' a basic setup openssh and now i wanted to put xen on there :/
<clever>
tnias: what hardware do you have on the machine?
JagaJaga has joined #nixos
<bennofs>
clever, joepie91: why would you LD_PRELOAD libXss.so.1 in the first place?
takle has quit [(Remote host closed the connection)]
takle has joined #nixos
<tnias>
clever: I assume it has some sort of serial interface. i (currently) have no access to anything to connect to it
<clever>
tnias: this redirects both xen and dom0(linus) output to com1 at 38400 baud, you could then hook up a serial console on another machine and view output without a gpu
<bennofs>
joepie91: oh I tried to start atom and got "libxkbfile.so.1: cannot open shared object file: No such file or directory" so seems to be not working :(