bfrog has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
danharaj has joined #nixos
<sphalerite> How can I add a derivation to my user environment? i.e. I've built something using nix-build, got the result symlink; is it possible to add that to my profile?
<LnL> you can just install nix store paths
<LnL> os nix-env -i $(readlink result)
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v11rC
<NixOS_GitHub> nixpkgs/master 7d134fc Leonardo Taglialegne: Fix typo in configuration-hackage2nix.yaml (#21129)
bfrog has quit [(Quit: WeeChat 1.6)]
<sphalerite> LnL: perfect! Thanks
Gohla has quit [(Ping timeout: 244 seconds)]
<NixOS_GitHub> [nixpkgs] taku0 opened pull request #21135: firefox: 50.0.2 -> 50.1.0, firefox-esr: 45.5.1esr -> 45.6.0esr [Critical security fix] (master...firefox-50.1.0) https://git.io/v11rB
<sphalerite> actually nix-env -i ./result works too :)
buttbutter has quit [(Remote host closed the connection)]
tormen has joined #nixos
ryanartecona has joined #nixos
wkennington has quit [(Read error: Connection reset by peer)]
<tormen> quit
tormen has left #nixos []
MagBo has quit [(Ping timeout: 252 seconds)]
voidrays has quit [(Ping timeout: 250 seconds)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
voidrays has joined #nixos
MagBo has joined #nixos
seanz has quit [(Quit: Leaving.)]
Gohla has joined #nixos
<sphalerite> No! I refuse! :p
ryanartecona has quit [(Quit: ryanartecona)]
MagBo has quit [(Ping timeout: 252 seconds)]
voidrays has quit [(Ping timeout: 258 seconds)]
markus1189 has joined #nixos
voidrays has joined #nixos
MagBo has joined #nixos
markus1199 has quit [(Ping timeout: 264 seconds)]
ebzzry has quit [(Read error: Connection reset by peer)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
voidrays has quit [(Ping timeout: 245 seconds)]
PragCyph1 has quit [(Ping timeout: 264 seconds)]
ebzzry has joined #nixos
MagBo has quit [(Ping timeout: 250 seconds)]
AllanEspinosa has quit [(Quit: leaving)]
binarin_ has quit [(Read error: Connection reset by peer)]
Shou has quit [(Ping timeout: 240 seconds)]
voidrays has joined #nixos
MagBo has joined #nixos
<Ralith> sphalerite: I've always just invoked nix-env on the expression that I built
<Ralith> it never rebuilds because the computed hash is the same
flo[m] has quit [(Quit: Client limit exceeded: 5000)]
mexisme2 has joined #nixos
filterfish has joined #nixos
AllanEspinosa has joined #nixos
filterfish has quit [(Read error: Connection reset by peer)]
mexisme has quit [(Ping timeout: 250 seconds)]
acowley_away is now known as acowley
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 245 seconds)]
lverns has joined #nixos
sigmundv_ has joined #nixos
nh2_ has quit [(Ping timeout: 250 seconds)]
eacamero_ has quit [(Remote host closed the connection)]
nh2_ has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
sigmundv_ has quit [(Ping timeout: 260 seconds)]
nh2_ has quit [(Ping timeout: 258 seconds)]
Rotaerk has joined #nixos
thc202 has quit [(Ping timeout: 256 seconds)]
[0x4A6F] has quit [(Ping timeout: 246 seconds)]
eacameron has joined #nixos
[0x4A6F] has joined #nixos
eacameron has quit [(Remote host closed the connection)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
<himmAllRight> how can I setup a gpg key? I'm trying to setup pass
sdothum has quit [(Quit: ZNC - 1.6.0 - http://znc.in)]
herzmeister has quit [(Quit: Leaving)]
herzmeister has joined #nixos
eacameron has joined #nixos
sdothum has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
PragCyphr has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
RchrdB has quit [(Ping timeout: 260 seconds)]
sdothum has quit [(Quit: ZNC - 1.6.0 - http://znc.in)]
mizu_no_oto has joined #nixos
Rotaerk has quit [(Read error: Connection reset by peer)]
Rotaerk has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/v11ys
<NixOS_GitHub> nixpkgs/master 96be6a1 Joachim Fasting: torbrowser: support H.264 playback...
<NixOS_GitHub> nixpkgs/master 2221130 Joachim Fasting: torbrowser: support pulseaudio playback
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
SovereignBleak has quit [(Quit: Connection closed for inactivity)]
<NixOS_GitHub> [nixpkgs] jerith666 opened pull request #21137: use symlink to ensure cupsd.conf PATH always points to a valid store path (master...cupsd-path) https://git.io/v11SP
mizu_no_oto has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
acowley is now known as acowley_away
zraexy has joined #nixos
eacameron has joined #nixos
[0x4A6F] has quit [(Ping timeout: 258 seconds)]
[0x4A6F] has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/v119q
<NixOS_GitHub> nixpkgs/master b55cef7 Joachim Fasting: torbrowser: prefer local builds...
<NixOS_GitHub> nixpkgs/master 52cb1df Joachim Fasting: kodi/wrapper: fix typo, preferLocalBuilds -> preferLocalBuild
eacameron has quit [(Ping timeout: 265 seconds)]
herzmeister has quit [(Quit: Leaving)]
herzmeister has joined #nixos
mbrgm has quit [(Ping timeout: 258 seconds)]
mbrgm_ has joined #nixos
mbrgm_ is now known as mbrgm
filterfish has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 3 new commits to release-16.09: https://git.io/v1191
<NixOS_GitHub> nixpkgs/release-16.09 9e5022d Joachim Fasting: terraria service: fix tmux output...
<NixOS_GitHub> nixpkgs/release-16.09 ebc3e09 Joachim Fasting: terraria service: fixup worldPath option type...
<NixOS_GitHub> nixpkgs/release-16.09 8851080 Joachim Fasting: torbrowser: 6.0.7 -> 6.0.8...
filterfish has quit [(Remote host closed the connection)]
derjohn_mobi has joined #nixos
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
derjohn_mob has quit [(Ping timeout: 256 seconds)]
mizu_no_oto has joined #nixos
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
jekor has quit [(Ping timeout: 260 seconds)]
zraexy has quit [(Ping timeout: 256 seconds)]
mcloud923 has quit [(Ping timeout: 250 seconds)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
mcloud923 has joined #nixos
zraexy has joined #nixos
anelson_ has quit [(Ping timeout: 240 seconds)]
PragCyph1 has joined #nixos
anelson_ has joined #nixos
PragCyphr has quit [(Ping timeout: 258 seconds)]
wedens1 has quit [(Quit: WeeChat 1.6)]
viric_ has joined #nixos
filterfish has joined #nixos
viric has quit [(Ping timeout: 246 seconds)]
filterfish has quit [(Read error: Connection reset by peer)]
fpletz has quit [(Ping timeout: 240 seconds)]
hexagoxel has quit [(Ping timeout: 258 seconds)]
wedens has joined #nixos
filterfish has joined #nixos
hexagoxel has joined #nixos
mguentner2 has quit [(Quit: WeeChat 1.6)]
mguentner has joined #nixos
zraexy has quit [(Ping timeout: 245 seconds)]
catern has quit [(Ping timeout: 250 seconds)]
fpletz has joined #nixos
catern has joined #nixos
slack1256 has joined #nixos
danharaj has quit [(Ping timeout: 258 seconds)]
mizu_no_oto has quit [(Quit: Computer has gone to sleep.)]
ncl28 has quit [(Ping timeout: 250 seconds)]
mguentner2 has joined #nixos
uralbash has joined #nixos
stepcut has quit [(Remote host closed the connection)]
lverns has quit [(Ping timeout: 258 seconds)]
ncl28 has joined #nixos
mguentner has quit [(Ping timeout: 240 seconds)]
amarsman has quit [(Ping timeout: 256 seconds)]
eacameron has joined #nixos
evck has quit [(Ping timeout: 246 seconds)]
AllanEspinosa has quit [(Ping timeout: 240 seconds)]
mexisme2 has quit [(Read error: Connection reset by peer)]
mexisme has joined #nixos
systemfault has quit [(Quit: Bye!)]
justanotheruser has quit [(Ping timeout: 268 seconds)]
<angerman> so nix-shell by default picks up `default.nix` or `shell.nix` I feel it's `default.nix` however examples I saw seem to imply it's picking up shell.nix by default. Am I missing something?
<Rotaerk> angerman, nix-shell uses shell.nix, nix-build uses default.nix, as I understand it
<Rotaerk> I defined my shell.nix in terms of my default.nix though
<Rotaerk> basically, (import ./default.nix {}).env
justanotheruser has joined #nixos
SuprDewd has quit [(Ping timeout: 245 seconds)]
asakeron has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
<angerman> Rotaerk hmm... somethings fishy on my end then :)
<Rotaerk> I forget who it was that showed me that; I'm pretty new to this, myself
systemfault has joined #nixos
estewei has joined #nixos
<angerman> yea, I've seen the import + env stuff (it's probably even in the nix or nixpkgs manual). I'm just a bit confused why it seems to pickup default.nix for me.
<AtnNn> angerman: "nix-shell defaults to shell.nix if it exists, and default.nix otherwise"
<angerman> AtnNn gotta inspect why my nix-shell.nix is not nix-shell.nix then... the fun :)
<angerman> and now I'm getting Service Unavailable for some cache.nixos.org. If only today was friday.
jacob_ has joined #nixos
jacob_ is now known as Guest9872
k2s has joined #nixos
cantstanya has quit [(Ping timeout: 260 seconds)]
amarsman has joined #nixos
Mercuria1Alchemi has joined #nixos
pi3r has joined #nixos
slack1256 has quit [(Remote host closed the connection)]
reinzelmann has joined #nixos
roconnor has quit [(Ping timeout: 260 seconds)]
avalent has joined #nixos
cantstanya has joined #nixos
<eacameron> Ugg...why would php-fpm be segfaulting?
<simpson> eacameron: Amen. That's poetry, right there.
jgertm_ has joined #nixos
Itkovian has joined #nixos
<eacameron> simpson: Hahaha...but I'm a poet and I didn't know it.
rly has joined #nixos
deepwater has quit [(Remote host closed the connection)]
<eacameron> simpson: I'm afraid what you mean by that...
<reinzelmann> Morning! fprintd-enroll gives me "list_devices failed: Unit fprintd.service not found." Does someone know what to do?
systemfault has quit [(Quit: Bye!)]
k2s has quit [(Ping timeout: 250 seconds)]
MichaelRaskin has quit [(Quit: MichaelRaskin)]
<simpson> eacameron: Oh, just that php-fpm segfaulting is beautifully inevitable.
<eacameron> simpson: I'm new to this...are you serious?
<garbas> dash: i claim no responsability for any lost weekend ;)
pi3r has quit [(Ping timeout: 256 seconds)]
<eacameron> simpson: Can I just serve the PHP site without PHP-FPM and get at least get it to work?
<simpson> eacameron: Sorry, I'm just eternally disappointed in PHP.
<simpson> eacameron: php-fpm works fine, but it's notoriously crashy even on non-NixOS.
<eacameron> simpson: No need to convince me. I'm a Haskeller who has to deploy someone else's site for the time being :/
<eacameron> simpson: Sigh...I just have no way of debugging it...I can't find anything
deepwater has joined #nixos
Itkovian has quit [(Read error: Connection reset by peer)]
rly has quit [(Ping timeout: 265 seconds)]
phreedom has quit [(Quit: No Ping reply in 180 seconds.)]
phreedom has joined #nixos
mexisme2 has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #19369: nix-prefetch-git: fix json output. (master...nix-prefetch-git) https://git.io/vP4xE
mexisme has quit [(Ping timeout: 264 seconds)]
johann__ has joined #nixos
ckauhaus has joined #nixos
eacameron has quit [(Remote host closed the connection)]
ebzzry has quit [(Ping timeout: 252 seconds)]
Itkovian has joined #nixos
RchrdB has joined #nixos
moet has joined #nixos
pi3r has joined #nixos
ChongLi has quit [(Read error: Connection reset by peer)]
teknico has joined #nixos
derjohn_mobi has quit [(Ping timeout: 265 seconds)]
marusich has joined #nixos
mexisme2 has quit [(Read error: Connection reset by peer)]
mexisme has joined #nixos
<angerman> I guess I'm going to declare defeat. Can't get an juphyter + ipython environment working on darwin.
jgertm_ has quit [(Ping timeout: 246 seconds)]
ckauhaus has quit [(Ping timeout: 252 seconds)]
rly has joined #nixos
avalent has quit [(Remote host closed the connection)]
avalent has joined #nixos
ckauhaus has joined #nixos
avalent has quit [(Ping timeout: 260 seconds)]
ambro718 has joined #nixos
derjohn_mobi has joined #nixos
johann__ has quit [(Quit: Leaving.)]
ckauhaus has quit [(Ping timeout: 258 seconds)]
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
filterfish has quit [(Read error: Connection reset by peer)]
filterfish has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v1MTX
<NixOS_GitHub> nixpkgs/master b26b37d Jörg Thalheim: glide: 0.12.2 -> 0.12.3
nschoe has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #20744: autorandr: 59f6aec0b -> 53d29f9 (master...python-autorandr) https://git.io/v1kIx
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
edvorg has joined #nixos
fritschy has joined #nixos
ckauhaus has joined #nixos
fractal has quit [(Ping timeout: 260 seconds)]
ToxicFrog has quit [(Ping timeout: 245 seconds)]
filterfish has quit [(Read error: Connection reset by peer)]
filterfish has joined #nixos
thc202 has joined #nixos
jgertm_ has joined #nixos
dgn has joined #nixos
ambro718 has quit [(Ping timeout: 264 seconds)]
ToxicFrog has joined #nixos
filterfish_ has joined #nixos
filterfish has quit [(Remote host closed the connection)]
FRidh has joined #nixos
<Cypi> Why doesn't something like "nix-shell '<nixpkgs>' -A somepackage -p somepackage" work? The intent is to have a shell with both the depencies of the package and the package itself available
<Cypi> dependencies*
moet has quit [(Ping timeout: 265 seconds)]
goibhniu has joined #nixos
<Cypi> (What I get is: "error: attribute 'somepackage' in selection path 'somepackage' not found")
<clever> Cypi: -p just makes it run -E 'with import <nixpkgs> {}; runCommand "foo" { buildInputs = [ somepackage ]; } ""'
<clever> Cypi: and you cant mix -E and -A
<FRidh> angerman: what's the problem you encounter? I don't have darwin here but ipython is working fine on nixos
<angerman> FRidh turned out python35 was the only python version that actually produced a working result. 36 failed with some pytest nonsense, python34 with some broken package.
<FRidh> angerman: Ok I see. PR's with fixes are welcome :)
<angerman> FRidh :-)
<FRidh> We should just build all python packages on Hydra again so its easier to spot when something is broken
<Cypi> Hmm, I see clever, thanks. So somepackage should actually be available in the shell that is created.
<clever> Cypi: you gave it conflicting options, so i'm not sure what its going to do
<Cypi> No shell is created when I give it both -A and -p, so nothing
<clever> Cypi: normaly id say to put foo into the buildInputs with an override
<clever> except, that will put it inside itself, and now it has a infinite cycle
<angerman> FRidh not sure if this was some darwin only issue though.
<Cypi> So that means that with -p, the package is available but not its dependencies, and with -A, only the dependencies are available, right? How do I get both?
<clever> maybe run one nix-shell inside the other nix-shell?
<angerman> FRidh I messed up someone else's ipython env nix pretty bad, but got it working in a stripped down version: https://github.com/angerman/nix-jupyter-env/commit/c70f6752f3c079395f39ddb2fe7b412bf466047c
<Cypi> that's an idea, thanks, I'll test it out
<NixOS_GitHub> [nixpkgs] vcunat pushed 1 new commit to master: https://git.io/v1MtO
<NixOS_GitHub> nixpkgs/master e065861 Vladimír Čunát: buildGoPackage: reduce the default meta.platforms...
ThatDocsLady has joined #nixos
c0bw3b has joined #nixos
<FRidh> angerman: ah so you have an instance of jupyter with different kernels. We should make a function for that so you can just easily pass in kernels with packages.
ok2`` has joined #nixos
ok2` has quit [(Ping timeout: 252 seconds)]
johann__ has joined #nixos
ok2`` has quit [(Ping timeout: 252 seconds)]
fractal has joined #nixos
itorres has quit [(Ping timeout: 265 seconds)]
ebzzry has joined #nixos
tnias has quit [(Ping timeout: 264 seconds)]
ToxicFrog has quit [(Ping timeout: 248 seconds)]
<NixOS_GitHub> [nixpkgs] samuelrivas opened pull request #21139: terraform 0.7.11 -> 0.7.13 (master...update-terraform-to-0.7.13) https://git.io/v1MYR
ToxicFrog has joined #nixos
johann__ has quit [(Quit: Leaving.)]
<sphalerite> Is there a way to find /all/ the packages (not just the installed ones) that depend on another package?
latk has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v1MOM
<NixOS_GitHub> nixpkgs/master 08b3e39 Jörg Thalheim: telegraf: 1.1.1 -> 1.1.2
tnias has joined #nixos
marusich has quit [(Ping timeout: 245 seconds)]
berce has joined #nixos
ebzzry has quit [(Ping timeout: 268 seconds)]
lsix has joined #nixos
johann__ has joined #nixos
ebzzry has joined #nixos
<clever> sphalerite: nox-review?
<rly> Does nix-env -iA nixos.ghc also work if you don't have NixOS or does the expression look differently then?
<LnL> rly: it's nixpkgs.ghc then
<rly> LnL: why is there such a difference?
<LnL> this works on both: nix-env -f '<nixpkgs>' -iA ghc
<rly> LnL: thanks :)
<clever> rly: the nixos or nixpkgs in -iA nixos.ghc is the name of a channel from nix-channel --list
<LnL> and for nix-build/nix-shell you can do something similar
<LnL> nix-build '<nixpkgs>' -A ghc
<rly> LnL: and if I just want an environment in which only ghc is available, what do I need for that?
<clever> nix-shell -p ghc --pure
<LnL> the magic -p flag
randalltux has joined #nixos
<randalltux> hi everyone
<randalltux> i'm new to nix :3
randalltux has quit [(Client Quit)]
<sphalerite> clever: I don't want to actually build anything though
<LnL> sphalerite: doesn't it support --dry-run?
<sphalerite> it's not listed in --help
<sphalerite> nope
wkennington has joined #nixos
<berce> Does anyone have experience with nixos on a Cubox-i4 pro?
latk has quit [(Read error: Connection reset by peer)]
<berce> By adding a few lines to pkgs/misc/uboot/default.nix and updating u-boot to 2016.11 I managed to crosscompile u-boot.
<LnL> sphalerite: I don't think we have something else, hence https://github.com/NixOS/nixpkgs/issues/19045
<Dezgeg> if the cubox-i4 u-boot uses the common distro boot scripts, it will be relatively simple
<berce> Once it loads the kernel, the screen goes blank.
<Dezgeg> I would check the console=tty0 etc. boot parameters
<berce> Hi Dezgeg, I used a lot of your notes and conversations to get this far :-)
ebzzry has quit [(Ping timeout: 240 seconds)]
latk has joined #nixos
<sphalerite> LnL: looks neat, thanks
<berce> The update of u-boot was needed because the compiled ones available for the cubox didn't use common distro boot scripts and the version in nixpkgs was known not to work for cubox
<rly> What's the meaning of the psu suffix? oraclejdk8psu
<Dezgeg> u-boot is 2016.11 already on master it seems
<LnL> sphalerite: note that this won't detect everything, the haskell packages set is hidden from nix-env -qa for example
<berce> I found others having trouble to get the hdmi working, because of some hdmi-core setting of IPU-1 that had to be IPU-0 for imx6dl.
<sphalerite> rly: power supply unit, obviously :p (I really don't know)
<berce> Dezgeg, that must be after I started working on it.
<angerman> cabal2nix generates an expression that doesn have stdenv in it's argument set, however it useses stdenv.lib.licenses.bsd3, how does that work? Where does stdenv come from?
<Dezgeg> I guess one way of checking whether it's a display problem is to check the sd card to see if it managed to make modifications to the root fs after the first boot
ebzzry has joined #nixos
<sphalerite> LnL: right, as are broken and unfree packages unless allowX is set
<berce> What modification should I look for?
eacameron has joined #nixos
<Dezgeg> if it created /etc for example
<LnL> sphalerite: ah indeed, you could solve that part by passing it a config like matthewbauer mentioned
<sphalerite> yeah
<berce> /etc is there, with no timestamp (1 jan 1970)
<Dezgeg> ok, then it booted successfully I think (IIRC stock installer images have only /nix and /nix-path-registration)
<berce> Thanks for confirming my assumption
<berce> Then I 'only' need to get the hdmi working :-)
<Dezgeg> yeah, sounds like it
<berce> Looking around, this issue of a freebsd user could be related https://lists.freebsd.org/pipermail/freebsd-arm/2016-February/013287.html
<berce> it's about usr/src/sys/gnu/dts/arm/imx6qdl.dtsi
<berce> soc {interrupt-parent = <&gpc> ... was changed from <&intc> and broke hdmi
<Dezgeg> I don't know if freebsd even uses the same .dts files as Linux
eacameron has quit [(Ping timeout: 250 seconds)]
<berce> How can I compile dts files?
<berce> Are they kernel version related?
<clever> they shouldnt be, but some kernel driver guys are naughty
<Dezgeg> in theory they shouldn't be but in practice it helps to keep them in sync
<clever> berce: pkgs.dtc contains the utils to convert between text<->blob
iyzsong has joined #nixos
johann__ has quit [(Quit: Leaving.)]
<berce> clever: thanks
<berce> does that mean I can decompile the existing dts, make changes and recompile?
<clever> yep
<clever> the idea behind DT, is that you could have 1 kernel that works on many boards, and the DT tells it what hardware is available
<clever> in theory, i could make a kernel that has both the rpi gpu stuff, and the Cubox stuff compiled in, and the DT tells it which one to fire up, and what address the hardware is at
<clever> but that only works if both sets of drivers are in the same fork of linux
<sphalerite> I seem to have lost the gist that patches an executable to use the right interpreter... Could someone link me to that again please?
<clever> sphalerite: one min
s1lvester has quit [(Ping timeout: 245 seconds)]
<berce> nice theory. If my board is listed on https://nixos.org/wiki/NixOS_on_ARM/multi_v7_defconfig, I probably need no custom kernel.
<clever> sphalerite: 2016-12-11 12:14:02< clever> sheenobu: here is a tool i wrote to simplify patchelf a while back: https://gist.github.com/cleverca22/fcd3e6d18073804b9357a26c468aaa70
<sphalerite> awesome thanks
<clever> Dezgeg: how does this look? http://imgur.com/a/UlpoI
<Dezgeg> what toolkit is that?
<clever> Dezgeg: http://www.qooxdoo.org/
<clever> Dezgeg: http://www.qooxdoo.org/current/widgetbrowser/ a demo of all of its widgets
<Dezgeg> oh, yet another javascript framework :P
<clever> this one is pretty massive, i even stumbled across a finite state machine when reading the docs
<clever> Dezgeg: https://gist.github.com/cleverca22/ae4bdcde92da16d222e91b6df35905b5 this is the code behind that image
ThatDocsLady has quit [(Quit: Arma-geddin-outta-here!)]
ixxie has joined #nixos
<sphalerite> can I use a specific output of another derivation as a build input? The manual mentions that it will use dev if that exists or the first output otherwise, but can I choose?
<clever> sphalerite: buildInputs = [ foo.bin ];
<sphalerite> ah right, thanks
frnwtr has joined #nixos
<angerman> what's the difference between import and callPackage?
<clever> angerman: import just returns the top level expression in the given file
<clever> angerman: callPackage will import it, inspect what arguments its asking for, then call it with those arguments from pkgs.
<angerman> clever and all the custom callPackage functions will use pkgs + what ever extra scope they were given?
<clever> angerman: yeah
<clever> and it also takes an attribute set of further overrides
<angerman> so import ... { arg1, arg2, arg3 }; ist the same as callPackage ... {}; given that arg1, arg2 and arg3 are in scope.
<clever> so callPackage ./foo.nix { bar = 42; } will always set bar to 42
<clever> yeah
<clever> callPackage will also detect if it even needs arguments
<clever> so you could have a bare file that doesnt start with { something }:
<clever> and it will return the contents, rather then error out
<angerman> so it's essentially: callPackage ... args; is import ... (magic // args);
* angerman is thinking about writing some introductory stuff on nix, wrt what he leared over the last two or so weeks.
<clever> angerman: callPackage will also accept a lambda directly
<clever> angerman: so you can do pkgs.callPackage { stdenv, hello }: stdenv.mkDerivation { name = "foo"; buildInputs = [ hello ]; } {};
s1lvester has joined #nixos
<angerman> feels like callPackage is the sledgehammer.
<clever> callPackage is also responsible for adding .override to things
<clever> and the arguments its supplying are what .override affects
<ixxie> angerman: if you write something, I have been planning to make some visual aids for newcomers to Nix
<clever> it will internaly hold onto a reference to the un-called version of the lamba (immutable evaluation ftw!) and you can call it again with different args
<angerman> visual aids? you mean infographics? ;p
<ixxie> angerman: I asked on the mailing list for diagrams and people linked a bunch
<angerman> or binoculars?
<ixxie> yeah xD
<ixxie> haha
<angerman> I don't know. But to be honest, I find nix language to be alien.
<ixxie> me too
<clever> ixxie: i'm also working on a GUI for nixos-install, how does this look as a start? http://imgur.com/a/AQVfx
<angerman> Getting used to it though. And I did have experience with prolog, ocaml, haskell, and a variety of other langauges.
<ixxie> angerman: did you check out nix pills?
<angerman> blue or red?
<angerman> erm, no.
<ixxie> I found it to be one of the best resources for the basics
<angerman> I've just hit google a few times. Tbh. the best (most enlightening doc) was the nix manual (doh!).
<goibhniu> angerman: I also found the https://nixcloud.io/tour/ tutorial a great way to learn
<ixxie> this is the first, but the series proceeds to cover the basics of the language, packaging, etc.
<ixxie> oh yeah, the tour is also cool
<angerman> ixxie haha, yea that one I probably missed. I've come too accustomed to set googles time filter to (within last year).
<ixxie> what is missing for me is really an overview of the whole Nix ecosystem
<angerman> goibhniu thanks, will give it a try.
<kmicu> angerman: from the different point of view ‘callPackage’ is a helper for Nixpkgs set, ‘import’ is a Nix, the expression language, prime op.
<kmicu> (Not everyone use Nixpkgs/NixOS :)
<angerman> kmicu, say what :D
<ixxie> clever: the over interface looks great, window systems are intuitive; the tricky part is that now you make partitions looks like folders, which to me is a bit unintuitive. Have you considered a tabular layout?
ThatDocsLady has joined #nixos
<clever> angerman: here is an expression i wrote that does not directly use nixpkgs itself: https://github.com/cleverca22/nix-tests/blob/master/bare-env.nix
<clever> ixxie: i'm basing it loosly on the ubuntu installer, which i recently had to run while testing kexec stuff
<ixxie> clever: I liked the way gparted did it http://gparted.org/screens/gparted-main-window.png
<ixxie> clever: btw, why are you not simply using gparted or some other existing gui?
<clever> ixxie: it has to run over http
<angerman> infinite recursion. Whee.
<ixxie> oh yeaaah
<ixxie> I forgot about that super awesome feature ^^
<clever> ixxie: the screenshot i linked is running entirely in chrome, and remote-controlling the installer
<ixxie> yeah I recall clever, you explained that to me a few months ago.
s1lvester has quit [(Ping timeout: 250 seconds)]
<ixxie> was it qt you were using or?
s1lvester has joined #nixos
<clever> ixxie: yeah, QT for the backend
<clever> and QX for the frontend
<angerman> so how do I break recursion? say I have a and b, b depends on a, but a depends on b for testing.
<clever> ixxie: let me grab some screenshots to show what im basing it on roughly
<angerman> but as testing is not mandatory for building, it's not really a recusion problem.
<ixxie> clever, are you working with http://qtparted.sourceforge.net/
<clever> angerman: most packages have a checkPhase, that just runs between make install and make i believe
<clever> ixxie: libparted
<angerman> clever these are haskell packages.
<NixOS_GitHub> [nixpkgs] abbradar closed pull request #21137: use symlink to ensure cupsd.conf PATH always points to a valid store path (master...cupsd-path) https://git.io/v11SP
tumm_ is now known as tumm
<ixxie> I see clever, but notice how in the ubuntu installed it also arranges the partitions in a table
johann__ has joined #nixos
<ixxie> it helps provide an overview of the details of each partition
<clever> ixxie: yeah, i am thinking of switching it to http://www.qooxdoo.org/5.0.1/demobrowser/#widget~Tree_Columns.html
<NixOS_GitHub> [nixpkgs] guyonvarch opened pull request #21141: ffcast: init at 2.5.0 (master...init/ffcast) https://git.io/v1M4r
<clever> ixxie: would that layout work better>
<ixxie> clever: I think so! I was just gonna say, in gparted they use a similar one, it has the advantage of both allowing for nesting while having a table layout to organize the information
<ixxie> best of both worlds!
<clever> yep
<clever> you can also click js code in that page, to see how simple its implemented
<ixxie> neat
arianvp2 has joined #nixos
<arianvp2> Hey
<clever> ixxie: i dont think ive seen any other framework with docs this detailed
<arianvp2> but I get an error about "undefined variable security"
<arianvp2> if I try to use it
<ixxie> cleve: one thing you should keep an eye on is the choice of icons for various types of drive sections, to distinguish between physical drives, partitions, LVs, etc.
<ixxie> clever* :P
<clever> ixxie: yeah, i'll need to get better icons, i havent opened an image editor once while creating this
<ixxie> but that should be easy enough :)
<kmicu> Hi arianvp2 what’s your NixOS version? You can check by executing ‘nixos-version’.
<clever> all of this is the defaults for TreeFolder and TreeFile
<angerman> great, the hackage-packages.nix has the same circular dependencies (clock -> tasty -> clock -> ...) however that somehow works... I'm confused.
<arianvp2> 16.03 but I just updated to 16.09. let me reboot for a sec
<ixxie> clever: if you need some new icons I can make them for you as well, but there are many existing sets out there which could be usable
<LnL> angerman: fixpoints
<clever> ixxie: yeah, i can just google it some, i also know some people elsewhere that do graphics work
<arianvp2> hmm
<arianvp2> update doesnt seem to work
<arianvp2> so I added the 16.09 channel
<arianvp2> and I did rebuild-switch upgrade
<arianvp2> but it still reports 16.03?
<kmicu> arianvp2: check with ‘sudo nix-channel --list’ if you have changed the nixos version for the system and not for your user.
<arianvp2> haha thanks that was it
<ixxie> clever: well, offer stands if you need me ^^ we have recently been developing a new icon style for our own schtick (you can see examples on fluxcraft.net)
<clever> ixxie: QX also has a fairly complex theming framework, oh, and it seems one of my websites died in the power outage
<arianvp2> nixos until now is great
<arianvp2> got it running on vultr and provisioning it with nixops
<ixxie> clever: so you can use this qooxdoo to supplement QX for interface details
<arianvp2> seriously nice tool
<arianvp2> such a relief if you come from ansible puppet or chef
<arianvp2> I actually have faith in my configuration and am not scared to rerun it :P
<clever> ixxie: and now comes the double-edged sword of nixos, i want to edit /etc/hosts, but i was putting off a nixos-rebuild to update, now i get all the updates!!
<arianvp2> the progress bar of nixos-rebuild switch is totally useless though
<arianvp2> so much junk in the output
Shados has quit [(Ping timeout: 258 seconds)]
<clever> angerman: -Q makes it much cleaner
<clever> arianvp2: oops, -Q
<clever> ixxie: http://gallery.earthtools.ca/android/Screenshot.png does this work from outside my LAN?
<arianvp2> thanks
<LnL> nixos-rebuild has a progress bar?
<ixxie> clever: one moment (I am at the library, the wifi blocks the IRC ports so I am on the mobile hotspot >.<
<clever> ixxie: ah, kk
<arianvp2> okay
<arianvp2> I still get "undefined variable security"
<arianvp2> =(
<ixxie> clever: it just takes a whole to load xD
<ixxie> I am also installing R at the moment xD
<clever> arianvp2: can you pastebin you configuration.nix?
<LnL> arianvp2: sounds like an issue with your configuration
<arianvp2> yes one sec
<clever> ixxie: that image is a game i played before, that used QX for its entire ui
<kmicu> arianvp2: Is that ‘security’ in the top level of configuration.nix?
<avn> clever: I case of ad-hoc fixing /etc/hosts, I do cat `/etc/hosts >/tmp/etc_hosts && ln -sf /tmp/etc_hosts /etc/hosts`
<ixxie> clever: what is /etc/hosts ?
<clever> avn: yep, ive done that before
<gchristensen> niksnut: did you see my ping re: hydra? these failures are making it very difficult to update things
<clever> ixxie: my router doesnt support handling port forwards from inside the lan, so i need to use /etc/hosts to re-route the internal websites to the LAN ip's
Shados has joined #nixos
<ixxie> clever: image isn't loading
<arianvp2> I split up my config with import
<clever> ixxie: might have been broken by the recent power outage, need to get everything setup to run on bootup still
<clever> ixxie: let me debug it on this end
<kmicu> arianvp2: you can also execute ‘nixos-option 'security.acme'’ to check if the option is recognized in your NixOS version.
jazzencat has joined #nixos
<clever> ixxie: oh, *doh*
<clever> ixxie: i forgot to update my dns after the ip changed
<ixxie> heh
<jazzencat> Turns out I had to use dd to zero my HD to get the system working again. Something got really borked along the way.
<kmicu> arianvp2: Do you see the same problem if you define security.acme.* directly in configuration.nix and not in imported files?
<ixxie> clever: give it a few years and your OS will come with an AI buttler to take care of that sort of thing
<clever> jazzencat: what is the output of "blkid /dev/sd*" now that its working?
<NixOS_GitHub> [nixpkgs] pSub pushed 2 new commits to master: https://git.io/v1MRj
<NixOS_GitHub> nixpkgs/master f8a28b8 Samuel Rivas: terraform 0.7.11 -> 0.7.13
<NixOS_GitHub> nixpkgs/master 53a95fa Pascal Wittmann: Merge pull request #21139 from samuelrivas/update-terraform-to-0.7.13...
<arianvp2> nixos-option works
<clever> ixxie: the old linux from scratch router did, i had a script that would fix the dynamic ip's
<clever> ixxie: havent reconfigured that on the nixos router
ebzzry has quit [(Ping timeout: 240 seconds)]
pi3r has quit [(Quit: Nettalk6 - www.ntalk.de)]
<arianvp2> kmciu: if I move the config to configuration.nix it works
<arianvp2> but why would that be? I dont get it
<clever> ixxie: dns will take 5mins to propagate, assuming your ISP is obeying the rules of dns
<arianvp2> seems like a bug?
<jazzencat> clever don't know, I tested it with a Windows 7 Factory restore.
<clever> arianvp2: root ${security.acme.certs."arianvp.me".webroot}; is invalid
<clever> arianvp2: you want config.security.acme
<arianvp2> why config?
<jazzencat> I'm going to try a dual-boot scenario since I do still make use of Windows on occasion.
wkennington has quit [(Remote host closed the connection)]
<clever> arianvp2: all config entries are in the config attribute set, your already using it correctly on lines 37 and 38
<arianvp2> ahh
<arianvp2> so configuration.nix lives in the config set?
<arianvp2> basically?
<clever> arianvp2: every nixos module will return a fragment of the config, and then nixos will merge all of them together, to create the final config
<clever> arianvp2: that final config is then passed as an argument into every module
<clever> arianvp2: so you are getting your own output passed in as an argument
<arianvp2> gotcha
<NixOS_GitHub> [nixpkgs] 7c6f434c closed pull request #21135: firefox: 50.0.2 -> 50.1.0, firefox-esr: 45.5.1esr -> 45.6.0esr [Critical security fix] (master...firefox-50.1.0) https://git.io/v11rB
<arianvp2> like a fixpoint?
<clever> after it has been merged with all other modules
<clever> yeah
<arianvp2> so the config variable in the lambda
<arianvp2> is the complete config
<LnL> yup, we use fixpoints a lot in nixpkgs/nixos
<clever> arianvp2: yep
<arianvp2> so this means nix is lazy?
<clever> yep
<LnL> indeed
<arianvp2> alright cool
<kmicu> arianvp2: BTW Did you get a line number and file name with that ‘"undefined variable security"’ error message?
<clever> arianvp2: and as long as the keys in your config dont depend on the config argument, it will work perfectly
<arianvp2> kmciu: yeh
<jazzencat> So, according to Windows 7 the partition scheme is MBR.
<NixOS_GitHub> [nixpkgs] 7c6f434c closed pull request #21134: firefox-bin: 50.0.2 -> 50.1.0 [Critical security fix] (master...firefox-bin-50.1.0) https://git.io/v11Vx
<clever> jazzencat: MBR doesnt need the special bios boot partition i kept telling you you had to create
<clever> jazzencat: GPT does
<jazzencat> Okay, good then I was barking up the wrong tree with that. The openSUSE Leap 42.2 kernel security update borked my computer...
<jazzencat> Now I know how to solve that issue if it happens again.
<NixOS_GitHub> [nixpkgs] 7c6f434c closed pull request #21064: firefox-bin: fix updateScript (master...firefox-bin-fix-update-script) https://git.io/v1o45
ckauhaus has quit [(Quit: Leaving.)]
<jazzencat> So, it should work if I just run an MBR-based install.
<arianvp2> alright website is up
<jazzencat> Seems gdisk also has a way of getting rid of GPT.
<clever> jazzencat: it will also work with a GPT based install if you create the bios boot partition
<arianvp2> however the letsencrypt stuff doesnt seem to have worked
<arianvp2> =(
<jazzencat> Cool. I'll keep that in mind, but the GPT and getting the right UID for the boot partition is more hassle for me at the moment, so I'll keep it simple until I know what I'm doing.
<ixxie> clever: image received, over.
<ixxie> clever: so thats all QX? impressive :)
<jazzencat> Otherwise I introduce far too much PEBKAC into the mix :)
<arianvp2> does nixos have default firewall rules?
<arianvp2> because i cant access my server from the remote network
<clever> ixxie: yeah
<clever> ixxie: in that game, they compiled all of the UI logic and QX into a single JS file, then minified it, resulting in a solid 6mb of JS
<clever> ixxie: they they broke it up into a series of <script>s("1024 bytes");</script>'s in a single html file, that gets loaded in an iframe
<clever> ixxie: so they could theme the progress bar as that whole beast loads
<jazzencat> If I am going with a multi-boot scenario, I want Windows first, then the Linuxes? Also, does it matter what order I do them in, say Gobo Linux and then NixOS...
<clever> jazzencat: id say nixos should be last
<clever> jazzencat: and windows first
<clever> jazzencat: nixos needs to have full control of the bootloader to work right, and i dont trust windows to not break things during install :P
<ixxie> clever: I know almost nothing of javascript but that kinda sounds like they are pushing it to its limits xD
<jazzencat> Okay, Windows is already in place. Gobo Linux then NixOS.
<clever> ixxie: the partition editor ive written currently compiles down to 866kb of JS
<jazzencat> I'll leave the Windows 7 Recovery partition in place, that way I can fix things if they go pear-shaped.
<arianvp2> anybody tried the letsencrypt stuff
<arianvp2> I think something is wrong with the directory settings
<arianvp2> I get
<arianvp2> Dec 14 12:20:46 nixos acme-arianvp.me-start[9093]: DeserializationError: Deserialization error: Wrong directory fields
<clever> ixxie: i had reverse engineered that game, and wrote an android UI for it, to avoid having to deal with 6mb of js on mobile: http://gallery.earthtools.ca/index.py/android/device-2013-01-16-212828.png
<kier> I installed NixOS first, then Windows, and it seems to have worked without any trouble. Wouldn't assume that it'll work for everyone though
<NixOS_GitHub> [nixpkgs] edolstra pushed 2 new commits to release-16.09: https://git.io/v1ME6
<NixOS_GitHub> nixpkgs/release-16.09 237af50 taku0: firefox: 50.0.2 -> 50.1.0, firefox-esr: 45.5.1esr -> 45.6.0esr...
<NixOS_GitHub> nixpkgs/release-16.09 953889b taku0: firefox-bin: 50.0.2 -> 50.1.0...
<ixxie> clever: neat :) were you also the one to package 0 AD for Nix xD
<arianvp2> How do I create a directory in my configuration.nix?
<arianvp2> I want to make sure "/var/www" is present
<arianvp2> for example
<clever> ixxie: 0 AD?
<jazzencat> Back to the documentation. :)
<arianvp2> Hmmm
<arianvp2> https://nixos.org/nixos/manual/options.html#opt-security.acme.certs._name__.webroot
<arianvp2> it says it will auto-create the directory
<arianvp2> but it doesnt happen
<lassulus> arianvp2: maybe the timer didn't run through yet?
<arianvp2> it does, ACME client hard crashes with
<arianvp2> "Invalid directory"
<arianvp2> DeserializationError: Deserialization error: Wrong directory fields
<lassulus> hmm, strange, I don't remember do create the directories by myself
<arianvp2> the docs says you dont have to either
<jazzencat> If I want to make a portable install of NixOS are there any special procedures not listed in the manual?
<clever> jazzencat: i would change boot.loeader.grub.device to "nodev"; after installing, or it may try to mess with the MBR on the wrong hdd during an upgrade
<arianvp2> weird right?
<clever> jazzencat: other then that, its pretty much the same as normal, just use a usb hdd
nh2_ has joined #nixos
<jazzencat> Cool.
anelson has joined #nixos
<jazzencat> Carrying a small USB drive is preferrable to hauling around my laptop all the time :)
anelson_ has quit [(Ping timeout: 250 seconds)]
<jazzencat> I need to get a lighter laptop.
ckauhaus has joined #nixos
sdothum has joined #nixos
pi3r has joined #nixos
<ixxie> jazzencat: I had a heavy laptop for years, this summer I got myself a Dell XPS 13 developer edition and I <3 it
<ixxie> NixOS mostly works well on it, although there is this weird screen flicker issue that I have yet to resolve
buttbutter has joined #nixos
<angerman> Can someone explain to me how the dependencies of "clock" and "tasty" in https://raw.githubusercontent.com/NixOS/nixpkgs/d268cef94abd4a610d039232877046fa5baabcf2/pkgs/development/haskell-modules/hackage-packages.nix work? "tasty" depends on "clock", but "clock" depends on "tasty", why does this not lead to an infinite recursion here?
<arianvp2> ugh
<arianvp2> just cant get it to work =(
ixxie has quit [(Remote host closed the connection)]
<gchristensen> anyone familiar with nixpkgs + cmake available to help we out packaging a security update?
jazzncat has joined #nixos
jazzencat has quit [(Ping timeout: 268 seconds)]
<Profpatsch> angerman: see configuration-common.nix
<Profpatsch> # break infinite recursions
<angerman> Profpatsch ahh. Hmm so I need to add that myself somehow. Let's see...
<Profpatsch> angerman: You build a version of clock w/o testing, then a version of tasty with that clock, then a version of clock with that tasty.
<Profpatsch> And you’re good.
<angerman> Profpatsch I've basically built myself a lts package set (https://github.com/angerman/stackage2nix/blob/master/lts-7.13-configuration.nix), which I set via packageSetConfig in https://github.com/angerman/stackage2nix/blob/master/default.nix. However I'll need to figureout how to set the dontCheck flag.
<Profpatsch> angerman: Inside a haskellPackages override, you simply say <pkg> = haskell.lib.dontCheck super.<pkg>
buttbutter has quit [(Remote host closed the connection)]
<Profpatsch> uh-oh
itorres has joined #nixos
<Profpatsch> angerman: I just noticed doCheck suffers from the missing laziness of mkDerivation.
<icetan> if I want to chroot into a nixos fs, what command should I give chroot so that all the nixos env stuff is set correctly?
<Profpatsch> So after dontCheck is set once you cannot overwrite that with doCheck again.
<LnL> gchristensen: I messed around a bit with the cmake derivation recently
<gchristensen> LnL: https://github.com/NixOS/nixpkgs/compare/master...grahamc:roundup-13 does it look like I did this right? the `bin` output wasn't being created
<angerman> Profpatsch thanks. looks like I got it to work.
<LnL> gchristensen: I'm not that familiar with multiple outputs, but it looks ok
<arianvp2> I created an issue: https://github.com/NixOS/nixpkgs/issues/21144
<gchristensen> LnL: I guess we'll find out after the mass rebuild :P
<LnL> gchristensen: and there are some other packages that do the same thing
Shou has joined #nixos
buttbutter has joined #nixos
<LnL> you could test by making a jasperFoo attribute with those changes, then you can compare the output without having to rebuild the world first
<gchristensen> great idea
<LnL> I did something similar when I was messing the cmake itself, since that's part of the darwin stdenv
<buttbutter> Hey. I have one of those stupid ThinkPads with the trackpoint buttons integrated into the touchpad. I want to disable the touchpad's mouse input (but maintain functionality of the buttons). I tried just setting synaptics.maxSpeed = "0.0" and also synaptics.enable = false but neither worked.
<gchristensen> mmmm these mass rebuilds go much faster with 48 cores.
fuzzy_id has joined #nixos
<clever> gchristensen: http://imgur.com/a/AQVfx
<fuzzy_id> heya
<gchristensen> jeeze, clever
<fuzzy_id> i'm trying to build haskell packages that depend on each other
<clever> gchristensen: what? lol
<fuzzy_id> obviously following the manual (8.5.3.2)
<fuzzy_id> but i always get
<fuzzy_id> dist/build/Path/To/Module_o_split: getDirectoryContents: does not exist (No such file or directory)
<fuzzy_id> when i try to build the package i depend on
<gchristensen> clever: fancy
<clever> gchristensen: once i get create partition and delete partition working, i can port forward it and let you play with the UI
ckauhaus has quit [(Ping timeout: 268 seconds)]
filterfish_ has quit [(Remote host closed the connection)]
filterfish has joined #nixos
<c0bw3b> arianvp2: some filed a PR recently stating that simp_le wasn't working anymore
<c0bw3b> simp_le is the acme letsencrypt client used under the hood
Shou has quit [(Ping timeout: 250 seconds)]
<arianvp2> ah
<arianvp2> but It was backported to 16.09 I see
<c0bw3b> if you are on stable channel you may still have a broken version of simp_le
<arianvp2> ahh
<arianvp2> how do I go to unstable?
<arianvp2> just add the channel?
<lassulus> ohoh, so my simp_le could also be broken
<c0bw3b> yes nix-channel --ad <url> <channel_name>
<c0bw3b> * --add
<gchristensen> ugh :( domenkozar: this whole thing about how release-16.09-is-broken thing is very not good
<arianvp2> but that is bad..
<arianvp2> this means that people on the stable channel lose all their certs when they upgrade
<arianvp2> :/
<NixOS_GitHub> [nixpkgs] ttuegel pushed 3 new commits to master: https://git.io/v1M2N
<NixOS_GitHub> nixpkgs/master 8faa589 Thomas Tuegel: kde5.frameworks: 5.28 -> 5.29
<NixOS_GitHub> nixpkgs/master 321987a Thomas Tuegel: kpackage: patch for package name collisions
<NixOS_GitHub> nixpkgs/master b8d31be Thomas Tuegel: Merge branch 'kde-frameworks-5.29'
<arianvp2> that kind of misses the point of a stable release
<c0bw3b> previously generated certs are not lost
<arianvp2> yes but the timer will fail and then they expire
<c0bw3b> but they can't be renewed as-is
<clever> gchristensen: here is an example of what i can do with this RPC code i made: http://pastebin.com/fcpB7Bj6
<fuzzy_id> found the clue myself: disable split object (or something like that) in default.nix:
<fuzzy_id> enableSplitObjs = false;
<fuzzy_id> found here:
<fuzzy_id> just in case someone searches for this :)
<gchristensen> c0bw3b, arianvp2: I'm working on getting this release out to users ASAP, sorry, this is obviously a precarious position
<arianvp2> luckily I haven't been able to create a cert yet :)
<c0bw3b> gchristensen: thanks a lot. yheah it seemed to me that this update was bound to be cherry-picked into stable
<gchristensen> it was cherry-picked in to stable
<c0bw3b> \o/ :)
<gchristensen> but a stable update hasn't been shipped in a week or more now for hard to know reasons
c0bw3b has left #nixos []
<arianvp2> hmm
<arianvp2> Is it easy to switch back from unstable to stable by the way?
Shou has joined #nixos
<arianvp2> This is a new server im setting up. I just want to get my blog running
<arianvp2> but I could switch to unstable to get the fix and switch back after stable it released?
<arianvp2> or would that seriously break things?
<gchristensen> arianvp2: unstable doesn't have a working letsencrypt either
<arianvp2> ow :(
<gchristensen> something has hung up our update process and it is blocking updates (because the system thinks the update is unsafe)
<gchristensen> just updated https://github.com/NixOS/nixpkgs/issues/21145 about it
ckauhaus has joined #nixos
ckauhaus has quit [(Ping timeout: 256 seconds)]
hotfuzz has joined #nixos
<arianvp2> gchristensen: thanks for the quick response
hotfuzz_ has quit [(Read error: Connection reset by peer)]
<arianvp2> lets hope we can get hydra fixed =)
<gchristensen> you're welcome
<gchristensen> I've been annoyed by the issue for several days now, but time for a formal issue to be filed :)
<angerman> Profpatsch thanks again! Got it to work.
<Profpatsch> nice
ckauhaus has joined #nixos
<angerman> How often per day does nixpkgs-unstable mutate?
Shou has quit [(Ping timeout: 264 seconds)]
<clever> angerman: nixpkgs-unstable should update any time hydra has finished building everything, for x86 and darwin
<clever> angerman: and a small number of basic tests pass
<Mic92> gchristensen: maybe we could change something trivial to force a rebuild of the kernel.
<clever> angerman: http://howoldis.herokuapp.com/ links to the job on hydra
<angerman> so, how ofter would that be per day, do we have averages?
<clever> angerman: we have the latest change, but no historical data
<angerman> Hmm.. nixpkgs-unstable is a channel, so it's git backed, right?
eacameron has joined #nixos
<angerman> I could probably tell from the git history then.
<gchristensen> Mic92: doesn't fix it
<gchristensen> Mic92: timeouts have been plaguing the kernel builds for a week, with several changes causing them to rebuild
<clever> angerman: the git history will be identical to the history of master, it will simply stop at the revision that is known-good
<angerman> clever and hydra would only rebuild expressions that changed, right? It wouldn't rebuild everything, would it?
<clever> angerman: correct\
<Mic92> gchristensen: I saw something similar for chromium.
<gchristensen> chromium frequently takes like 8 hours to build though
<gchristensen> but it could be related
<gchristensen> I don't know :P this is beyond my knowledge
<clever> angerman: oh, just remembered, i have a better answer
<Mic92> gchristensen: the failing scipy build looks also like ressource depletion to me: https://hydra.nixos.org/build/44771546/nixlog/1
<clever> angerman: this job is setup to follow nixos-unstable-small, and it depends on the nixpkgs expression
alx741 has quit [(Quit: alx741)]
<clever> angerman: so every time nixos-unstable-small changes, this has a new eval and a new build
<angerman> clever great! So here's my reasoning, if I had a channel loosely based on nixpkgs-unstable, I would need to either fix the revision, or try to track every valid unstable revsion and rebuilt whats needed.
<clever> angerman: yeah
mudri has joined #nixos
<angerman> which could end up being a no op, if only orthogonal expressions in nixpkgs changed, or a hefty if something fundamental changed.
leothrix has quit [(Ping timeout: 268 seconds)]
<clever> angerman: i would generaly try to get my code into nixpkgs, so hydra is building it for me, and is always going to be matched to the nixpkgs revisions
<clever> but for private things, id just eat the compile time, its not that bad
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #21130: small fixes (master...master) https://git.io/v1132
<angerman> clever well, for a subsential set of packages it would add extra overhead to hydra, no?
<clever> angerman: depends a lot on how long it takes to compile and how many users will be using it
<clever> angerman: hmmm, and if you setup your own hydra, that always follows nixos-unstable, and builds foo against it at every change, you can set it to keep the last 20 builds
berce has quit [(Ping timeout: 268 seconds)]
<clever> angerman: and then as long as the users are within 20 changes of the latest nixos-unstable, it will be in that cache
<clever> assuming foo hasnt been changed since
<angerman> I'd probably go for a time based frame, and not a fixed number of revisions, but yes.
eacameron has quit [(Remote host closed the connection)]
<clever> http://hydra.earthtools.ca/jobset/hydra-example/netboot#tabs-configuration doesnt have a time option right now, "Number of evaluations to keep"
<clever> and why do i have it set to 0? that job has no point if its 0, lol
<clever> and it looks like pango changed in master, so now my hydra is busy rebuilding things
<clever> wine and gstreamer are up next
<hodapp> huh... I just had the startling realization that it's probably quite easy to copy my NixOS configuration from my laptop over to my desktop once I get the laptop working well
<arianvp2> :D
<hodapp> though I'll probably want to make sure factor out hardware-related stuff to a separate configuration file
<dtzWill> :D
<hodapp> I don't think there's much there except maybe LUKS setup
Shou has joined #nixos
ryantrinkle has quit [(Ping timeout: 245 seconds)]
cpennington has joined #nixos
<NixOS_GitHub> [nixpkgs] globin closed pull request #21131: fail2ban service: improve ssh jail (master...fail2ban-service) https://git.io/v11ny
reinzelmann has quit [(Quit: Leaving)]
jgertm_ has quit [(Ping timeout: 246 seconds)]
johann__1 has joined #nixos
<arianvp2> woohoo
<arianvp2> I'm now officially running on nixos guys
<arianvp2> =)
<gchristensen> woohoo! congratulations, arianvp2! thank you for sticking through the SSL issue :)
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/v1MKd
<NixOS_GitHub> nixpkgs/master 88f53c9 bnikolic: bazaar: enable sftp transport (#21132)...
c0bw3b has joined #nixos
johann__ has quit [(Ping timeout: 258 seconds)]
kahiru has joined #nixos
johann__1 is now known as johann__
leothrix has joined #nixos
<kahiru> hey, I tried installing nix on archlinux using "curl https://nixos.org/nix/install | sh" and it fails while trying to run nix-channel --update with "unable to check ‘https://nixos.org/channels/nixpkgs-unstable’". I tried switching to http instead of https as recommended somewhere as a workaround, but it didn't help. any ideas?
berce has joined #nixos
buttbutter has quit [(Ping timeout: 268 seconds)]
iyzsong has quit [(Quit: night.)]
Shou has quit [(Ping timeout: 256 seconds)]
<clever> gchristensen: and i now have partition create working
hotfuzz has quit [(Read error: Connection reset by peer)]
hotfuzz has joined #nixos
<domenkozar> gchristensen: status report about 16.09?
<gchristensen> domenkozar: I tried reproducing many of the failures on hydra, and none of them will fail locally
<NixOS_GitHub> [nixpkgs] zimbatm closed pull request #21141: ffcast: init at 2.5.0 (master...init/ffcast) https://git.io/v1M4r
<gchristensen> domenkozar: I'm suspicious that the hydra slaves are in general over-loaded, and the ones capable of running tests are perhaps even more so
<clever> gchristensen: i ran into a very weird bug with qemu's virtfs and 9p stuff a few months back, some of the nix store directories got cross-linked at some point
<clever> gchristensen: so the directory contained files from a totally different directory
<clever> gchristensen: but the cross-link was constant between restarts of qemu
<gchristensen> domenkozar: at this point I'm having a hard time trusting hydra's failures, and don't know where to begin in helping. I would restart failed jobs in to oblivion if allowed, in order to brute-force my way to a success if necessary, but that is no good long-term, and also I don't have permissions to do so.
<clever> gchristensen: can you see how the probelm i ran into would just break everything that runs into it?
jgertm_ has joined #nixos
arianvp2 has quit [(Ping timeout: 260 seconds)]
<clever> domenkozar: gchristensen: http://i.imgur.com/zd1fpWG.png
<gchristensen> yikes!
<clever> gchristensen: yeah
<clever> gchristensen: i have no idea what caused that, but restarting qemu had no effect, it just vanished when the host rebooted
ckauhaus has quit [(Ping timeout: 260 seconds)]
<clever> [root@amd-nixos:~]# ls -lhia /nix/store/j28g21z97pqasrhhqxlgxzcrxij2rbxj-dbus-libs-1.8.20/lib/
<clever> 652323 dr-xr-xr-x 4 root root 8 Dec 31 1969 .
<clever> heh, that exact storepath is still in my store, and still has the same inode#
eacameron has joined #nixos
jazzncat is now known as jazzencat
<NixOS_GitHub> [nixpkgs] peti pushed 10 new commits to master: https://git.io/v1M1q
<NixOS_GitHub> nixpkgs/master a21a11b Peter Simons: LTS Haskell 7.13
<NixOS_GitHub> nixpkgs/master 7c3839b Peter Simons: hackage-packages.nix: automatic Haskell package set update...
<NixOS_GitHub> nixpkgs/master 7f1d74d Peter Simons: haskell-brick: update overrides with regard to vty
johann__ has quit [(Quit: Leaving.)]
cpennington has quit [(Ping timeout: 256 seconds)]
<NixOS_GitHub> [nixpkgs] NeQuissimus opened pull request #21146: Subversion (master...subversion) https://git.io/v1M1z
<mudri> Has anyone tried configuring individual IBus input methods (via ibus-setup)?
<mudri> ericsagnes ^ perhaps?
Kiko[m] has quit [(Quit: Client limit exceeded: 5000)]
SuprDewd has joined #nixos
Seichi has joined #nixos
Seichi has quit [(Client Quit)]
Seichi has joined #nixos
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 258 seconds)]
<NixOS_GitHub> [nixpkgs] globin pushed 1 new commit to master: https://git.io/v1MMx
<NixOS_GitHub> nixpkgs/master b217c0a Maarten Hoogendoorn: yarn: init at 0.17.8 (#20635)
arianvp has joined #nixos
<arianvp> If I use nixops
<arianvp> how can I split up the configuration of deployments over multile files?
<arianvp> can I "import" an expression?
<lewo> how are I generated amazon and virtualbox images? where could I find expressions related to this?
<lewo> clever, thx
edvorg has quit [(Ping timeout: 246 seconds)]
<clever> lewo: make-disk-image.nix does the bulk of the work for vbox, then the postvm script will convert the qemu image into a vbox image
cpennington has joined #nixos
<arianvp> If i use imports = [ "./configuration.nix"] in nixops I get abosolute path errors
<gchristensen> domenkozar: what do you make of all this?
<gchristensen> arianvp: do imports = [ ./configuration.nix ]
<arianvp> it doesn't work :/
<gchristensen> does ./configuration.nix exist?
<arianvp> yes
<clever> arianvp: what error does it give when it doesnt work?
<arianvp> refresh i made a copy error
<clever> "./arianvp.me/configuration.nix"
<clever> you need to remove the quotes on this
viric has joined #nixos
johann__ has joined #nixos
alx741 has joined #nixos
ebzzry has joined #nixos
ckauhaus has joined #nixos
viric_ has quit [(Ping timeout: 250 seconds)]
<arianvp> that worked :)
<arianvp> so nixops tries to ssh as root
<arianvp> can I change that to a different user?
<clever> it needs root to activate the configuration
viric has quit [(Ping timeout: 250 seconds)]
<arianvp> yeh but it's good practice to disable root login after deploy
<arianvp> but then I cant deploy anymore :P
viric has joined #nixos
<clever> you can set it so root login wont accept a password, only an ssh public key pair
mexisme has quit [(Ping timeout: 258 seconds)]
<clever> arianvp: services.openssh.passwordAuthentication = false; and it will never accept another password
ebzzry has quit [(Ping timeout: 245 seconds)]
<clever> so the only way in is by brute-forcing a keypair thats probably 2048 bits long
<Mic92> I guess they opt out for root, because sudo without password comes with its own set of problems
<clever> i think the reason most distro's disable root login, is because its easyer to guess the login is 'root' then to figure out if its arianvp, clever, Mic92 or something else
<clever> and turning root login off, just forces the attackers to have to guess 2 variables at once
<gchristensen> it is good practice to disable root. I wish nixops didn't require root.
<clever> gchristensen: as long as passwords are off, i cant see any real harm in root being enabled
<Mic92> clever: well just look at the ssh prompt, and use ubuntu instead.
<arianvp> hmm yeh disabling password should be sufficient
<clever> Mic92: ubuntu kind of defeats the whole point :P
<arianvp> woop nixops deploy is running
<gchristensen> well you're supposed to delete the ubunt usuer
<clever> gchristensen: id rather just not have an ubuntu user, and the directions say to disable root instead
Rotaerk has quit [(Read error: Connection reset by peer)]
<sphalerite> I need to patch a proprietary executable to find libstdc++.so.6. I figure I need to use patchelf to set the rpath, but where do I get the path to libstdc++.so.6 in a nix expression? It seems to live in /nix/store/djd2r4cnbcx4vfbj1qalg85vjbcslwxv-gcc-5.4.0-lib/lib/ but nixpkgs.gcc doesn't seem to have a lib attribute, nor does ${gcc}/lib exist.
<arianvp> does nixops use the channel of your local machine?
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/v1M9v
<NixOS_GitHub> nixpkgs/master ebd85b6 Jörg Thalheim: ferm: reload rules on updates instead of restart
<clever> sphalerite: pkgs.gcc is a bash script that wraps gcc
<clever> sphalerite: usualy, you just want --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)"
<gchristensen> arianvp: yeah
<sphalerite> Right... So where does the actual gcc live? I've only been able to find wrappers using nox
<sphalerite> aah ok
<arianvp> oops :D
<arianvp> aaand im running unstable now
<gchristensen> heh
<clever> sphalerite: there is also gcc.cc.lib
<clever> sphalerite: which lets you access the gcc behind the bash script
<clever> arianvp: and this is how you beta test unstable for your server!
<sphalerite> aah right. I'll try with the rpath approach just to see if it works right, then move to the dynamic linker thing if that's the preferred solution.
<Mic92> arianvp: I also run my server on unstable,
<Mic92> kinda works
Mercuria1Alchemi has quit [(Ping timeout: 250 seconds)]
<clever> sphalerite: the dynamic linker is what reads the rpath and obeys it
<clever> sphalerite: so it cant find the linker in rpath
<sphalerite> oh
<sphalerite> I did --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 for the linker. Is that practically the same thing?
<NixOS_GitHub> [nixpkgs] Mic92 opened pull request #21147: man-pages: fix conflict with shadow-utils (master...man-pages) https://git.io/v1M9r
<clever> sphalerite: the interpreter field in an ELF file is almost identical to the #! in a shell script, you can even run the dynamic linker on an unpatched ELF file
<sphalerite> Or are there differences?
<clever> sphalerite: that will work on 64bit, but break on 32bit
<sphalerite> right
<clever> $NIX_CC/nix-support/dynamic-linker is a file that has the correct path in it
<clever> so it just works on all arches
<sphalerite> that's neat
<sphalerite> But I guess with a precompiled thing it doesn't really matter anyway as it's compiled for a specific arch. But yeah it's a nicer approach
<clever> yeah, you would need to have 2 download urls, to grab the 32 or 64bit build
<clever> the nixos skype package avoids that, by going 32bit only
<sphalerite> does skype even make 64-bit builds?
<clever> it might have been an upstream choice, lol
<clever> teamspeak appears to support both
<sphalerite> yeah I seem to recall running skype on debian and ubuntu requiring 32-bit libraries as well
ckauhaus has quit [(Ping timeout: 250 seconds)]
<sphalerite> ♥ proprietary software...
<clever> nixos at least makes it trivial to get the 32bit libs installed
<sphalerite> Actually the game that I'm trying to get running is only partly proprietary, I could actually compile the binaries myself (the game data is proprietary though)
<sphalerite> well so do debian and ubuntu now
<clever> ah
<clever> it would be neat to make a proper nixos package that compiles the game
<sphalerite> dpkg --add-architecture i386; apt update; apt install <package>:i386
<clever> if you can point it at the data files in $HOME
<sphalerite> yeah, that's what I'll probably do later
<clever> in the past, i have made a usb stick, that had both x86-64, and armv6l on it
<clever> debian wouldnt like that :P
<clever> it booted on both platforms, and shared a large chunk of the configuration.nix
<sphalerite> that's nice
<sphalerite> I'm looking at getting a router that's not as useless and insecure as the ISP-supplied one. Would you recommend getting one that runs nixos and running nixos on it?
<clever> my router is a proper server with 3gig of ECC ram, dual-processor, and a couple gigabit ports
<clever> and it runs nixos
<clever> the only downside, the power went out yesterday, and it sucks enough power to kill a UPS in ~8mins
<sphalerite> heh
<clever> "proper" router hardware would last far longer
<sphalerite> what about more "normal" routers? Are there any that would run nixos?
<clever> the the junk my ISP supplied doesnt allow wifi and wired to connect
<clever> so ssh and nfs are useless
<clever> let me check my bookmarks, i had something interestign saved
<sphalerite> My ISP-supplied router actually has SSH on it
<sphalerite> however.... "Unable to negotiate with 192.168.1.1 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1"
mudri` has joined #nixos
<clever> you may need to enable an older insecure key algo in the ssh client
<clever> ssh -vvvv can give a lot more details
<c0bw3b> spharelite: you can get a Shuttle DS57U : fanless, low power consumption and 2 gigabit ports
<c0bw3b> *sphalerite sry
<gchristensen> fpletz: btw that server costs about $6,500
ckauhaus has joined #nixos
mudri has quit [(Ping timeout: 250 seconds)]
<clever> sphalerite: still digging for the right option
<sphalerite> Oh, that costs £200... I was looking to spend a little less
<sphalerite> I'm a student and currently unemployed :p
esmiurium_ has quit [(Ping timeout: 256 seconds)]
<sphalerite> I mean, I also intend to get a NAS one day, and I guess I could get a machine that will do both as a NAS and as a router
<clever> sphalerite: something has been acting up with my internet lately, it takes forever to connect to something
<sphalerite> But not with my current finances :D
<avn> sphalerite: you look for barebone machine?
<gchristensen> get you a machine that can do both
<avn> I take https://www.zotac.com/us/product/mini_pcs/ri323 for my new router ;)
<avn> clever: btw, does you installer ready for some tests? ;)
<clever> avn: the old version has no controls right now, it so its about as usefull as a bash script that has been linked here a few times before
<clever> avn: the new version can create partitions with a full ui, but it cant format them, or run nixos-install
<sphalerite> avn: also a bit above the price range I was aiming for
<goibhniu> sphalerite: you can surely get an old desktop for free that would do a great job (but may be power hungry)
<clever> sphalerite: aha, remembered the right keywords: http://www.banana-pi.org/r1.html
<avn> btw, does our install media have sshd?
<sphalerite> Are there any conventional routers that run NixOS? Or would I be sticking with {dd-,open}wrt with those?
<clever> sphalerite: this board has 5 ethernet ports and a dual core processor
<avn> goibhniu: old desktop haven't wifi port usually
<clever> sphalerite: its an arm system, so you could run nixos on it (i have nixos on my rpi's), and my x86 router is running nixos also
<avn> goibhniu: but looking for little store shopping old bank desktop can be an option
<clever> sphalerite: in theory, the banana-pi r1 could meet everything you need
<goibhniu> avn: very cheap to add though, right?
<sphalerite> I'll take a look at that one then!
<sphalerite> Yep, that looks more like the price range I was aiming for
<avn> goibhniu: if you in us/uk where ebay/amazon have free shipping ;)
<goibhniu> .. or a laptop on ebay with a broken screen etc.
ryanartecona has joined #nixos
sigmundv_ has joined #nixos
<clever> sphalerite: dang, the R1 is only ~double the cost of the headset i need to replace
<clever> sphalerite: and they are both on newegg!
<sphalerite> Yeah I'm in the UK
roconnor has joined #nixos
<clever> sphalerite: looks like you have 3 options in the UK: http://www.banana-pi.org/shop.html
<sphalerite> But I'm also going to Sweden tomorrow so I could get it sent there
<sphalerite> or Germany because I'm spending new year's there
cpennington has quit [(Ping timeout: 248 seconds)]
<clever> sphalerite: *doh*, somebody copy/pastad the specs from the banana pi site into amazon, and all of the linebreaks vanished
<clever> so now words are just smushed together, lol
musicmatze[m] has quit [(Quit: Client limit exceeded: 5000)]
<clever> newegg*
<sphalerite> nice
eacamero_ has quit [(Remote host closed the connection)]
<clever> CPUA20 ARM Cortex™-A7 Dual-CoreGPUARM Mali400MP2 Complies...
<clever> vs the specs on http://www.banana-pi.org/r1.html
eacameron has joined #nixos
<sphalerite> of course what would be ideal is something that has free wifi drivers and firmware
<clever> sphalerite: this also has room for 1 sata drive, so you could make it into a 2tb NAS at a later date, it appears to also be able to run from SD
<sphalerite> but that severely limits the options
<clever> sphalerite: the R1 appears to have b/g/n wifi
<sphalerite> yeah but it's rtl8192 which requires firmware blobs
stepcut has joined #nixos
<clever> ah
<clever> sphalerite: due to various things causing problems, ive been getting wifi thru an old d-link router for years
digitus has joined #nixos
<jazzencat> Will 200MB be enough for a boot partition?
<clever> sphalerite: all i did was turn off the DHCP server and give it a static ip thats out of the main dhcp range
<clever> jazzencat: should be plenty
ckauhaus has quit [(Quit: Leaving.)]
<sphalerite> jazzencat: If it's exclusive to nixos. I have issues with my 200MB boot partition, but it's shared between debian, mac os (bleurgh) and nixos so it's probably fine for you
<jazzencat> Yeah, this is going to be NixOS exclusive.
JonReed has joined #nixos
<clever> i have one system running with a 64mb boot partition
<jazzencat> Hm, learn something new: don't use gdisk on MBR system, it adds a GPT and I don't know what the correct offset for my drive is ^,^
<clever> i just use GPT on everything now
<jazzencat> I have 8GB of RAM, should I bother with 2x RAM for SWAP if I want the system to be able to suspend to disk/hibernate.
<jazzencat> Hehe. Yeah, but remember how much trouble it was giving me the other day? I don't want to go through that again, just yet.
<clever> jazzencat: id say you only need ~9gig of swap for hibernate, assuming very little actualy goes into swap when running
nliadm has left #nixos ["Leaving"]
cpennington has joined #nixos
<jazzencat> Okay. I plan on using Enlightenment for my DE with e16 as the WM backup if I need it.
<clever> sphalerite: ugh, newegg.com has the items i want, for $160 total, but refuses to ship to canada
<clever> sphalerite: newegg.ca has the headset for over $200, and doesnt have the banana pi
<clever> sphalerite: and to make it extra crazy, the banana pi is shipping from isreal, lol
<sphalerite> Get them to ship to a friend in the US and find an excuse to visit the friend? :p
<clever> sphalerite: the last time i did that (with an amazon kindle) it refused to even install a free app, until i gave it an american credit card
<sphalerite> That's what you get for buying a kindle ;p
<clever> but it was on sale!
<jazzencat> Do I need to tell GRUB to install to /dev/sda1 or just /dev/sda in configuration.nix?
<clever> jazzencat: it has to be /dev/sda
<JonReed> Hi, if I'm getting "Exec format error" when trying to `modprobe wl`, does this mean that it wasn't compiled right somehow?
<jazzencat> I want connman for network, is that networking.connman.enable = true?
<clever> JonReed: probably, how did you add it to your system?
<Mic92> it sees to me that restartTriggers is actually a no op.
<sphalerite> jazzencat: https://nixos.org/nixos/options.html looks like it
<Mic92> I cannot find any reference to it in the perl script, which manages upgrades
<Mic92> *it seems
johann__ has quit [(Quit: Leaving.)]
<clever> Mic92: { X-Restart-Triggers = toString config.restartTriggers; }
<JonReed> clever; I have included it to configuration.nix as boot.extraModulePackages = [ pkgs.linuxPackages_4_4.broadcom_sta ];
<clever> Mic92: i think it will embed all of the triggers into the .service file
<clever> JonReed: ah, i see what you did wrong
<clever> Mic92: so if a trigger is modified, the service file changes
<JonReed> clever: uname -r is `4.4.35`
<clever> Mic92: and nixos-rebuild detects the .service changing
alx741 has quit [(Quit: alx741)]
<clever> JonReed: boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
<clever> JonReed: it needs to reference the exact package set that your kernel came from
kahiru has left #nixos ["http://quassel-irc.org - Chat comfortably. Anywhere."]
kahiru has joined #nixos
<Mic92> clever: switch-to-configuration.pl does not use X-Restart-Triggers
<clever> Mic92: no, switch-to-config checks if the old foo.service symlink differs from the new foo.service symlink
<clever> Mic92: and the restart trigger causes the foo.service file to get re-compiled, causing the symlink to change
<jazzencat> Spiffy.
FRidh has quit [(Remote host closed the connection)]
<Mic92> clever: ah, ok, got the logic - too bad, I wanted something which reloads on configuration change, but restarts on package upgrades.
JonReed has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
<clever> Mic92: ah, not sure how you would do that
<clever> Mic92: and reload on config change is tricky if your passing it the config on the cmdline
<clever> that file is immutable, so it has to restart to change the path
kahiru has left #nixos ["http://quassel-irc.org - Chat comfortably. Anywhere."]
proteusguy has joined #nixos
berce has quit [(Ping timeout: 258 seconds)]
FRidh has joined #nixos
JonReed has joined #nixos
* jazzencat types nixos-install and crosses fingers that the configuration.nix is properly set up.
<jazzencat> I have a wired connection so if something goes wrong it should be fixable.
<JonReed> clever: Thanks. I would take me forever to figure out what was wrong. It still does not show wlan when I run `ip link`, but it least I can `modprobe wl` now. I'll try to figure out what is wrong now on my own.
<clever> JonReed: check dmesg
proteusguy has quit [(Ping timeout: 258 seconds)]
<JonReed> clever: wl: module licence 'MIXED/Proprietary' taints kernel'
<JonReed> This is the only message
<clever> JonReed: and can you pastebin lspci -v?
ryanartecona has quit [(Quit: ryanartecona)]
<JonReed> clever: I have BCM43142, if that's what you're looking after
<clever> JonReed: line 133 says that the wl driver did connect to that pci device
<clever> JonReed: what is the output of "ip link"?
<clever> that is strange
<clever> JonReed: all i can think of is to reboot, udev does some magic to load the right drivers on startup
<JonReed> clever: Hm, will it know to load wl the next time? (I loaded it manually using `modprobe wl`).
<clever> JonReed: when you do "modinfo wl" you should see a crap-ton of aliases, there is one for every pci device it claims to support
<clever> JonReed: udev will try to load it via those aliases, when it detects the pci device
<clever> and it will also get any related drivers that it also needs, probably
<NixOS_GitHub> [nixpkgs] Mic92 opened pull request #21149: bird: refactor module (master...bird) https://git.io/v1MhO
<JonReed> clever: So, modprobe modifies some state that udev then uses?
<clever> nope
<gchristensen> my build server is running at a load average of 104 O.o
<clever> JonReed: modprobe just loads a module, bypassing udev entirely
<jazzencat> Hm, I goofed something. It's not booting to the HD.
<clever> JonReed: now that you have the module in extraModulePackages, udev should find it on bootup
<clever> jazzencat: is it doing anything at all when it tries to boot the hdd?
<JonReed> clever: I'll probably need to blacklist bcma then?
<jazzencat> Yeah, goes to the PXE option.
<clever> JonReed: id try just rebooting without any more changes first
c0bw3b has left #nixos []
<clever> jazzencat: can you boot from the ISO again and pastebin the output of "mount" and your configuration.nix?
<JonReed> clever: Ok
civodul has joined #nixos
JonReed has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
<jazzencat> Yes, give me a sec.
<jazzencat> Thanks for all your help, clever :)
<jazzencat> Typo :S
<jazzencat> There we go.
<clever> jazzencat: and what is inside hardware-configuration.nix?
frnwtr has quit [(Quit: WeeChat 1.5)]
<jazzencat> The install process finished without error.
<clever> jazzencat: and what about the output from "ls /mnt/boot ; umount /mnt/boot ; ls /mnt/boot"
proteusguy has joined #nixos
JonReed has joined #nixos
<jazzencat> ls /mnt/boot: background.png, grub, kernels, lost+found
<jazzencat> umount /mnt/boot && ls /mnt/boot is blank.
<clever> that sounds normal
<clever> are you sure the bios is configured to boot from the hdd?
<JonReed> clever: Thanks again. wlan is now showing. As you said, udev was loading `wl` by itself already. I had to only blacklist bcma that it was also loading, and everything started working.
pi3r has quit [(Quit: Nettalk6 - www.ntalk.de)]
<jazzencat> It should be.
<clever> jazzencat: check it again just incase
<jazzencat> It shows up in the boot-selector but when I select HDD it goes to Intel UNDI, PXE-2.1
<NixOS_GitHub> [nixpkgs] e-user opened pull request #21150: sssd: init at 1.13.3 (master...pkgs/sssd-1.13.3) https://git.io/v1Dvo
<clever> if you boot from the iso again, what does this output: "hexdump -C /dev/sda | head -n50"
digitalmentat has joined #nixos
<NixOS_GitHub> [nixpkgs] schneefux opened pull request #21151: shaarli: 0.8.0 -> 0.8.1 (master...pkg.shaarli) https://git.io/v1Dvb
<digitalmentat> is there a tool for converting a Nix expression to JSON on the CLI? I'm having trouble figuring out how I'd do that with nix-shell easily without needing to write a bunch of Nix code
<Mic92> digitalmentat: toJSON the builtin?
rly has quit [(Ping timeout: 264 seconds)]
<digitalmentat> yes but how would I feed a nix expression into it from stdin? the builtins are all within the context of Nix expressions...maybe I could push it in via `--argstr`?
<clever> digitalmentat: simplest thing would be to make a shell.nix containing your entire expression
<clever> and then just run nix-shell without any arguments
<digitalmentat> yeah, we wanted to pipe the output from cabal2nix to stdin
<digitalmentat> convert to JSON, do a few things, then convert back to a nix expr
<digitalmentat> not a critical thing, just a curiosity / desire
<Shell> digitalmentat: nix-instantiate --eval -E ${cabal2nix etc etc} would work, I think?
<Mic92> digitalmentat: makefu showed me some tool at some point
<Shell> oh
<Shell> nix-instantiate --eval --json -E ${cabal2nix etc etc}
erasmas has joined #nixos
<Shell> oh, wait, you want the actual AST, not the evaluation of it. hmm. >.>
<clever> jazzencat: yep, grub is correctly installed, it should be booting
<clever> jazzencat: do you see any options in the bios like secure boot or CSM?
<digitalmentat> Shell, yeah no eval
<Shell> not sure there's a tool which comes with nix to get the AST out of a Nix program.
<clever> not currently, a few people are working on that
<jazzencat> Checking now
<digitalmentat> `hnix` can parse Nix and pretty print it from a Haskell-based AST
<digitalmentat> just wanted something that already existed :-p
<jazzencat> I don't see any options like secure boot or CSM
<clever> jazzencat: out of ideas, everything says it should be booting
digitalmentat has quit [(Quit: Leaving)]
<jazzencat> I'm not missing any partitions that should be there or goofed something else?
<jazzencat> I wonder if installing connman broke something?
codeape has joined #nixos
<clever> jazzencat: no way connman broke this, and grub is in the MBR, so it should have at least said GRUB on startup, even if the partitions are goofed
mudri` is now known as mudri
jgertm_ has quit [(Ping timeout: 245 seconds)]
ryanartecona has joined #nixos
<jazzencat> And I didn't screw up the off-set or the GUID or GPT snuck in again and I didn't clue in?
teknico has left #nixos []
codeape has quit [(Client Quit)]
<clever> jazzencat: pastebin the output of "blkid /dev/sd*"
<jazzencat> Okay.
Shou has joined #nixos
qknight has quit [(Quit: Lost terminal)]
qknight has joined #nixos
<clever> yep, its all MBR
<jazzencat> So, it should be working.
civodul has quit [(Ping timeout: 268 seconds)]
<jazzencat> I guess I should try a reinstall?
<clever> everything says it should be working, so until we find out why it isnt, you are likely to recreate the same problem every time
<NixOS_GitHub> [nixpkgs] bjornfor pushed 1 new commit to master: https://git.io/v1DkJ
<NixOS_GitHub> nixpkgs/master a1892ed Bjørn Forsman: genimage: init at 9...
JonReed has quit [(Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)]
tvon has joined #nixos
fritschy has quit [(Quit: Leaving.)]
civodul has joined #nixos
amarsman has quit [(Ping timeout: 250 seconds)]
UgJkA is now known as Kostya
Kostya is now known as UgJkA
<jazzencat> If grub.cfg had an error in my fs-uuid, would that cause the issues?
<clever> grub would tell you so after reading the file
<jazzencat> Okay, so the reason it's defaulting to PXE is some other reason.
<clever> the VERY FIRST thing grub does, before it has gotten close to reading the config, is to print GRUB to the screen
<clever> if your not even seeing GRUB, then something is wrong in the bios settings
<jazzencat> Ah, and I don't even get that.
<jazzencat> Hm, okay, I'm going to do some digging.
<jazzencat> Maybe I can find a way to flash my bios.
amarsman has joined #nixos
<clever> thats not likely to fix it and is sometimes risky
<goibhniu> what BIOS are you using jazzencat?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
lsix has quit [(Quit: Konversation terminated!)]
<jazzencat> BIOS setup lists Phoenix SecureCore Tiano Setup at the top.
<jazzencat> The UUID number in the bios is different from the one in the grub.cfg.
<clever> jazzencat: thats UEFI
rly has joined #nixos
<clever> so it does have a CSM option, somewhere
<clever> look thru every option
<clever> or not, no usefull info in there
<jazzencat> Security Set Supervisor Password and Set Hard Disk Password.
<clever> those are not related
<jazzencat> They are blank anyway.
nschoe has quit [(Quit: Program. Terminated.)]
<clever> does anything say compatability support module?
<clever> or anything else with the word secure
<jazzencat> Boot priority order: ATA HDD, ATAPI CD, USB HDD, USB FDD, USB CD, Network Boot
proteusguy has quit [(Remote host closed the connection)]
Wizek__ is now known as Wizek
<clever> can you take some photos of the bios settings?
<jazzencat> Nope not seeing any, unless I'm not looking at the right stuff...
<jazzencat> Yeah, I can do that.
ThatDocsLady has quit [(Quit: Arma-geddin-outta-here!)]
rly has quit [(Ping timeout: 260 seconds)]
<jazzencat> https://lut.im/gallery#TYPtLWbWK7/GUzjsxMuEYrva60O.jpg,suxcL0YBvR/ifWsoyIdq4tXrxsl.jpg,ib15XJqUBZ/Oi0MQflrfDLVC1Dv.jpg,fRUtGsh1pW/j7Wfc6moKHKkkKtO.jpg,qbmK2Vy9cY/6RkS3kg3CeuhK4Oy.jpg
civodul has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
<clever> jazzencat: wth?, 90% of the options are missing! lol
<clever> i can see why you cant find anything
<Baughn> Is there a library function for unioning sets?
<clever> it doesnt even have the option to turn pxe off!
<Baughn> (A list of sets)
<clever> Baughn: // or lib.recursiveUpdate
<clever> Baughn: and fold
<Baughn> Fold would do it, sure.
<Baughn> recursiveUpdate looks right, thanks.
<Baughn> ...or not
<Baughn> Guess I can fold it.
<clever> i believe that takes 2 attrsets
<Baughn> Oh, catAttrs is what I want.
<clever> the // operator is a shalow merge, while recursiveUpdate is a deep merge
<Baughn> ...nope
<Baughn> Hm, I should be finding the usual set-theory functions somewhere in here.
<sphalerite> ugh, the free-software game engine I want to build depends on fmod...
<sphalerite> Can anyone build fmod? It won't work for me, says the download hash is wrong
<avn> fmod is closed source
<jazzencat> FFS... Now I feel like a complete idiot.
<avn> but idk, if we allow unfree libraries, or not
<jazzencat> I forgot to set /dev/sda1 to be bootable >,<'
<sphalerite> avn: I know it is, pain in the neck
<jazzencat> That's like the equivalent of not checking the freaking powercord... :S
tvon has quit [(Quit: Peace out, y'all!)]
<sphalerite> Tried opening hte link in my browser. "You are not allowed to access this file!"
FRidh has quit [(Ping timeout: 248 seconds)]
ixxie has joined #nixos
<jazzencat> Ok, I have SDDM enabled, but I don't have a field to enter my username in, so what other options do I need to add to my configuration.nix?
<clever> sphalerite: the licensing on fmod has radicaly changed since i last looked at it
Seichi has quit [(Quit: Konversation terminated!)]
<sphalerite> turns out the project I'm trying to build has grown an option to throw out fmod for exactly that reason recently though :)
<clever> sphalerite: although, it has been over 9 years since i last looked into fmod...
<sphalerite> I think that means there won't be any sound, but it's a start
<jazzencat> Okay, I need to prevent the system from booting to the display manager to fix this.
<clever> jazzencat: while at the login prompt, hit ctrl+alt=f1
codeape has joined #nixos
<clever> oops, ctrl+alt+f1
Itkovian has joined #nixos
<clever> jazzencat: that will drop you in a text console
<jazzencat> Oh, got it, thanks.
<jazzencat> Now, I need to fix what's wrong with sddm.
<NixOS_GitHub> [nixpkgs] guyonvarch opened pull request #21153: xrectsel: init at 0.3.2 (master...init/xrectsel) https://git.io/v1DmA
proteusguy has joined #nixos
dgn has quit [(Ping timeout: 248 seconds)]
goibhniu has quit [(Ping timeout: 248 seconds)]
ryantrinkle has joined #nixos
bennofs has joined #nixos
<jazzencat> Which display manager is the best idea to use in NixOS?
<clever> jazzencat: ive had no problems with slim
<kmicu> Each one is different and has different trade offs.
Itkovian_ has joined #nixos
Itkovian has quit [(Ping timeout: 260 seconds)]
<kmicu> (Almost all of them are maintained so they are all useful for NixOS users.)
kampfschlaefer has joined #nixos
derjohn_mobi has quit [(Ping timeout: 248 seconds)]
<sphalerite> Also, is the first result when googling "open source alternative fmod" a project called Barony (which is what I'm trying to build) for everyone? Or is google being creepy again?
codeape has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
ambro718 has joined #nixos
danharaj has joined #nixos
<gchristensen> domenkozar: any news?
<jazzencat> When I create a user, what groups should I add the user to?
Itkovian_ has quit [(Ping timeout: 268 seconds)]
<domenkozar> gchristensen: usually we have to restart them
<domenkozar> gchristensen: link me the evaluation that's most promising and let's see
<LnL> does anybody know how owns mac6?
<LnL> it's out of disk space
<kmicu> jazzencat: it’s perfectly ok to start with no extra groups.
<gchristensen> domenkozar: https://hydra.nixos.org/eval/1313075#tabs-still-fail how about each of this one's `.kernel.*` jobs and see where that gets us?
<LnL> or not...
jazzencat has quit [(Quit: Leaving)]
<NixOS_GitHub> [nixpkgs] schneefux opened pull request #21155: pythonPackages.websockets: init at 3.2 (master...pkg.websockets) https://git.io/v1DGy
jazzencat has joined #nixos
<jazzencat> Okay, wired connection works. Wireless not yet.
<jazzencat> Enlightenment and NixOS's default display manager work as well.
andymandias has joined #nixos
<domenkozar> gchristensen: that looks like it's broken for a long time
<gchristensen> domenkozar: the kernels have been timing out on build for half a week (I've been trying to get this resolved that long), and before that was a race condition (which has been patched)
<eacameron> Does anyone know how to configure PHP to use xdebug?
seanz has joined #nixos
<jazzencat> Okay. connmanctl scan wifi throws me an Error saying that /net/connman/technology/wifi: Not supported.
<domenkozar> gchristensen: hmm and it works locally?
proteusguy has quit [(Ping timeout: 258 seconds)]
<jazzencat> systemctl status connman shows it as active.
<gchristensen> domenkozar: yep, always has
proteusguy has joined #nixos
<domenkozar> jezz
<gchristensen> domenkozar: I agree :/
<gchristensen> domenkozar: back in 15
<NixOS_GitHub> [nixpkgs] schneefux opened pull request #21156: pythonPackages.parsedatetime: disable tests to fix the build (master...pkg.parsedatetime) https://git.io/v1DcW
<domenkozar> niksnut: nixpkgs channel hasn't updated in 5 days
<kmicu> jazzencat: check by executing ‘ip link’ if your WiFi card is up. Maybe you need binary blobs to wake it up.
<jazzencat> 3: wlp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
<jazzencat> link/ether 38:59:f9:47:e7:80 brd ff:ff:ff:ff:ff:ff
<kmicu> jazzencat: NixOS’ LiveCD sets ‘hardware.enableAllFirmware’ to true so for now, you could set it too and report back if the problem persists.
<jazzencat> Okay, I'll try that.
<jazzencat> That is in hardware-configuration.nix, yes?
<kmicu> You can add it in configuration.nix.
<jazzencat> Okay.
<clever> jazzencat: there is no difference between the 2 files, but nixos-generate-config will overwrite hardware-configuration.nix without asking
<kmicu> (Unless you have ‘imports = [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ]’ in generated hardware-configuration.nix, b/c that line already enables all binary blobs.)
<jazzencat> Still does it after a nixos-rebuild switch. Maybe I need to restart?
<kmicu> Yeah, with firmware issues a restart is a good idea.
<jazzencat> Yeah, that line is present in hardware-configuration.nix
ixxie has quit [(Ping timeout: 252 seconds)]
Myrl-saki has quit [(Ping timeout: 252 seconds)]
<kmicu> Maybe you have a physical button somewhere that you need to push to enable WiFi card and this is why it’s currently down.
<jazzencat> I'm guessing the overwriting of hardware-configuration is when I take an existing configuration.nix file and use it to clone my system to a new computer it needs to do that to make sure the hardware works properly.
<jazzencat> kmicu, I have and I made sure it was enabled.
<jazzencat> Restarting system.
jazzencat has quit [(Quit: Leaving)]
jazzencat has joined #nixos
<jazzencat> Nope, issue still persists.
<clever> jazzencat: anything related in dmesg?
<gchristensen> domenkozar: note I also opened a github issue about this
<jazzencat> Any options to pass dmesg to filter for wifi-related items?
<clever> jazzencat: i would try doing "ip link set wlp3s0 up" and then check the last ~15 lines of dmesg
<jazzencat> nman-vpn.service/connman-vpn.service:3
<jazzencat> There's that.
Wizek_ has quit [(Ping timeout: 258 seconds)]
Wizek has quit [(Ping timeout: 260 seconds)]
<jazzencat> IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready.
<clever> jazzencat: what about "iwlist scan"
<jazzencat> That worked.
<clever> then the drivers arent the issue
<jazzencat> So, something in how I have connman set up is the issue.
<jazzencat> Maybe I'm missing some options in configuration.nix?
<clever> i havent done anything with connman, i just run raw wpa_supplicant
<kmicu> What’s the output of ‘connmanctl scan wifi’?
<jazzencat> I went with connman because I wanted to run Enlightenment and they use EConnMan as the integration for it and I've had major issues trying to get wifi working in Enlightenment with other tools.
evck has joined #nixos
<kmicu> I’m using connman. There is no issue with it *if* wifi card is up.
<jazzencat> connmanctl scan wifi outputs Not supported.
<kmicu> ‘sudo connmanctl enable wifi’?
<jazzencat> Says it's already enabled.
<kmicu> What’s the output of ‘ip link’ once again?
bennofs has quit [(Quit: WeeChat 1.6)]
<NixOS_GitHub> [nixpkgs] ikervagyok opened pull request #21157: packagekit: add 'enableNixBackend' as an option (master...gnome) https://git.io/v1D8Q
<domenkozar> gchristensen: we'll need to wait on eelco
<jazzencat> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
<jazzencat> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
<jazzencat> 2: enp2s0: <BROADCAST,MULTICAST,DYNAMIC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
<jazzencat> link/ether f0:de:f1:8e:c0:b5 brd ff:ff:ff:ff:ff:ff
<jazzencat> 3: wlp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
<jazzencat> link/ether 38:59:f9:47:e7:80 brd ff:ff:ff:ff:ff:ff
<gchristensen> domenkozar: understood
<kmicu> Well, wlp3s0 is DOWN. :)
<clever> kmicu: thats because its not connected to anything
<gchristensen> domenkozar: I think your pinging him will have more weight than mine :)
<kmicu> jazzencat: Do you have /etc/wpa_supplicant.conf file?
<jazzencat> iwlist scan shows the expected wifi access points.
<clever> kmicu: it says NO-CARRIER and UP in the <> section, so the interface is online, but it isnt getting a link
<jazzencat> Nope, no wpa_supplicant.conf
<jazzencat> Does connman need wpa_supplicant.conf? I thought they were separate things. The manual says I can't have networkmanager and wireless (wpa_supplicant) active at the same time in configuration.nix
<kmicu> jazzencat: what’s the output of ‘sudo systemctl status wpa_supplicant’?
bennofs has joined #nixos
<kmicu> (connman needs wpa_supplicant and there is/was a bug with missing /etc/wpa_supplicant.conf resulting in no wifi.)
bennofs has quit [(Client Quit)]
bennofs has joined #nixos
<jazzencat> It's inactive.
<jazzencat> That's probably my issue there.
<kmicu> You could ‘sudo touch /etc/wpa_supplicant.conf’ and ‘sudo systemctl restart wpa_supplicant’.
<jazzencat> Failed with an exit-code status 255/n/a
ixxie has joined #nixos
amarsman has quit [(Quit: amarsman)]
<jazzencat> There, now it's running.
<kmicu> If wpa_supplicant runs then connman should work flawlessly now. :)
<jazzencat> And my wifi shows up. ^,^
<kmicu> ヽ(*^▽^)/
anelson has quit [(Ping timeout: 258 seconds)]
c0bw3b has joined #nixos
anelson has joined #nixos
Myrl-saki has joined #nixos
<ixxie> hurrah!
alx741 has joined #nixos
<jazzencat> Well, it doesn't like my wifi connection or the passphrase I entered.
<kmicu> connmanctl → scan wifi → services → agent on → … https://wiki.archlinux.org/index.php/Connman#Connecting_to_a_protected_access_point
<kmicu> (Nixpkgs also has GUIs for connman if you do not like dancing in terminal.)
mexisme has joined #nixos
<jazzencat> I have tried EConnMan already, and the terminal, but in both cases connman aborts the attempt to connect to my wifi access point
<ixxie> does anybody have a nice example of a nixos configuration for java / scala development?
<ixxie> I am getting to the point where the right packages are there, but I am wondering how paths are configured and all sortsa other details
<jazzencat> I'm going to head off for a bit. I'll be back on later. I'll take the computer with me and test out some other wifi access points
<jazzencat> Hm, I'm going to have to update my Enlightenment DE.
<jazzencat> Any other channels I should add for nix?
fuzzy_id has quit [(Ping timeout: 258 seconds)]
<clever> Dezgeg: are any of your ARM boards allwinner based?
Itkovian has joined #nixos
<ixxie> actually any example of how to configure nixos for developing anything would be great
jazzencat has quit [(Quit: Leaving)]
<sphalerite> ixxie: I don't think nixos really has much support for java packaging, e.g. I just searched for junit and nothing came up, so I guess it would be fairly similar to working on any other distro
<sphalerite> Most of the usual tools are packaged at least.
<sphalerite> Eclipse being a notable exception
<sphalerite> or it is packaged, but ancient
<sphalerite> I think?
<mudri> Does anyone have an example ~/.nixpkgs/config.nix with a user environment package? I'm trying to recreate what I did before I lost the file.
<mudri> LnL: ah, yep. Thanks!
ixxie has quit [(Remote host closed the connection)]
redmq has joined #nixos
acertain has quit [(Ping timeout: 244 seconds)]
ixxie has joined #nixos
<sphalerite> Is there a way to see a sort of diff between generations of a profile?
amarsman has joined #nixos
<sphalerite> ah, just doing diff -qr /nix/var/nix/profiles/per-user/linus/profile-{a,b}-link is an alright start
<sphalerite> Also, I've just passed the 128th user profile generation :D
<Mic92> clever: I streamlined your kexec installer a little: https://gist.github.com/Mic92/4fdf9a55131a7452f97003f445294f97
<Mic92> I want to upstream it in one way or the other.
<Mic92> Would be a good fit for nixops for instance.
<clever> Mic92: yah
<clever> Mic92: one thing i noticed when gchristensen was testing it, one of the environments he was on had a kexec kernel, but no kexec in $PATH, so including a copy from nixpkgs would help there
<Mic92> clever: maybe a static build
<clever> Mic92: and i wasnt sure what systemd would do with "systemctl kexec", i thought that would load a new kernel from the units
reinzelmann has joined #nixos
<clever> Mic92: and a minor thing missing from your version, ssh wont start on bootup, so you have no way to get into the system
<Mic92> clever: it is just a wrapper around kexec
<Mic92> clever: it does
<clever> the config example on line 10-13 will start ssh, but its not in the defaults
<Mic92> clever: I enabled socket activation as a hack
<clever> ah
<Mic92> startWhenNeeded = true
<clever> systemd.services.sshd.wantedBy = mkForce [ "multi-user.target" ];
<clever> this is how i was enabling it
<ronny> hi
<ronny> is anyone aware of how far nix is from wayland support?
<Mic92> I also found a bug in kexec-tools in nixos
<Mic92> the hardening flags are suboptimal
<clever> Mic92: yeah, i have an override for that
<clever> the PR has been on my todo list
<Mic92> clever: I filtered the faulty flags, I will do the pr now
<clever> Mic92: line 28 and 41 are a recent change i did, that allows the ssh key to be configured just before you kexec, so the tar is more generic
<Mic92> clever: maybe the target configuration could be attached the same way
<Mic92> clever: "console=ttyS0,115200" is for qemu?
<clever> yeah, you could do that, but then you loose any kind of feedback about the install progress
<clever> Mic92: i was using that with virtualbox, it can be removed
<clever> Mic92: i also figured out how to not break the video in vbox, vboxvideo.ko must be present in the new rootfs, then it recovers just fine
<clever> without that, the fake gpu is in a weird mode, and the stock vesa drivers get upset and render garbage
<Mic92> I had problems displaying my tty with the current cmdline, so I guess netboot is missing at least vesa driver.
<clever> but the GPU state doesnt mean much for the target use
<clever> its mostly a matter of the GPU needing a hard-reset
<clever> which only the bios knows how to do
<Mic92> can kexec does this maybe?
<clever> xen has similar problems with pci passthru
<clever> every motherboard does it differently
<clever> and its up to the bios to handle it correctly
<clever> but the whole point of kexec is to bypass the bios
<Mic92> reset-vga
<Mic92> is an option
<clever> i tried it and it didnt help in vbox
<clever> havent tried it on real hardware yet
deepwater has quit [(Remote host closed the connection)]
<rycee[m]> sphalerite: Eclipse should be there and reasonably up to date, including some plugins. There is some documentation in the Nixpkgs manual.
<sphalerite> Yeah I realised I was wrong after saying that, I'd misunderstood previously
xwvvvvwx has joined #nixos
<reinzelmann> Evening! fprintd-enroll gives me "list_devices failed: Unit fprintd.service not found." Does anyone know what to do?
<rycee[m]> Cool :-)
buttbutter has joined #nixos
<Mic92> reinzelmann: I don't know what fprintd does, but did you take a look into the corresponding module and enable the service?
<xwvvvvwx> Hey, so I'm a bit confused how to set a gtk theme in nixos
<xwvvvvwx> I found this issue on github
<xwvvvvwx> but the instructions posted there don't really seem to work for me
<clever> Mic92: i also noticed, you lack a sync call in the kexec -e side of things, that might corrupt the host FS
redmq has quit [(Ping timeout: 250 seconds)]
<clever> Mic92: though if the goal is to format, who ares! :D
<clever> cares*
<xwvvvvwx> I tried GTK_DATA_PREFIX=/run/current-system/sw pavucontrol and GTK_DATA_PREFIX=$HOME/.nix-profile pavucontrol
<xwvvvvwx> and it still opens with the same old ugly theme
<Mic92> clever: mhm, at least systemctl kexec take care of this.
<xwvvvvwx> I have arc-theme and arc-icon-theme installed
<clever> Mic92: yeah, that path would do a fully proper shutdown
<xwvvvvwx> and set in my gtk settings files as described in the arch wiki (here: https://wiki.archlinux.org/index.php/GTK%2B#Basic_theme_configuration
<Mic92> clever: are you sure it does not sync filesystems? I just saw a flag to explicitly disabling that.
<xwvvvvwx> what am I doing wrong?
<clever> Mic92: not sure, and it cant hurt to throw an extra sync in
<clever> Mic92: and here is a related project i have been working on: http://imgur.com/a/GqdJL
<Mic92> clever: it also mention shutdown
<Mic92> so on systemd-based systems, both version should be closely the same
seanz has quit [(Quit: Leaving.)]
<clever> Mic92: the "proper" way to do it, is to have the init system (systemd or the older sysinit stuff) to a full shutdown, and then "kexec -e" rather then reboot/halt/poweroff
<mudri> xwvvvvwx: what desktop environment?
<kmicu> xwvvvvwx: besides setting an env. variable you need to set a theme with https://wiki.archlinux.org/index.php/GTK%2B#Basic_theme_configuration or with e.g. lxappearance
<xwvvvvwx> using just i3
<clever> but i didnt want to bother with trying to support all of the variations
<ixxie> anybody know about the JAVA_HOME issue with OpenJDK? https://github.com/NixOS/nixpkgs/issues/13653
<xwvvvvwx> yes I set my themes as described in that arch wiki page
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Mic92> clever: nice, but it would be cool, if you split gui part and partitioning part - so would have an option to pass generated configuration to an installer.
<clever> Mic92: i do plan to have it serialize all of this config, so it can be ran in a more automated fasion
anelson has quit [(Ping timeout: 245 seconds)]
<kmicu> What theme did you install? It works here ‘GTK_THEME=Adwaita pavucontrol’ (and the same with Numix).
anelson has joined #nixos
<clever> Mic92: one idea is that on startup, it will query an http url thats programed into it, like http://example.com/online?id=foo, which will then either dump a config file back, or pass the IP on for a user to control
AllanEspinosa has joined #nixos
<Mic92> clever: cool, I was looking for an option to supplement this: https://coreos.com/ignition/docs/latest/examples.html#create-files-on-the-root-filesystem
<xwvvvvwx> kmicu: arc-theme
<xwvvvvwx> ok
<xwvvvvwx> had the wrong name in the config file
<xwvvvvwx> should have been Arc instead of arc
<xwvvvvwx> urgh
<xwvvvvwx> :/
<xwvvvvwx> thanks for taking the time to listen!
<mudri> No problem!
sigmundv_ has quit [(Ping timeout: 248 seconds)]
ckauhaus has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 opened pull request #21158: kexec-tools: 2.0.12 - 2.0.13 (master...kexec) https://git.io/v1Dox
<Mic92> ^happy mass-rebuilding
<clever> heh, yeah
<clever> kexec<-systemd<-util-linux<-world
<ixxie> is there a configuration example somewhere of how the theme is set?
<ixxie> GTK that is?
codeape has joined #nixos
<Mic92> in configuration.nix
<Mic92> ixxie: then you can use lxappearence for instance
rahul has joined #nixos
<Mic92> ixxie: if you find some time, it would be great if this find its way into documentation
filterfish has quit [(Ping timeout: 248 seconds)]
rahul is now known as vrthra
vrthra is now known as rahul
rahul has quit [(Client Quit)]
<ixxie> Mic92, not GTK_THEME ?
<Mic92> ixxie: probably, but without the other environment variable, you can not even use gui tools to set the theme.
<Mic92> at least outside of gnome
ryanartecona has quit [(Quit: ryanartecona)]
<Mic92> ixxie: but it looks like GTK_THEME=Adwaita:light in the same set should do what you want.
filterfish has joined #nixos
<ixxie> I like Numix so I did GTK_THEME="Numix Dark"
<ixxie> lets see if that works xD
ixxie has quit [(Remote host closed the connection)]
<Mic92> #lastwords
ixxie has joined #nixos
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
<ixxie> meeeh
<Mic92> ixxie: it would have been faster, if you have used in your current shell: export GTK_THEME="Numix Dark" GTK_DATA_PREFIX="/run/current-system/sw"
<AtnNn> is it possible to tell nix to fetch in parallel but compile one at a time? Or is `maxJobs' always fixed?
<Mic92> I am also not sure about the space
<ixxie> Mic92 I am trying to configure everything declaratively
Itkovian has joined #nixos
<Mic92> AtnNn: there is "binary-caches-parallel-connections = <number>", which you can put into nix.extraOptions
<ixxie> this isn't working though
<Mic92> ixxie: I mean for testing
<ixxie> aha
<ixxie> ill keep that in mind next time
<Mic92> ixxie: your theme is in /run/current-system/sw ?
<ixxie> D'oh >.<
<ixxie> I actually have no idea where my theme is
<AtnNn> Mic92: is there a similar setting for fetchurl?
<ixxie> Mic92: you mean the gnome theme?
berce has joined #nixos
<Mic92> AtnNn: this is only global afaik in nix.conf
<AtnNn> thanks
<Mic92> ixxie: yes your theme should be in systemPackages if GTK_DATA_PREFIX=/run/current-system/sw
<kmicu> ixxie: how did you install Numix theme?
<ixxie> I didn't xP
<kmicu> And that’s the problem. :)
<ixxie> I guess I naively thought I was doing so by setting that variable
<Mic92> maybe if once we have module for that
<kmicu> Nope, and this is why string based variables are a bad idea.
<Mic92> *a module
kuznero has joined #nixos
<kuznero> Hi All!
ixxie has quit [(Remote host closed the connection)]
<kmicu> ( ^_^)/ kuznero
<kuznero> I have problems compiling simple haskell script (with `#!/usr/bin/env stack`) that depends on http-conduit and as a result on zlib. NixOs is complaining that it cannot find zlib headers. I already tried `nix-shell -p zlib` and then ran script in that shell, but that still does not work. Can anybody help with this?
<kuznero> It is saying that it is trying to configure `zlib-0.6.1.2` which I probably don't have
<kuznero> despite the fact of running in `nix-shell -p zlib`
<kuznero> -- Haskell Stack
<Mic92> kuznero: nix-shell -p zlib is something not enough
<clever> kmicu: how does this look as a basic config editor? http://imgur.com/a/GqdJL
<Mic92> *sometimes
<Mic92> default.nix whould help in this case
ixxie has joined #nixos
<kuznero> kmicu, I haven't tried it as I don't have proper cabal project, but rather just a simple stack script...
<kuznero> And this is the header of the script: `-- stack --install-ghc --resolver lts-7.13 runghc --package http-conduit --nix`
<Mic92> oh I meant actually kuznero
<kmicu> kuznero: “Alternatively, you can achieve the same effect by hand. First of all, run …” also does not work?
<kuznero> Mic92: I see that this is a nix package, right? (I am rather new in NixOs and up until now have created rather trivial things: https://github.com/kuznero/dotfiles under nixos folder)
slack1256 has joined #nixos
<kuznero> kmicu: No, I haven't tried that... It kind of defeats that idea of such scripts to be simple :)
<ixxie> okay kmicu, now I installed the numix-gtk-theme package in systemPackages and declared it in GTK_THEME="Numix" (I also tried ="numix-gtk-theme")
<ixxie> no luck
<Mic92> kuznero: this is an environment, you can put into your project and load with nix-shell
<Mic92> kuznero: I use direnv to automate the latter one.
redmq has joined #nixos
<Mic92> clever: this is the same image as before?
<kmicu> ixxie: could you execute ‘GTK_DATA_PREFIX=/run/current-system/sw GTK_THEME=Numix pavucontrol’ directly in your shell?
<clever> Mic92: ive added mode nodes to the tree, and it can now automaticaly add things
<clever> Mic92: and it can handle types
<kuznero> Mic92: I've created default.nix with zlib as you suggested, how do I load it into environment with nix-shell?
Shou has quit [(Ping timeout: 265 seconds)]
<Mic92> kuznero: by running nix-shell in the same directory
<kuznero> Ah
<kuznero> :)
<ixxie> what is this pavucontrol kmicu? I didn't put that in the config anyway
<kuznero> Mic92: Same, unfortunately
<kmicu> ixxie: it can be any GTK2/3 app.
<Mic92> kuznero: at least `env | grep zlib` should get some hits.
<kuznero> Mic92: I will try older resolver (last I tried latest 7.13, now I will try something like 5.13)
<Mic92> I don't know too much things about haskell linking, this is how I get things working in C projects.
<ixxie> kmicu: chromium launches
lverns has joined #nixos
<Mic92> kuznero: does ghc/cabal support pkg-config? maybe adding this as dependency helps
<ixxie> but the theme doesnt seem to change and I get an error ([5154:5179:1214/225743:ERROR:nss_util.cc(809)] After loading Root Certs, loaded==false: NSS error code: -8018
<Mic92> but just a wild guess
<Mic92> ixxie: this is unrelated.
<kuznero> Mic92: I read somewhere that yes, it is possible to declare the dependency directly in the cabal file and then with cabal2nix create nix package or environment that then will work. But that is a bit strange. One other things I was considering is statically linking everything in my haskell projects, including glibc. Is it difficult in NixOs?
acowley_away is now known as acowley
<Mic92> kuznero: mhm, peti, our haskell maintainer, means yes: https://github.com/NixOS/nixpkgs/issues/6855
<Baughn> kuznero: Statically linking glibc is normally a very bad idea. It's not *as* bad an idea in NixOS, but it's still not that useful -- you won't get a portable executable that way.
<Baughn> kuznero: Specifically, it's statically linking it that makes the executable non-portable...
<Baughn> kuznero: Also, I'll admit that I've lost touch with Haskell over the last few years. Did the record field problem ever get a good solution?
<ixxie> bah, time to go
<ixxie> to be continued; thanks all for the help
ixxie has quit [(Remote host closed the connection)]
<Ralith> Baughn: syscalls are pretty stable on linux, at least; shouldn't be *that* unportable
<Ralith> though still gratuitous
<Baughn> Ralith: There's stuff like NSS that really wants to be dynamic..
<Ralith> you're certainly better off using musl or something
<Baughn> But on nixos, if you change any of the 'dynamic' parts of glibc, your program would get recompiled anyway. So it doesn't matter.
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #21155: pythonPackages.websockets: init at 3.2 (master...pkg.websockets) https://git.io/v1DGy
<Baughn> Except that you'd be using more disk space and memory.
<NixOS_GitHub> [nixpkgs] FRidh closed pull request #21076: pythonPackages.discordpy: init at 0.15.1 (master...pkg.discordpy) https://git.io/v1or9
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<Baughn> Is there any way I can garbage-collect only those paths which weren't fetched with fetchurl?
<Baughn> Or, more generally, fetched?
<Baughn> ..hm. GC only non-fixed derivations? I suppose that's most likely to work.
slack1256 has quit [(Remote host closed the connection)]
<berce> How can I get the manuals in epub format?
Itkovian has joined #nixos
<Mic92> clever: would you find relative partition size useful? something like: bios_grub: 1024k, boot: 300M, root: 100%
* Baughn figures something out with nix-store --gc --print-dead.
Shou has joined #nixos
<kuznero> Baughn: the idea behind linking it all into one executable is to not to worry about which base docker image to use to host the application, really. Please let me know if I am totally wrong here...
<clever> Mic92: sfdisk has similar, if you omit the size, it just fills the area up
<clever> Mic92: i can implement that in my automated stuff
bennofs has quit [(Ping timeout: 245 seconds)]
<Baughn> kuznero: You may be making things harder on you than necessary. Nix generally works better if you go all-in, which in this case would mean rebuilding the *whole image* every time you make a change.
<Baughn> kuznero: There's a useful tool for this... right, http://lethalman.blogspot.no/2016/04/cheap-docker-images-with-nix_15.html
<simpson> kuznero: Fun fact: You can have Nix directly build your Docker images.
<simpson> Ah, Baughn beat me to it.
* Baughn just reduced the build time for his minecraft server-pack builder from 2 minutes to 5 seconds by fixing the dependency tree. :3
<Baughn> (Also it's way more readable now.)
<Mic92> Baughn: there should be also a mode, which bind mount packages from /nix/store/ into docker like this here https://github.com/Mic92/nix2aci
anelson has quit [(Remote host closed the connection)]
<Baughn> That's potentially useful. I'm not using docker myself, but I may soon. Thanks!
<Baughn> I think you meant to ping kuznero, though. :P
<Mic92> would speed up package build dramatically, because almost no i/o is done
anelson has joined #nixos
<Baughn> http://sprunge.us/IQWe <- On the off chance that anyone wants to critique my Nix. Would love to learn.
Sonarpulse-Work has joined #nixos
<berce> berce
<berce> That was an accident, sorry (ctrl-f is not find in irssi)
<Mic92> Mic92
pi3r has joined #nixos
<Mic92> this was intentional
<kuznero> Baughn: I didn't know nixos can build docker images... interesting. But maybe you're right about not building statically. The only thing is that it is going to be reliably running only on the OS that it was built on.
<Baughn> kuznero: If you use the Nix-based image builder I linked, then you'll get a Docker image that'll run anywhere.
<kuznero> Baughn: that I can understand, but application itself will not be portable. But maybe with docker we will just stop worrying about such things.
<Mic92> we could need that for nixos: bincntr
<Baughn> kuznero: If you only actually *want* to run it on the machine it's built on, then you can use NixOS' native container functionality for a massive reduction in space usage.
sboo has joined #nixos
<kuznero> Mic92: Baughn: with default.nix it still is unable to find zlib :(
<Baughn> This also goes if you're fine with rebuilding it on every machine it runs on. Nix build scripts are pretty portable.
<Mic92> kuznero: I just saw `ghcEnv = ghc.withPackages (p: haskellBuildInputs);` in haskell-modules/generic-builder.nix
<gchristensen> domenkozar: have you heard anything from eelco?
<Mic92> kuznero: I think you probably want a ghc.withPackages in your default.nix
<Mic92> and this withPackages get zlib as argument
<Mic92> this how haskell packages in nixos build their stuff appearently
<kmicu> kuznero: iiurc it’s ‘stack’ issue, not ghcWithPackages related. Did you try that ‘stack –extra-lib-dirs=/nix/store/HASH-zlib-1.2.8/lib …’ ?
<21WAAB44R> [nixpkgs] Mic92 closed pull request #21151: shaarli: 0.8.0 -> 0.8.1 (master...pkg.shaarli) https://git.io/v1Dvb
<7JTAANUH5> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/v1D9y
<7JTAANUH5> nixpkgs/master 10ca00a schneefux: shaarli: 0.8.0 -> 0.8.1
<7JTAANUH5> nixpkgs/master fbc8a43 Jörg Thalheim: Merge pull request #21151 from schneefux/pkg.shaarli...
latk has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
bennofs has joined #nixos
codeape has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<kmicu> gchristensen: what’s up with those ‘Note: this build is no longer available.’ on http://hydra.nixos.org/build/44788904 (I wanted to find manual in epub for berce).
codeape has joined #nixos
* kmicu ‘loves’ those Perl leakages ‘Hydra::Model::DB::BuildProducts=HASH(0xa6d59c0)’ as Links. ( ͡~ ͜ʖ ͡°)
<gchristensen> kmicu: I don't know ... I'm surprised it doesn't provide a link anyway which could be `nix-store --realize`'d
<Mic92> I am eager to see the perl jam presentation this year on 33c3
<Mic92> if there is any.
<kuznero> kmicu: that sounds right, how can I find where is zlib installed in my system?
ryanartecona has joined #nixos
<berce> kmicu: I 'll learn most if you help me build it
<Mic92> kuznero: "nix-shell -p zlib --command env | grep zlib"
<berce> in nixpkgs/nixos/manual/default.nix there's 'manualEpub = stdenv.mkDerivation'
latk has joined #nixos
<berce> I assume it should be simple, but I couldn't find it yet
<Mic92> kuznero: oh, even cooler: export $(nix-shell -p zlib --command env | grep zlib); cd $nativeBuildInputs
<berce> my attempts with 'nix-env -i' failed
mw has quit [(Quit: ~{^.^})]
<kmicu> kuznero: heh, section on https://nixos.org/nixpkgs/manual/#builds-using-stack-complain-about-missing-system-libraries explains how to set stack and how to find zlib and what env. variable is required.
Guest9872 has quit [(Quit: Lost terminal)]
arianvp has quit [(Quit: Page closed)]
<savanni> Oh, I work with that problem frequently.
<savanni> I can help out, too.
<clever> Mic92: what about just nix-build '<nixpkgs>' -A zlib --no-out-link ?
<kmicu> berce: the problem is that building PDF/EPUB manuals is not simple and they are set up as jobs for CI system and not as standalone packages. :/
<kmicu> (In comparison to Guix(SD)’s manuals, Nix situation is tragic.)
<berce> So should I go and learn to use Guix(SD)?
<gchristensen> is there a handy way to do nix-build, but not actually build stuff, just output all the store paths of what would be built?
<clever> gchristensen: nix-instantiate
<gchristensen> ah cool, thank you :)
<clever> gchristensen: nix-instantiate --eval -E 'with import <nixpkgs> {}; "${zlib.out}"'
<gchristensen> kmicu: maybe you could help? :)
<gchristensen> clever: ideally it would output just a new-line separated list of store paths, also my input is with `-A foo -A bar ...` is there an easy way to do that?
<gchristensen> clever: I'm passing about a zillion attributes in :/
<clever> gchristensen: use map inside a nix expression
reinzelmann has quit [(Quit: Leaving)]
<gchristensen> hrmm
<NixOS_GitHub> [nixpkgs] jwiegley pushed 1 new commit to master: https://git.io/v1D5C
<NixOS_GitHub> nixpkgs/master 838a3b4 John Wiegley: coq_8_6: 8.6rc1 -> 8.6
<clever> [clever@amd-nixos:~/apps]$ nix-instantiate --eval -E 'with import <nixpkgs> {}; lib.concatMapStringsSep " " (x: "${x}") [ zlib hello ]'
<clever> "/nix/store/9jwwgvd5cc2g3cyq3bwdcjb71znw9x05-zlib-1.2.8 /nix/store/7663fv58jvwww5km6ldrm3qi1rfz2c9z-hello-2.10"
<clever> gchristensen: done!
<clever> oh newline, nix-instantiate --eval -E 'with import <nixpkgs> {}; lib.concatMapStringsSep "\n" (x: "${x}") [ zlib hello ]'
<clever> close enough
<kmicu> berce: it works in the same way so it’s a good start. In the meantime you could file an issue about difficulties with EPUB manual and poor user experience :)
<Mic92> clever: I am still new to the game
<LnL> clever: it would be nice if we could get raw output out of nix-instantiate --eval
<LnL> I've wanted that a bunch of times now
<berce> kmicu: thank you for trying
codeape has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
pi3r has quit [(Ping timeout: 258 seconds)]
<LnL> berce: kmicu: builds are removed pretty quickly from hydra, but they are still available in the cache
wangoe has joined #nixos
hiratara has quit [(Ping timeout: 240 seconds)]
<kmicu> Pretty quickly, like from the last one :P?
<berce> About poor user experience: after 3 months in nixos, I 'm a very happy user
<LnL> since they are in the cache it doesn't matter
<LnL> you can just nix-env -i /nix/store/<sha>-hello
filterfish has quit [(Read error: Connection reset by peer)]
<kmicu> It matters a lot. *Where* are links for manuals?
filterfish has joined #nixos
cpennington has quit [(Remote host closed the connection)]
<Mic92> berce: same, but I was already pretty comfortable with Linux, I could imagine how hard it is for other people.
<LnL> kmicu: /nix/store/3rfjhg00261p331hzgng35fr25jqbikf-nixos-manual-epub
<kmicu> How a newcomer could find it?
<gchristensen> kmicu++
<berce> Mic92: long term debian user before I discovered Nixos
<LnL> ah yes that's true
hiratara has joined #nixos
<gchristensen> kmicu: is the issue here the single-paged HTML at https://nixos.org/nixos/manual/ not sufficient?
<kier> what's the most straightforward way to go about temporarily overriding a module in order to test a change to it?
<kier> i tried 'NIX_PATH=nixpkgs=path/to/my/modified/nixpkgs sudo nixos-rebuild boot', but it still appeared to use my channel instead
<berce> LnL: so that's the path where it will be after it's been built. How do I build it?
<LnL> berce: you don't have to, it's available from cache.nixos.org
<clever> kier: try with -I instead
<gchristensen> yes but berce _would_ like to build it
<LnL> berce: nix-store -r /nix/store/3rfjhg00261p331hzgng35fr25jqbikf-nixos-manual-epub
<clever> kier: sudo likes to wipe the env, and nixos-rebuild requires a nixos-config entry in the path, you left it out, and it didnt fail, so sudo must have blocked things
<Mic92> clever: what happens if you assign something to system.build.kexec_tarball ?
<clever> Mic92: the entire system.build section lacks a type, so the module framework just lets you go wild and do whatever you want
<gchristensen> hell, I don't think _I_ know how to build the manual ...
<berce> LnL: kmicu: thank you, it's there now
<clever> Mic92: its mainly used for internal nixos things, and you then reference it from elsewhere
<clever> Mic92: in my case, i reference it directly via nix-build with -A config.system.build.kexec_tarball
<Mic92> clever: ok, makes sense
<berce> gchristensen: epub is more e-reader friendly, and since I found a reference that it should exist ... why not use it?
<gchristensen> berce: I'm glad you got the document you need, I'm hoping to make it better for the next person
<gchristensen> and to keep kmicu happy, I prefer it when kmicu is happy.
<berce> LnL: how can I find that /nix/store address? I 'd like nix and nixops manuals too :-)
kuznero has quit [(Quit: Leaving)]
<LnL> berce: details or build steps of the build
<evck> hmm, which package is good old `make` hiding in?
<LnL> evck: gnumake
<kmicu> gchristensen: in the past we could at least grab PDF/EPUB manuals from http://nixos.org/releases/ but today there is no links at all. (And many links are broken.) 🤷
ryantrinkle has left #nixos []
<evck> LnL: thanks, should have been able to figure that one out...
<gchristensen> kmicu: I wonder if part of the issues is channels being backed up for a week
<LnL> gchristensen: kmicu: hydra also used to have the package/closure thing with instructions on how to install that
<gchristensen> s/backed up/delayed/
<clever> Mic92: gchristensen: http://imgur.com/a/EJVcK
<LnL> but that seems to have disappeared
<kier> clever: thanks, I think it's using my modified nixpkgs now
<kier> should it be trying to rebuild everything from source?
<berce> gchristensen: kmicu: I would have been very happy if I could add a line in .nixpkgs/config.nix to make the desired manual available
<Mic92> clever: one step closer to allow less-technically person to use nixos
<berce> gchristensen: kmicu: well you and LnL made me very happy too :-)
pi3r has joined #nixos
<LnL> gchristensen: kmicu: I think there's something funky going on with that build "Hydra::Model::DB::BuildProducts=HASH(0xb4962b8)"
<NixOS_GitHub> [nixpkgs] bjornfor pushed 1 new commit to master: https://git.io/v1Dbt
<NixOS_GitHub> nixpkgs/master 888b274 schneefux: nextcloud: 10.0.2 -> 11.0.0
<NixOS_GitHub> [nixpkgs] bjornfor closed pull request #21128: nextcloud: 10.0.2 -> 11.0.0 (master...pkg.nextcloud) https://git.io/v11TO
<LnL> normally you can press on help there and see some install instructions
<kmicu> berce: you could put ‘/nix/store/3rfjhg00261p331hzgng35fr25jqbikf-nixos-manual-epub’ as a package name, but that is obviously not ideal.
<gchristensen> kmicu: we need someone to really push the docs forward :(
redmq has quit [(Ping timeout: 265 seconds)]
<kier> ah, it doesn't try to rebuild everything if I make sure the file permissions match the original
pi3r2 has joined #nixos
<LnL> gchristensen: kmicu: https://cl.ly/0I0M0S3Q120i
<Mic92> clever: https://github.com/megastep/makeself for the kexec-installer
pi3r has quit [(Ping timeout: 250 seconds)]
rardiol has joined #nixos
<clever> Mic92: could be used, but then your basicaly running a ~300mb executable
<Mic92> clever: I would expect that it would be loaded completely into memory.
<Mic92> *not load
<clever> yeah
<kmicu> LnL: and no ‘Hydra::Model::DB::BuildProducts=HASH(0xb49b370)’ :)
<LnL> yeah I think some data got lost or something
mw has joined #nixos
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
sboo has quit [(Ping timeout: 258 seconds)]
ckauhaus has quit [(Quit: Leaving.)]
lverns has quit [(Ping timeout: 245 seconds)]
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
<gchristensen> :/
<gchristensen> I think my laptop is dying faster than is convenient :/
kampfschlaefer has quit [(Ping timeout: 258 seconds)]
kampfschlaefer has joined #nixos
hiratara has quit [(Quit: ZNC - http://znc.in)]
kier has quit [(Read error: Connection reset by peer)]
hiratara has joined #nixos
ok2 has joined #nixos
k2s has joined #nixos
AllanEspinosa has quit [(Ping timeout: 250 seconds)]
MarcelineVQ has quit [(Ping timeout: 245 seconds)]
ebzzry has joined #nixos
<clever> Mic92: gchristensen: http://imgur.com/a/xM4vS
MarcelineVQ has joined #nixos
AllanEspinosa has joined #nixos
codeape has joined #nixos
pi3r2 has quit [(Ping timeout: 248 seconds)]
<mudri> I just came across a Haskell project I wanted to build requesting lts-3.21 from Stack, but nixpkgs only has up to lts-3.20 then lts-4.0. Why would it be missing?
derjohn_mobi has joined #nixos
codeape has quit [(Client Quit)]
filterfish has quit [(Remote host closed the connection)]
filterfish has joined #nixos
filterfish has quit [(Remote host closed the connection)]
<Havvy> mudri: Perhaps nobody has updated it yet?
filterfish has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc pushed 3 new commits to master: https://git.io/v1DhT
<NixOS_GitHub> nixpkgs/master b139b17 Tim Steinbach: subversion: 1.9.4 -> 1.9.5
<NixOS_GitHub> nixpkgs/master 1edf951 Tim Steinbach: subversion: 1.8.16 -> 1.8.17
<NixOS_GitHub> nixpkgs/master 2d249e2 Graham Christensen: Merge pull request #21146 from NeQuissimus/subversion...
<LnL> gchristensen: nixpkgs manual is pretty simple nix-build '<nixpkgs/doc>'
ok2 has quit [(Ping timeout: 252 seconds)]
<mudri> Havvy: I'm not familiar with Stackage, but I'm under the impression that lts-3.21 is really old. It's at lts-7 or something now.
<mudri> Maybe lts-3.21 predates the Nix-Stack stuff, and noöne bothered adding it.
kier has joined #nixos
berce has quit [(Quit: leaving)]
systemfault has joined #nixos
redmq has joined #nixos
pi3r has joined #nixos
<NixOS_GitHub> [nixpkgs] copumpkin pushed 2 new commits to master: https://git.io/v1yeB
<NixOS_GitHub> nixpkgs/master 7612572 Daiderd Jordan: darwin.libunwind: fix install phase
<NixOS_GitHub> nixpkgs/master e6d28d6 Daniel Peebles: Merge pull request #21003 from LnL7/darwin-libunwind...
<gchristensen> hooray, copumpkin is back!
<NixOS_GitHub> [nixpkgs] copumpkin pushed 2 new commits to staging: https://git.io/v1yea
<NixOS_GitHub> nixpkgs/staging a3dbada Daiderd Jordan: wxmac: fix build with clang-3.8
<NixOS_GitHub> nixpkgs/staging d77db89 Daniel Peebles: Merge pull request #21048 from LnL7/darwin-wxmac...
<LnL> yay 🎉
lverns has joined #nixos
bennofs has quit [(Quit: WeeChat 1.6)]
nh2_ has quit [(Ping timeout: 240 seconds)]
pi3r has quit [(Ping timeout: 258 seconds)]
<gchristensen> "calculons back!"
sdothum has quit [(Quit: ZNC - 1.6.0 - http://znc.in)]
<NixOS_GitHub> [nixpkgs] Mic92 opened pull request #21160: ntp: make timesyncd the new default (master...timesyncd) https://git.io/v1yfq
<Mic92> gchristensen: ^ community feedback wanted
lverns has quit [(Quit: Konversation terminated!)]
sdothum has joined #nixos
<gchristensen> Mic92: I'm certainly not offended by that :)
alx741 has quit [(Read error: Connection reset by peer)]
<Mic92> gchristensen: with regard to the security track record of ntpd
alx741 has joined #nixos
danharaj has quit [(Quit: Leaving.)]
kier has quit [(Remote host closed the connection)]
<NixOS_GitHub> [nixpkgs] zimbatm pushed 1 new commit to master: https://git.io/v1yJt
<NixOS_GitHub> nixpkgs/master 2a224c6 zimbatm: fzf: 0.15.1 -> 0.15.9
phreedom has quit [(Ping timeout: 250 seconds)]
eacameron has quit [(Ping timeout: 258 seconds)]
danieli has joined #nixos
phreedom has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
anelson has quit [(Ping timeout: 245 seconds)]
anelson has joined #nixos
c0bw3b has left #nixos []
k2s has quit [(Ping timeout: 250 seconds)]
mexisme has quit [(Read error: Connection reset by peer)]
mexisme has joined #nixos
sdothum has quit [(Quit: ZNC - 1.6.0 - http://znc.in)]
kampfschlaefer has quit [(Ping timeout: 250 seconds)]
<gchristensen> how has the market not caught up with apple's build quality ... 2 out of the 3 reviews shown by default on lenovo's on website says it is built poorly.
sdothum has joined #nixos
<NixOS_GitHub> [nixpkgs] LnL7 pushed 1 new commit to master: https://git.io/v1yTn
<NixOS_GitHub> nixpkgs/master 14bf940 Daiderd Jordan: Revert "darwin.libunwind: fix install phase"...
herzmeister has quit [(Quit: Leaving)]
<NixOS_GitHub> [nixpkgs] makefu opened pull request #21161: xstatic-jquery-ui: 1.11.0.1 -> 1.12.0.1 (master...pkgs/xstatic-jquery-ui/update) https://git.io/v1yTi
estewei has quit [(Quit: Quit)]
herzmeister has joined #nixos
m` has joined #nixos
m` is now known as mogo
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/v1ykJ
<NixOS_GitHub> nixpkgs/master 4bc0c87 makefu: xstatic-jquery-ui: 1.11.0.1 -> 1.12.0.1
<NixOS_GitHub> nixpkgs/master 7ea5106 Jörg Thalheim: Merge pull request #21161 from makefu/pkgs/xstatic-jquery-ui/update...
acertain has joined #nixos
<hodapp> gack. one of these days I'll take this "declarative configuration" thing seriously
<hodapp> just screwed around with SANE for a bit before realizing that configuration.nix is where I should have started
<LnL> most people do
<hodapp> do what?
<LnL> start with the imperative nix-env commands
<hodapp> oh, this wasn't even nix-env, it was more that I was trying to figure out what I needed to configure to get my HP scanner to work
<LnL> ah right, that sort of things
redmq has quit [(Ping timeout: 250 seconds)]