NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] jonafato opened pull request #26886: Remove old thunderbird-bin update script (master...remove-thunderbird-bin-updater) https://git.io/vQG5F
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] taku0 opened pull request #26887: Thunderbird bin 52.2.1 (master...thunderbird-bin-52.2.1) https://git.io/vQG5h
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] danielfullmer opened pull request #26888: Fixes for gnupg agent module (master...gnupg-agent-fix) https://git.io/vQGdv
NixOS_GitHub has left #nixos []
<Infinisil> Sonarpulse: Do you mean using another programming language?
<Sonarpulse> Infinisil: there is a way to use the derivation's own hash in itself
<Sonarpulse> nix knows how to break the cycle for hashing purposes
<Infinisil> Sonarpulse: Ohh, you wrote bash, not hash
<Sonarpulse> without making it have the same hash as something else
<Sonarpulse> err I meant bash :) without relying on bash to expand $out at build time
<Infinisil> Umm
* Infinisil is processing your query
<Sonarpulse> tl;dr I cannot use it yet
<Infinisil> So you want to use the ${placeholder "out"} thing?
<Sonarpulse> exactly
mellowmaroon has joined #nixos
<Infinisil> I think you just need to put #!<your interpreter> at the beginning of a script if you don't want bash
<Infinisil> and the ${placeholder "out"} doesn't have to do anything with bash, it's an inline nix expression
<mellowmaroon> I asked earlier, but is there any plans for NixOS to use rustc 1.17?
<mellowmaroon> Or, I guess my question is, how quickly do NixOS packages follow upstream version changes?
athan has joined #nixos
<Infinisil> mellowmaroon: Oh, rust seems to be still in version 1.15 when 1.18 is officially stable even
<Infinisil> Weird
<c74d> nixpkgs Rust is at version 1.17 for me
<Infinisil> c74d: The stable version and default for nixos.rustc is still 1.15.1
Sonarpulse has quit [(Ping timeout: 240 seconds)]
<mellowmaroon> Yeah, that's what I'm asking about. I need a feature for 1.17
<mellowmaroon> from 1.17, I mean
<c74d> `nix-shell -p rustc --run 'rustc --version'` says "rustc 1.17.0" for me
<c74d> oh
<c74d> Infinisil: are you on stable NixOS? I'm on unstable
<mellowmaroon> c74d: on mine it says 1.15.1. I am on stable
<c74d> okay, that must be the difference
<Infinisil> c74d: Ah yeah I'm on stable, channels/nixos-17.03 to be exact
<mellowmaroon> Can I download just this package from unstable? Can you do that with NixOS?
<c74d> ehh… not cleanly, I don't think
<pie_> clever, you happen to know anything about firefox and gamepads?
<c74d> mellowmaroon: I think it would be better to use Mozilla's nixpkgs overlay: <https://github.com/mozilla/nixpkgs-mozilla>
<mellowmaroon> c74d: That's ok. And thanks, I'll look into installing that.
<c74d> which, I believe, can get you arbitrary versions of rustc
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] qknight pushed 1 new commit to master: https://git.io/vQGb6
<NixOS_GitHub> nixpkgs/master 3270545 Calvin Cheng: rethinkdb service: initial implementation
NixOS_GitHub has left #nixos []
<mellowmaroon> c74d: perfect :)
<Infinisil> But I'd suggest using the nixpkgs.overlays option instead of the stateful script in mozillas overlay
<mellowmaroon> Infinisil: Do you have a link for how to use that instead?
<Infinisil> mellowmaroon: Hmm, hold on, I'll try it myself now
<qmake> the overlay is best in this case, but if you ever have that you want to use something from unstable whilst on stable, you could also do something like this: you can do something like this: unstable = import <nixpkgs-unstable> {}; (e.g. in you nixpkgs packageOverrides) where nixpkgs-unstable is defined in your NIX_PATH, or just by directly supplying a path to it
<qmake> just know that you then can get a lot of multiple versions of packages, so I only use it for a select few
<c74d> oh, whoops, for some reason I was thinking that using unstable packages on stable would require building them from source, but now I realize that it could use the same binary substitutes as I do on nixos-unstable
MP2E has joined #nixos
eacameron has quit [(Remote host closed the connection)]
<mellowmaroon> Interesting
eacameron has joined #nixos
<mellowmaroon> I have another small issue I'm working on: for Android Studio on Gnome+GDM, I can't start it unless I run `xhost local` first
cpennington has quit [(Remote host closed the connection)]
<Infinisil> Well I don't know how you'd put nixpkgs-mozilla in nixpkgs.overlays..
eacameron has quit [(Ping timeout: 246 seconds)]
<Infinisil> I don't think it's possible actually
elninja44 has joined #nixos
<Infinisil> Yeah it's impossible, you can't evaluate a nix expression (the rust overlay) which only is there at runtime
<mellowmaroon> Anyway, thank you all for the help :) Need to sign off now. See you all later!
mellowmaroon has quit [(Quit: Leaving)]
<Infinisil> You can however clone the nixpkgs-mozilla repo, then link to it with nixpkgs.overlays = [ (import path/to/mozilla/overlay/rust-overlay.nix) ];
<Infinisil> Maaan, that means my whole idea with my config templating doesn't work either
<Infinisil> Oh wait maybe it does
noqqe has joined #nixos
sigmundv__ has quit [(Ping timeout: 240 seconds)]
eacamero_ has joined #nixos
<manveru> just specify the unstable channel in your shell.nix/default.nix and use it, doesn't need to be the whole system :)
eacamero_ has quit [(Ping timeout: 240 seconds)]
<Infinisil> Argh, the nix manual lied to me, `import ./file.nix` is *not* "completely equivalent" to just inserting the file at that point
eacameron has joined #nixos
<Infinisil> E.g. The file with contents ''hello ${test}'' can't be imported because "test" is not known, even if it might be declared in the importing expression
ryanartecona has quit [(Quit: ryanartecona)]
eacamero_ has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
<clever> the import statement will return the top-level value of the named file
<rodarmor> Can anyone recommend a good graphical file browser to use on NixOS? I like Gnome Nautilus, but I'm not running Gnome as my desktop environment, so something lighter and more standalone would be great. If it has a dotfile for configuration, that would be extra awesome.
<clever> it wont add any values into the global or local scope
<dmj`> anyone know how to use http://shields.io badges w/ hydra?
eacamero_ has quit [(Ping timeout: 240 seconds)]
Supersonic112 has quit [(Disconnected by services)]
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
pxc has quit [(Ping timeout: 246 seconds)]
eacameron has joined #nixos
Mateon3 has joined #nixos
eacameron has quit [(Ping timeout: 255 seconds)]
eacameron has joined #nixos
Mateon1 has quit [(Ping timeout: 240 seconds)]
Mateon3 is now known as Mateon1
sary has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
s33se has joined #nixos
alx741 has joined #nixos
nh2 has quit [(Quit: Leaving.)]
eacamero_ has joined #nixos
s33se_ has quit [(Ping timeout: 255 seconds)]
athan has quit [(Remote host closed the connection)]
eacameron has quit [(Ping timeout: 276 seconds)]
eacameron has joined #nixos
nh2 has joined #nixos
eacamero_ has quit [(Ping timeout: 240 seconds)]
hellrazo1 has joined #nixos
Nobabs27 has joined #nixos
eacameron has quit [(Read error: Connection reset by peer)]
eacameron has joined #nixos
hellrazor has quit [(Ping timeout: 240 seconds)]
jgertm has quit [(Ping timeout: 258 seconds)]
eacameron has quit [(Read error: Connection reset by peer)]
eacameron has joined #nixos
Wizek_ has quit [(Ping timeout: 255 seconds)]
Wizek has quit [(Ping timeout: 260 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
eacameron has quit [(Ping timeout: 255 seconds)]
lambdamu has joined #nixos
mbrgm has quit [(Ping timeout: 260 seconds)]
mbrgm has joined #nixos
lambdamu_ has quit [(Ping timeout: 240 seconds)]
pxc has joined #nixos
<pxc> does `nix-store -q --tree` print build-time dependencies in the tree even if they're not actually part of a package's closure for installaiton purposes?
<pxc> I'm trying to figure out how big the closure for the fish shell is and it looks like it includes all of perl just because perl is a nativeBuildInput of groff
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] orivej opened pull request #26891: libunwind: 1.1 -> 1.2.1 (master...libunwind) https://git.io/vQGjm
NixOS_GitHub has left #nixos []
elninja44 has quit [(Remote host closed the connection)]
<pxc> is there a better way to check closure size than running `du -sch` on the output of `nix-store -qR`?
disasm has quit [(Quit: WeeChat 1.8)]
<clever> pxc: one min
<pxc> clever: thanks!
<Infinisil> pxc: You could just write a simple function that does du -sch $(nix-store -qR ...)
<clever> [clever@nas:~]$ du -hc --max=0 $(nix-store -qR /run/current-system) | sort -h
<clever> this is what i tend to use
<pxc> clever: okay, so I wanted to make sure I'm not tripping w/r/t I see
<pxc> clever: the closure for fish appears to include perl
<clever> what is your storepath for fish?
<pxc> clever: when I examine it with `nix-store --tree (realpath (which fish))`, I see that perl is pulled in by groff, which is a propagatedBuildInput of fish
<clever> groff is usualy involved in generating man pages
<clever> i'm guessing somebody put it in the wrong field of fish
<pxc> clever: but in the groff package, I see that perl is only a nativeBuildInput... so how does it end up in fish's closure
<clever> if its in the $out of groff, its in the closure of groff
<clever> all runtime stuff is based on what paths are in $out, not the nix expressions
<pxc> clever: I thought nativeBuildInputs didn't get put there. but something in groff maybe referneces it?
<clever> nativeBuildInputs just means it has to be from the host, not the target
<pxc> clever: what notion of 'in' are we using here? like one of the files contains the path as evidenced by running `strings` on it?
<clever> more like grep
<pxc> clever: so it's only run on scripts or plaintext?
<clever> every file, binary and text
<clever> it appears to embed the path to groff into a fish script involved in printing help
<clever> so its not a mistake in the fish package
<Infinisil> Maybe you could try running it with groff only in buildInputs
<pxc> clever: okay, so the dependency on groff for fish is ineliminable, I think (unless we use another implementation for nroff). But how can I stop perl from getting pulled in for groff's closure?
<clever> we need to grep the groff storepath for the perl path
<pxc> Infinisil: I will try that. It still seems like a problem that perl is getting pulled in by groff, though
<clever> [clever@amd-nixos:~]$ grep -r --color nsa311yg8h93wfaacjk16c96a98bs09f /nix/store/cjmnrbfqrdnllb4j6a6qlzbv55gqzrih-groff-1.22.3
<Infinisil> Perl is in coreutils
<clever> /nix/store/cjmnrbfqrdnllb4j6a6qlzbv55gqzrih-groff-1.22.3/bin/groffer:#!/nix/store/nsa311yg8h93wfaacjk16c96a98bs09f-perl-5.22.3/bin/perl
<clever> pxc: nearly every script in groff is using a perl #!
qmake has quit [(Ping timeout: 260 seconds)]
<pxc> clever: yea I was just looking at that now. I'm a bit surprised, because I thought it was a C++ project
<clever> pxc: it seems to be a mix of perl and elf
eacameron has joined #nixos
<pxc> clever: maybe we can switch fish to old nroff or something? let's see what roffery we've got in nixpkgs lol
<Infinisil> pxc: Why would you want to do that?
zeus_ has quit [(Remote host closed the connection)]
<pxc> Infinisil: because if there's any version of roff which doesn't pull in perl, installing fish can take 50M less space to download and install
zeus_ has joined #nixos
<clever> pxc: but perl is probably being pulled in by other things
<Infinisil> pxc: As I said before, perl is in coreutils
<Infinisil> And you can't get rid of coreutils
<clever> at least on nixos
<pxc> Infinisil: oh, I'm sorry I missed that. so it'll be everywhere that Nix is
<clever> i see 62 things refering to perl on my nixos machine
<pxc> clever, Infinisil: I want fish to be smaller so that using nix-shell shebangs which wrap fish is less obnoxious
<pxc> I want it to be nice on macOS and non-NixOS Linux, too
ris has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
<Infinisil> pxc: What do you mean by smaller? Are you referring to files being downloaded when fish is installed the first time when running the script?
<pxc> Infinisil: yes
<pxc> Infinisil: but I see fish depends on coreutils right?
<Infinisil> pxc: Yeah
zeus_ has quit [(Ping timeout: 276 seconds)]
<Infinisil> fish is going to take at least 10 seconds to install, which is too much time for a script without any output
<Infinisil> Ah
<Infinisil> Never mind that
<Infinisil> But basically you can't make it much faster
ris has quit [(Ping timeout: 260 seconds)]
ris has joined #nixos
pie_ has quit [(Ping timeout: 260 seconds)]
<pxc> Infinisil: fish is a really great shell for scripting, though, so this is a shame. :-(
earldouglas has quit [(Quit: leaving)]
<pxc> Infinisil, clever: looks like in Fedora they use a subpackage for the perl-dependent componens. maybe we can do the same with multi-output? https://rpmfind.net/linux/RPM/fedora/devel/rawhide/x86_64/g/groff-base-1.22.3-9.fc26.x86_64.html
<pxc> and maybe I can do something about the dependency on coreutils if fish doesn't use all of it?
<pxc> perl's not in coreutils afaict, I'm looking right now
ris has quit [(Ping timeout: 260 seconds)]
telotortium has quit [(Read error: Connection reset by peer)]
telotortium has joined #nixos
<pxc> clever, Infinisil: this means that if we can get perl into a separate output for groff and have fish not depend on it we can get perl out of fis's closure, right: http://termbin.com/peiq
<Infinisil> pxc: Ohh, sorry
<Infinisil> I misinterpreted the output of a command
<pxc> Infinisil: no worries! :-) but does it look like I'm in better shape now?
ryanartecona has joined #nixos
<Infinisil> Hmm
<pxc> okay, so here's another question, maybe a bit harder. Hopefully not malformed, though: can we use multiple-output derivations to represent optional dependencies? I'd like to have some way of installing fish which doesn't depend on python. Python is only needed by fish for the fish_config webserver and generating manpage completions. If I can get a version of fish without python, I'd like to have it so that
<pxc> when installing python support one doesn't need an entirely new fish package, so the space for fish itself can be reused. Is that feasible?
<pxc> becuase the naive approach is to have something like: modify pkgs/shells/fish/default.nix so that it can be built with or without python, then add an attribute like fish.tiny and another like fish.interactive in pkgs/top-level.nix and have them just be made with passing different arguments to callPackage
<pxc> but that will make it so that if you have the small one installed, you still have to recompile fish to get the interactive one
<Infinisil> pxc: Sure, you can just have an argument { withPython ? true, ...} to it
<Infinisil> Then optionally include buildInputs or whatever with it
<Infinisil> You just need to make sure it builds
<pxc> Infinisil: right, so that'll give me two fish packages, so to speak, one with python and one without. But they won't know about each other. I think space will be shared through hard linking, but there won't be dedplication in the packages, right?
<pxc> unless the one with python was actually just a wrapper for the one without it
<Infinisil> They're not hard links, just soft links, which are used all over nix
<Infinisil> pxc: There totally will de "deduplication", that's one of the benefits of hashed store paths
<Infinisil> python can be shared by all things that require python
<pxc> Infinisil: I mean for the fish components. I know the python will be reused between fish and other packages
<Infinisil> pxc: For example?
<pxc> Infinisil: what I'm saying is that when you make two different invocations of callPackage to the same package function, for all Nix can tell tehy are totally separate packages
jgertm has joined #nixos
<Infinisil> pxc: Yeah, but when something is already existant in the store it gets it from there, for example the fish source code won't be downloaded twice
<pxc> Infinisil: so if I have one that includes { withPython = false; } and then go to install one with { withPython = pythonPackages.python; }, Nix is going to begin rebuilding fish
henrycrutcher_ has quit [(Ping timeout: 260 seconds)]
<pxc> Infinisil: that's true. Nix is pretty good at deduplication all by itself. But what I'm trying to figure out is a way to refactor the fish package so that its pythonfull version and pythonless version can share dependencies in such a way that the pythonfull version isn't actually its own build of fish
<Infinisil> pxc: If you make hydra build both python enabled and disabled packages, then you can download both from the nixos cache
<pxc> Infinisil: that's true, and fish itself is only a small part of the closure. But that's still ~11M redundancy and unnecessary rebuilds for me during development
<pxc> Infinisil: indulge me in the exercise of thinking how to organize this? for example with vim_customizable, because customized vims are just wrapper scripts around vim binaries, you can install tons of different customized vims without ever rebuilding vim
<Infinisil> pxc: Oh, so you mean that Make or whatever builds fish can reuse all the parts that were built with other options?
<pxc> Infinisil: yeah. I know that some kind of wrapper script trick will do it. I can think of one right now: give fish a fake python binary which reads an environment variable like __fish_python_runtime to find python and wraps it, then make fishWithPython a wrapper script that sets that variable or something
<Infinisil> Hmm
<pxc> Infinisil: but it seems like maybe some kind of multi-output trickery would be less hackish
<pxc> but idk much about how multi-output works
nil has quit [(Disconnected by services)]
<Infinisil> So you pretty much just don't want python as a propagatedBuildInput?
<Infinisil> Hmm
<pxc> this is I guess related to the groff question: I want to do multi-output for groff so that I can make perl a dep only of groff-perl or groff.perl or whatever
nil has joined #nixos
<pxc> and I want to be able to do the same thing with fish and python, except I don't think there will be any contents in the fish-python output
<pxc> whereas the groff-base/groff-perl split actually involves putting certain files in groff-perl because they're the ones that depend on perl
<pxc> the fish one might, too, I just don't know if there's a clean way to separate them yet because I'm still trying to configure out the right way to split packages like this
<Infinisil> Have you tried just removing python from the fish package?
boj has quit [(Quit: byte byte)]
<Infinisil> Because it might not even change the store path
<pxc> Infinisil: let's give it a shot :-)
<pxc> Infinisil: nope, it definitely changed it. after the change, `nix-build -A fish` triggered a rebuild
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/3270545094 (from 3 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<pxc> not sure why these propagatedBuildInputs besides python need to be in propagatedBuildInputs, though, because fish's calls to them in the source code are patched in the fish package to point to the ones it is built with
eacameron has joined #nixos
<pxc> things which depend on fish don't need those things on the PATH then
<Infinisil> Alright another idea: remove python and create another package which is basically is just buildEnv { name = "fish-with-python"; paths = [ fish ]; }
<Infinisil> Wait
<pxc> Infinisil: I like that one, I was thinking maybe something along those lines. Does one of the other paths need to be python?
<Infinisil> buildEnv { name = "fish-with-python"; paths = [ fish ]; buildInputs = [ python ]; }
<Infinisil> Which other paths?
<pxc> oh, buildEnvs are derivations with buildInputs too huh? I thought they only had paths
endformationage has quit [(Ping timeout: 268 seconds)]
<Infinisil> I'm not sure if that's exactly what you want, but at least it would reuse the present fish
ryanartecona has quit [(Quit: ryanartecona)]
<pxc> Infinisil: I think it's close to what I want. I've been using something similar in some other fish experiments. Idk why it wasn't my first thought to use it here
<Infinisil> And you could add python to the fish executables PATH with makeWrapper
<Infinisil> if it needs it, dunno
<pxc> Infinisil: I think it just came to me! So fish uses python in exactly two files (except for completions). Those files can go in a separate output, an the rest in something which for the purposes of the discussion I'll call fish-core
<pxc> and then the other two can be built into fish-python which takes python as a buildInput and patches te source files to point to that specific python binary
<pxc> Infinisil: then the fish for end-users can be a buildEnv which includes fish-core and fish-python as paths
<pxc> and it'll just merge the two together
<pxc> then you can even change which python your fish depends on without rebuilding fish :-D
<pxc> what do you think?
<Infinisil> That could work :D
<pxc> thanks so much for helping me think this through
<Infinisil> No problem
<pxc> is Infinisil your github username? I'll make a note to tag you in the PR so you can see how it comes out
<Infinisil> Yup it is, nice
<pxc> good. I made the note. that'll motivate me to finish this, too haha. I'm almost done for the day I think. Sick of typing away at the computer for now
<Infinisil> Yeah, me too soon
<pxc> clever: are you going to NixCon 2017?
contrapumpkin has quit [(Quit: My MacBook Pro has gone to sleep. ZZZzzz…)]
Sonarpulse has joined #nixos
<clever> pxc: not currently planning on it
kmicu has quit [(Ping timeout: 255 seconds)]
Criena[m] has quit [(Ping timeout: 255 seconds)]
Criena[m] has joined #nixos
kmicu has joined #nixos
<Infinisil> I'm usually very antisocial, partly because I don't have any common interests with people, that's why I'm very interested in NixCon
<Infinisil> Also it's basically right next door, only about 4 hours with the train
odi has quit [(Ping timeout: 255 seconds)]
Nobabs27 has quit [(Quit: Leaving)]
odi has joined #nixos
ison111 has joined #nixos
<slabity> So I have "nixpkgs.config.firefox.enableAdobeFlash = true;" in my config, but I don't have flash installed in firefox. How do you install flash in nixos?
<slabity> Nevermind, it appears to be working now.
athan has joined #nixos
telotortium has quit [(Read error: Connection reset by peer)]
telotortium has joined #nixos
reinzelmann has joined #nixos
ericsagnes has quit [(Ping timeout: 276 seconds)]
ryantrinkle has joined #nixos
odi has quit [(Read error: Connection reset by peer)]
ryanartecona has joined #nixos
eacameron has quit [(Remote host closed the connection)]
alx741 has quit [(Quit: alx741)]
Sonarpulse has quit [(Ping timeout: 246 seconds)]
reinzelmann has quit [(Quit: Leaving)]
katyucha has joined #nixos
ericsagnes has joined #nixos
isHavvy has quit [(Remote host closed the connection)]
loupgaroublond has quit [(Ping timeout: 260 seconds)]
ericsagnes has quit [(Ping timeout: 260 seconds)]
katyucha has quit [(Ping timeout: 260 seconds)]
HappyEnte has quit [(Ping timeout: 260 seconds)]
Tarinaky has quit [(Ping timeout: 260 seconds)]
bitchecker has quit [(Ping timeout: 260 seconds)]
samueldr_ is now known as samueldr_
samueldr_ has joined #nixos
<> changed the topic of #nixos to: Topic for #nixos is "https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://botbot.me/freenode/nixos/ || Darwin: ##nix-darwin"
<> changed the topic of #nixos to: Topic set by gchristensen!~gchristen@unaffiliated/grahamc on 2017-04-26 15:31:22 UTC
<> changed the topic of #nixos to: Channel #nixos created on 2008-04-25 12:32:07 UTC
joshie_ has joined #nixos
kwork has joined #nixos
pmeunier has joined #nixos
isHavvy has quit [(Remote host closed the connection)]
loupgaroublond has quit [(Ping timeout: 260 seconds)]
loupgaroublond_ is now known as loupgaroublond
ericsagnes has quit [(Ping timeout: 260 seconds)]
katyucha has quit [(Ping timeout: 260 seconds)]
HappyEnte has quit [(Ping timeout: 260 seconds)]
Tarinaky has quit [(Ping timeout: 260 seconds)]
bitchecker has quit [(Ping timeout: 260 seconds)]
samueldr has quit [(Ping timeout: 260 seconds)]
CustosLimen has quit [(Ping timeout: 260 seconds)]
Ankhers has quit [(Ping timeout: 260 seconds)]
ncode has quit [(Ping timeout: 260 seconds)]
pmeunier_ has quit [(Ping timeout: 260 seconds)]
kwork_ has quit [(Ping timeout: 260 seconds)]
joshie has quit [(Ping timeout: 260 seconds)]
zml has quit [(Ping timeout: 260 seconds)]
baroncharlus has quit [(Ping timeout: 260 seconds)]
iMatejC has quit [(Ping timeout: 260 seconds)]
CcxWrk has quit [(Ping timeout: 260 seconds)]
mood has quit [(Ping timeout: 260 seconds)]
pierron has quit [(Ping timeout: 260 seconds)]
nliadm has quit [(Ping timeout: 260 seconds)]
lstanley has quit [(Ping timeout: 260 seconds)]
hodapp has quit [(Ping timeout: 260 seconds)]
anderslundstedt has quit [(Ping timeout: 260 seconds)]
HappyEnte has joined #nixos
ncode has joined #nixos
ncode has quit [(Changing host)]
ncode has joined #nixos
ajp_ has quit [(Ping timeout: 260 seconds)]
mooseboobs has quit [(Ping timeout: 260 seconds)]
bitchecker has joined #nixos
baroncharlus has joined #nixos
mooseboobs has joined #nixos
anderslundstedt has joined #nixos
ajp has joined #nixos
pbogdan has quit [(Ping timeout: 260 seconds)]
Tarinaky has joined #nixos
kmicu has quit [(Ping timeout: 240 seconds)]
CustosLimen has joined #nixos
CcxWrk has joined #nixos
Ankhers has joined #nixos
rumble has joined #nixos
nliadm has joined #nixos
kmicu has joined #nixos
mood has joined #nixos
pbogdan has joined #nixos
jbgi has joined #nixos
grumble has quit [(Ping timeout: 608 seconds)]
pierron has joined #nixos
lstanley has joined #nixos
zml has joined #nixos
iMatejC has joined #nixos
hodapp has joined #nixos
snikkers_ has joined #nixos
eisbaer1 has joined #nixos
MercurialAlchemi has joined #nixos
ison111_ has joined #nixos
snikkers has quit [(Ping timeout: 260 seconds)]
eisbaer has quit [(Ping timeout: 260 seconds)]
HappyEnte has quit [(Ping timeout: 260 seconds)]
barrucadu has quit [(Ping timeout: 260 seconds)]
ison111 has quit [(Ping timeout: 260 seconds)]
luigy has quit [(Ping timeout: 260 seconds)]
adisbladis has quit [(Ping timeout: 260 seconds)]
markus1209 has quit [(Ping timeout: 260 seconds)]
luigy has joined #nixos
barrucad1 has joined #nixos
aminechikhaoui has quit [(Ping timeout: 240 seconds)]
HappyEnte has joined #nixos
markus1189 has joined #nixos
pxc has quit [(Ping timeout: 255 seconds)]
adisbladis has joined #nixos
<hyper_ch> clever: ping
marsel has joined #nixos
revtintin has joined #nixos
ebzzry has joined #nixos
leat has quit [(Ping timeout: 240 seconds)]
Infinisil has quit [(Quit: leaving)]
Infinisil has joined #nixos
<clever> hyper_ch: pong
<hyper_ch> clever: why you use lz4 compression? and do you make 3 "subpools" in the zfs pool?
<hyper_ch> or how to understand the mountpoint=legacy /root, /home, /nix
<Mic92> hyper_ch: you want legacy mountpoints, so you can let systemd mount the datasets. This is cleaner as they become mount targets and can be properly ordered.
ryanartecona has quit [(Quit: ryanartecona)]
<hyper_ch> what are legacy mountpoints?
aneeshusa has joined #nixos
aneeshusa has quit [(Client Quit)]
<Infinisil> zfs has its own mount system
* hyper_ch gets the impression everyone knows about zfs and has a strong zfs-fu but himself
<Infinisil> the usual steps "mount /dev/sdd1 /media/hi" are called legacy
<Mic92> hyper_ch: /etc/fstab is considered legacy in zfs land
telotortium has quit [(Read error: Connection reset by peer)]
<hyper_ch> I see
telotortium has joined #nixos
<Infinisil> hyper_ch: zfs is pretty cool and fresh and so is nix, so I think there a bit of overlap :P
<Infinisil> Ah yes fstab
<hyper_ch> encrypted raid1 zfs - howto :)
<Infinisil> encryption is sadly not in zfsonlinux yet
<hyper_ch> what I currently have is two partitions, both raid1 with 1 defice
<Infinisil> There's a PR on that
<hyper_ch> device
<hyper_ch> then one partition gets ext4 as /boot
<hyper_ch> other partitions gets luks
<hyper_ch> and the encrypted partiton gets than ext4 as /
<Mic92> hyper_ch: cryptsetup for every device and then a raid on it.
<Mic92> if you use zfs
<hyper_ch> with that, I can expand the raid1 in my notebook to 2 devices and make a sync to an attached external usb drive
<hyper_ch> so that I have a running system even when notebook gets stolen, ssd dies or I do some big f*******
<Infinisil> Here is the PR for encryption for zfs, can't wait for it to be finished: https://github.com/zfsonlinux/zfs/pull/5769
<hyper_ch> Mic92: raid needs to be before crypt
<Mic92> hyper_ch: I would make it the other way around, if you use zfs
<Mic92> that way zfs can repair broken data
<hyper_ch> Mic92: the idea here is to easily "clone" the system to another drive
<hyper_ch> external usb - as hot copy
freusque has joined #nixos
<Mic92> hyper_ch: then I would not use a raid
<hyper_ch> so I just set raid devices to 2 and add external partition to the raid
<hyper_ch> so the raid then syncs
<Mic92> snapraid, might be the better option
<hyper_ch> no idea what snapraid is
<Mic92> it is an asynchron raid.
<Mic92> otherwise your ssd gets slow down by you usb hdd
<hyper_ch> --add --write-mostly
<sphalerite> hyper_ch: I use zfs but I definitely don't have a strong zfs-fu :D
jbgi has quit [(Ping timeout: 240 seconds)]
<Infinisil> I'd say I know about 7/10 things about using zfs
<Infinisil> Have spent a bit of time on it
marsel has quit [(Ping timeout: 240 seconds)]
<hyper_ch> :)
<hyper_ch> so, gotta get going
<Infinisil> See ya
reinzelmann has joined #nixos
dev1 has quit [(Quit: WeeChat 1.7.1)]
Rajsun has quit [(Quit: Leaving)]
ebzzry has quit [(Ping timeout: 240 seconds)]
zraexy has joined #nixos
Itkovian has joined #nixos
pxc has joined #nixos
FRidh has joined #nixos
jgertm has quit [(Ping timeout: 240 seconds)]
Itkovian has quit [(Ping timeout: 240 seconds)]
Itkovian has joined #nixos
johnw_ has joined #nixos
johnw has quit [(Ping timeout: 240 seconds)]
isHavvyGhosting is now known as Havvy
Infinisil has quit [(Quit: leaving)]
marsel has joined #nixos
rumble is now known as grumble
ericsagn1 has quit [(Ping timeout: 260 seconds)]
DrWaste has joined #nixos
snikkers_ has quit [(Ping timeout: 255 seconds)]
ertes has quit [(Ping timeout: 240 seconds)]
bastian has quit [(Remote host closed the connection)]
ericsagnes has joined #nixos
Itkovian has quit [(Read error: Connection reset by peer)]
telotortium has quit [(Read error: Connection reset by peer)]
telotortium has joined #nixos
freusque has quit [(Ping timeout: 255 seconds)]
thc202 has joined #nixos
primeos has quit [(Ping timeout: 276 seconds)]
primeos has joined #nixos
danyc0 has quit [(Ping timeout: 276 seconds)]
kosmikus has quit [(Ping timeout: 276 seconds)]
tippenei1 has quit [(Ping timeout: 276 seconds)]
threshold has quit [(Ping timeout: 276 seconds)]
danyc0 has joined #nixos
threshold has joined #nixos
kosmikus has joined #nixos
tippenein has joined #nixos
freusque has joined #nixos
snikkers has joined #nixos
raunov has joined #nixos
<raunov> hey
<raunov> a question: can disnix be used to manage configs of multiple nixos machines also or just for services on them?
<raunov> my scenario: i have a server rack with 4 bays, each having nixos and would like to manage their config together
<dash> raunov: i believe this is what nixops is for.
<raunov> yes i know that nixops can manage configs also but doesn't it require to create the infra first ? or is there a way to create deployment from existing machines ?
barrucad1 is now known as barrucadu
ambro718 has joined #nixos
<ikwildrpepper> raunov: you can use the 'none' backend (default) to manage any nixos machine that is accessible via ssh
primeos has quit [(Ping timeout: 240 seconds)]
<ikwildrpepper> raunov: nixops won't do anything related to provisioning then (or any automagical hardware config additions)
<ikwildrpepper> just need to make sure you are able to ssh as root to the machines
orivej has quit [(Remote host closed the connection)]
<raunov> ah nice, that was exactly the hint i was looking for, thx ikwildrpepper
mudri has joined #nixos
orivej has joined #nixos
<ikwildrpepper> raunov: we do the same for part of the hydra.nixos.org infrastructure
ertes-w has joined #nixos
primeos has joined #nixos
pxc has quit [(Ping timeout: 255 seconds)]
jensens has joined #nixos
pxc has joined #nixos
Itkovian has joined #nixos
<clever> hyper_ch: i use 3 filesystems, so /nix and /home can optionaly have different options
<clever> hyper_ch: for example, i can turn snapshots off in /nix, but leave it on in / and /home
<clever> hyper_ch: i didnt do that on some systems, and now there is a multi-month delay on any nix-collect-garbage
<clever> hyper_ch: or i have to manualy delete the snapshots
pxc has quit [(Ping timeout: 260 seconds)]
<tommyangelo[m]> So I'm confused: I upgraded my system, and now /run/current-system/sw/bin/thunderbird points to /nix/store/4xqv2dxm9qa8vnfridc6fxynqqc41qj2-thunderbird-52.2.1/bin/thunderbird, but /nix/var/nix/profiles/default/bin/thunderbird points to /nix/store/mvm7f8wkl8lr8acfbzhn8aji1jxllpd6-thunderbird-45.5.1/bin/thunderbird How can I get rid of the old version?
telotortium has quit [(Read error: Connection reset by peer)]
telotortium has joined #nixos
_Vi has quit [(Ping timeout: 255 seconds)]
mw has quit [(Quit: kumquat)]
<clever> telotortium: you installed it in both nix-env and systemPackages
<clever> tommyangelo[m]: you need to uninstall the version in roots nix-env
<clever> check nix-env -q and read the man page for the -e flag
mw has joined #nixos
<tommyangelo[m]> clever: thanks!
Wizek has joined #nixos
Wizek_ has joined #nixos
ambro718 has quit [(Ping timeout: 255 seconds)]
ThatDocsLady has joined #nixos
goibhniu has joined #nixos
FRidh has quit [(Read error: No route to host)]
Infinisil has joined #nixos
FRidh has joined #nixos
ris has joined #nixos
jtojnar has joined #nixos
justanotheruser has quit [(Ping timeout: 268 seconds)]
jtojnar has quit [(Quit: jtojnar)]
Isorkin has joined #nixos
Wizek_ has quit [(Remote host closed the connection)]
freusque has quit [(Quit: WeeChat 1.7.1)]
Wizek_ has joined #nixos
nadley has quit [(Quit: http://quassel-irc.org - Discuter simplement. Partout.)]
butchery has joined #nixos
nadley has joined #nixos
mudri has quit [(Ping timeout: 255 seconds)]
telotortium has quit [(Read error: Connection reset by peer)]
telotortium has joined #nixos
thc202 has quit [(Ping timeout: 255 seconds)]
katyucha_ is now known as katyucha
Wizek_ has quit [(Remote host closed the connection)]
mudri has joined #nixos
Wizek_ has joined #nixos
Wizek_ has quit [(Remote host closed the connection)]
qknight has quit [(Quit: Lost terminal)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] singles opened pull request #26893: Update sauce-connect to 4.4.7 (master...sauce-connect-4.4.7) https://git.io/vQZWp
NixOS_GitHub has left #nixos []
Wizek_ has joined #nixos
thc202 has joined #nixos
ris has quit [(Ping timeout: 258 seconds)]
qknight has joined #nixos
qknight has quit [(Client Quit)]
qknight has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] robx opened pull request #26894: bundix: upgrade to 2.2.1 (master...bundix-up) https://git.io/vQZlC
NixOS_GitHub has left #nixos []
jbgi has joined #nixos
justanotheruser has joined #nixos
<FRidh> I have a derivation that is stuck at "checking for references to /build in ... " for quite a long time. Any idea why?
zraexy has quit [(Ping timeout: 260 seconds)]
<FRidh> its 13 MB of data
ris has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] MP2E pushed 1 new commit to master: https://git.io/vQZl9
<NixOS_GitHub> nixpkgs/master 71e495e Cray Elliott: winetricks: 20170327 -> 20170614
NixOS_GitHub has left #nixos []
pietranera has joined #nixos
fre has joined #nixos
arianvp2 has joined #nixos
MP2E has quit [(Quit: leaving)]
<qknight> how to use https://github.com/nixcloud/nixpkgs/tree/release-17.03 as a argument to -I nixpkgs= again?
<qknight> i need this branch "release-17.03" in particular as i cherry-picked a patch and want to test it now
<niksnut> -I nixpkgs=https://nixos.org/channels/nixos-17.03/nixexprs.tar.xz
<niksnut> or -I nixpkgs=channel:nixos-17.03 if you're on Nix 1.12
<ikwildrpepper> niksnut: he want to use his own branch on githuib
<ikwildrpepper> (I tink)
<ikwildrpepper> think...
<qknight> maybe i do a local checkout
<qknight> ikwildrpepper: yes that is the case
<ikwildrpepper> qknight: local checkout is easiest
<qknight> ok
<qknight> ikwildrpepper, niksnut thanks!
<ikwildrpepper> otherwise look at github docs to find link for download of tarball
<niksnut> -I nixpkgs=https://github.com/nixcloud/nixpkgs/archive/release-17.03.tar.gz
<qknight> awesome!
samueldr is now known as samueldr
samueldr has joined #nixos
<> changed the topic of #nixos to: Topic for #nixos is "https://nixos.org || Latest NixOS: https://nixos.org/nixos/download.html || Latest Nix: https://nixos.org/nix/download.html || Logs: https://botbot.me/freenode/nixos/ || Darwin: ##nix-darwin"
<> changed the topic of #nixos to: Topic set by gchristensen!~gchristen@unaffiliated/grahamc on 2017-04-26 15:31:22 UTC
<> changed the topic of #nixos to: Channel #nixos created on 2008-04-25 12:32:07 UTC
<ikwildrpepper> raunov: yes
<ikwildrpepper> you can just import it
that_guy_ has joined #nixos
<raunov> and same for hardware, correct ?
<ikwildrpepper> { mymachine = { imports = [ /path/to/my/config.nix ]; } ; }
<ikwildrpepper> raunov: the *full* config you would use as /etc/nixos/configuration.nix
adamCS_ is now known as adamCS
<raunov> okay, thx
that_guy_ is now known as nliadm
<ikwildrpepper> so yes, including hardware config etc. nixops none backend makes you responsible for everything
akaWolf1 is now known as akaWolf
<ikwildrpepper> it will assume your machine is reachable with the 'mymachine' name (in my example). you can use ssh config for that, or you can set an IP address with some option targetHost (see docs)
LnL has joined #nixos
<NickHu> I'm getting this error when trying to build a nix derivation of a haskell package from a local directory:LICENSE: copyFile: does not exist (No such file or directory) - any ideas?
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 closed pull request #26810: nixos manual: segment into pages (master...manual-chunking) https://git.io/vQYAN
NixOS_GitHub has left #nixos []
CcxWrk has joined #nixos
jbgi has quit [(Ping timeout: 260 seconds)]
jensens has joined #nixos
noffle has joined #nixos
pietranera has joined #nixos
zml has joined #nixos
<NickHu> Okay so it turns out that nix doesn't like symlinked license files
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
mpcsh has joined #nixos
armijn_ is now known as armijn
JagaJaga has joined #nixos
mudri has quit [(Ping timeout: 240 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] rcherrueau opened pull request #26896: haskell-packages: use older version of apply-refact with ghc-8.0.x (master...fix-apply-refact-w/-ghc802) https://git.io/vQZuE
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] layus opened pull request #26897: terminfo: symlink terminfo to /etc for ncurses (master...nixos-terminfo) https://git.io/vQZur
NixOS_GitHub has left #nixos []
odi has joined #nixos
<Isorkin> Hi. How-to fix build package? - http://pastebin.ru/M82OyNId
roberth has joined #nixos
m0rphism has quit [(Quit: WeeChat 1.8)]
<goibhniu> hi Isorkin, the make file is trying to create /modules so you'll need to modify it to create that in $out/modules
<goibhniu> (I think)
<Isorkin> goibhniu: installPhase ?
<goibhniu> yep
odi has quit [(Quit: leaving)]
odi` has joined #nixos
<Isorkin> goibhniu: created clean package /nix/store/3x2xnhilf99bmf26kkr3yr7a5jssbnhj-libmodsecurity-3.0.0 not found files, clean folder
odi` is now known as odi
<goibhniu> Isorkin: sorry, I don't understand ... can you put your expression in a pastebin?
<Isorkin> goibhniu: http://pastebin.ru/acInUkAY
odi_ has joined #nixos
odi_ has left #nixos []
<goibhniu> Isorkin: cool, so in your installPhase you also want to copy the modules to the correct place
<Isorkin> goibhniu: https://github.com/NixOS/nixpkgs/issues/24599 In this revision worked without installPhase
<goibhniu> Isorkin: did you check if there were any relevant changes between these revisions?
<Isorkin> not check
simukis has joined #nixos
hellrazor has joined #nixos
revtintin has quit [(Ping timeout: 260 seconds)]
Rajsun has joined #nixos
hellrazo1 has quit [(Ping timeout: 260 seconds)]
<Isorkin> goibhniu: found an error - incorrect revision indicated
pie_ has joined #nixos
BlessJah_ is now known as BlessJah
arianvp2 has quit [(Quit: arianvp2)]
Wizek_ has quit [(Remote host closed the connection)]
arianvp2 has joined #nixos
lukego has joined #nixos
Wizek_ has joined #nixos
Wizek_ has quit [(Remote host closed the connection)]
Wizek_ has joined #nixos
<lukego> Sorry if this is a really basic question... Suppose I have derivations 'a' and 'b' that each create an output in $out/lib/mydir/. Then I have a derivation 'c' which inputs 'a' and 'b': Can 'c' see a 'mydir' directory containing the union of 'a' and 'b' outputs?
Wizek_ has quit [(Remote host closed the connection)]
<gchristensen> lukego: it is possible to make that happen, but no `c` doesn't see it that way
<gchristensen> you can find a's lib/mydir via "${a}/lib/mydir"
<lukego> gchristensen: Can you recommend a way? I need to somehow populate a directory with files provided by many inputs
<gchristensen> I believe buildEnv can be used for this
Wizek has quit [(Read error: Connection reset by peer)]
arianvp2 has quit [(Quit: arianvp2)]
Wizek_ has joined #nixos
<manveru> is there some way to modify the stdenv.mkDerivation afterwards? i'd like to add an env var for nix-shell
<gchristensen> manveru: will .overrideAttrs do that?
<manveru> but if i call it, it's too late, and i can't call override on the function
<manveru> hmm
<gchristensen> wait, you want to override _all_ mkDerivations?
<manveru> no, just one :)
mudri has joined #nixos
georges-duperon has joined #nixos
<manveru> drv = stdenv.mkDerivation { name = "foo"; A = "hi"; }; drv.overrideAttrs { B = "there"; } >> error: attempt to call something which is not a function but a set,
<LnL> foo.overrideAttrs (drv: { ... })
mudri has quit [(Ping timeout: 240 seconds)]
Wizek_ has quit [(Remote host closed the connection)]
<manveru> ooh
<LnL> :)
<manveru> thanks a ton
cmacrae has joined #nixos
<cmacrae> LnL: Yo! o/ What's the alternative of `nixos-rebuild switch --upgrade` for nix-darwin? :)
iyzsong has joined #nixos
<manveru> cmacrae: darwin-rebuild switch
darlan has joined #nixos
<manveru> we're now like... 3 people using it :D
<cmacrae> manveru: note the '--upgrade' option
<manveru> oh
<cmacrae> :p
<manveru> the channel update?
<manveru> don't think there's an option yet
<cmacrae> Ah, damn, okay
telotortium has quit [(Read error: Connection reset by peer)]
<manveru> it's in nix-channel --list, so you can just nix-channel --update first
<manveru> tbh i don't use --upgrade even on nixos ^^;
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] qknight pushed 6 new commits to release-17.03: https://git.io/vQZPU
<NixOS_GitHub> nixpkgs/release-17.03 8c0620f Niklas Hambüchen: glusterfs: Remove no longer needed subsitutions of DESTDIR....
<NixOS_GitHub> nixpkgs/release-17.03 fef914c Niklas Hambüchen: glusterfs: Use github instead of download.gluster.org to obtain source....
<NixOS_GitHub> nixpkgs/release-17.03 c061e50 Niklas Hambüchen: glusterfs: Make commands that gluster calls work. Fixes #25620....
NixOS_GitHub has left #nixos []
<cmacrae> Cool, yeah I'll just use that
telotortium has joined #nixos
<qknight> i've just cherry-picked a few glusterfs commits and pushed it into 'release-17.03'
<gchristensen> manveru: I use it, it is excellent
<qknight> could someone please review if i did everything correctly?
<qknight> i've compiled that branch locally and it works btw
<qknight> and all the stuff was from master
<gchristensen> the only problem I see is you should have cherry-pick'd with `-x`
<LnL> cmacrae: yeah, just run nix-channel --update first that's what --upgrade does
<qknight> gchristensen: so i just leave it now and do it right the next time, right?
eacameron has joined #nixos
<cmacrae> Sweet, thanks
<gchristensen> qknight: well, there is nothing that can be done now that it is done (unless we reverted them and did it again.)
<gchristensen> so yes I reckon so :) but, perhaps next time if you're not sure, please make a PR instead
<qknight> gchristensen: actually was was quite sure it would be good
<qknight> gchristensen: but, you know, it wasn't ;-)
<gchristensen> it is just a bit funny that you did the push and then said "could someone please review if i did everything correctly?" :)
<qknight> gchristensen: just double checking
<LnL> cmacrae: assuming you used the bootstrap script or configured it as a channel
<qknight> not done operations on release-17.03 on nixos/nixpkgs
<cmacrae> LnL: Well, I wrote it - so of course I used it ;)
<gchristensen> yeah, it might be good to run future stable branch changes via a quick PR if you're not sure
<qknight> ok
<lukego> gchristensen: Thanks for the buildEnv link. On reflection I think the simplest for my case is just to make a shell loop that symlinks everything, like this: https://gist.github.com/lukego/478943a4ebc0bb4e9ab1a003275ffb31#gistcomment-2133806
<gchristensen> lukego: that would be silly!
<LnL> cmacrae: oh! thanks again for that :D
<gchristensen> lukego: that would be silly b/c that is what buildEnv does
<gchristensen> qknight: CVE-2017-1000364's fix has proved a bit tricky I think, we should ask fpletz[m] what he knows.
<cmacrae> LnL: ;D
Wizek_ has joined #nixos
<domenkozar> lukego: that's what symlinkJoin does
<gchristensen> _doh_ I always forget symlinkJoin :)
<Isorkin> how-to fix error - fatal: Not a git repository (or any of the parent directories): .git ?
<LnL> I always forget what the difference is
<domenkozar> guys, we need docs for these functions
arianvp2 has joined #nixos
kuznero has joined #nixos
<gchristensen> domenkozar: yes we do >.> badly
JagaJaga has quit [(Ping timeout: 268 seconds)]
<LnL> yeah, there's a lot of stuff like that hidden in various places
<kuznero> Hi All
<gchristensen> with and without the " for these functions" suffix :P
<domenkozar> Profpatsch: do you know, does hnix parse comments?
<pie_> hey guys
ebzzry has joined #nixos
<gchristensen> hi kuznero, pie_
<pie_> anyone know why gamepads dont seem to work with firefox?
<pie_> the various gamepad/joystick testing tools work fine
<pie_> (and no luck with a game im trying to play that uses node-webkit either)
<kuznero> Trying to workaround problem with `ghc-syb-utils` used with `ghc-mod 5.7` (https://github.com/NixOS/nixpkgs/issues/26689). Here are some details: http://lpaste.net/7972904497741561856 Please help!
<pie_> the little dialog that i presume would come up in firefox for the gamepad doesnt come up, and even if theres no dialog, nothing happens if i press stuff on the gamepad
schoppenhauer has quit [(Ping timeout: 260 seconds)]
jacob_ has joined #nixos
jacob_ is now known as Guest75391
<domenkozar> sadly no
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] knedlsepp opened pull request #26898: gogs: 0.10.18 -> 0.11.19 (master...update-gogs) https://git.io/vQZ1s
NixOS_GitHub has left #nixos []
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/107d53f40c (from 2 hours ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
ryantrinkle has quit [(Ping timeout: 260 seconds)]
seanparsons has quit [(Read error: No route to host)]
schoppenhauer has joined #nixos
<kuznero> I can see that `nix-env -f "<nixpkgs>" -qaP -A haskellPackages | grep ghc-syb` gives another version now: 0.2.3.2. How can I make `ghc-mod` use that new one in my shell.nix file?
seanparsons has joined #nixos
darlan has quit [(Quit: Communi 3.5.0 - http://communi.github.com)]
<pbogdan> kuznero: try this http://lpaste.net/3510204022864740352 which just disables tests for ghc-syb-utils
<BlessJah> how long can it take for update on release-17.03 branch to be published on channel?
mudri|srcf has quit [(Ping timeout: 240 seconds)]
joe___ is now known as joehh
ryantrinkle has joined #nixos
<manveru> kuznero: you should specify the nixpkgs version in your shell.nix
<lukego> Thanks for the tip on symlinkJoin. I can't quite get my example working with it. any ideas? https://gist.github.com/lukego/e8d705228074b1ec40834ea17753ca9e
<kuznero> pbogdan: thanks! thanks helped! Btw, do you know what had changed such that it stopped working?
cmacrae has quit [(Ping timeout: 260 seconds)]
contrapumpkin has joined #nixos
<pie_> ok so the problem isnt with firefox per se, because it works on my windows machine...
<pie_> what could be wrong with the config?
<kuznero> manveru: `cabal2nix` generates `shell.nix` this way. I am just following the defaults that are picked up from my cabal file.
<manveru> ah, ok :)
pxc has joined #nixos
fre has quit [(Ping timeout: 255 seconds)]
Wizek has joined #nixos
<joehh> manveru: how do you specify the nixpkgs version?
<manveru> like this
pxc has quit [(Ping timeout: 260 seconds)]
bennofs has joined #nixos
<manveru> otherwise your nix-shell would depend on some env var... which isn't deterministic :)
<joehh> and that goes roughly in place of the import <nixpkgs> {}
<manveru> exactly, that replaces it
<joehh> nice - I'd been wondering about that aspect of repeatability
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus closed pull request #26803: rkt: 1.26.0 -> 1.27.0 (master...rkt_1_27_0) https://git.io/vQYaF
NixOS_GitHub has left #nixos []
<manveru> well, technically it's impure as well, since it's input from the network without hash
<manveru> but i don't think you can specify a hash for fetchTarball yet
<manveru> or was that finally added? :)
<joehh> right - so the value returned from the url could be changed or mitm or similar, but assuming constant, then good repeatability
telotortium has quit [(Read error: Connection reset by peer)]
<manveru> yeah
<manveru> you can also use a local path if it exists
telotortium has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 2 new commits to master: https://git.io/vQZye
<NixOS_GitHub> nixpkgs/master 1b792b4 Lancelot SIX: nano: 2.8.4 -> 2.8.5...
<NixOS_GitHub> nixpkgs/master 493ae24 Tim Steinbach: Merge pull request #26870 from lsix/update_nano...
NixOS_GitHub has left #nixos []
<FRidh> manveru: nixUnstable permits the use of a hash
freusque has joined #nixos
<manveru> like fetchUrl { url = https://foo; sha256 = "xxx"; } ?
<FRidh> I've been using that feature daily
<manveru> err, fetchTarball
<joehh> how does one use a local path is it url = /my/fav/path or do you need a file:// ?
<manveru> hmm
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] NeQuissimus pushed 1 new commit to master: https://git.io/vQZyY
<NixOS_GitHub> nixpkgs/master d2e199c Tim Steinbach: linux: 4.4.73 -> 4.4.74
NixOS_GitHub has left #nixos []
<manveru> store path mismatch in file downloaded from ‘https://github.com/NixOS/nixpkgs/archive/376d960034d90c33b9a59db168151b18ccb8bdc5.tar.gz
<manveru> what's that...
<manveru> should be the hash from nix-prefetch-url right?
<FRidh> is the nix daemon running unstable as well?
<FRidh> read carefully, it says you have to use --unpack ;)
<manveru> oh :)
<manveru> all i see is xml man :P
<FRidh> still need to have a section in the Nixpkgs manual with all the different fetchers
<FRidh> haha
bennofs has quit [(Ping timeout: 260 seconds)]
<manveru> that sure is slow
<FRidh> slow?
<manveru> yeah took like 3 minutes
<manveru> but it works!
bennofs has joined #nixos
telotortium has quit [(Read error: Connection reset by peer)]
ilyaigpetrov has joined #nixos
lukego has quit [(Ping timeout: 260 seconds)]
telotortium has joined #nixos
<manveru> is there some way to make this work with both nix versions?
<manveru> maybe with builtins.nixVersion parsing
<joehh> so then, what is the meaning of <nixpkgs>? Is it the "version" of nixpkgs coming from whereever then channels you are subscribed to at the time?
<symphorien> it means the value of the key nixpkgs in NIX_PATH
<manveru> yay
<joehh> aha - thank symphorien - lots of pieces falling into place
<joehh> (and manveru!)
freusque has quit [(Ping timeout: 276 seconds)]
snikkers has quit [(Ping timeout: 246 seconds)]
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03-small advanced to https://github.com/NixOS/nixpkgs/commit/1b78b2d18d (from 72 minutes ago, history: https://channels.nix.gsc.io/nixos-17.03-small)
nix-gsc-io`bot has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] cohei opened pull request #26900: fswatch: 1.5.0 -> 1.9.3 (master...update-fswatch) https://git.io/vQZ9u
NixOS_GitHub has left #nixos []
kier has quit [(Ping timeout: 260 seconds)]
ryantrinkle has quit [(Ping timeout: 276 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] emanueleperuffo opened pull request #26901: gnomeExtensions.caffeine: init at revision ce0d0d4d3a9fed4b35b82cf59609a00502862271 (master...caffeine) https://git.io/vQZ9X
NixOS_GitHub has left #nixos []
thaega has joined #nixos
mudri|srcf has joined #nixos
eacamero_ has joined #nixos
freusque has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
phinxy has joined #nixos
phinxy has quit [(Changing host)]
phinxy has joined #nixos
arianvp2 has quit [(Quit: arianvp2)]
cmacrae has joined #nixos
odi has quit [(Ping timeout: 246 seconds)]
<katyucha> joachifm: Hi. in my MR : https://github.com/NixOS/nixpkgs/pull/26130 <- Your comment is for me or for the staff ?
ebzzry has quit [(Ping timeout: 276 seconds)]
cmacrae has quit [(Ping timeout: 260 seconds)]
disasm has joined #nixos
telotortium has quit [(Read error: Connection reset by peer)]
arianvp2 has joined #nixos
telotortium has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ttuegel opened pull request #26902: plasma5: 5.10.2 -> 5.10.3 (master...plasma-5.10.3) https://git.io/vQZ7j
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ttuegel closed pull request #26902: plasma5: 5.10.2 -> 5.10.3 (master...plasma-5.10.3) https://git.io/vQZ7j
NixOS_GitHub has left #nixos []
cpennington has joined #nixos
_Vi has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] ivan-tkatchev opened pull request #26903: boost-build: update to version 2016.03 (master...pullrequest4) https://git.io/vQZdO
NixOS_GitHub has left #nixos []
earldouglas has joined #nixos
snikkers has joined #nixos
<pie_> anyone know how to fix this? err:module:load_builtin_dll failed to load .so lib for builtin L"winebus.sys": libcap.so.2: cannot open shared object file: No such file or directory
<pie_> this is from wine
telotortium has quit [(Read error: Connection reset by peer)]
Guest473925 has joined #nixos
Wizek_ has quit [(Remote host closed the connection)]
ericsagnes has quit [(Ping timeout: 240 seconds)]
telotortium has joined #nixos
freusque has quit [(Ping timeout: 240 seconds)]
ericsagnes has joined #nixos
<Guest473925> Is xinitrc supported in nix?
<pie_> Fuuzetsu, ping? nixpkgs says you are the maintainer for xboxdrv, maybe you can help me with some gamepad problems?
<srhb> Is there something like pythonWithPackages (like ghcWithPackages)?
<FRidh> python.withPackages
<srhb> oh :P
ebzzry has joined #nixos
kuznero has left #nixos []
<FRidh> https://nixos.org/nixpkgs/manual/#python.withpackages-function
Wizek_ has joined #nixos
ndrei has joined #nixos
pxc has joined #nixos
Guest473925 has quit [(Quit: Page closed)]
freusque has joined #nixos
Wizek_ has quit [(Remote host closed the connection)]
reinzelmann has quit [(Quit: Leaving)]
Wizek_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Ma27 opened pull request #26904: geogebra: make `language` configurable (master...geogebra/make-language-configurable) https://git.io/vQZxZ
NixOS_GitHub has left #nixos []
magnetophon has quit [(Ping timeout: 246 seconds)]
mudri has joined #nixos
eacameron has joined #nixos
ebzzry has quit [(Ping timeout: 255 seconds)]
eacamero_ has quit [(Ping timeout: 246 seconds)]
hiberno has quit [(Quit: leaving)]
earldouglas has quit [(Remote host closed the connection)]
hamishmack has quit [(Quit: hamishmack)]
hamishmack has joined #nixos
zraexy has joined #nixos
ryantrinkle has joined #nixos
arianvp2 has quit [(Quit: arianvp2)]
arianvp2 has joined #nixos
Wizek_ has quit [(Remote host closed the connection)]
MercurialAlchemi has quit [(Ping timeout: 260 seconds)]
earldouglas has joined #nixos
hamishmack has quit [(Client Quit)]
pxc has quit [(Ping timeout: 240 seconds)]
hamishmack has joined #nixos
magnetophon has joined #nixos
<srk> hm, I'm trying to use nixops with "none" backend and I can't get past waiting for SSH... altough nixops ssh <machine> works
<srk> tried disabling socket activation and still nothing
iyzsong has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
ericsagnes has quit [(Ping timeout: 255 seconds)]
Wizek_ has joined #nixos
ericsagnes has joined #nixos
<the-kenny> srk: It likely tries to use a ssh key with a passphrase (via ssh-agent). Iirc that isn't supported and you need to use a key without a passphrase.
<srk> aha
<srk> let me try
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] dtzWill opened pull request #26905: llvmPackages_4: 4.0.0 -> 4.0.1 (master...update/llvm-4.0.1) https://git.io/vQnvc
NixOS_GitHub has left #nixos []
<Infinisil> srk: Did it work?
<srk> on, it, last container switched
Wizek_ has quit [(Remote host closed the connection)]
<srk> how do I tell nixops to use my new key?
<srk> ah, deployment.keyPair
Wizek_ has joined #nixos
bennofs has quit [(Ping timeout: 255 seconds)]
mudri has quit [(Ping timeout: 276 seconds)]
hellrazor has quit [(Ping timeout: 240 seconds)]
hellrazor has joined #nixos
ryanartecona has joined #nixos
<srk> the-kenny: Infinisil, not really. it generates key pair as the first step, I guess I first need to deploy keys generated by nixops for it to work correctly
avn has joined #nixos
bennofs has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] zagy opened pull request #26906: doc / go building: improve (master...fix/doc-gobuild-dependency-note) https://git.io/vQnJH
NixOS_GitHub has left #nixos []
FRidh has quit [(Quit: Konversation terminated!)]
Wizek_ has quit [(Remote host closed the connection)]
erasmas has joined #nixos
bennofs has quit [(Ping timeout: 240 seconds)]
<manveru> i'm having a strange problem with nix-copy-closure... it exits with "error: unexpected end-of-file"
bennofs has joined #nixos
pxc has joined #nixos
Wizek_ has joined #nixos
<manveru> any idea how to debug this?
<manveru> tried stracing it... but it's not clear what it's trying to do
<qknight> manveru: strace -f -e execve yourcommand
<LnL> I think that happens if part of the closure doesn't exist on the source
<qknight> manveru: are you using nix-copy-closure directly?
<manveru> yeah
<manveru> i'm using --use-substitutes for that case...
<qknight> manveru: then my command does not help, try:
<qknight> manveru: strace -f -e open yourcommand
Wizek_ has quit [(Remote host closed the connection)]
<GlennS> I'm trying to use Nix to package a Maven project. I've found mvn2nix, and used it to generate a project-info.json. I've also found build-maven.nix https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/build-maven.nix, but it's not clear how I actually get access to this function. Do I need to import it, or is there some sort of attribute path leading to it, or something else?
<manveru> hm
<qknight> GlennS: you don't understand how to use the generated nix file, right?
<GlennS> Generated nix file? I don't have a generated nix file.
<GlennS> I don't understand how to get access to the function to call it.
<manveru> maybe the ld.so.cache?
<qknight> manveru: interestinly i had the same error message with nixops on mac os x
<qknight> manveru: also doing nix-copy-closure
<LnL> I think you want to strace the process on the other machine
<manveru> this is actually from a nix docker container based on LnLs one
<manveru> i upgrade nix there to unstable... which might've caused that
<manveru> made sure both sides use the exact same nix version and nixpkgs... yet it fails this way
<manveru> and since this seems to be C++ my debugging skills are nonexistent
georges-duperon has quit [(Quit: Leaving)]
<GlennS> I suppose what I'm trying to find out is, given a file in the Nixpkgs repository, is there a way to figure out what it's attribute path will be
<manveru> even --dry-run fails :P
Wizek_ has joined #nixos
Wizek_ has quit [(Remote host closed the connection)]
<manveru> ah, maybe the import/export helps
<manveru> that says some drv is invalid
<manveru> "error: path ‘/nix/store/0n7kbnl9v1v6jhkj1qhzp8fjqrhl17wf-gnugrep-3.0.drv’ is not valid"
<manveru> whatever that means
<manveru> tried to nix-store --verify --repair --check-contents but that didn't help either
<Infinisil> Have any of you seen something like this before? A hot jumbled mess of numbers when nix downloads: https://gist.github.com/c51b238cc1458441c40e212ebdfc446d
<manveru> Infinisil: do the logs come from a tty?
<manveru> usually download progress is only shown when outputting to a terminal
Sonarpulse has joined #nixos
<Infinisil> manveru: It happens fairly often, even doing just nix-env -iA <blablabla>
ryanartecona has quit [(Quit: ryanartecona)]
<Infinisil> I thought it might be the terminal but I tried with multiples
<avn> manveru: I got similiar message not so far ago, but only on one machine (so I suspected bit rotting)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar pushed 1 new commit to master: https://git.io/vQnLb
<NixOS_GitHub> nixpkgs/master 4dadb12 Domen Kožar: hydra: restart daemons on config change...
NixOS_GitHub has left #nixos []
<manveru> Infinisil: try that: curl google.com -o foo
<Infinisil> avn: Bit rotting?
<manveru> that's the same output
<avn> manveru: I mean "Path xxxx is not valid" message
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] volth opened pull request #26907: vault: 0.6.5 -> 0.7.3 with service (master...vault) https://git.io/vQntO
NixOS_GitHub has left #nixos []
<manveru> avn: yeah
<manveru> it seems to happen on the import not the export
<Infinisil> Hmm, doesn't seem to be causing it right now then, I'll have an eye on it
<manveru> which is why on my side the nix-copy-closure didn't have a clue...
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] domenkozar pushed 1 new commit to release-17.03: https://git.io/vQntu
<NixOS_GitHub> nixpkgs/release-17.03 412e55a Domen Kožar: hydra: restart daemons on config change...
NixOS_GitHub has left #nixos []
telotortium has quit [(Read error: Connection reset by peer)]
<avn> manveru: I hit it on nixos-rebuild switch
telotortium has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #26886: Remove old thunderbird-bin update script (master...remove-thunderbird-bin-updater) https://git.io/vQG5F
NixOS_GitHub has left #nixos []
<manveru> weird
<manveru> oh lol
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vQntN
<NixOS_GitHub> nixpkgs/master 24156c6 Nick Hu: dfhack: 0.43.05-alpha4 -> 0.43.05-r1
<NixOS_GitHub> nixpkgs/master e6b7dcd Joachim F: Merge pull request #26871 from NickHu/dfhack...
NixOS_GitHub has left #nixos []
<manveru> this might be an issue... why was that valid in older nix versions?
<manveru> hm, 2014
<manveru> but it worked so far... wut :(
<dredozubov> if I connect to the nixos machine via ssh, I can't use binaries from the corresponding nix-profile
ryanartecona has joined #nixos
<dredozubov> hmm, I'm wrong
<dredozubov> it works with vanilla ssh, but it's broken with emacs tramp
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vQnqx
<NixOS_GitHub> nixpkgs/master 9516bbf Maximilian Bosch: geogebra: make `language` configurable
<NixOS_GitHub> nixpkgs/master c27fc66 Joachim F: Merge pull request #26904 from Ma27/geogebra/make-language-configurable...
NixOS_GitHub has left #nixos []
ixxie has joined #nixos
telotortium has quit [(Read error: Connection reset by peer)]
<manveru> dredozubov: what's the PATH?
Itkovian has quit [(Ping timeout: 260 seconds)]
<manveru> might be that emacs has a different one or doesn't read your shell init file
telotortium has joined #nixos
<dredozubov> it looks like it doesn't respect remote profiles by default
<manveru> had the same issue with rsync...
<manveru> but hey, it's emacs, sure you can fix it with some sexps :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 3 new commits to release-17.03: https://git.io/vQnmW
<NixOS_GitHub> nixpkgs/release-17.03 8e4eb89 Maximilian Bosch: geogebra: 5-0-350-0 -> 5-0-355-0 (#25324)...
<NixOS_GitHub> nixpkgs/release-17.03 39ca634 Maximilian Bosch: geogebra: 5-0-355-0 -> 5-0-361-0...
<NixOS_GitHub> nixpkgs/release-17.03 f38559d Maximilian Bosch: geogebra: 5-0-361-0 -> 5-0-369-0...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #26651: Yade: init at 2017.01a (release-17.03...release-17.03) https://git.io/vHxzH
NixOS_GitHub has left #nixos []
simendsjo has joined #nixos
hlavaty has joined #nixos
<hodapp> so, looking at OpenCV... if I enable Tesseract in this build, then enableContrib must be true. What's the normal way to force this? Replace "enableContrib ? false" with "enableContrib ? enableTesseract"?
<hlavaty> hi hostname -f doesn't give me the domain, how can i fix it? the domain is in /etc/resolv.conf correct
<hodapp> or just tell the user that enableTesseract does nothing if enableContrib is false?
<hlavaty> domainname works, but hostname -f doesnt
<manveru> hlavaty: you use nettools or inetutils?
<hlavaty> manveru: i thought it should work without doing anything extra
<hlavaty> i can use HOST="$(hostname).$(domainname)" but HOST=$(hostname -f) would be nicer
<manveru> well, it depends on which package you installed for the hostname command
<manveru> or if it's just busybox
* hodapp solemnly walks over to the "It's been __ days since hodapp rebuilt OpenCV" sign and flips the number to 0.
butchery_ has quit [(Remote host closed the connection)]
<Ankhers> Is it possible to associate a message with a failed assertion?
DrWaste has quit [(Quit: Run away!)]
<Infinisil> Umm, what's the default password for virtualbox nixops thing? I did the thing in the nixops introduction with a webserver, but there is no mention on how to log in
<Infinisil> Ankhers: assertions = [ { assertion = true; message = "hello"; } ]
bennofs has quit [(Ping timeout: 260 seconds)]
snikkers has quit [(Ping timeout: 240 seconds)]
<Ankhers> Infinisil: And that works with `assert`?
<Infinisil> Ankhers: Ah you mean assert, hmm
ison111_ has quit [(Quit: WeeChat 1.7.1)]
<Ankhers> I just think it would be nice to say why the assertion failed, instead of just saying that it failed and to point to the code to make the user figure out why it failed.
<LnL> use builtins.throw then
Itkovian has joined #nixos
<Infinisil> Yeah, something like if (condition) then <the thing> else throw "message"
eacameron has quit [(Remote host closed the connection)]
<manveru> damn i'm pretty stuck now :(
eacameron has joined #nixos
<Ankhers> That would make it kinda ugly. if (condifition) then <a big derivation> else throw "..."
<Ankhers> I was hoping to not have to wrap the entire derivation for this.
<Ankhers> I guess assert will be fine then.
<manveru> >> nix-store --export $(nix-instantiate /root/.nix-defexpr/channels/nixpkgs -A hello) | bzip2 | ssh build-slave "bunzip2 | nix-store --import"
<manveru> even this fails
<manveru> so it's not nix-shell specific
goibhniu1 has joined #nixos
<manveru> something about this system is just wrong...
Wizek_ has joined #nixos
goibhniu has quit [(Ping timeout: 260 seconds)]
<Infinisil> Ankhers: You should probably use assertions for that, as mentioned before
<manveru> any ideas how to debug what "is not valid" means?
ThatDocsLady has quit [(Quit: Arma-geddin-outta-here!)]
eacameron has quit [(Ping timeout: 276 seconds)]
orivej has quit [(Ping timeout: 255 seconds)]
ryanartecona has quit [(Quit: ryanartecona)]
Itkovian has quit [(Ping timeout: 268 seconds)]
<Infinisil> manveru: I'll just try to run that myself, hmm
<manveru> i'll just make this thing from scratch
<manveru> can't risk going insane yet :)
<Infinisil> manveru: From nix-store --import: If a path refers to another path that doesn’t exist in the Nix store, the
<Infinisil> import fails.
<manveru> so... i have to specify nixpkgs path remotely?
marsel has quit [(Ping timeout: 258 seconds)]
<Infinisil> Well I mean what is even your intention?
<hlavaty> manveru: i see, thanks
digitus has joined #nixos
ryanartecona has joined #nixos
ertes-w has quit [(Ping timeout: 260 seconds)]
hiberno has joined #nixos
simendsjo has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQnnQ
<NixOS_GitHub> nixpkgs/master b13245c Vincent Laporte: ocamlPackages.bos: 0.1.4 -> 0.1.6
NixOS_GitHub has left #nixos []
orivej has joined #nixos
k0001 has joined #nixos
safinaskar has joined #nixos
zeus_ has joined #nixos
<safinaskar> does your distro have something like https://wiki.debian.org/UpstreamGuide ?
<safinaskar> i. e. what upstream package should have to be easily packaged for nixos?
roberth has quit [(Ping timeout: 268 seconds)]
<Infinisil> safinaskar: http://nixos.org/nixpkgs/manual/
endformationage has joined #nixos
<Infinisil> All packages are in https://github.com/NixOS/nixpkgs . You just fork, add your expression, test and PR
<goibhniu1> it's a nice idea to have a guide like that, but I suspect it would be pretty obvious stuff
goibhniu1 is now known as goibhniu
<goibhniu> don't hardcode FHS paths in your build scripts etc.
<Infinisil> Yeah, point 3 of chapter 2 has some good packages to have a look at on how its done
<goibhniu> "don't download dependencies in your build script" would be another one
<goibhniu> safinaskar: why do you ask?
<safinaskar> i just creating upstream package not related to any distro. i just want it to be easily ported to many distros. where should i look for config files for my program, say, "foo"? $PREFIX/etc , right? i tried to ask in debian channels, they said they don't care about packages with non-/usr prefixes. so, i decided to go here, to nixos chanell, because i know you don't use /usr prefix
ambro718 has joined #nixos
<goibhniu> wonderful!
* goibhniu doesn't have a helpful answer though
<Infinisil> safinaskar: I think first preference should be ~/.config/<name>/config and you can provide a default one in $out/etc/<name>/config
<Infinisil> As a convention
<dash> safinaskar: what does your program do
7GHABAO0J has joined #nixos
<7GHABAO0J> [nixpkgs] LnL7 closed pull request #26772: v8_3_16_14: fix OS X build by passing deployment version (master...fix-v8) https://git.io/vQtMI
7GHABAO0J has left #nixos []
7F1AAAJAC has joined #nixos
<7F1AAAJAC> [nixpkgs] LnL7 pushed 2 new commits to master: https://git.io/vQnWm
<7F1AAAJAC> nixpkgs/master c3da83c Robert Vollmert: v8_3_16_14: fix OS X build...
<7F1AAAJAC> nixpkgs/master 5740c9e Daiderd Jordan: Merge pull request #26772 from robx/fix-v8...
7F1AAAJAC has left #nixos []
zraexy has quit [(Ping timeout: 276 seconds)]
<Infinisil> safinaskar: Oh and if you put your package properly in nixpkgs, it's usable by *all* Linux distros, no modifications needed :)
<Ankhers> With the caveat that the user needs to be using Nix.
k0001 has quit [(Remote host closed the connection)]
k0001 has joined #nixos
<Infinisil> Ankhers: s/caveat/improvement of life
<Infinisil> Once you go nix you never go back
<Ankhers> Infinisil: While I personally agree with that statement, I don't know that everyone will.
<safinaskar> dash: well... today i finished very simple lib with value_ptr: https://github.com/safinaskar/value_ptr :)
<safinaskar> so, nix packages store their configs inside nix-store, right?
<disasm> Ankhers: haha, I think it comes down to defining "go nix". I installed nix on my desktop in the office a couple years ago, but went back and forth over and over again. It wasn't until I took the time to learn nix and how to write packages that it clicked and I can't envision a computer no longer running nixos :)
<safinaskar> Infinisil: :)
<safinaskar> Infinisil: can i install nix package manager to windows?
<Infinisil> safinaskar: Not necessarily, just optionally a default one. packages should always prefer configs in the user path (~/.config/<name>/config)
<disasm> which taking the jump and putting it on my laptop as my daily driver really fueled the learning and adoption :) Now all my new stuff in the cloud is nix as well (nixops).
<Ankhers> disasm: I'm currently in the middle of that process. I have been tinkering with Nix for a couple years. I have finally found an area of nixpkgs that I can help with (BEAM / erlang). My knowledge has skyrocketed in the last couple weeks because of it.
<Infinisil> You can't modify the nix store, that's why it doesn't make sense to use it as a packages config, as it would never change
<Infinisil> Ankhers: I too have really been getting into nix the past few weeks
<safinaskar> (value_ptr doesn't have configs. but some my future programs probably will, so i'm asking :))
<Ankhers> I'm also somewhat in the process of looking for a new laptop. I was planning on installing NixOS on it.
<disasm> safinaskar: I'm not sure I'd recommend it yet, but https://ternaris.com/lab/nix-on-windows.html
<Ankhers> I was sold on Nix a couple years ago after hearing about it from the Haskell ecosystem. So many companies I have worked at had outdated information on how to properly setup a machine for working with their product(s).
<safinaskar> Infinisil: ??? is user (i. e. end user, not program itself) allowed to modify config stored in nix-store? if no, then where system wide configs modifiable by root user are stored in nixos?!
<disasm> Ankhers: yeah? I keep thinking about getting one of these and putting nixos on it: https://puri.sm/shop/librem-13/ Currently, just have it on my work laptop (macbook pro)
tvon has joined #nixos
<Infinisil> disasm: Hasn't windows support been abandonned a while ago? That document is from 2015
<Ankhers> disasm: dual booted, or did you overwrite the main partition?
<disasm> safinaskar: the nixbld users can write to /nix but they only write new packages, or garbage collect unused ones. They never *modify* the store. The store is immutable.
<safinaskar> disasm: haha, i have librem purism laptop
<safinaskar> disasm: if you have questions about it, ask
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03-small advanced to https://github.com/NixOS/nixpkgs/commit/f38559d781 (from 81 minutes ago, history: https://channels.nix.gsc.io/nixos-17.03-small)
nix-gsc-io`bot has quit [(Client Quit)]
<disasm> safinaskar: you like it? Less than having questions about it, and more of not wanting to spend money. When this laptop gets life cycled out in 3 years or so, I'd like to replace it with one of those.
<Ankhers> safinaskar: How is the track pad?
<safinaskar> disasm: okey, so where system wide modifiable config for some package is stored?
goibhniu has quit [(Ping timeout: 255 seconds)]
<safinaskar> disasm: well, generaly it is ok
<safinaskar> disasm: i waited VERY LONG for it
<safinaskar> disasm: about 1.5 years
<disasm> safinaskar: for most packages, it doesn't exist. Your configs are defined in your nix expressions, and the service is hard-coded to launch that config.
<Infinisil> safinaskar: The package itself must be usable without nixos, and nixos is the thing that provides the whole configuration business. You can additionally to your package add a nixos module where you can write a file to the nix store from a nix expression (the config), this file would then be in the directory the package expects or something like that
<disasm> safinaskar: there are some exceptions though, like NetworkManager has some state in /etc
<safinaskar> disasm: but there was somewhen near 2015, i think librem laptop was not manufactored yet
jensens has quit [(Ping timeout: 240 seconds)]
<safinaskar> disasm: i asked for russian keybord, but purism sent my english instead
<safinaskar> disasm: also, i asked for cd bay, and i didn't get it
<safinaskar> disasm: they paid me compensation for this, something about $50
<Infinisil> I was just thinking of this today, I think packages should provide a function to write config files from nix expressions, so that also non-nixos users can use it
<safinaskar> disasm: so, it seems only english keyboard is supported
<Infinisil> All the stuff in nixos/modules/programs could be moved to the packages themselves
<safinaskar> disasm: libram has mac-like touchpad without hardware buttons
<safinaskar> disasm: it is not comfortable in my opinion
<safinaskar> disasm: i often ocassionally close wrong windows etc
<safinaskar> disasm: also, it seems hibernation doesn't work on my debian stretch
<safinaskar> disasm: despite this is laptop designed for linux
<safinaskar> disasm: laptop is fragile. if i slightly hit it, it will reboot
<disasm> oh wow, thats no good
<disasm> weak solder joint maybe?
<Infinisil> Lol
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vQn8H
<NixOS_GitHub> nixpkgs/master 725d25d Christian Zagrodnick: doc / go building: improve...
<NixOS_GitHub> nixpkgs/master 4962de0 Jörg Thalheim: Merge pull request #26906 from zagy/fix/doc-gobuild-dependency-note...
NixOS_GitHub has left #nixos []
<srk> so I've managed to patch nixops with https://github.com/NixOS/nixops/pull/486/files and it works (ipv6 seems to be the culprit) but only once as build result contains empty sshd_config
<safinaskar> Ankhers: you mean touchpad? if yes, i already said about it
<simpson> srk: Does ssh.run_command() perhaps affect the SSH config somehow? I don't know offhand what would do that. Thank you for testing; you are brave.
<Ankhers> safinaskar: Yes. Thanks.
<srk> simpson: seems like that resulting closure uploaded to machine contains empty file, wc /nix/store/ik4aakj94ad14wda2bj7qqzffv5j72ah-sshd_config
<srk> 0 0 0 /nix/store/ik4aakj94ad14wda2bj7qqzffv5j72ah-sshd_config
<srk> which is weird as when I run nixos-rebuild switch on that machine it "fixes" itself. and I'm using pretty similar config localy and for nixops
mudri has joined #nixos
safinaskar has left #nixos []
<simpson> srk: Yikes.
<srk> same nixos build on both host and container
jensens has joined #nixos
Filystyn has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vQnBE
<NixOS_GitHub> nixpkgs/master f48e400 TANIGUCHI Kohei: fswatch: 1.5.0 -> 1.9.3
<NixOS_GitHub> nixpkgs/master d2c500f Jörg Thalheim: Merge pull request #26900 from cohei/update-fswatch...
NixOS_GitHub has left #nixos []
jgertm has joined #nixos
<cstrahan> Has anyone used the zoom-us application? Trying to get it to work...
<srk> simpson: heh, somehow now it fixed itself, when I've added allowSFTP = false to force yet another rebuild, with --show-trace I was able to verify that sshd_config is correct on both builder and target. weird
<simpson> srk: Bizarre.
<srk> and I've tried the same thing before with startWhenNeeded :D
hlavaty has quit [(Read error: Connection reset by peer)]
lambdael has quit [(Quit: WeeChat 1.7.1)]
[0x4A6F] has joined #nixos
k0001 has quit [(Remote host closed the connection)]
k0001 has joined #nixos
cheshircat has quit [(Ping timeout: 268 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vQn0f
<NixOS_GitHub> nixpkgs/master 8422500 Orivej Desh: libunwind: 1.1 -> 1.2.1
<NixOS_GitHub> nixpkgs/master c30cf6f Jörg Thalheim: Merge pull request #26891 from orivej/libunwind...
NixOS_GitHub has left #nixos []
nschoe has quit [(Quit: Program. Terminated.)]
marsel has joined #nixos
darlan has joined #nixos
tv1 has joined #nixos
tv1 has quit [(Client Quit)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 1 new commit to master: https://git.io/vQnEK
<NixOS_GitHub> nixpkgs/master 068341b Trevor Joynson: iptstate: init at 2.2.6 (#26878)...
NixOS_GitHub has left #nixos []
ris has quit [(Ping timeout: 260 seconds)]
k0001 has quit [(Remote host closed the connection)]
k0001 has joined #nixos
jbgi has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQnul
<NixOS_GitHub> nixpkgs/master 9c68a8b Vincent Laporte: ocamlPackages.angstrom: 0.4.0 -> 0.5.1
NixOS_GitHub has left #nixos []
data has joined #nixos
data is now known as Guest6667
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] Mic92 pushed 2 new commits to master: https://git.io/vQngh
<NixOS_GitHub> nixpkgs/master 107fabf Michael Zaccari: jruby: 9.0.5.0 -> 9.1.5.0
<NixOS_GitHub> nixpkgs/master f5b8a8f Jörg Thalheim: Merge pull request #26882 from mzaccari/jruby-9.1.5.0...
NixOS_GitHub has left #nixos []
jensens has quit [(Ping timeout: 260 seconds)]
_Vi has quit [(Ping timeout: 255 seconds)]
ryanartecona has quit [(Quit: ryanartecona)]
danl1240 has joined #nixos
eacameron has joined #nixos
katyucha_ has joined #nixos
arianvp2 has quit [(Quit: arianvp2)]
pie_ has quit [(Remote host closed the connection)]
alx741 has joined #nixos
pie_ has joined #nixos
eacameron has quit [(Ping timeout: 260 seconds)]
katyucha_ has quit [(Client Quit)]
ambro718 has quit [(Ping timeout: 268 seconds)]
Guest6667 has quit [(Quit: nite nite)]
freezeboy has joined #nixos
<freezeboy> hello clever, maybe you got some illumination since yesterday about AppImage patching ?
katyucha_ has joined #nixos
katyucha is now known as Guest95196
Guest95196 has quit [(Killed (orwell.freenode.net (Nickname regained by services)))]
katyucha_ is now known as katyucha
katyucha_ has joined #nixos
<joachifm> katyucha: about the capabilities?
Itkovian has joined #nixos
bennofs has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vQnrp
<NixOS_GitHub> nixpkgs/master 53de56c Radek Benkel: sauce-connect: 4.4.2 -> 4.4.7 (#26893)
NixOS_GitHub has left #nixos []
marsel has quit [(Ping timeout: 260 seconds)]
MP2E has joined #nixos
darlan has quit [(Quit: Communi 3.5.0 - http://communi.github.com)]
eacameron has joined #nixos
Tarinaky_ has quit [(Ping timeout: 260 seconds)]
Tarinaky has joined #nixos
knedlsepp has joined #nixos
ryanartecona has joined #nixos
<Infinisil> What does #nixos think of using Markdown for nixpkgs documentation instead of xml?
<knedlsepp> Hey! I’m currently trying out nixos on EC2. I’m trying to increase the size of the root filesystem, but I’m stuck with my initial size. It seems there is some kind of `autoResize` option which should be active, but a reboot did not help.
<knedlsepp> Does anybody have some experience with that?
<mdash> Infinisil: why would that be good
pie_ has quit [(Changing host)]
pie_ has joined #nixos
<bennofs> Infinisil: some docs is actually md
<simpson> Infinisil: Get a better text editor?
<bennofs> Infinisil: for example, the part for python
<bennofs> Infinisil: i think RST would be better
<Infinisil> mdash: markdown can be read well on github, is much easier to write and widely known. I feel like using xml for docs is a major factor for nixpkgs having kinda bad docs
<bennofs> Infinisil: i believe nixpkgs has the ability to use different markup langs for different chapters
<bennofs> oh, at least the language-frameworks part
<bennofs> hmm, introduction.md is markdown as well
<Infinisil> bennofs: It already uses pandoc for conversion, would be pretty easy to use markdown instead
<mdash> Maybe so but also consider: markdown is terrible
<Infinisil> mdash: Why do you think so?
<bennofs> Infinisil: well as I said, it actually does already. if you want, you can add a chapter to the manual and use markdown for it
mudri has quit [(Ping timeout: 255 seconds)]
<bennofs> so you don't need to write XML
<simpson> Infinisil: It can only output to HTML.
<Infinisil> bennofs: I'm more thinking of converting all docs to markdown
<bennofs> Infinisil: markdown has less meta info than XML though
<simpson> Infinisil: Every Markdown package which can output non-HTML does so at the expense of anything resembling standard Markdown.
<Infinisil> simpson: Pandoc outputs to pretty much everything you can think of
<simpson> Infinisil: Consider: Markdown says that embedded HTML is legal. Pandoc can output non-HTML. There is probably a little bit of magic guessing inside pandoc!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vQnir
<NixOS_GitHub> nixpkgs/master d847b5c Maarten Hoogendoorn: mysql module: add option to bind to an address
<NixOS_GitHub> nixpkgs/master 8791cad Joachim F: Merge pull request #26598 from moretea/mysql-add-bind-option...
NixOS_GitHub has left #nixos []
<Infinisil> simpson: It's clearly specified what's compatible with what formats: http://pandoc.org/MANUAL.html#pandocs-markdown
<Infinisil> bennofs: The having less metadata is a point though, but looking through the docs it appears to almost never use metadata
<bennofs> Infinisil: there appears to be at least <filename> and <varname> though
<bennofs> RST may be a better format
<bennofs> Infinisil: but what's so bad about XML? Doesn't look too bad to me
<gchristensen> the doc format is a regular discussion and every time the reminder that if you write docs in any format, someone will convert it to docbook for you.
<gchristensen> there you go! even easier! don't even need to make a PR, just toss 'em in to an issue
<simpson> Infinisil: "The raw HTML is passed through unchanged in HTML, S5, Slidy, Slideous, DZSlides, EPUB, Markdown, Emacs Org mode, and Textile output, and suppressed in other formats."
<simpson> Infinisil: Pandoc documents that it will *throw away documentation* from Markdown documents, and I'm not willing to take bets on whether it does so silently.
<Infinisil> simpson: What do you mean by "throw away"?
<simpson> Infinisil: What do you think "suppressed" means?
pie_ has quit [(Ping timeout: 260 seconds)]
<sphalerite> Oh boy, this discussion again
<gchristensen> the greater point is the primary benefit of switching is "more people will write docs" and the ugly truth is IIRC I've only seen someone take advantage once or twice of the offer for someone else to make it in to docbook
<Infinisil> simpson: What's the section in http://pandoc.org/MANUAL.html#pandocs-markdown?
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-unstable-small advanced to https://github.com/NixOS/nixpkgs/commit/f5b8a8fc10 (from 65 minutes ago, history: https://channels.nix.gsc.io/nixos-unstable-small)
nix-gsc-io`bot has quit [(Client Quit)]
<Infinisil> simpson: "The raw HTML is passed through unchanged in HTML, S5, Slidy, Slideous, DZSlides, EPUB, Markdown, Emacs Org mode, and Textile output, and suppressed in other formats."
<simpson> Infinisil: And this has been part of the Markdown philosophy ever since the beginning. https://daringfireball.net/projects/markdown/syntax#html "Markdown’s syntax is intended for one purpose: to be used as a format for writing for the web."
<Infinisil> What do you expect? Some formats just aren't able to represent that data
<simpson> Infinisil: Yes. This means that raw inline HTML will show up on HTML versions of the manual but not PDFs.
<simpson> Infinisil: I expect that if I write docs, that I do not have magic disappearing sections of docs!
arianvp2 has joined #nixos
<Infinisil> simpson: Can you show me an example of the docs that's not possible in markdown and thus would need raw html?
<mdash> Infinisil: anyway you can write docs in markdown
<gchristensen> Infinisil: why does it matter?
<simpson> Infinisil: Pandoc's manual has several examples in neighboring sections where it blatantly advises folks to write raw HTML.
<sphalerite> We should move *all* the docs to doxygen
<gchristensen> theory: we'd have better docs if it wasn't docbook. experiment: write docs in anything & someone else will convert it to docbook. result: nobody took advantage of it.
<Infinisil> I just think xml is a limiting factor for good documentation, which nixpkgs needs
ris has joined #nixos
<simpson> Infinisil: I don't know how to get it across better; Markdown is *not* the format for writing technical manuals. It's a format for sugaring up HTML to the point where people can Just Write and they'll get HTML.
<Infinisil> gchristensen: What's docbooks?
<bennofs> Have you looked at ReStructuredText?
<simpson> Infinisil: Get a better text editor. Most popular text editors have XML/HTML/SGML/etc. "tag" modes or "tag" commands.
<bennofs> Infinisil: name of the xml syntax
<gchristensen> Infinisil: our docs are written in Docbook
berce has joined #nixos
<gchristensen> which is a semantic markup language for technical documentation
<Infinisil> Oh it's a xml dtd
<gchristensen> IMO PHP's docs are the best in the land, and theirs are written in docbook. docbook is not the limiting factor here
<bennofs> Infinisil: why do you dislike XML again? The only point I can understand so far is that Github doesn't pretty-print it
ndrei has quit [(Ping timeout: 240 seconds)]
<sphalerite> Re the semantic information included by docbook; are there any tools that actually make use of this?
<gchristensen> yeah
<gchristensen> it can be very friendly to accessibility as well
<Infinisil> bennofs: It's hard to write, and most people don't know how to manipulate xml efficiently, also code needs escaping for <>, applies to all strings in nix expressions too
<gchristensen> Infinisil: so don't write it in docbook
<berce> I 'm trying to write a nix expression for libacr38u. Based on hello/default.nix and "Quick Start to Adding a Package". The makefile contains "usbdropdir = /var/lib/pcsc/drivers", no "/nix/store/..." is added. What is the best way to modify that line?
k0001 has quit [(Ping timeout: 246 seconds)]
<Infinisil> Well I guess I'm in the minority with this opinion in this room
<gchristensen> you're not, it is just a tired argument and our experiment to see if it was worthwhile hasn't panned out
<Infinisil> On last question: simpson: Why is Markdown not for technical manuals? What's the special requirement for technical documents that differentiates them from "normal" docs?
<sphalerite> Infinisil: particularly for reference manuals, there's typically a lot of consistent structure that is helpful to mark up semantically
<sphalerite> gchristensen: any examples?
hke has quit [(Quit: bye)]
<gchristensen> sphalerite: of cases docbook is better?
<simpson> Infinisil: Markdown wasn't meant for docs; it was meant for *any* writing that was destined to be HTML.
<mdash> Infinisil: is your only concern the GitHub preview?
<sphalerite> gchristensen: of tools that make nice use of the semantic markup
hke has joined #nixos
<gchristensen> well like glossaries are cool and having good "Example n.n"s and the accessibility features that come with being able to determine something is a screen output vs. something you type vs. ...
<Infinisil> gchristensen: simpson mdash: I'm pretty sure it wouldn't take much to adapt the docs (in markdown) to also export to pdf
ryanartecona has quit [(Quit: ryanartecona)]
<disasm> I'm with simpson and dash, markdown is great for quick README's, etc... But for actual documentation, it just doesn't have the structure. And sure, you could hack that structure in, for example, treat every # as a chapter and ## as a section, but you can't have any metadata on those sections.
<gchristensen> Infinisil: there is zero upside as far as I can tell
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQnMg
<NixOS_GitHub> nixpkgs/master b475d5f Vincent Laporte: ocamlPackages.atd: 1.1.2 -> 1.12.0
NixOS_GitHub has left #nixos []
freezeboy has quit [(Quit: Konversation terminated!)]
<gchristensen> Infinisil: if you will write docs only if it is in markdown, as I've said: write it in markdown
<simpson> Infinisil: "Talk is cheap; show me the code."
<gchristensen> the offer goes out far and wide to anyone who wants to write a sentence of docs, to a whole series of books: write it however you want, someone else will convert it to docbook
<gchristensen> I'll even take it in EBCDIC
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] selaux opened pull request #26908: rustRegistry: 2017-06-25 -> 2017-06-27 (master...rustPackages-2017-06-27) https://git.io/vQnDm
NixOS_GitHub has left #nixos []
<Infinisil> Funny quote from https://github.com/NixOS/nixpkgs/issues/1960: @edolstra: "We do already have a place where people can easily contribute, namely the wiki. Good Wiki articles should probably be added to the manual eventually"
roberth has joined #nixos
<gchristensen> yeah, that was 2 years before the wiki was shut down
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vQnD8
<NixOS_GitHub> nixpkgs/master 63022fd schneefux: shaarli: 0.8.4 -> 0.9.0
<NixOS_GitHub> nixpkgs/master 8dda321 Joachim F: Merge pull request #26724 from schneefux/pkg.shaarli...
NixOS_GitHub has left #nixos []
<Infinisil> I'm reading through that issue now, and if I'm motivated enough I'll try to write on a persisting bidirectional docbook <-> pandoc markdown thing
<Infinisil> To see what problems I get
<sphalerite> Infinisil: that doesn't seem feasible. Docbook -> markdown will destroy information.
<gchristensen> to quote the captain, make it so
<dash> Infinisil: why do it at all?
<dash> Infinisil: why not just write some docs?
<sphalerite> ^
<Infinisil> heh
<sphalerite> because writing software is more fun than writing docs
<Infinisil> ^
<sphalerite> I think that's much more of a problem than docbook :)
<dash> Infinisil: write a game instead ;)
<gchristensen> I guess then nobody will write docs in markdown either
<berce> Or gameify writing docs: https://stackoverflow.com/documentation
<Infinisil> I used to code some stuff with Metal on iPhone and macOS
<Infinisil> gchristensen: At least you admit that docs are sparse
lambdael has joined #nixos
<Mateon1> So much for ABI compatibility. My journalctl is filled with "xsession[2576]: kioslave: ####### CRASH ######" "Cannot mix incompatible Qt library (version 0x50701) with this library (version 0x50800)", and I am unable to use the Dolphin file manager
<gchristensen> Infinisil: yeah of course they are, we all do, that isn't the problem
<Infinisil> Maybe a combination of markdown + a doc string tool for expressions + <???> will get more people to document
<Infinisil> Or maybe something
<Infinisil> else
<gchristensen> no
<Infinisil> Alright but come on, docstrings are needed
<dash> Infinisil: maybe documents will arrive via meteor from an alien civilization
<sphalerite> Infinisil: no, for the same reason that you're trying to work something like that out rather than just writing documentation
<joachifm> you could pay someone to write docs
<gchristensen> !m sphalerite
<[0__0]> You're doing good work, sphalerite!
<sphalerite> Not really, I could be writing docs instead of arguing about it :/
<gchristensen> I meant to say sphalerite++ :P
ambro718 has joined #nixos
DutchWolfie has joined #nixos
<sphalerite> Fun statistic: out of almost 110000 commits in nixpkgs, only 1179 (1%) affect docs/ or nixos/docs
<Infinisil> Yeah yeah, but programming is about finding current problems and trying to fix it, make it more confortable to write, more automatic. Somebody once had to setup docstring because writing it like <how it was written before> got too tiresome
<simpson> Infinisil: No amount of writing code can replace writing docs.
<sphalerite> ^
logann2029 has quit [(Remote host closed the connection)]
<simpson> ...I say this as somebody with a half-done RPi doc branch that I'll probably never finish. :c
<catern> hey #nixos
<catern> so
<sphalerite> Infinisil: you probably don't even need to write any code. Nix has C-style comments so you could probably just use doxygen on it directly
<catern> say I have several repositories, and I would like to hack on both simultaneously
<catern> compiling them against each other
<sphalerite> Infinisil: I'm sure an experiment in that direction with some included docs would be welcome ;)
<catern> and pulling all their other dependencies from the Nix store
<catern> is there a way to do this in Nix?
<sphalerite> catern: how do these repositories relate to each other?
<catern> certainly I can "nix-shell" and get a dev environment for a *single* package
<catern> but not for multiple packages?
<catern> sphalerite: I suppose one of them depends on the other
<Infinisil> Okay, but an example: I changed mkDerivation, where do I go for the docs? How can I effectively find which exact doc file for attribute X? There is in theory a 1-1 correspondance
<srhb> catern: This may be what you want http://wiki.ocharles.org.uk/Nix
<srhb> catern: Scroll down to multiple projects
<srhb> (It does not give you a nix shell for both, but it brings in "the other" project as a dependency)
<sphalerite> Infinisil: rg/ag/ack/grep/whatever you like to use
<catern> srhb: hmm so I'd need one shell per project?
<catern> hmmmmmmMMmmMMM
<sphalerite> srhb: it depends quite heavily on how you want to use it.
<srhb> Sure.
<sphalerite> and the languages
<srhb> Somewhat.
<catern> I mean, I don't actually *want* a single shell for everything, I just want to be able to build package X against the version of Y I am currently hacking on
<catern> and I guess... I really want incremental builds too?
<sphalerite> sorry, meant to highlight catern not srhb
<srhb> :)
<catern> yeah, I picked it up :)
pie_ has joined #nixos
<sphalerite> catern: then I'd probably leave nix out of composing X and Y and only have it take care of Y's dependencies and the dpendencies of X that you're not actively working on
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQnS4
<NixOS_GitHub> nixpkgs/master 67e4072 Karn Kallio: k3b : Fix build by adding missing dependencies.
NixOS_GitHub has left #nixos []
<sphalerite> so have some expression that will build X that takes Y, and just override Y to null for your development and tell your build systme where your in-dev version of Y lives
<catern> hmmm
<catern> yeah
<catern> that works for me, although I wish for a more generic solution
<sphalerite> How is that not generic? :/
<catern> I guess a more generic solution requires using Nix as a low-level build manager?
<catern> sphalerite: "tell your build systme"
<catern> it's language-specific
<sphalerite> I suppose. Yes, I think using nix as a build system would be the solution to that. But I'm not sure even that would work with say python
oida has joined #nixos
<catern> hmm
DutchWolfie has quit [(Quit: Konversation terminated!)]
<catern> I mean, I'm wondering what way Nix could be taught about all the build systems, so that this could work automatically
<catern> and generically
<catern> (inasmuch as that is possible, anyway)
<sphalerite> Nix generator for cmake xD
oida_ has quit [(Ping timeout: 240 seconds)]
<catern> ugh
<catern> this whole RFC process is gross
<catern> (sorry complete change of topic)
<catern> why can't we just discuss things on the mailing list?
data has joined #nixos
data is now known as Guest91238
<disasm> sphalerite: doxygen docs + 1 :)
<disasm> catern: cause e-mail is hard? :)
<sphalerite> ^ see the ongoing discussion on submitting patches by email x)
<sphalerite> Also, I realised while writing that email that "Web 2.0" has fallen out of use
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to release-17.03: https://git.io/vQnH6
<NixOS_GitHub> nixpkgs/release-17.03 17568fb Shea Levy: Add ansible 2.3...
NixOS_GitHub has left #nixos []
<disasm> I have no problem with patches on the mailing list... I was kinda taken aback by the person that said thanks for your patch, but can you PR it on github instead.
<sphalerite> same
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 2 new commits to master: https://git.io/vQnH1
<NixOS_GitHub> nixpkgs/master 551dcb6 Shea Levy: Add ansible 2.3
<NixOS_GitHub> nixpkgs/master 711637a Shea Levy: Merge branch 'master' of github.com:NixOS/nixpkgs
NixOS_GitHub has left #nixos []
<catern> yeah, I saw the discussion
<catern> what I really want to discuss more on the mailing list is my daemon-based GC roots proposal
<catern> someone said "make an RFC" but that seems way premature...
detran has quit [(Read error: Connection reset by peer)]
detran has joined #nixos
<catern> I would rather get some more people acking it first
<disasm> yeah, I read that one too... I'm not knowledgable enough to contribute to that conversation though.
<simpson> catern: You're putting off making a document that requests comments, because you want more comments first?
* Infinisil has an idea regarding the docs and waits patiently
<sphalerite> Oh yeah, it's fun to see windows on fire again also
mudri has joined #nixos
<catern> simpson: well, primarily because Github comment threads are inferior to email when it comes to discussion :)
<sphalerite> Less fun to see the consequences that's having though
<catern> hmm
<catern> I know what I can do
<catern> I'll make the RFC document, but then send it to the mailing list
FrozenCow has joined #nixos
FrozenCow has quit [(Remote host closed the connection)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vQnQL
<NixOS_GitHub> nixpkgs/master 08ba40a Jan Malakhovski: ranger: add imagePreviewSupport option and make previews work out of the box...
<NixOS_GitHub> nixpkgs/master 4e44b63 Joachim F: Merge pull request #26453 from oxij/pkg/fix/ranger...
NixOS_GitHub has left #nixos []
<catern> simpson: also making the RFC document demands more work than just posting on a ML :)
<sphalerite> just like docs!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm pushed 2 new commits to master: https://git.io/vQnQn
<NixOS_GitHub> nixpkgs/master e7ca6cd SLNOS: firefoxPackages: tor-browser: use gtk2 by default (like tor-browser-bin does)
<NixOS_GitHub> nixpkgs/master bccd3fe Joachim F: Merge pull request #26450 from oxij/pkg/fix/tor-browser...
NixOS_GitHub has left #nixos []
<Infinisil> apropro docs
* Infinisil raises his finger
<simpson> catern: Yeah, you have to lay out your thoughts and address concerns and figure out technical details.
<catern> simpson: but we were doing that in the mailing list thread :(
<catern> collectively!
_Vi has joined #nixos
<bennofs> catern: you got a lot more comments than I did: https://www.mail-archive.com/nix-dev@lists.science.uu.nl/msg39052.html :)
<Infinisil> Alright my little idea regarding doc(strings): In short, how about a doc shell, which lets you interactively edit documentation of every expression in (top level) nixpkgs
<bennofs> does noone care about unicode in stdenv?
<bennofs> Infinisil: that sounds... harder than just adding a docstring right where the thing is defined
<Infinisil> bennofs: A complaint I heard in the GH issue is that docstrings would clutter the expressions too much
<catern> bennofs: that seems like a tricky question, it could have subtle effects... can you make a branch of nixpkgs and see if everything builds on hydra with the change? (I don't know if that's possible)
<sphalerite> bennofs: personally I agree that it would be useful but feel like I lack the knowledge to provide any useful input beyond a "+1"
<catern> (it's awesome that nix allows such huge changes to be trivially tested)
<bennofs> sphalerite, catern: well, lack of knowledge was exactly why I posted on the ML. I thought perhaps someone considered this when making the current stdenv
<Infinisil> Docs could be hosted in a separate repository, where the doc shell edits a nix expression to reflect the entered commands
<berce> The answer to my earlier question seems to be: preBuild = '' \ makeFlagsArray=(usbdropdir="$out/var/lib/pcsc/drivers"); \ '';
<bennofs> Infinisil: i don't think docs would clutter expressions too much, tbh.
ryanartecona has joined #nixos
<Infinisil> bennofs: I feel like if we truly wanted good and extensive documentation, it totally would. the doc shell could allow you to add not only basic docs, but also examples, links to configurations which use it
<pie_> anyone know why a gamepad may work at the os level but not in firefox?
<Infinisil> Also, it would be possible to check if the expression changed and automatically mark documentation potentially outdated. Just an idea
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #26073: piwik & piwik service: init at 3.0.4 (master...piwik-package) https://git.io/vHOtP
NixOS_GitHub has left #nixos []
<bennofs> Infinisil: btw, the stdenv mkDerivation is documented here: http://nixos.org/nixpkgs/manual/#ssec-stdenv-attributes
<sphalerite> pie_: I didn't even know there was a web API for gamepads x)
17SABEEX2 has joined #nixos
<17SABEEX2> [nixpkgs] joachifm pushed 1 new commit to master: https://git.io/vQn58
<17SABEEX2> nixpkgs/master 10126e1 leenaars: openpa: init at 1.0.4 (#26033)
17SABEEX2 has left #nixos []
18WAAJDV5 has joined #nixos
<18WAAJDV5> [nixpkgs] joachifm closed pull request #26033: openpa: init -> 1.0.4 (master...openpa) https://git.io/vHqBU
18WAAJDV5 has left #nixos []
froglegstew has joined #nixos
<Infinisil> Another idea that would be possible with separate docs: Instead of having to write in a single doc format, the writer could select the preferred format
<sphalerite> pie_: yeah, doesn't work for me either. Does in chromium.
<sphalerite> Infinisil: that's already the case. Someone else will translate it to docbook for you.
[0x4A6F] has quit [(Remote host closed the connection)]
<sphalerite> Infinisil: again, writing docs is more useful than writing about docs
<Infinisil> sphalerite: I'll remember that ;)
<Infinisil> But I'd be interested to hear what other people think of this idea
ryantrinkle has quit [(Ping timeout: 276 seconds)]
<pie_> sphalerite, maybe firefox compiled wrong or permissions issue? i dont think itd be a perms issue though because the other apps do just fine
<manveru> so... after starting from the base image from LnL again, nix-copy-closure finally works... god knows what went on but i think i messed up my image somehow with impure base
<pie_> sphalerite, problem is i havent the faintest clue how to debug this
<Infinisil> I'm still fairly young to nix, my C++ knowledge is minimal and I currently should be studying for exams, but if I ever get some time and motivation I might work on this idea, would complement the new nix command proposal nicely
<sphalerite> pie_: I'm about to try with firefox-bin. Failing that I'm asking on #firefox@irc.mozilla.org :)
homelessrobot[m] has left #nixos ["User left"]
<LnL> manveru: strange, did you build your own baseimage?
<manveru> LnL: yeah, was using a really old fork of your repo that i used in the past
<manveru> but i like the new structure much better, awesome job as usual man :D
<pie_> sphalerite, i didnt really get any answers, maybe youll have better luck :*
<pie_> * :(
<sphalerite> pie_: oh
<sphalerite> did you try firefox-bin too?
tvon has quit [(Remote host closed the connection)]
<pie_> no
<LnL> oh like before I used the dockerTools?
<pie_> whats that
<manveru> now i just have to customize a bit and finally have a build host with unstable nix
<LnL> nice :)
<manveru> yeah, i think so
<manveru> it was all dockerfiles
tvon has joined #nixos
<sphalerite> pie_: a package based on mozilla's official firefox binaries
tvon has quit [(Remote host closed the connection)]
<LnL> part of it still is, that's why you need to build with nix-shell --run true
<manveru> yeah, i know
tvon has joined #nixos
<pie_> sphalerite, oh crap...im not at my friends house anymore so i dont have a gamepad to test with *facepalm*
<LnL> but it's all generated by nix now so that's definitely better
<sphalerite> pie_: don't worry, I'm going to test it just as soon as it's finished downloading ;)
froglegstew has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<manveru> LnL: you got any idea how i can adjust the created timestamp in buildImage?
<pie_> sphalerite, ok :)
<pie_> \o/
<manveru> tried setting it in the config attribute, but no luck
civodul has joined #nixos
<LnL> manveru: have you tried to copy the tar out of the store and set the current timestamp on it
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] joachifm closed pull request #25441: draftsight: init at 2017-SP1 (master...draftsight) https://git.io/v94jI
NixOS_GitHub has left #nixos []
<manveru> hm, you think it's based on the tar timestamp?
<LnL> or is it in the metadata
<sphalerite> pie_: works fine on firefox-bin so it's a packaging issue
<manveru> pretty sure it's in metadata
froglegstew has joined #nixos
<manveru> might be time for a PR
<LnL> heh :D
<pie_> sphalerite, crap. i guessed as much. :)
<manveru> i want the timestamp to be based on the last commit timestamp in our repos
<manveru> atm i'm working with labels instead, but would be nice to have it proper :)
<LnL> yeah that makes sense
<LnL> alltho having images from 50 years ago is pretty funny
<sphalerite> pie_: I think it's reassuring really, as it's probably just a missing dep as opposed to some obscure library or kernel issue ¯\_(ツ)_/¯
<manveru> yeah... our ops guys weren't impressed :P
<LnL> you're using those at work right?
noobly has joined #nixos
<pie_> sphalerite, well given that it works in other programs that would be rather strange :P
<LnL> hrm, I'm getting cannot coerce a set to a string when overriding systemd.services.<name>.path
<pie_> but yeah you never know
<LnL> both when using a string and a list :(
<pie_> sphalerite, i just wish i hadnt spent so much time straing at it without knowing what to do xD well, anyway, now that thats half-solved
<sphalerite> pie_: :)
<manveru> LnL: yeah
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] manveru opened pull request #26911: dockerTools.buildImage: configurable timestamp (master...patch-2) https://git.io/vQnbM
NixOS_GitHub has left #nixos []
<pie_> sphalerite, actually, can you also reproduce with chrome?
<pie_> crosscode runs on node-webkit
<pie_> it worked on my friends machine on windows
<pie_> i was running it in wine
<sphalerite> pie_: I don't want to run chrome, but chromium worked as I mentioned earlier
<manveru> i didn't test that PR at all... just edited on github ^^;
<pie_> ah.
<manveru> but i'll try it now
<pie_> the thing is wine control joystick.ctl or whatsitcalled shows it fine, it was just the game in which it wasnt working
<pie_> (wine issue?)
<sphalerite> pie_: although chromium missed some of the axes (accelerometer and touchpad, it's a PS4 controller) in my gamepad
<hodapp> my draftsight support was merged \o/
<noobly> no pdflatex package?
<noobly> just trying to compile latex via vim
snikkers has joined #nixos
<katyucha> joachifm: I don't see Volth comment ... and he fork my PR and work on .. so it seems no need my help now ..
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] knedlsepp opened pull request #26912: nixos: Force check the filesystem before resizing (master...fix-autoResize) https://git.io/vQnNx
NixOS_GitHub has left #nixos []
ryanartecona has quit [(Quit: ryanartecona)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQnA3
<NixOS_GitHub> nixpkgs/master c710ddf Karn Kallio: okteta : Fix build by adding missing dependencies.
NixOS_GitHub has left #nixos []
Infinisil has quit [(Quit: leaving)]
<froglegstew> hey, i'm just getting started with Nix, and I've setup a server but I want to enable an OpenVPN server
<froglegstew> i managed to setup znc (that's what i'm on right now!) just by reading the nix options page and the module code
<froglegstew> but this seems like i also need knowledge of the openvpn config. can anyone help me out?
<LnL> man configuration.nix is also nice
<simpson> Yep, $(man configuration.nix) shows the same stuff as the online manual: https://nixos.org/nixos/manual/options.html
<simpson> services.openvpn.servers appears to have an example!
<simpson> froglegstew: ^^^
<froglegstew> *facepalm* lol
<froglegstew> totally missed that, thanks !
<clever> froglegstew: https://gist.github.com/cleverca22/6033beef3c659591b313267c35a849bd is what i have used in the past
<simpson> No worries, starting out is tough.
aneeshusa has joined #nixos
noobly has quit [(Quit: Page closed)]
knedlsepp has quit [(Quit: knedlsepp)]
<manveru> clever: is there an easy way to turn that vpn on/off?
<clever> manveru: systemctl start/stop openvpn@linkname i believe
<manveru> guess i could just control the systemd daemon...
<manveru> :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vQnxn
<NixOS_GitHub> nixpkgs/master 4d25979 Shea Levy: Partially revert "terraform: 0.9.4 -> 0.9.6."...
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vQnxg
<NixOS_GitHub> nixpkgs/master f2b97e0 Frederik Rietdijk: python.pkgs.intelhex: fix patch
NixOS_GitHub has left #nixos []
<sphalerite> clever: didn't know you could embed the certs and keys directly in the config, that's nice
<clever> sphalerite: yeah, i also didnt know about that until the guy running that server sent me that file
<sphalerite> :D
<clever> makes things so much simpler
<manveru> that's the ovpn format
<manveru> just started using it a few days ago, really neat
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] shlevy pushed 1 new commit to master: https://git.io/vQnxd
<NixOS_GitHub> nixpkgs/master 6739a17 Tomas Hlavaty: sbcl: 1.3.17 -> 1.3.18...
NixOS_GitHub has left #nixos []
<Baughn> So how do I get removable disks to automount?
<Baughn> ..never mind. Found it. :O
<Baughn> Or, well, udisksctl is hardly 'auto'..
<Baughn> (Think I figured out that one too, though.)
MarcWeber has quit [(Quit: Lost terminal)]
ryanartecona has joined #nixos
<Baughn> autofs can't do it, because I don't know the drive letters or IDs up-front.
<Baughn> But I figured it out.
<manveru> oh, do tell
<manveru> systemd.automounts?
<manveru> i'm old-school and just use pmount... but might be handy
<Gravious> i edit fstab to suit my needs :p
<clever> i just sudo mount, lol
<MP2E> same
tvon has quit [(Remote host closed the connection)]
<sphalerite> Gravious: I don't think fstab helps much when you don't know the device path/IDs up front
noobly has joined #nixos
<sphalerite> but yeah I just sudo mount too
<Gravious> sphalerite, indeed :)
<noobly> Is NixOS as potentially 'lightweight' as a customized Gentoo?
<sphalerite> customisd nixos, yes :p
<ekleog> noobly: you may be interested in not-os for lightweightness
<clever> noobly: i have gotten a highly customized variant of nixos to compile down to ~45mb
<noobly> damn that's nice
<clever> yep, thats it
<ekleog> clever: pwned you :þ
<manveru> does not-os have a readme now? :)
<simpson> noobly: It's hard to say for sure. The most customized Gentoos I've seen were not lightweight, but they did things like bundle an entire Chromium.
<MP2E> In theory? yes. In practice? would require more work than Gentoo. For instance, systemd is currently required in NixOS so you can't abstract over that
<MP2E> I hope this situation changes one day, pull requests accepted :P
<clever> MP2E: not-os replaces the entire init system with runit, but systemd.services obviously doesnt work
<sphalerite> noobly: also re your earlier question. pdflatex is in of the texlive.combined.scheme-*
<noobly> what is the absolute easiest way to get vim to compile latex documents?
<MP2E> neat! i'll take a look :)
<clever> so nearly every service under services.foo is non-functional
<sphalerite> noobly: in most* of
<clever> MP2E: so you need to manualy write runit units for any service you want
<noobly> thank you sphalerite
<clever> MP2E: this runs sshd, and nix-daemon: https://github.com/cleverca22/not-os/blob/master/runit.nix#L56-L69
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQnpN
<NixOS_GitHub> nixpkgs/master 07dc20e Karn Kallio: kcachegrind : Fix build by adding missing dependencies.
NixOS_GitHub has left #nixos []
<noobly> sphalerite: the asterisk (*) is where I insert architecture?
<manveru> clever: how do you build/run this thing in qemu?
<MP2E> looks nice and simple, which I like :p
<sphalerite> noobly: no, there's various schemes including various sets of packages. scheme-basic, scheme-small, scheme-medium, scheme-full...
<clever> manveru: oops, if you build the system.build.runvm attribute, you get a bash script that runs it under qemu
<manveru> aah
<clever> oh
<clever> runner = test1.config.system.build.runvm;
<clever> default.nix also has a shortcut to it, so nix-build -A runner
<sphalerite> noobly: depending on which packages you want to use. You can also create customised sets using texlive.combine but usually just using one of the predefined schemes is simpler and the space saved by rolling your own is fairly immaterial
<pie_> sphalerite, apparently wine doesnt actually support xinput at this point, though i couldve sworn that it did
<noobly> sphalerite: thank you. All I'm trying to do is compile latex via vim in the most painless manner possible, is this what you would recommend if you were super duper dumb?
<noobly> and I'm talking pants on head kinda dumb
<sphalerite> pie_: I have no idea about wine, but I do know that windows has multiple gamepad/controller APIs. Maybe wine only supports some of them
<pie_> it might be cool if someone packaged this https://lutris.net/
<sphalerite> noobly: nix-env -iA nixos.texlive.combined.scheme-small, and in vim I'm not really sure — I myself would use neomake (in neovim) but I don't know much about using vim's stock functionality for that sort of stuff (beyond being able to call external commands with :! but then the output is horrible)
<sphalerite> noobly: for that sort of noob I'd also recommend writing markdown and using pandoc to turn it into pretty PDFs via latex ¯\_(ツ)_/¯
zraexy has joined #nixos
<catern> hmmm! okay I did a lot of thinking about my GC roots thing
<sphalerite> noobly: or using lyx instead of vim :p
<catern> I think the current support is sufficient as it is
<catern> I was too focused on permanent roots
<catern> but permanent roots are just an optimization
<catern> temporary roots should be sufficient for all use cases
<manveru> sphalerite: i use https://www.sharelatex.com/ :)
<catern> excepting, I suppose, actually booting a NixOS box
<manveru> can't be bothered messing with gigs of messy dependencies just to make a proper document...
<manveru> though lyx is awesome
<sphalerite> manveru: does it have vimkeys? :D
<manveru> no :(
<sphalerite> Aww
<catern> and other such bootstrapping, actually, like a root to Nix itself
<catern> in the same way that the GC should not collect itself :)
<sphalerite> manveru: gigs of messy dependencies? I think nixpkgs solves it pretty well
<sphalerite> (certainly better than debian does, or even can)
<manveru> i dunno, last time i tried making a pdf in lyx i couldn't figure it out
<manveru> but i know next to nothing about latex, i just like the rendering
ambro718 has quit [(Ping timeout: 260 seconds)]
<manveru> so i just copied the latex from lyx to sharelatex and pressed the pdf button :P
tvon has joined #nixos
k0001 has joined #nixos
<manveru> for the gigs i was thinking about the osx dependencies for lyx
<manveru> which is now like 3GB...
<manveru> i'm on DSL :(
tvon has quit [(Client Quit)]
<manveru> LnL: why does the sshDocker image need an ssh key?
<manveru> LnL: it's just a server, right?
<LnL> what do you mean?
<pie_> sphalerite, \o/
<sphalerite> if it's a server, probably as the host key?
<sphalerite> pie_: well, not that much to celebrate until we'vev got it fixed ;)
<manveru> the host key is a different one
<manveru> hm, lemme try without :)
<pie_> sphalerite, easy solution would probably have been to download the linux version of crosscode >.>
nix-gsc-io`bot has joined #nixos
<nix-gsc-io`bot> Channel nixos-17.03-small advanced to https://github.com/NixOS/nixpkgs/commit/17568fbd2d (from 85 minutes ago, history: https://channels.nix.gsc.io/nixos-17.03-small)
nix-gsc-io`bot has quit [(Client Quit)]
<LnL> the host key changes with each build since it's generated
<Baughn> manveru: Ah, no. I had to turn on udisks in configuration.nix, then there was a setting in xfce to automount USB sticks.
<manveru> LnL: i just mean it doesn't need the insecure_rsa
<manveru> i've modified my image, since i have my own list of needed keys anyway
cpennington has quit [(Remote host closed the connection)]
<manveru> and it might be tricky to use sshDocker without a key at all... so i guess it's an ok default
<manveru> nevermind my comment :)
<manveru> but i think having an argument to pass the authorized_keys file would be neat
<LnL> yeah that's not needed
<manveru> yes
<sphalerite> manveru: can confirm that it's hard to get lyx to render a document L/
<sphalerite> :/ *
<manveru> told you ^^;
<LnL> I should probably also configure it to only allow nix-store --write
<manveru> i'm sure it's easy for latex magicians that know what path goes where...
<manveru> LnL: which part?
<LnL> the default key
<manveru> how does that work?
<LnL> that will only allow builds with the key
<pie_> sphalerite, on nixos or otherwise?
<pie_> i didnt have a whole lot of trouble with lyx in my experience
<sphalerite> pie_: on nixos specifically, I'm sure it's fine on debian and such
<pie_> it was more having trouble with the stuff i was trying to do with latex in general :/
<pie_> oh. i see.
<manveru> LnL: that does sound neat
<manveru> how do you know so much stuff man :P
<manveru> maybe i should read the manpages top to bottom someday too...
<avn> pie_: lyx was best expirience, when I want to be "silly" and want a paper ;)
<LnL> you can do something similar for a git server so people can only push and not run random commands
<noobly> Can someone explain to me like I'm an idiot where NixOS diverges from Gnu/Linux and/or UNIX?
<noobly> in terms of philosophy mainly, as I can understand that :-)
<avn> noobly: no FHS, at all
<avn> only /bin/sh and /usr/bin/env in standard places (by posix/susv3)
bennofs has quit [(Ping timeout: 276 seconds)]
<noobly> FHS?
<avn> so completely different layout of filesystem
arianvp2 has quit [(Remote host closed the connection)]
<noobly> Also, what kind of bad habits might I accumulate as a lazy Debian user? I hear people referencing nix-env being "frowned upon", but in my noob mind I've set nix-env -i = sudo apt-get install
<noobly> avn: what does FHS stand for?
<avn> fhs == filesystem hierarchy standard
<avn> noobly: partually yes, `nix-env -i` is similiar
Infinisil has joined #nixos
<avn> but install to user context, not system wide (and I personally suggest this way as ad-hoc)
simukis has quit [(Ping timeout: 240 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
smw has quit [(Ping timeout: 246 seconds)]
Guest75391 has quit [(Quit: Lost terminal)]
<sphalerite> Anyone know any packages in nixpkgs that are nice and simple but have a few deps and maybe use cmake? Looking for a nice example to put in my talk :p
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] siddharthist opened pull request #26914: django-polymorphic: init at 1.2 (master...django-polymorphism) https://git.io/vQcUF
NixOS_GitHub has left #nixos []
<sphalerite> noobly: You're free to do what you want. The problem with using nix-env to wantonly install packages is that it makes it harder to reproduce your environment, but that's no different from debian
<sphalerite> noobly: you can still do it of course and still have the benefit of unprivileged package management! You're just losing out on some of the potential nix has
<sphalerite> noobly: if you put all the software you use and its config together in a nix expression, you can copy that e.g. to a new computer and install it right away there
Infinisil has quit [(Quit: leaving)]
<sphalerite> noobly: that can be as simple as writing a nix file with the contents with import <nixpkgs> {}; { inherit (pkgs) vim tmux; tex = texlive.combined.scheme-small; } or as complex as https://github.com/lheckemann/dotfiles/blob/master/default.nix
<sphalerite> noobly: either way you can install that with nix-env -ir -f default.nix (the -r flag removes everything else that's installed before installing it, and makes the resulting environment easier to reproduce)
<sphalerite> noobly: one thing that a lot of newcomers trip over is if they want to do development, as the nix mentality rejects the concept of "installing" libraries. I tried to explain that here: https://github.com/nixos-users/wiki/wiki/FAQ#i-installed-a-library-but-my-compiler-is-not-finding-it-why
smw has joined #nixos
Filystyn has quit [(Remote host closed the connection)]
wkennington has joined #nixos
bennofs has joined #nixos
<bennofs> Ugh, python wheel's metadata.json does not specify setup-requires? :/
katyucha has quit [(Ping timeout: 240 seconds)]
ixxie has quit [(Ping timeout: 255 seconds)]
noobly_ has joined #nixos
hiratara has quit [(Ping timeout: 246 seconds)]
noobly has quit [(Ping timeout: 260 seconds)]
hiratara has joined #nixos
berot3[m] has joined #nixos
<noobly_> So in attempting to install LaTeX, I searched the packages but didn't really find anything that directly corresponded to what I was looking for. I'm trying to set up latex compilation for vim so instead I installed vimplugin-vim-latex-live-preview-2016-03-16 and vimplugin-vim-latex-live-preview-2016-03-16, might that be sufficient for compiling latex via vim?
wkennington has quit [(Ping timeout: 260 seconds)]
<noobly_> Also, no latexmk?
ragge has joined #nixos
<sphalerite> noobly_: adding vim plugins is a bit more complex than just installing them unfortunately. Also unfortunately, the manual section on the topic seems to be pretty broken >_>
<sphalerite> noobly_: latexmk is in nixos.texlive.latexmk
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
ixxie has joined #nixos
<sphalerite> noobly_: but the basic idea is: instead of vim, install vim.override {configure = {vam.pluginDictionaries = [{names = ["latex-live-preview" "vim-nix" "other-plugins-you-might-want"];}]}}
<sphalerite> Anyway, I need to go to bed
goibhniu has joined #nixos
<sphalerite> Gnight folks!
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] diegs opened pull request #26915: terraform: 0.9.6 -> 0.9.9. (master...terraform) https://git.io/vQcqa
NixOS_GitHub has left #nixos []
ertes has joined #nixos
xadi has quit [(Ping timeout: 260 seconds)]
xadi has joined #nixos
ixxie has quit [(Quit: Lost terminal)]
eacameron has quit [(Remote host closed the connection)]
jnovak has quit [(Quit: ZNC - http://znc.in)]
ebzzry has joined #nixos
Sonarpulse has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] cstrahan opened pull request #26916: zoom-us: don't add mesa to the LD_LIBRARY_PATH (master...zoom-us-no-mesa) https://git.io/vQcY6
NixOS_GitHub has left #nixos []
hiratara has quit [(Quit: ZNC - http://znc.in)]
bennofs has quit [(Ping timeout: 276 seconds)]
hiratara has joined #nixos
bennofs has joined #nixos
dalaing_ has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] cstrahan pushed 1 new commit to master: https://git.io/vQc34
<NixOS_GitHub> nixpkgs/master 8e73afb Charles Strahan: zoom-us: don't add mesa to the LD_LIBRARY_PATH...
NixOS_GitHub has left #nixos []
Guest91238 has quit [(Quit: nite nite)]
dalaing_ has quit [(Remote host closed the connection)]
berce has quit [(Quit: leaving)]
k0001 has quit [(Ping timeout: 276 seconds)]
indi_ has joined #nixos
hellrazor has quit [(Ping timeout: 276 seconds)]
hellrazor has joined #nixos
goibhniu has quit [(Ping timeout: 260 seconds)]
earldouglas has quit [(Quit: leaving)]
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
digitus has quit [(Quit: digitus)]
<gchristensen> Mic92: I got my test to pass!
ryanartecona has quit [(Quit: ryanartecona)]
<noobly_> sphalerite: ok, thanks.
bennofs has quit [(Ping timeout: 240 seconds)]
Mateon3 has joined #nixos
Mateon1 has quit [(Ping timeout: 260 seconds)]
Mateon3 is now known as Mateon1
erasmas has quit [(Quit: leaving)]
Wizek_ has quit [(Ping timeout: 276 seconds)]
Wizek has quit [(Ping timeout: 276 seconds)]
pxc has quit [(Ping timeout: 240 seconds)]
pxc has joined #nixos
pxc has quit [(Ping timeout: 240 seconds)]
markus1199 has joined #nixos
markus1209 has joined #nixos
markus1219 has quit [(Ping timeout: 246 seconds)]
markus1189 has quit [(Ping timeout: 260 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub> [nixpkgs] grahamc opened pull request #26917: nixos: installer.nix test: test ZFS install use case (master...zfs-installer-test) https://git.io/vQcWN
NixOS_GitHub has left #nixos []