Rotaerk has quit [(Read error: Connection reset by peer)]
Rotaerk has joined #nixos
<adelbertc>
whats the best way to source the git-completion and git-prompt shell scripts from a nix-installed git? in the middle of writing a janky shell script that resolves the symlink to the acutal git install dir and looking in a specific subdirectory, but surely there is a better way?
sellout- has joined #nixos
<adelbertc>
ohello sellout-
<adelbertc>
...... assuming this is sellout- i think it is
<sellout->
adelbertc: It is ;)
zraexy has joined #nixos
Wizek_ has joined #nixos
wkennington has quit [(Quit: Leaving)]
wkennington has joined #nixos
ok2 has quit [(Ping timeout: 252 seconds)]
angerman has quit [(Quit: Bye)]
<puffnfresh>
adelbertc: nix-env installed?
derjohn_mobi has joined #nixos
<puffnfresh>
look under ~/.nix-profile if so
herzmeister has quit [(Quit: Leaving)]
<adelbertc>
puffnfresh: ahhhh i see
herzmeister has joined #nixos
<adelbertc>
so is it safe to assume git bash completion will always be in
<adelbertc>
~/.nix-profile/etc/bash_completion.d/
angerman has joined #nixos
<puffnfresh>
no
<puffnfresh>
if it's NixOS and it's installed via systemPackages, it'll be under /run/current-system/sw
derjohn_mob has quit [(Ping timeout: 265 seconds)]
angerman has quit [(Quit: Bye)]
angerman has joined #nixos
<adelbertc>
Ah ok
<adelbertc>
But for say, Nix on Mac OS like I'm on rn
<puffnfresh>
mguentner: thanks, I'm on 16.09
<puffnfresh>
mguentner: so doubtful I have that
<puffnfresh>
adelbertc: yeah, if it's installed via nix-env, yeah, that's where it will always be
redmq has joined #nixos
<puffnfresh>
I guess it's possible to have multiple profiles and switch between them
<puffnfresh>
but this will work for 99% of OS X users, I imagine
jsgrant_ has joined #nixos
mbrgm has quit [(Ping timeout: 260 seconds)]
zraexy has quit [(Ping timeout: 265 seconds)]
redmq has quit [(Ping timeout: 252 seconds)]
mbrgm has joined #nixos
<adelbertc>
Cool beans, thanks puffnfresh !
<ToxicFrog>
Success: bup. Adding overrides to build the dev version from my repo rather than the latest release was super easy, much easier than doing the equivalent on, say, SUSE is. A+ NixOS.
<ToxicFrog>
Failure: sound isn't working, although there may just be an option I need to set for that, and steam complains about missing 32-bit libraries and then fails to start up.
zraexy has joined #nixos
mkoenig has quit [(Quit: Lost terminal)]
<puffnfresh>
I know how to fix the 32-bit lib problem
<puffnfresh>
set hardware.opengl.driSupport32Bit = true;
filterfish_ has joined #nixos
<puffnfresh>
and probably hardware.pulseaudio.support32Bit = true; if you use PulseAudio
suvash_away has quit [(Ping timeout: 240 seconds)]
<ToxicFrog>
For sound it looks like I want hardware.pulseaudio.enable = true and sound.enable = true
<puffnfresh>
I think the former implies the latter
x1n4u- has joined #nixos
<ToxicFrog>
If steam requires hardware.opengl.driSupport32Bit, shouldn't selecting steam automatically set that (or depend on whatever that triggers dependencies on)? Should this be considered a bug in the steam package?
jluttine has quit [(Ping timeout: 260 seconds)]
x1n4u has quit [(Ping timeout: 240 seconds)]
x1n4u- is now known as x1n4u
nathan7_ has joined #nixos
suvash_away has joined #nixos
markus1189 has joined #nixos
jluttine has joined #nixos
nathan7 has quit [(Ping timeout: 240 seconds)]
filterfish has quit [(Ping timeout: 240 seconds)]
markus1199 has quit [(Ping timeout: 240 seconds)]
<jsgrant_>
Is Steam in a notably "working state" even in NixOS, currently? Haven't tried it yet.
<NixOS_GitHub>
[nixpkgs] jerith666 opened pull request #21276: Plex: update, open ports (master...plex-133) https://git.io/v1dcD
<puffnfresh>
that's tricky
<puffnfresh>
jsgrant_: yes
<puffnfresh>
ToxicFrog: there should maybe be a "programs.steam.enable" option in nixpkgs
<puffnfresh>
having a package in your systemPackages or in your user environment doesn't really give the ability to check NixOS conditions
<puffnfresh>
there should probably be a single option to enable Steam and everything it needs, though
<puffnfresh>
programs.zsh.enable is a thing already, for example
zraexy has quit [(Ping timeout: 240 seconds)]
* jsgrant_
might try getting it installed by the end of year on desktop rig then.
pchiusano has quit [(Ping timeout: 240 seconds)]
zraexy has joined #nixos
<jsgrant_>
Back on NixOS, after a bout of LispM-like aspirations took me again for a week.
pchiusano has joined #nixos
zagy has joined #nixos
* jsgrant_
still wants to look into getting Godot in NixPkgs ... but seems like a pretty ambitious "first expression".
Xackle has quit [(Ping timeout: 240 seconds)]
zimbatm has quit [(Ping timeout: 240 seconds)]
Matrixiumn has joined #nixos
simpson has quit [(Ping timeout: 240 seconds)]
<ToxicFrog>
puffnfresh: yeah, and it was actually really unpleasantly surprising to discover that I needed to set that and requiring zsh to be installed didn't set it automatically :/
<ToxicFrog>
This tastes like a design flaw.
simpson has joined #nixos
<ToxicFrog>
Ok, sound is now working, although I had to reboot to enable it.
<jsgrant_>
The recent 'nixcrate' news really got me excited for NixOS again, actually.
nathan7_ is now known as nathan7
<ToxicFrog>
Steam starts up fine and Drox Operative runs, so I'm going to tentatively declare steam working.
<jsgrant_>
Namely "A drop-in replacement for cargo which yet uses crates.io index."
<ToxicFrog>
I haven't rusted in a while
<ToxicFrog>
Although that reminds me, I should make sure leiningen works
<jsgrant_>
I haven't not-all-too-much, but is excited to play with it a lot more -- especially 2017 and onward ... where I plan on refocusing my efforts towards more traditional systems-programming.
* ToxicFrog
nods
zagy has quit [(Quit: Leaving.)]
<jsgrant_>
Mostly that will be C++, but Rust seems like a fun supplemental skill to pick up.
<ToxicFrog>
I don't really have any opportunity to use it at work, it's all C++ there :/
<ToxicFrog>
And when not at work I'm generally using clojure.
* Shell
blinks at ToxicFrog being in here.
<ToxicFrog>
Hi Shell!
<Shell>
heya
* jsgrant_
was going REAAALLY near-crazy Lisp-wise... kinda purged his harddrive of everything (now twice).
<ToxicFrog>
o.O
<jsgrant_>
Have a real tendency towards absurd levels of idealism.
zraexy has quit [(Ping timeout: 248 seconds)]
<jsgrant_>
*Everything Lisp-based/centered (if not clear).
ben__ has joined #nixos
ben has quit [(Ping timeout: 240 seconds)]
<ToxicFrog>
One of the things I like about clojure is that it seems to bend closer to the practicality side of the practicality/idealism scale
<ToxicFrog>
Scheme I really liked on paper but never actually accomplished anything in
<ToxicFrog>
Shell: I'm only just getting feet wet with NixOS, a friend at work was burbling about it and I decided to check it out.
<jsgrant_>
ToxicFrog: Many people are romantics, most are hopeless-romantics ... if you can handle what I've deemed to call "software-romance cultures" and still end up somewhat productive -- good on ya.
suvash_away has quit [(Ping timeout: 240 seconds)]
<ToxicFrog>
jsgrant_: well, clojure I've actually shipped software in that other people find useful, so I'm going to chalk that up as a success
BlessJah has quit [(Ping timeout: 240 seconds)]
<ToxicFrog>
That's more than I ever accomplished in scheme or haskell
BlessJah has joined #nixos
suvash_away has joined #nixos
<jsgrant_>
After about 3 years of fighting myself on it, and the last year to near maxim ... just don't trust myself anymore. I was writing a damned tiling-desktop environment that I was planning to ship a custom linux-distro to at somepoint for dog's sake.
<jsgrant_>
most aren't hopeless-romantics*
<jsgrant_>
ToxicFrog: Again, good on ya. Actually Clojure not being "idealist" or at least "lisp-enough" is one of the reasons I really never picked it up.
cornu has quit [(Ping timeout: 240 seconds)]
cornu1 has joined #nixos
PragCyph1 has joined #nixos
<jsgrant_>
Though that being said, coming back to AGLOL &/or ML-like langs ... after near 5 years absent hacking in any meaningful way -- it feels pretty weird/foreign at this point.
<Shell>
ToxicFrog: NixOS is my daily driver. :)
<jsgrant_>
Shell: Tiling Wm, or DE?
unlmtd[m] has quit [(Ping timeout: 240 seconds)]
nmattia has quit [(Ping timeout: 240 seconds)]
unlmtd[m] has joined #nixos
<ToxicFrog>
Shell: nice! I've actually been preparing to migrate my server to it for a little while, but that's a production system external users depend on, so I have to be pretty cautious
nmattia has joined #nixos
<ToxicFrog>
Whereas my laptop is only depended on by me, so I can be a bit more careless with it
PragCyphr has quit [(Ping timeout: 250 seconds)]
<ToxicFrog>
so far it's going pretty well.
<jsgrant_>
ToxicFrog: I've had my home-server on it for a few months now; On the edge now though, as of last week, running unstable on it... probably not the best idea but eh. Mostly just home-movies, etc.
<Shell>
ToxicFrog: given that there's only recently been mumblings of setting up a security team, I probably wouldn't put it on an internet-facing server, personally. >.>
<ToxicFrog>
Shell: I suspect that (e.g.) sshd and nginx are not any less secure running on Nix than on, say, SUSE
<ToxicFrog>
jsgrant_: mine's SUSE tumbleweed, but with enough custom configuration stuff that every update is terrifying and I've had a few outages from updates gone horribly wrong
<ToxicFrog>
Having all my configuration in /etc/nixos and being able to easily roll back if it goes sproing are both really appealing
ncl28 has quit [(Ping timeout: 240 seconds)]
<Shell>
ToxicFrog: no, but random software in the repo has a tendency to not get updated or patched.
ncl28 has joined #nixos
<jsgrant_>
ToxicFrog: I've yet to have any issuses, but luckily have I ever with that box ... so may just be a fluke at this point; That being said I've ran more slow-rolling distros historically. Namely Debian 'Stable' & Fedora Server, etc.
* ToxicFrog
nods
<ToxicFrog>
the main thing keeping me from just flipping the switch right now is that I need to convert a bunch of mail spools, which means a few hours of downtime
<ToxicFrog>
And I don't want to drop that on people without warning
<ToxicFrog>
If mail and sshd are working it's ok if the other services take a few hours or even a few days to come back up; people can live without DoomRL scoreboards for a bit.
<Shell>
ToxicFrog: no, no they cannot! :P
<simpson>
My Hydra has a stack overflow. Is there a way to get the stack trace?
Fare has joined #nixos
<simpson>
It doesn't reproduce locally. (Of course.)
hexagoxel has quit [(Ping timeout: 264 seconds)]
hexagoxel has joined #nixos
sellout- has quit [(Quit: Leaving.)]
sellout- has joined #nixos
sellout- has quit [(Read error: Connection reset by peer)]
mguentner has quit [(Quit: WeeChat 1.6)]
sellout- has joined #nixos
mguentner has joined #nixos
hotfuzz_ has quit [(Read error: Connection reset by peer)]
hotfuzz_ has joined #nixos
<hodapp>
what's the kosher way of installing Rust on NixOS?
<Ralith>
hodapp: rust is packaged officially
<Ralith>
do you need a nightly or something?
<hodapp>
hummm, I suppose I likely do not
<hyper_ch>
rustc-1.12.1 (nixos.rustc)
<hyper_ch>
A safe, concurrent, practical language
<hyper_ch>
I guess that's it
<hyper_ch>
rust has lately become a hype language it seems
<Ralith>
rust has always been a hype language, but as of six months ago or so it's ready for use in production
<hodapp>
hype or not, I do really like the approach they took
<hyper_ch>
now there's already 3 users that I know who use it
<hyper_ch>
a couple of months back it was 0
uralbash has joined #nixos
<Ralith>
it's a good time to get on board
sdothum has quit [(Quit: ZNC - 1.6.0 - http://znc.in)]
<jsgrant_>
hodapp: You probably want 'rustc' 'cargo' 'rustracer' 'rustracerd' 'rustfmt' in your config.
<jsgrant_>
Ralith: I was getting some weird 'coercing string' error on unstable, trying to call the "rust" expresission; Was too lazy to debug though.
<Ralith>
jsgrant_: ah, maybe I'm confusing it with the rust-nightly expression
* jsgrant_
hasn't looked into enough to form a view either way; Very possible he was doing something wrong and/or non-ideal.
<hodapp>
what is the difference between having packages in my configuration, and installed manually via nix-env? i.e. if I add those packages to configuration.nix and nixos-rebuild, what changes (besides me having things in a more convenient/declarative format)?
<jsgrant_>
Still slowly trying to build a decent even C++ development environment in NixOS at this point.
<jsgrant_>
hodapp: Well besides being declaritive, when doing "garbage collection" in Nix it shouldn't yank those non-defined packages out.
proteusguy has quit [(Quit: Leaving)]
<jsgrant_>
Maybe that is a postive of being declaritive though, really?
<Ralith>
hodapp: nix-env stuff is installed in your user profile, configuration.nix stuff is installed globally
<jsgrant_>
Ralith: That is a much better way to put it.
<hodapp>
Ralith: what if I've installed as root?
<Ralith>
hodapp: not sure
<Ralith>
I don't do that
<hodapp>
jsgrant_: it seems strange to me that GC would get rid of stuff I'd installed explicitly
<Ralith>
hodapp: I generally try to put the bare minimum in configuration.nix, and then declaratively specify all my user environment stuff and manage it as a monolithic unit installed as a single package with nix-env
<Ralith>
hodapp: nix will not GC stuff that's in a selected profile
<Ralith>
i.e. things installed with nix-env
<jsgrant_>
Ralith: Hm, then what did I do as root one-time that certainly did-so? :^P
<Ralith>
I have no idea what you did, or what effects you observed, but the GC only deletes unreferenced stuff
* jsgrant_
for a bit, was installing just-about everything via a user-profile's nix-env; Did he thinks a "sudo nix-collect-garbage -d" and notice almost all his profile was gone. Notably mpv, mpd, firefox, thunderbird, and a few others.
redmq has joined #nixos
* jsgrant_
wonders if he accidently threw in a flag that extended to "all profiles" or something.
<jsgrant_>
Couldn't imagine though. :^P
<jsgrant_>
Who knows, this was within the first month of using NixOS -- some maybe I did something else absurd in-tangent and forgot about it.
<jsgrant_>
so maybe*
scadu78 has quit [(Remote host closed the connection)]
redmq has quit [(Ping timeout: 248 seconds)]
<Ralith>
-d just deletes inactive profiles, which won't do anything to stuff that's in an up to date PATH
<Ralith>
maybe you had a shell from a really old profile open somewhere
<Ralith>
you'd have to have since explicitly removed all the stuff that then went missing
<Rotaerk>
is there a simple way to override nixpkgs.cabal2nix with a higher version from hackage
<Rotaerk>
it's not just a hackage package... it's also a direct child of nixpkgs, with a postInstall step, so I don't think the typical haskell overrides work
mguentner2 has joined #nixos
<Rotaerk>
wondering if I basically need to replicate the expression from pkgs/top-level/all-packages.nix, but replace self.haskellPackages.cabal2nix with my own derivation override
mguentner has quit [(Ping timeout: 264 seconds)]
<jsgrant_>
Ralith: Yeah, not sure -- I'll take your word for it though.
<Ralith>
hm
amarsman has quit [(Ping timeout: 264 seconds)]
<Ralith>
jsgrant_: it's also possible you had a *very* old profile open and had installed updates obsoleting the things you saw go missing, rather than uninstalled anything
<Ralith>
probably more likely
filterfish_ has quit [(Remote host closed the connection)]
filterfish_ has joined #nixos
<jsgrant_>
Ralith: I was, from what I remember, messing with a bunch of different profiles at that time; But as said, it was only during about the course of the 1st month I was on NixOS when it happened so I don't know about "*very* old" profile. No big deal either way, I now assume it is/was user-error & only happened that one time that I am aware of. :^P
fritschy has joined #nixos
<Ralith>
it's interesting to consider, though; user error is documentation error
<jsgrant_>
Sometimes true, but at the time I was only pecking around & wasn't as serious as I am now about learning the envrioment -- so I don't put that much credence beyond that of user-error. Speaking of documentation errors though, still need to check bugglist if there is something on KDE's khelpcenter being borked in plasma5.
<jsgrant_>
Just about every entry error's to a variant of "The requested help file could not be parsed:<br />/run/current-system/sw/share/doc/HTML/en//fundamentals/index.docbook".
<jsgrant_>
Always something to do. :^)
* jsgrant_
leers at clock. Okay ... time to finally go afk & hopefully to bed, before midnight. o/
ryanartecona has joined #nixos
sellout- has quit [(Quit: Leaving.)]
sellout- has joined #nixos
sellout- has quit [(Client Quit)]
sellout- has joined #nixos
sellout- has quit [(Client Quit)]
sellout- has joined #nixos
sellout- has quit [(Client Quit)]
sellout- has joined #nixos
sellout- has quit [(Client Quit)]
sellout- has joined #nixos
sellout- has quit [(Client Quit)]
deepwater has quit [(Quit: Leaving)]
deepwater has joined #nixos
<Rotaerk>
is there some way to track all file accesses by a particular program?
<Rotaerk>
trying to run cabal2nix from within a derivation, and it's failing saying that it cannot create a directory in homeless-shelter
<Rotaerk>
so I'm trying to figure out ... why cabal2nix is trying to create a directory
<clever>
Rotaerk: strace is the simplest, strace -ff -o logfiles cabal2nix
<Rotaerk>
thanks
<clever>
and thats what $HOME is set to during a build
Shados has quit [(Ping timeout: 240 seconds)]
<Rotaerk>
yea, just not sure why cabal2nix would be creating a folder in $HOME
Shados has joined #nixos
* Havvy
was too slow to suggest strace.
<clever>
i was going to say /proc/sys/vm/block_dump, but that only shows things that actualy work
<clever>
so it wont catch things with permission errors
<Rotaerk>
ah, looks like it creates a ~/.cache/cabal2nix file...
<Rotaerk>
wonder if I can change $HOME to some subfolder of $out
indi_ has joined #nixos
Wizek_ has quit [(Ping timeout: 260 seconds)]
<Rotaerk>
looks like I can
zagy has joined #nixos
<Rotaerk>
any idea where nix-prefetch-url comes from? doesn't seem to be in nix-prefetch-scripts
<Rotaerk>
it's also in a different location from the other prefetch-scripts, if I do "which nix-prefetch-url"
Mercuria1Alchemi has joined #nixos
redmq has joined #nixos
<Rotaerk>
got it; it' sfrom the nix package...
redmq has quit [(Ping timeout: 250 seconds)]
Wizek has joined #nixos
<Rotaerk>
bleh.. and I can't add that to my buildDepends... it wants to write to /nix/var/nix/db
<peti>
ikwildrpepper, niksnut: I lost access to hydra.nixos.org when support for Persona was dropped. Now I'd like to restart a build (http://hydra.nixos.org/build/45083762), but can't. :-(
berce has joined #nixos
<NixOS_GitHub>
[nixpkgs] jdanekrh opened pull request #21280: zim: fix #21270 (double call of wrapPythonPrograms) (master...zim) https://git.io/v1dX0
<ronny>
LnL: the build wants a real checkout
<LnL>
you should use fetchgit then
latk has quit [(Read error: Connection reset by peer)]
oida has joined #nixos
johann__1 has quit [(Quit: Leaving.)]
johann__ has joined #nixos
greeny___ has joined #nixos
latk has joined #nixos
jgertm_ has joined #nixos
<niksnut>
peti: do you have a google account?
<peti>
niksnut: Yes: simons@cryp.to.
<niksnut>
peti: can you try to log in with that?
<peti>
niksnut: I tried it a moment ago. But nothing happens.
<niksnut>
nothing?
<domenkozar>
niksnut: hydra is stuck :)
<domenkozar>
peti: check console for errors
<peti>
domenkozar: Console?
<domenkozar>
peti: javascript console
<peti>
Hmm. I see a message "Empty string passed to getElementById()."
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/v1d1p
<peti>
The error occurs in "jquery-1.12.3.js:2925:12".
tommyangelo has joined #nixos
<peti>
niksnut: I choose "Sign in -> Sign in with Google", but there is no observable effect. I am logged into Google when I try that, so the credentials should be available.
<tommyangelo>
hello all. I'm a brand new nixos user. Great experience so far! I have a noob question: I use cbatticon, but there is no battery icon, just a default grey square. I added paper-icon-theme to my systemPackages, but nothing changed. What am I missing?
<Armael>
umm, I installed gmp (nix-env -i gmp), but compiling a C program that uses it doesn't seem to work (in my case, some package in opam)
<tommyangelo>
Awesomewm, btw, but it probably makes no difference
<Armael>
(not working being not finding gmp.h)
<domenkozar>
Armael: nix-shell -p gmp
<peti>
Armael: The compiler/linker doesn't look into ~/.nix-profile/{lib,include} by default.
<niksnut>
peti: so there is no popup?
<niksnut>
what if you log out?
<Armael>
ah..
<srhb>
tommyangelo: I see the same, so it's probably not pointing to the right place.
<Armael>
what's the best way to setup an environment so that all my opam packages compile?
<LnL>
peti: I should be able to get it working in a generic way to fix the cabal dyld issues
<tommyangelo>
ok I'll check github issues
<Armael>
btw, does the compiler/linker not look for .h at all? I also have gmp installed globaly (in configuration.nix)
<srhb>
tommyangelo: cbatticon -t shows no available icon types.
<tommyangelo>
srhb: same here
indi_ has joined #nixos
<Armael>
uh, even with "nix-shell -p gmp" it doesn't seem to work
<peti>
niksnut: Same thing. I logged out (and quit Firefox for good measure). Then opened hydra.nixos.org, tried to log in ... nothing happens. I see that error "Empty string passed to getElementById()." in the Web Console again, though.
<Armael>
same error
<niksnut>
weird
indi_ has quit [(Remote host closed the connection)]
<LnL>
niksnut: do you know about the hydra/user namespace issues?
indi_ has joined #nixos
<peti>
LnL: The important bit is the call to install_name_tool, I suppose? That fixes the run-time error?
<LnL>
peti: yes, for some reason the path to shared libraries is not a full path but just a relative one
Itkovian has quit [(Ping timeout: 268 seconds)]
mudri has joined #nixos
<peti>
LnL: Have you ever reported this issue as a bug to the Cabal developers?
<LnL>
peti: was just going to mention that I have to look through the issue
<srhb>
tommyangelo: Doing an strace seems like it's hard coded to the adwaita icon theme
<LnL>
s to see if somebody reported it otherwise I'll create one
<peti>
LnL: Yeah, that would be cool. This should be fixed upstream. I don't think that problem is specific to Nix. Other people have libraries in weird locations, too.
<LnL>
peti: it's a bit of a hack, but in the meantime we could use this as a workaround
<LnL>
yeah, I don't think we are doing anything wrong, or super strange
indi_ has quit [(Client Quit)]
<tommyangelo>
srhb: so installing that should work as a workaround?
redmq has joined #nixos
<srhb>
tommyangelo: Installing gnome3.adwaita-icon-theme makes it display, yes.
<srhb>
tommyangelo: But if it is a prerequisite, it really should be a dependency of the package.
<srhb>
tommyangelo: Something to add to the bug report. :)
berce has quit [(Ping timeout: 248 seconds)]
<srhb>
tommyangelo: Or you could patch it... :-)
<domenkozar>
niksnut: could we restart hydra-queue-runner?
<tommyangelo>
srhb: I'll have a look. Not familiar with nix yet
dgn has joined #nixos
<NixOS_GitHub>
[nixpkgs] rickynils pushed 1 new commit to master: https://git.io/v1dyI
<srhb>
tommyangelo: You need to add adwaita-icon-theme to buildInputs and arguments of pkgs/applications/misc/cbatticon/default.nix and add adwaita-icon-theme = gnome3.adwaita-icon-themes; to the arguments in all-packages.nix, I think.
greeny___ has quit [(Quit: Bye.)]
<srhb>
Er, it'd be a propagatedBuildInputs I think
Gohla has quit [(Ping timeout: 258 seconds)]
<NixOS_GitHub>
[nix] edolstra pushed 3 new commits to master: https://git.io/v1dSo
<NixOS_GitHub>
nix/master 0586220 Eelco Dolstra: Revert "Give root a valid home directory"...
reinzelmann has quit [(Ping timeout: 264 seconds)]
<Armael>
I mean mmh, in practice if I build some software, I don't have much control over the gcc invocation, but I can setup the environment
<sphalerite>
Write a nix expression for it
<peti>
Armael: I'd be very surprised if there is any significant package out there that doesn't give its users the ability to influence the compiler flags.
<domenkozar>
niksnut: running builds are going down, now at 18
<Armael>
so does every library package have a .dev version of it?
<Armael>
with the headers
<sphalerite>
either that, or the main library package includes the headers
<peti>
Armael: The path "/run/current-system/sw/bin/gcc" does not exist on NixOS by default. You probably configure that package (incorrectly) in your configuration.nix file.
<Armael>
which package?
<peti>
Armael: Whatever package provides "/run/current-system/sw/bin/gcc" on your system.
<Armael>
umm
<Armael>
I just have gcc listed in systemPackages
<clever>
your not supposed to install things like compilers on nixos, thats what nix-shell is for
<Armael>
can't I just have everything I need installed, and just use my standard shell?
<clever>
its configured to ignore the outputs that have things like headers
<clever>
so you cant just install a library and then compile against it
<Armael>
but that's what I'd like
<Armael>
why is it bad?
<clever>
different packages sometimes need different versions of some things, and things sometimes turn stuff on automaticaly if header X is found in the include path
<clever>
which may not be something you wanted enabled
<Armael>
ok
oida has joined #nixos
esmiurium has joined #nixos
reinzelmann has joined #nixos
<peti>
Armael: You can install things into your system profile, if you want. You just have to make sure that you're choosing packages that actually work for what you're trying to do. And the global gcc binary you currently have clearly doesn't.
<Armael>
fair enough
<Armael>
I'm not sure I understand why it doesn't, though
<peti>
Armael: I don't either. The only reason I could think of is that you installed a plain gcc instead of the gcc-wrapper that nix-shell relies on. But it's hard to tell without beng able to look at your system.
<Armael>
it's probably a plain gcc yes
<Armael>
what does gcc-wrapper do?
<Armael>
ah wait, gcc-wrapper is nixos.gcc
<Armael>
mmm
<Armael>
it should be gcc-wrapper then
<peti>
gcc-wrapper interprets the env variables set by nix-shell (among other things).
<Armael>
well for the gmp.h, it was just that I didn't know about gmp.dev, I think
<peti>
Armael: I thought you said that "nix-shell -p gmp.dev" didn't work?
<Armael>
it didn't
<peti>
Armael: But "nix-shell -p gmp.dev -p gcc" did?
<Armael>
yes
<peti>
Well, that's gonna need some investigation then, because if your global gcc is working correctly, then there should be no difference between those two environments.
<peti>
Armael: Anyhow, if in doubt, run nix-shell with "--pure". That should help avoid these kind of issues.
<NixOS_GitHub>
[nixpkgs] rickynils pushed 1 new commit to release-16.09: https://git.io/v1dQ8
<NixOS_GitHub>
nixpkgs/release-16.09 7a3c72d Rickard Nilsson: Revert "libvirt-glib: do not use top-level python packages"...
<Armael>
in the system shell, /run/current-system/sw/bin/gcc points to /nix/store/xdvn70axwhjavymyz1i6da4lkigywii7-gcc-wrapper-5.4.0/bin/gcc
<Armael>
in the nix-shell with -p gcc -p gmp.dev, type -p gcc returns /nix/store/xdvn70axwhjavymyz1i6da4lkigywii7-gcc-wrapper-5.4.0/bin/gcc
<Armael>
i.e the same
<aristid>
does anybody know why nixos-unstable-small is stuck at december 8?
<Armael>
I don't know how to investigate further
<aristid>
ah, failing jobs
reinzelmann has quit [(Ping timeout: 258 seconds)]
oida has quit [(Quit: WeeChat 1.6)]
derjohn_mobi has quit [(Ping timeout: 265 seconds)]
<aristid>
does hydra run its builds in a chroot?
phanimahesh has joined #nixos
jgertm_ has quit [(Ping timeout: 260 seconds)]
<gchristensen>
aristid: in nix (stable) it does, with nixUnstable it uses a user namespace. hydra.nixos.org runs nixUnstable
<aristid>
gchristensen: let me guess, in the user namespace it is "root"?
<gchristensen>
I think so, why?
<aristid>
gchristensen: because i can build parted locally, with nix-stable, but hydra fails
<gchristensen>
oh, well
phanimah1sh has quit [(Ping timeout: 268 seconds)]
<aristid>
gchristensen: locally it skips some device-mapper tests, because i'm not building as root obvsly
<aristid>
but in hydra it tries to run them but finds no free loopback device or sth...
<gchristensen>
aristid: can you describe the problem on #21145?
<aristid>
ok
<gchristensen>
also: Good morning, #nixos!
<aristid>
gchristensen: i think i may create a new issue for the parted issue though
<aristid>
gchristensen: i feel just disabling the tests for now is a reasonable hotfix
<gchristensen>
aristid: this is much bigger than just parted, though, many packages are breaking due to this change... if you do open a new issue, can you briefly describe it and link to the issue from #21145?
<LnL>
morning :)
<aristid>
sure
<aristid>
gchristensen: i already added a brief comment in your issue
<gchristensen>
and I've asked them about it in #lincolnloop and on twitter
<gchristensen>
kmicu: and hydra is dead ... is this a sign? :P
reinzelmann has joined #nixos
<LnL>
for the one time that I can say it
<kmicu>
‘Hydra's dead Dave, everybody's dead, everybody is dead Dave.’
<LnL>
darwin builds work fine :D
<gchristensen>
LnL: haha, revel in that as long as possible! :P
<gchristensen>
it isn't common darwin is the best available version of nixpkgs
<domenkozar>
did anyone else get spammed by 2000 private messages?
<LnL>
nope O_o
<gchristensen>
on IRC? no ...
<domenkozar>
09:14:13 HERJABIL | THIS IRC HAS MOVED TO irc.gangste.rs #tclmafia m
<domenkozar>
anyway, if you PM I won't see it :)
<gchristensen>
weird :/
<LnL>
lol, is that password phishing on irc?
<kmicu>
HACK THE PLANET! Or at least Domen’s IRC.
<domenkozar>
23:46:09 weechat =!= | logger: unable to write log file "/home/ielectric/.weechat/logs/irc.freenode.skollvjar.weechatlog": Too many open files
<domenkozar>
don't dos my free web help people
<LnL>
rip
<LnL>
doesn't freenode have settings to prevent this sort of stuff?
redmq has joined #nixos
<clever>
theres a flag you can set to block all PM's from unregistered users
domenkozar has quit [(Quit: WeeChat 1.4)]
ielectric has joined #nixos
ielectric is now known as domenkozar
<kmicu>
WeeChat has anti–flood settings/plugins, but not enabled out–of–the–box :)
warbo has quit [(Ping timeout: 258 seconds)]
redmq has quit [(Ping timeout: 265 seconds)]
Shou has quit [(Ping timeout: 245 seconds)]
<domenkozar>
really don't want to waste time on this, let's try again
<gchristensen>
is it still coming?
abcrawf has quit [(Remote host closed the connection)]
<Biappi>
uhm.. i wonder.. it seems that a couple of people here are based in .nl... do you ever meet in amsterdam? i'd happily offer a round to the devs =D
mkoenig has joined #nixos
<rly>
Biappi: I have lunch everyday in Amsterdam, but not with people from here. I'd love to change that. ;)
<Biappi>
heh
<aristid>
rly: nixos-unstable is a lot bigger than nixos-unstable-small, so it's quite likely to be behind
<Biappi>
i wish i still worked in rembrandtplein, now my office is in zeeburg... if you're in the area ping me =)
iyzsong has quit [(Quit: bye.)]
* Biappi
shuts up with the OT and goes back to git
<NixOS_GitHub>
[nix] edolstra pushed 1 new commit to 1.11-maintenance: https://git.io/v1dp1
<rly>
How can I link nixpkgs-channel to nixpkgs? So, let's say I know that I want version `eeeeeef` from nixpkgs, how can I check whether nixpkgs-channel already has it?
<jsgrant_>
ToxicFrog: Is there any advantage even using an alternative shell, besides compilation needing it for somereason (and/or making an extensions for it)?
<MoreTea>
@domenkozar,gchristensen: are you going to FOSDEM in feb 2017?
<gchristensen>
jsgrant_: personal preference
<gchristensen>
MoreTea: unlikely, fosdem is very far for me
<LnL>
domenkozar: is that since you made is statically linked?
<domenkozar>
yes
<ToxicFrog>
jsgrant_: so, I'm generally using nix-shell interactively, not to use build scripts
<domenkozar>
LnL: I'm trying to statically link also the resulting binary
<ToxicFrog>
which means that if it's zsh it gets my .zshrc and history syncing and all that fun stuff
<ToxicFrog>
And if it's bash it gets the default bashrc
<ToxicFrog>
Which doesn't really match my preferences, because I haven't spent any time configuring it, because I never use bash interactively.
<jsgrant_>
ToxicFrog: Even in nix-shell?
<LnL>
domenkozar: is it supposed to be looking at /nix/store/5an661jgv6655kf37srva02jwzpavw9n-rocksdb-4.13/lib/librocksdb.a at this point?
<ToxicFrog>
...yes?
<ToxicFrog>
I don't understand the question.
<domenkozar>
LnL: yes
<LnL>
domenkozar: if you statically linked against rocksdb before, won't you have that stuff in your current object files?
* jsgrant_
guess he just assumed that nix-shell was "different enough" from the current session that you'd have to define such things (like dotfiles, plugins, etc) non-locally.
<ToxicFrog>
Nope, seems to work just fine
<ToxicFrog>
At least, 'nix-shell -p foo --run zsh' loads all my normal zsh configuration.
<ToxicFrog>
(it occurs to me that I could even have my prompt check for $IN_NIX_SHELL and change appropriately)
* jsgrant_
just woke up, so probably phrasing things weird and/or giving special attention to things not needed.
<domenkozar>
LnL: this is during the linking
<domenkozar>
once --ghc-options="-optl-static" is used
Wizek_ has quit [(Read error: Connection reset by peer)]
Wizek_ has joined #nixos
<domenkozar>
LnL: hmm you might be right, the app is linking statically after rocksdb-haskell has already done it?
ebzzry has quit [(Ping timeout: 264 seconds)]
<LnL>
domenkozar: that's what it looks like to me, but I'm not super familiar with this kind of stuff
<mpickering>
For a given derivation is there a way to enter a shell with the environment that will be needed to build the derivation?
<jsgrant_>
MoreTea: Doesn't help that people (certainly like me), jump in head-first & don't do a more sensible cursory sweep before getting fairly invested. :^P
<kmicu>
Maybe we should refer to Nix{,OS,pkgs,Ops} ‘manuals’ as ‘guides’. Less scary ( ͡~ ͜ʖ ͡°)
<MoreTea>
haha, @jsgrant_ did the same thing.
<gchristensen>
kmicu: we need you to take up the role of Documentation Czar
<jsgrant_>
kmicu: "QuickStart Guides"*
<jsgrant_>
MoreTea: I think it's pretty common, more common in technical fields than people would expect and/or like.
<MoreTea>
kmicu, when I started 1.5 year ago, I felt that a) The split between Nix{,OS,pkgs,Ops) was not obvious from the website and b) that the manuals go into the low level details directly.
<gchristensen>
I agree, MoreTea
<MoreTea>
All the information is one big "reference manual". I think we need a set of easy to digest guides that get people interested. Once they are convinced that what Nix* does is awesome by showing off it's strengths, they won't mind to dive deep into the manuals and not understand everything at once.
<hellooo>
MoreTea: thanks! Would this work then? hostName = "${lib.removeSuffix "\n" (builtins.readFile ./hostname)}";
<rly>
gchristensen: supposedly nixpkgs-unstable got updated, but when I refer to the nixpkgs-channel and then branch nixpkgs-unstable, terraform is still at some old version.
<rly>
gchristensen: to me it appears that at least that repository was not updated.
<LnL>
gchristensen: one of the main things to note is that it won't overwrite existing etc files, so you might have to fiddle with you bashrc,zshrc to make it load the nix versions from /etc/static
<gchristensen>
aye
<LnL>
the nixos activation script for etc files just overwrites everything :p
<gchristensen>
yeah I know, haha, it is very ... efficient!
<MoreTea>
@hellooo, I guess yes ;) If you're trying to automate communication between your own programs and Nix, you might want to look into dump JSON from your program, and using `builtins.fromJSON`
<LnL>
gchristensen: /run is is / so it's the same
<gchristensen>
LnL: that always trips me up.
seanz has joined #nixos
boggle has quit [(Quit: Leaving)]
redmq has joined #nixos
<hellooo>
MoreTea:Thanks! Do you know how I get true when hostName = 'aaa' and false otherwise?
<gchristensen>
LnL: this is SUPER slick already.
icetan[m]1 is now known as icetan[m]2
<LnL>
gchristensen: thanks :)
<LnL>
I had some spare holidays that I used last week
<MoreTea>
It's a bit like the haskell/ocaml repl in the sense that it also supports things like setting variables in a way that you cannot in a .nix file
pstn has joined #nixos
<LnL>
gchristensen: the repo also contains my example configuration if you're looking for some inspiration
<gchristensen>
LnL: did you see the error?
<LnL>
error?
<gchristensen>
"/Library/LaunchDaemons/org.nixos.activate-system.plist: No such file or directory"
<LnL>
oh, that happens the first time
<gchristensen>
oh ok
<LnL>
I should probably pipe it to /dev/null
<gchristensen>
well maybe just that one thing, but don't pipe useful errors :)
icetan[m]2 is now known as iceta4
iceta4 is now known as iceta6
<LnL>
or check the file, before trying to unload it
iceta6 is now known as iceta8
<gchristensen>
LnL: "makeNixBuildUser" - where does this get defined?
<NixOS_GitHub>
[nixpkgs] aristidb pushed 1 new commit to master: https://git.io/v1FIN
<tommyangelo>
kmicu: Well I tried with nix-shell (mind = blown) but it was still not available
<tommyangelo>
I can share my n
<tommyangelo>
shell.nix if needed
rly has quit [(Ping timeout: 256 seconds)]
johann__1 has quit [(Quit: Leaving.)]
nathan7 has quit [(Ping timeout: 265 seconds)]
nathan7 has joined #nixos
<ToxicFrog>
Eep. That's alarming.
hellooo has left #nixos ["WeeChat 1.6"]
<kmicu>
tommyangelo: it looks like module is available e.g. ‘nix-shell --pure -p tree perl perlPackages.LocaleMsgfmt --run 'perl -MLocale::Msgfmt\ 9999'’ returns ‘Locale::Msgfmt version 9999 required--this is only version 0.15.’.
<kmicu>
(Ignore ‘tree’ package. I only wanted to check what’s inside paths listed in PERL5LIB.)
<gchristensen>
"code execution on the system running the ssh-agent if the attacker has control of the forwarded agent-socket (on the host running the sshd server) and the ability to write to the filesystem of the host running ssh-agent"
<gchristensen>
"theoretical leak of host private key material to privilege-separated child processes via realloc()" *smacks oss-security out of his own hands
<dash>
gchristensen: everything is terrible :-/
<kmicu>
[Sarcastically] Oh, already jolly CVE gifts from Santa Claus!
<tommyangelo>
kmicu: yes it is available and even installs as far as I can tell from grepping the filesystem
<tommyangelo>
but not available in PATH
<kmicu>
Should perlPackages.LocaleMsgfmt install a binary in PATH?
bfrog has quit [(Quit: WeeChat 1.6)]
hotfuzz_ has joined #nixos
hotfuzz has quit [(Read error: No route to host)]
<MoreTea>
@gchristensen, do you have any ideas about how to reduce the number of times that Hydra stalls?
<gchristensen>
this isn't just a stall, but not really. it is tough and I don't envy the job of maintaining the hydra infrastructure. it does a ton of work
<gchristensen>
and is incredibly resilient for being a free service for a free operating system
<gchristensen>
I'm grateful for how well it does work. in cases like this, though, I just wish for more transparency about what the plan is / how it is coming.
<LnL>
^ +1
<LnL>
the current issue is caused by a new feature of nix
<gchristensen>
I do wish that was handled differently :) and it can be reverted, still, easily
<gchristensen>
by reverting the commits to nix
eacamero_ has quit [(Remote host closed the connection)]
<gchristensen>
and I think the only one who can make those decisions is eelco
redmq has quit [(Ping timeout: 245 seconds)]
<tommyangelo>
kmicu: in the same shell.nix I add python27Packages.docker_compose in my targetPkgs, and docker-compose is available, so I was expecting the same behaviour
xwvvvvwx has quit [(Ping timeout: 268 seconds)]
<kmicu>
One could argue that NixOS is source based distro and you do not need official Hydra at all. If you tested CVE patches locally then merge them into Nixpkgs. But in such case channels’ users could feel ‘cheated’ by false advertising.
<gchristensen>
you could, but the development style is frequently to push things without as thorough testing due to the testing hydra provides
<LnL>
^ we could publish a new channel, but stuff might be completely broken who knows.
<LnL>
so people have to spend a couple hours compiling to get a broken system
pstn has joined #nixos
<LnL>
also, I'm not going to use a package manager that makes me compile 5 versions of ghc myself :)
civodul has quit [(Quit: ERC (IRC client for Emacs 25.1.1))]
<maurer>
I mean, as it stands nixos has a weaker version of the debian breakown
<maurer>
where debian unstable is our master, debian testing is our unstable, and debian stable is our stable
<maurer>
but all weaker of course, since the propoagation delay isn't measured in years
rly has joined #nixos
<kmicu>
From another point of view, broken official Hydra would not be a problem if we had a community–driven Hydra, not controlled by handful of users, and where you could use Nix/Hydra versions with merged long–standing Nix/Hydra PRs 😸
<kmicu>
(A little bit of a healthy decentralization ;)
<gchristensen>
that is true
<gchristensen>
but hydra is very expensi/e
<simpson>
Yeah, building even a small subset of nixpkgs can be very costly.
<manveru>
is there any way to make git-prefetch-url silent?
<manveru>
err, nix-prefetch-url
<LnL>
manveru: 2
<LnL>
manveru: 2>/dev/null ?
ryanartecona has quit [(Quit: ryanartecona)]
<manveru>
that gets rid of all errors though
<manveru>
i want the `curl -s` option
<gchristensen>
but hydra is very expensi/e
<gchristensen>
derp
<kmicu>
Oh, do you have some statistics in comparison to already donated funds?
<LnL>
manveru: heh, that's silent no? :p I don't think it has any options
<maurer>
Would it be prohibitively expensive to have a sort of release hydra for unstable/stable channels, separate from the more C-I nature of the nixpkgs one? It seems like that should be much lower on the needed resources
<maurer>
since it'd only need to trigger a rebuild on security updates or a new release cut
<manveru>
LnL: well, i can work around it by caching the stderr, then checking the exit status, and printing stderr in case it's !=0
<gchristensen>
kmicu: I know that when I was estimating a project, I was looking for sponsorship of $1,000/mo for the build servers, but that was likely to have more load than your proposed hydra would be. note that much of the nixos hydra resources are donated by rackspace, mackstadium, and others
<c0bw3b>
a distributed-hydra handing out build jobs to some containerized builders... you know seti@home-style :)
Itkovian has joined #nixos
<c0bw3b>
that would be awesome
<manveru>
just thought it might ne nicer if there was an option :)
<gchristensen>
c0bw3b: the trouble is trust
<gchristensen>
why should I trust your machine, c0bw3b, to provide safe builds?
<maurer>
gchristensen: I mean, you could do something like what debian developers do, but that'd probably be a step backwards for nixos imo
<gchristensen>
it would be indeed
<maurer>
(If you are on x86 or amd64, and are using debian, chances are that package you're using was built by Some Guy's Laptop, but it's probably OK because Some Guy has been with Debian for a while and seems Legit)
<kmicu>
I could challenge hashes from c0bw3b’s server with hashes from official Hydra server. I could exchange keys with c0bw3b during NixOS meetup, b/c she/he is trustworthy. I would be safe for 77% of packages that are bit–by–bit reproducible. I could allow only them with hypothetical ‘allowReproducible’ flag. It’s a good trade–off IMO, especially for casual users w/ casual threat models.
rardiol has joined #nixos
<maurer>
kmicu: You could consider that as a sort of bonus cache, but having that be primary is waaaay too much work for normal users
<gchristensen>
kmicu: sounds like a good project to make that work :D
<kmicu>
Oh, we could ship NixOS with predefined WoT. I’m totally OK with downloading binsubs from gchristensen server.
c0bw3b has joined #nixos
<gchristensen>
(ಥ﹏ಥ)
<gchristensen>
(ノ◕ヮ◕)ノ*:・゚✧
<c0bw3b>
(sorry had to reboot)
<kmicu>
ʕノ•ᴥ•ʔノ ︵ ♥❤❣💞
<c0bw3b>
drawing contest?
<c0bw3b>
gchristensen: of course there would challenges, trust being one of them
<c0bw3b>
but it should double-checked my builds by giving the same job to at least one naother builder
<c0bw3b>
*another
<c0bw3b>
yheah already reading what i missed :)
qryantm has quit [(Ping timeout: 265 seconds)]
amarsman has quit [(Quit: amarsman)]
<maurer>
kmicu: Again, could be useful for advanced users. I'd probably even use it. However, WoT has proven over and over again not to be friendly to even semi-technical users
nh2_ has quit [(Ping timeout: 258 seconds)]
<ToxicFrog>
Handing out each job to multiple builders and requiring a quorum of them to agree on the output sounds like a reasonable way to address this, but I am not a security expert.
nschoe has quit [(Quit: Program. Terminated.)]
<gchristensen>
depends on how much budget you have :) see also the US's attack on tor by setting up lots and lots of nodes
<maurer>
ToxicFrog: Again, that's a measure that helps but doesn't nesc work
<Sonarpulse>
i feel like...
<Sonarpulse>
web of trust is better for this than other things?
<manveru>
doesn't arch use WoT?
<Sonarpulse>
I forget the exact time but this is data-oriented networking
<Sonarpulse>
what > who
<maurer>
aiui Arch's AUR (which I assume you're talking about) is basically just a bunch of separate repos
<Sonarpulse>
for communication you want to talk to some specific person, another won't do
<maurer>
and yeah, you trust the repos individually
<maurer>
but it's not wot since you don't chain them?
<rly>
aristid: it's open-source, but you are not supposed to compile it ;)
<aristid>
rly: which is why these [BLEEP] remove chromecast support from chromium
<gchristensen>
eh?
<rly>
aristid: they removed it?
<rly>
aristid: oh, I actually had a potential usecase for it a couple of days ago.
<aristid>
rly: yup
<rly>
[BLEEP] giveth and [BLEEP] taketh away.
warbo has quit [(Ping timeout: 264 seconds)]
psophis has joined #nixos
acertain has quit [(Ping timeout: 244 seconds)]
psophis has quit [(Client Quit)]
rly has quit [(Ping timeout: 258 seconds)]
pstn has quit [(Ping timeout: 258 seconds)]
c0bw3b has left #nixos []
ttuegel has joined #nixos
oida has joined #nixos
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<gchristensen>
I wonder if I'm the only person to be using ssh-config-file in my NIX_PATH, and fetchgitPrivate
<gchristensen>
there seems to be a need for examples on how to use it, but I can't share :|
<aristid>
gchristensen: you could share a censored example?
danharaj has joined #nixos
ryanartecona has quit [(Quit: ryanartecona)]
derjohn_mobi has quit [(Ping timeout: 258 seconds)]
michalrus has quit [(Ping timeout: 248 seconds)]
michalrus has joined #nixos
michalrus has quit [(Remote host closed the connection)]
michalrus has joined #nixos
redmq has quit [(Ping timeout: 250 seconds)]
redmq has joined #nixos
<gchristensen>
kmicu: one thing about having a separate hydra is I think there is some benefit to the centralization / not-fragmented ecosystem
christine_ has quit [(Ping timeout: 245 seconds)]
<benley>
Can someone remind me what I need to do after using `nix-store --restore < some_nar_file_i_downloaded_manually.nar` in order to have that store path actually be live and usable?
rly has joined #nixos
<benley>
or if there is another way to import a nar file that I should use instead?
* hodapp
basks in the stack --nix
michalrus has quit [(Quit: leaving)]
blahdodo has quit [(Remote host closed the connection)]
michalrus has joined #nixos
NeQuissimus has quit [(Ping timeout: 244 seconds)]
NeQuissimus has joined #nixos
blahdodo has joined #nixos
Itkovian has joined #nixos
ugjka is now known as UgJkA
<benley>
or I could just wait until I'm not on in-flight wifi to install clang :-P
possibleNew has joined #nixos
<dash>
benley: oh come on, you've got to get your money's worth
<domenkozar>
benley: just get the store path
<domenkozar>
and do nix-env -i /nix/store/123123123-foo
Itkovian_ has joined #nixos
derjohn_mobi has joined #nixos
c0bw3b has joined #nixos
Itkovian has quit [(Ping timeout: 252 seconds)]
<benley>
after doing the nix-store --restore, presumably?
copumpkin has joined #nixos
<benley>
when I do that, nix deletes the existing store path and starts downloading it from scratch :-/
kampfschlaefer has joined #nixos
<benley>
there is a /nix/store/<thatpath>.lock file present; will that affect things?
warbo has joined #nixos
zagy has joined #nixos
ben__ is now known as ben
zagy has quit [(Client Quit)]
Itkovian_ has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<domenkozar>
benley: what's the narfile you want?
AllanEspinosa has joined #nixos
<benley>
I'm after /nix/store/z1ybhp7wlwcr01gaf9qvm98w9vw3v0fz-clang-3.9.0, which is in 0aglw3lipa8nw088nfs9066df1apsj2alyyc6l85l0gwjyl3yyhv.nar.xz
<benley>
I'll be on the ground again pretty soon, I'll try getting it through airport wifi.
* benley
tends to spend travel days writing code :-)
<domenkozar>
depends how you want to use that path anyway.
zagy has joined #nixos
<gchristensen>
condolences to Berliners and the Germans in the channel :(
zagy has quit [(Quit: Leaving.)]
jgertm_ has joined #nixos
<Baughn>
Is there any way to tell Nix "You should not run more than one of these derivations in parallel"?
<Baughn>
E.g. because it takes 8GB of memory.
kuznero has joined #nixos
<kuznero>
Hi All!
<kuznero>
Can anybody recommend how is it best install Spacemacs (with Intero) on NixOS?
<toogley>
kuznero: i just installed emacs normally and installed spacemacs ontop of it manually.
<toogley>
kuznero: => if you get to know anything better than that in the future, i'd be interested in hearing about that :)
Shou has quit [(Ping timeout: 268 seconds)]
<kuznero>
toogley: I see, then it is going to be old-good style :) thanks
m` has quit [(Remote host closed the connection)]
eacamero_ has joined #nixos
eacamero_ has quit [(Remote host closed the connection)]
eacameron has quit [(Read error: Connection reset by peer)]
eacameron has joined #nixos
civodul has joined #nixos
kuznero has quit [(Quit: Leaving)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
<toogley>
i guess the raspberry pi is currently not offically supported?
Itkovian has joined #nixos
<gchristensen>
toogley: arm support isn't easy for us to do right now, so, not really
<gchristensen>
but we have some people working to make it so
<toogley>
gchristensen: ah, okay
ryanartecona has joined #nixos
acertain has joined #nixos
<gchristensen>
one big trouble is build capacity, having our build cluster be able to regularly test it. I've specced/priced out a few arm servers to that end, but it is pricey :)
m` has joined #nixos
<viric>
I have pulseaudio problems...
<viric>
alsaloop doesn't seem to work
m` is now known as nig
<viric>
playback hw:0,0 open error: No such file or directory
nig is now known as Guest75177
<viric>
somehow my soundcard is device '1', not '0'
<Guest75177>
hi, ha.. me, too..
Shou has joined #nixos
<Guest75177>
sound stopped working on my nix-system..
<viric>
great
Guest75177 is now known as nigg
<gchristensen>
nigg: I suspect you're preparing to troll, and I think it would be really lovely if you didn't, maybe tried out nixos even. I think it is really neat.
seanz has quit [(Quit: Leaving.)]
zraexy has joined #nixos
MichaelRaskin has joined #nixos
<toogley>
gchristensen: ah, okay. thanks :) - but why is a arm server needed to build arm packages..?
pstn has joined #nixos
<gchristensen>
toogley: good question, I think clever knows?
nigg has quit [(Remote host closed the connection)]
<viric>
Does anyboy have /dev/snd/controlC1, but not /dev/snd/controlC0?
<viric>
why, oh, why?
<gchristensen>
success!
<dash>
viric: maybe you got a 1-based kernel instead of a 0-based one?
<sheenobu>
viric, two sound cards? first driver crashing? Wonder if dmesg shows anything..
<viric>
it's a notebook
zagy has joined #nixos
<MichaelRaskin>
viric: HDMI audio and main audio could be in the wrong order
zagy has quit [(Client Quit)]
<MichaelRaskin>
And with Optimus it is possible to unload the discrete video driver and lose the HDMI audio card…
<viric>
MichaelRaskin: auhm
<MichaelRaskin>
I usually have a simpler situation: a USB card is the main one, but when it is unplugged…
<MichaelRaskin>
(And the USB card is the main one because I have a single USB hub at home and a single USB hub at work for ethernet/keyboard/sound)
redmq has joined #nixos
redmq has quit [(Ping timeout: 245 seconds)]
redmq has joined #nixos
<benley>
domenkozar: oddly enough even after using nix-store --restore on that path from the nar, nix was starting the download all over
<benley>
(with the nix-env -i command you suggested)
<benley>
I got it installed now that I'm back on the ground, at least
kampfschlaefer has quit [(Ping timeout: 258 seconds)]
<NixOS_GitHub>
nixpkgs/master a7d4257 aszlig: python/simplebayes: init at 1.5.8...
<NixOS_GitHub>
nixpkgs/master 0409ce2 aszlig: python/pyinsane2: init at 2.0.9...
<NixOS_GitHub>
nixpkgs/master f805209 aszlig: poppler: Add support for gobject-introspection...
jensens has quit [(Ping timeout: 258 seconds)]
xwvvvvwx has joined #nixos
ambro718 has joined #nixos
AveryC has joined #nixos
danharaj has quit [(Ping timeout: 265 seconds)]
possibleNew has quit [(Quit: Page closed)]
seanz has joined #nixos
Shou has quit [(Ping timeout: 246 seconds)]
NodeGuy has joined #nixos
<NodeGuy>
Hi. I'm trying to get started with NixOS using the VirtualBox appliance. I need KDE to handle HiDPI properly so I enabled it in /etc/nixos/configuration.nix. Then I was warned not to enable KDE 4 and 5 at the same time so I disabled KDE 4 in the place. Now I'm getting an error message:
<NodeGuy>
rror: The option `services.xserver.desktopManager.kde4.enable' has conflicting definitions, in `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs/nixos/modules/profiles/graphical.nix' and `/etc/nixos/configuration.nix'.
<NodeGuy>
*I need KDE 5
<NodeGuy>
How should I proceed?
<pmade>
NodeGuy: Paste your config somewhere.
<NixOS_GitHub>
[nixpkgs] joachifm opened pull request #21287: stdenv setup: disallow references to the build directory (master...disallow-build-dir-in-output) https://github.com/NixOS/nixpkgs/pull/21287
<MoreTea>
Note that I've also added 'lib' to the function parameters
eacamero_ has joined #nixos
AveryC has quit [(Ping timeout: 250 seconds)]
mkoenig has joined #nixos
<NodeGuy>
Great, it seems to be working! Thank you!
<MoreTea>
:)
<MoreTea>
Are you new to NixOs etc?
xwvvvvwx has quit [(Ping timeout: 240 seconds)]
<MoreTea>
@NodeGuy, we have some support for generating nix expressions from packages.json (given your name, I thought that might have your interest ;)
<NodeGuy>
Yes and I'm very excited about it. I tried Guix first but it had inadequate support for VirtualBox and I don't have bare metal right now.
eacameron has quit [(Ping timeout: 245 seconds)]
<MoreTea>
I see. What are you running? Linux? Or OSX?
<NodeGuy>
And yes, I am interested in nix expressions from packages.json, that sounds very cool. Do you have a link?
<NodeGuy>
I'm currently running Mac OS but am planning on transitioning to Qubes OS. I'm using VirtualBox during my transition.
<NodeGuy>
I'm working on creating a kind of Qubes-lite right now with Nix and containers during my transition.
<NodeGuy>
and plan to keep using Nix once I'm in Qubes.
<MoreTea>
OK, Nix (the package manager) also runs on top of OSX, so you could use it instead of Homebrew, in theory. In practise there are not enough developers to maintain all packages AFAIK.
<NodeGuy>
Thanks, I'm in the process of getting off of OS X so that's not as interesting to me.
<MoreTea>
That would be an interesting combination ;)
<LnL>
it depends on what you want to use
<NodeGuy>
My security requirements are going up.
<NodeGuy>
Yeah, I think the Qubes people will love NixOS. It's a natural match. They are adamant about minimizing state.
<gchristensen>
love this report: "Dragging around the Google map from http://pskreporter.info/ for a bit, in an X session, eventually causes firefox to crash with a Gdk-ERROR BadAccess"
<MoreTea>
@simpson, any reason that you have chosen it to be dynamically typed? My preference is slowly moving to statically typed languages.
<dash>
MoreTea: Yes :-)
* dash
coauthor on monte
<MoreTea>
hehe
<garbas>
dash: aloha!
<simpson>
MoreTea: Well, it's statically typed with a very boring type; objects require a uniform interface.
<dash>
garbas: hi again :)
<dash>
MoreTea: Static typing is nice when it suits the problems at hand, but it necessarily restricts certain things
mbrgm has quit [(Ping timeout: 258 seconds)]
<simpson>
MoreTea: But basically it's my position that any type system that can actually prevent bugs is necessarily not flexible enough to handle The Filesystem and The Network.
<dash>
MoreTea: for instance, the type checker has to be able to look at all the code (or at least the interface for all the code) that you want to invoke in a program
<dash>
and for distributed systems this is not possible
<gchristensen>
MoreTea: would you like to submit patches to this week's vulnerability roundup? firefox needs updating: ./pkgs/applications/networking/browsers/firefox, ./pkgs/applications/networking/browsers/firefox-bin
mbrgm has joined #nixos
mkoenig_ has joined #nixos
mkoenig has quit [(Ping timeout: 252 seconds)]
<MoreTea>
@gchristensen, I could take a peek, but I need to study for an exam tomorrow and will have to work on Tuesday and Friday.
<viric>
MichaelRaskin: it seems the hdmi is not card0
<viric>
MichaelRaskin: I simply don't have card0
<viric>
(alsa)
<gchristensen>
aye, I'm hoping it'll be done fairly soon. If you already have nix, it shouldn't take much time at all.
xwvvvvwx has joined #nixos
<MoreTea>
I'm running nixos :)
<viric>
MichaelRaskin: have you tried zfs?
<viric>
MichaelRaskin: it works really fast in lots of small files
<MichaelRaskin>
viric: maybe you have explicit card index specification in module options?
<viric>
MichaelRaskin: I think I did have that, yes. I had: playback hw:0,0 open error: No such file or directory
<viric>
I had: ast in lots of small files
<viric>
23:28 < MichaelRaskin> viric: maybe y
<viric>
mpf
<MichaelRaskin>
No I haven't, it seems still to be a bit too alien to the OS in case of Linux
<viric>
I have a broken copypaste
<viric>
MichaelRaskin: it's amazing how fast it works with nix operations (reading nixpkgs, making lots of symlinks)
<gchristensen>
MoreTea: have you ever contributed to nixpkgs before?
hiratara has quit [(Remote host closed the connection)]
<viric>
- and I'm in a zfs-over-luks without aes-ni
<MichaelRaskin>
It's amazing what enough RAM does for performance, too
<MoreTea>
I'm running ZFS as well, works perfect.
<viric>
MichaelRaskin: it's said that it can be told to use less ram
<MoreTea>
I still should create a systemd one-shot service that restricts the memory to max 2g...
<MoreTea>
Sometimes rebuilding things like kubernetes crash after 30 minutes of compilation, due to OOM, because the ARC is not released fast enough.
hiratara has joined #nixos
<MichaelRaskin>
viric: well, I have enough RAM to be able just to cache whatever I need regardless of the FS
<MoreTea>
I have 16gb RAM, still running out ;)
<MoreTea>
@MichaelRaskin, yes, I have made some contributions
<MichaelRaskin>
Well, in my case I need to run a couple of builds in parallel to run out of 16GiB
<ToxicFrog>
...well, I'm officially confused as hell
<ToxicFrog>
cannot open `/nix/store/0ppwjlrnk4b7ammpfqkanyjp27nj8nll-xorg-server-1.18.4/share/X11/xkb/compiled/systemd-private-d41cc115eda84860b947a5ec01029ddb-rtkit-daemon.service-K6SaVW': Permission denied at /nix/store/9g4wc31j7a2xp22xpgwr0qssfxahxdzl-builder.pl line 58.
<ToxicFrog>
I'm root.
<MichaelRaskin>
<MoreTea> @MichaelRaskin, yes, I have made some contributions <- gchristensen that was to you
<MoreTea>
haha, sorry.
siel has quit [(Ping timeout: 245 seconds)]
<MichaelRaskin>
ToxicFrog: builder should run under nixbld1
<ToxicFrog>
MichaelRaskin: what? I'm trying to run 'nixos-rebuild switch'
<MichaelRaskin>
An error inside builder was probably during a Nix build, and these run with dropped privileges
<NodeGuy>
Argle bargle, now it's complaining about a collision between qt5 and qt4 and I'm having a dickens of a time reading the manual/etc to figure out how to disable qt4.
newdan has joined #nixos
siel has joined #nixos
<gchristensen>
MoreTea: perhaps next time around, then :)
<viric>
MichaelRaskin: I put zfs in my old laptop and it boots and starts all faster than my new one
mkoenig_ has quit [(Quit: Lost terminal)]
<MoreTea>
@gchristensen, are you already taking up the denial of service one?
mkoenig has joined #nixos
<MichaelRaskin>
My boot sequence includes an mkfs, so I don't really try to optimise it
<MichaelRaskin>
ToxicFrogToxicFrog
<newdan>
I'm following along with the manual and I wanna build GNU Hello without modifying the Nixpkgs source code. In note 3 here <https://nixos.org/nix/manual/#sec-arguments> there seems to be a really big hint at how to do this. But I can't figure out how to actually invoke 'callPackage' from the command line
<gchristensen>
MoreTea: usually all the firefox ones are resolved in one go, by making sure each are up to date with the most recent release
<newdan>
I tried `nix-build '<nixpkgs>' -E 'hello = callPackage ./default.nix {};'` but it says the expression does not evaluate to a derivation
<viric>
MichaelRaskin: I think it defaults to taking 50% of RAM, but you can tune the 'ARC' to use much less
<newdan>
MoreTea: Gives the same error (the command line version anyway, I'll try modifying the source)
<MichaelRaskin>
ToxicFrog: because I don't understand why a Nix build would want to interact with that file. Does the file exist? Is it a regular file? What is its creation/modification time?
<gchristensen>
LnL: just an invitation :)
siel has quit [(Ping timeout: 245 seconds)]
<MoreTea>
@gchristensen, I plan to contribute soon by writing some guides
<LnL>
gchristensen: I'll probably get more involved with those once the parts for my nixos box arrive :D
mbrgm has quit [(Ping timeout: 248 seconds)]
<MoreTea>
I'm working on some infrastructure to extract test cases from the documentation, so that we can validate that things that we describe are actually correct
<newdan>
MoreTea: Changing the source fails with "cannot auto-call a function that has an argument without a default value ('stdenv')
<MoreTea>
@newdan, could you post your .nix expression file?
<gchristensen>
LnL: they help nix on darwin too, no doubt
rly has quit [(Ping timeout: 250 seconds)]
mbrgm has joined #nixos
<viric>
MichaelRaskin: I think zfs cpu usage somehow does not appear in 'top'... launching firefox takes about 8 seconds of 1) no I/O and 2) no CPU usage
<ToxicFrog>
MichaelRaskin: I added leiningen to the system packages. That's it.
<NixOS_GitHub>
[nixpkgs] joachifm pushed 1 new commit to release-16.09: https://git.io/v1bUY
<NixOS_GitHub>
nixpkgs/release-16.09 eaf6fc8 Joachim Fasting: tor: 0.2.8.10 -> 0.2.8.12...
<ToxicFrog>
MichaelRaskin: ok, this is super cool and/or weird
eacamero_ has quit [(Remote host closed the connection)]
<ToxicFrog>
nix.readOnlyStore defaults to true
<ToxicFrog>
mount | grep nix emits:
<ToxicFrog>
thoth/root on /nix/store type zfs (ro,relatime,xattr,posixacl)
<ToxicFrog>
But I can still write to it!
<MichaelRaskin>
What.
<MoreTea>
@newdan, I usually run packages from the CLI with this command: nix-build -E 'with (import <nixpkgs> {}); pkgs.callPackage ./hello-world.nix {}'
eacameron has joined #nixos
<MoreTea>
newdan, the problem was that help2man is needed as a build dependency
mkoenig has quit [(Read error: Connection reset by peer)]
pstn has quit [(Remote host closed the connection)]
mkoenig has joined #nixos
<LnL>
gchristensen: I would if I had more time
ebzzry has joined #nixos
zraexy has quit [(Ping timeout: 248 seconds)]
<ToxicFrog>
In further I Am Extremely Confused news, I tried writing an override for Sublime Text 3, based on the existing ST3 package
<ToxicFrog>
I ran nixos-rebuild
<LnL>
gchristensen: you can put me on the cc list, if I see something on the list that I've worked with before I'll try to help out
nh2_ has quit [(Ping timeout: 250 seconds)]
kuznero has joined #nixos
<kuznero>
Hi All!
<ToxicFrog>
It downloaded the correct tarball, checked it against the sha256 I provided from my earlier-downloaded copy
xwvvvvwx has quit [(Ping timeout: 268 seconds)]
<ToxicFrog>
And then proceeded to unpack and install Sublime Text 2 from it
<kuznero>
How can I run arbitrary shell script after packages installed with `nixos-rebuild` command?
nh2_ has joined #nixos
<gchristensen>
LnL: the permanent list?
Wizek_ has quit [(Ping timeout: 268 seconds)]
<ToxicFrog>
How does this even happen? Where did it get the ST2 tarball from?
Wizek has quit [(Ping timeout: 265 seconds)]
<LnL>
gchristensen: sure, that'll remind me to take a look at the list :)
<kuznero>
When `system.activationScripts` are executing? Is it before or after packages are getting installed in *nix files?
siel has joined #nixos
<LnL>
kuznero: first the entire system profile is built and then the activation scripts are executed to link the /etc files and stuff like that
<kuznero>
LnL: but are packages getting installed as part of building entire system profile? For example is it safe to defined stack package (Haskell stack) and in activation script run `stack setup --nix`?
nh2_ has quit [(Ping timeout: 246 seconds)]
<LnL>
I wouldn't add stuff to the activation scripts unless you have a really good reason to do so
<kuznero>
LnL: I see, but what is the alternative? Because currently I end up calling such things manually: `stack setup --nix && stack install ghc-mod && stack install hlint`. Should I keep doing that or there is a better way of putting it under control in NixOS?
<LnL>
I would use nix-shell for projects, and you can add a shellHook if you want to do special things like that
siel has quit [(Ping timeout: 260 seconds)]
<kuznero>
LnL: you mean as oppose to having such things done globally?
<LnL>
yup
<kuznero>
I see, thanks!
NodeGuy has quit [(Ping timeout: 260 seconds)]
<newdan>
Hm... so if I use e.g. nix-shell --pure -p python35 on Ubuntu, my PATH's modified but my scripts can easily break this isolation just by doing e.g. #!/usr/bin/python2. I suppse this is where NixOS can help?
<Mic92>
gchristensen: I decided not do any wireguard maintance as long as this guy is lurking in the issue tracker.
<gchristensen>
Mic92: fair enough, heh
<gchristensen>
who is that person?
<Mic92>
gchristensen: the guy behind wireguard
<gchristensen>
hrm. he has compelling points, then, though