<samueldr>
joepie91: I actually expected nothing and was still let down :/
<infinisil>
Phew
<Myrl-saki>
joepie91: Imagine if Google acquired Github.
<samueldr>
we'd finally get private messaging on github
<joepie91>
Myrl-saki: then we'd just go from "doesn't give you what you're looking for" to "doesn't provide deterministic results and bans you when you search too specifically"
<Myrl-saki>
joepie91: "Searches child (process) killer on Github"
<infinisil>
Damnit it's not recursive
<Myrl-saki>
joepie91: Organization goes down
<Myrl-saki>
OTOH, why the fuck did I quote that.
<joepie91>
lol
<Myrl-saki>
Oh yeah.
<infinisil>
I'm pretty sure that nixos evaluation time is about proportional to amount of options
<LnL>
indeed, it's strict
<infinisil>
So I'm glad he reduced them by a factor of 10, but over 100 is still a bit too much for a single module..
* LnL
really goes to sleep now
<Myrl-saki>
How do I set an argument of a package and all its child packages?
<Myrl-saki>
s/child packages/dependencies/
<joepie91>
I feel like optimizing Nix is a better avenue than reducing options for a package
<joepie91>
like, I can't really see a reason why 700 options for a package should be a significant problem evaluation-performance-wise :P
leat has quit [Remote host closed the connection]
<infinisil>
joepie91: As in, rewrite it in Rust? :D
<Myrl-saki>
qlol
leat has joined #nixos
<joepie91>
infinisil: I was not going to say that... :P
<Havvy>
infinisil: RIIR won't help with O(n^whatever) algorithms.
<infinisil>
Seriously, I want to see a (good) Nix rewrite in Rust, these memory problems are annoying.
<joepie91>
either way I doubt that parallelism will help much on this one
<joepie91>
infinisil: it's difficult because there's no reference on what Nix _is_
<infinisil>
I mostly am annoyed over Nix' memory usage
<joepie91>
like, the language has no formal definition
<joepie91>
the semantics have no formal definition
<joepie91>
everything is basically defined as 'whatever the reference implementation does'
<infinisil>
joepie91: "The implementation is the spec lul"
<joepie91>
this makes it somewhat of a moving target where alternative implementations are concerned
<infinisil>
Yeah
<Havvy>
joepie91: Just like Rust. ;)
<joepie91>
(I've been thinking about alternative implementations for a while now)
<infinisil>
hnix is pretty good already I think
<infinisil>
Just frontend though
<joepie91>
infinisil: hnix has been my primary source for learning about eg. the Nix language actually
<gchristensen>
hopefully there will be some nice improvements on the Nix front soon
<joepie91>
it's much easier to follow than the pile of C++ and parser specifications that is the reference implementation :)
jackdk has joined #nixos
<Myrl-saki>
TMW I had to ask for a new instance because Nix already started OOMEing on my new instance.
<adelbertc>
is there a way to register an existing Python package on your system (like a folder full of python sources) to pip so it doesnt try to grab it from upstream?
<infinisil>
joepie91: Agreed
<Myrl-saki>
Oh crap.
worldofpeace has quit [Quit: Konversation terminated!]
<adelbertc>
i'm using buildPythonPackage with a non-setuptools install so the PYTHONPATH is setup correctly, but in dropping into a nix-shell pip still tries to pull from upstream
<joepie91>
Myrl-saki: fwiw, there exists a patch for the `nix copy` RAM issue
worldofpeace has joined #nixos
<joepie91>
if that's what you're running into
<samueldr>
it worked for me (patch for nix copy issue)
<joepie91>
also for me
<joepie91>
I have my Hydra instance building it actually
<worldofpeace>
There's been lots of changes in plasma and I don't follow that very close.
leat has joined #nixos
<Myrl-saki>
Errr, how to nix-shell without a drv?
wgas has quit [Quit: Leaving]
<Myrl-saki>
copying path '/nix/store/imsz89c8c694dgbdq5aqrbxgzl5b11k9-ghc-8.2.1-binary' from 'ssh://myrl@192.168.42.157'...
<Myrl-saki>
And my tablet stopped responding lol
<kalbasit>
which derivation includes libstdc++.so.6 ?
<Myrl-saki>
Wouldn't that be glibc?
<infinisil>
It is indeed
<kalbasit>
I think so! I'm trying to use Bazel 0.14.1, at work the WORKSPACE pulls nodejs. Here's what I see:
matthewbauer has quit [Ping timeout: 260 seconds]
<infinisil>
kalbasit: Use nix-locate/nix-index to find that out easily (need to install it though)
<infinisil>
(for the future)
<kalbasit>
```yarn_install failed: (/home/kalbasit/.cache/bazel/_bazel_kalbasit/8bf050cfd51ca75fdd52264b88089d84/external/nodejs/bin/node: line 3: /home/kalbasit/.cache/bazel/_bazel_kalbasit/8bf050cfd51ca75fdd52264b88089d84/external/nodejs/node/bin/node: No such file or directory```
<kalbasit>
I found libstdc++.so.6 at `/nix/store/4zd34747fz0ggzzasy4icgn3lmy89pra-gcc-7.3.0-lib/lib/libstdc++.so.6` how to check (or add) it to the nix profile?
<infinisil>
Don't just install gcc, and especially not like that..
<justanotheruser>
anyone use borg backup with AWS who'd like to share their config?
<infinisil>
kalbasit: Use a proper Nix file with gcc in buildInputs
<kalbasit>
infinisil: this nodejs is not installed in the system, it's pulled by Bazel per a WORKSPACE definition
<kalbasit>
so I have to control over how it's installed
<Myrl-saki>
kalbasit: no* control?
<kalbasit>
oops, yep
<infinisil>
kalbasit: Can't you make it use a different nodejs?
<infinisil>
That would be my first thought
<infinisil>
My second thought if that doesn't work would be to patch it to use a different nodejs
<kalbasit>
I'll have to patch the WORKSPACE of the project for only my case, it's currently defined as ```node_repositories(
<kalbasit>
node_version = "8.11.1",
<kalbasit>
)```
<infinisil>
My third thought would be that you need to patchelf that binary to make those paths valid
<kalbasit>
interesting
<infinisil>
But really, forget the nix-env -i ...gcc thing, that's bad advice. Installing gcc when you have Nix is an anti-pattern
<kalbasit>
infinisil: got it, thanks for the tip
leat has quit [Remote host closed the connection]
leat has joined #nixos
disasm has joined #nixos
<kalbasit>
I can probably use patchelf, I'll try it now. But I'm not sure how to tell Bazel to do that since it's the one managing that. Maybe I'll end up just patching the WORKSPACE
<infinisil>
I have no idea what this capitalized WORkSPACE is you're talking of
<infinisil>
But anyways, I have to go (to bed), good luck!
<kalbasit>
infinisil: that's Bazel's definition file for a project.
<kalbasit>
thanks infinisil , Night!
mahalel_ has quit [Excess Flood]
mahalel_ has joined #nixos
mahalel_ has quit [Excess Flood]
mahalel_ has joined #nixos
thc202 has quit [Ping timeout: 264 seconds]
Supersonic112 has joined #nixos
Supersonic has quit [Disconnected by services]
Supersonic112 is now known as Supersonic
freeman42x[nix] has quit [Ping timeout: 256 seconds]
leat has quit [Remote host closed the connection]
leat has joined #nixos
joehh has joined #nixos
ericsagnes has joined #nixos
<kalbasit>
is there a way to `nix-shell` a standard linux system so I could, for instance, have Bazel manage project dependencies by itself? This nodejs thing is going to be a blocker for me to move to NixOS :(
jperras has quit [Ping timeout: 265 seconds]
sir_guy_carleton has joined #nixos
leat has quit [Remote host closed the connection]
graphene has quit [Remote host closed the connection]
leat has joined #nixos
graphene has joined #nixos
jperras has joined #nixos
ryanartecona has joined #nixos
newhoggy has quit [Remote host closed the connection]
Drakonis has joined #nixos
leat has quit [Remote host closed the connection]
leat has joined #nixos
Drakonis has quit [Remote host closed the connection]
newhoggy has joined #nixos
graphene has quit [Remote host closed the connection]
graphene has joined #nixos
newhoggy has quit [Remote host closed the connection]
newhoggy has joined #nixos
<infinisil>
I didn't go to bed after all, but implemented this instead:
<infinisil>
,locate bin/idris
<{^_^}>
Found packages: haskellPackages.idris.out, idris.out
freeman42x]NixOS has quit [Ping timeout: 260 seconds]
<infinisil>
,locate stubs-32.h
<{^_^}>
Found packages: glibc_multi.dev
<infinisil>
Integrated nix-locate!
newhoggy has quit [Remote host closed the connection]
leat has quit [Remote host closed the connection]
leat has joined #nixos
<kalbasit>
nice!
Drakonis has joined #nixos
silver has quit [Read error: Connection reset by peer]
joehh has quit [Ping timeout: 256 seconds]
moet has joined #nixos
joehh has joined #nixos
<PolarIntersect>
Hii
<PolarIntersect>
As a sanity check, is Xephyr not available in nixpkgs?
andymandias has quit [Ping timeout: 260 seconds]
leat has quit [Remote host closed the connection]
<samueldr>
,locate bin/Xephyr
<{^_^}>
Found packages: xlibs.xorgserver.out
<samueldr>
PolarIntersect: looks like it's built
leat has joined #nixos
<PolarIntersect>
oooh
<PolarIntersect>
It's Xephyr
<PolarIntersect>
not xephyr
<PolarIntersect>
oops -.-
<PolarIntersect>
Thanks samueldr
<samueldr>
well, you did ask for Xephyr ;)
<PolarIntersect>
haha ya
<PolarIntersect>
but I thought the executable was lowercase
<cbarrett>
I'm wondering if I'm overlooking something
<cbarrett>
But I might have found an omission in the documentation and the default output of bundix
<cbarrett>
It seems to me like when using the env = bundlerEnv { ... idiom one should put both env and env.wrappedRuby in the buildInputs in one's shell.nix
<cbarrett>
at least that's what I had to do
<cbarrett>
to get rake, #!-ruby scripts, etc to work within nix-shell
<cbarrett>
should I file this as a bug?
<cbarrett>
or is there something I'm confused about (this is the more likely option tbh)
leat has quit [Remote host closed the connection]
leat has joined #nixos
liuyb has left #nixos ["WeeChat 2.1"]
alex`` has quit [Ping timeout: 240 seconds]
joepie91_to_go has joined #nixos
leat has quit [Remote host closed the connection]
leat has joined #nixos
newhoggy has joined #nixos
stepcut has quit [Remote host closed the connection]
reinzelmann has joined #nixos
sbdchd has quit [Remote host closed the connection]
sbdchd has joined #nixos
sbdchd has quit [Ping timeout: 240 seconds]
leat has quit [Remote host closed the connection]
leat has joined #nixos
tzemanovic has quit [Remote host closed the connection]
leat has quit [Remote host closed the connection]
leat has joined #nixos
tzemanovic has joined #nixos
SeinfeldS07E22 has joined #nixos
leat has quit [Remote host closed the connection]
leat has joined #nixos
<elvishjerricco>
Taffybar is just doing nothing at all... I'm so confused
<elvishjerricco>
D'oh. Apparently it just doesn't work at all if you forget to compile it with `-threaded`
Drakonis has quit [Remote host closed the connection]
leat has quit [Remote host closed the connection]
leat has joined #nixos
rardiol1 has left #nixos [#nixos]
andymandias has quit [Ping timeout: 265 seconds]
blankhart has quit [Quit: WeeChat 1.9.1]
leat has quit [Remote host closed the connection]
leat has joined #nixos
SeinfeldS07E22 has quit [Quit: Leaving]
andymandias has joined #nixos
orivej has quit [Ping timeout: 276 seconds]
srl295 has joined #nixos
reinzelmann has quit [Ping timeout: 276 seconds]
leat has quit [Remote host closed the connection]
andreabedini has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leat has joined #nixos
sir_guy_carleton has quit [Quit: WeeChat 2.0]
sbdchd has joined #nixos
reinzelmann has joined #nixos
leat has quit [Remote host closed the connection]
leat has joined #nixos
sbdchd has quit [Ping timeout: 268 seconds]
<infinisil>
Refined ,locate a bit more:
<infinisil>
,locate bin/cc
alexteves has quit [Remote host closed the connection]
<pie_>
infinisil, was it you I was talking to about configuring tinc in configuration.nix a while back? idk how noone else has problems but i still have issues restarting the service and the netdevs/routes/something not coming up properly when i rebuild
<pie_>
hm. i think it may be this that the wiki was referring to about using tinc-up instead
<pie_>
instead of the ipv4.whatever stuff
leat has quit [Remote host closed the connection]
leat has joined #nixos
hamishmack has joined #nixos
wchresta has quit [Remote host closed the connection]
Izorkin has quit [Read error: No route to host]
Izorkin has joined #nixos
alex`` has joined #nixos
Tucky has joined #nixos
leat has quit [Remote host closed the connection]
leat has joined #nixos
civodul has joined #nixos
crmlt has joined #nixos
sbdchd has joined #nixos
joehh1 has joined #nixos
andymandias has quit [Ping timeout: 248 seconds]
sbdchd has quit [Ping timeout: 240 seconds]
leat has quit [Remote host closed the connection]
leat has joined #nixos
joehh has quit [Ping timeout: 260 seconds]
andymandias has joined #nixos
endformationage has quit [Quit: WeeChat 1.9.1]
leat has quit [Remote host closed the connection]
leat has joined #nixos
jensens has joined #nixos
<mpickering>
How can I upgrade my nix commands from really old ones on OSX? They are at 1.11.15
<srhb>
init_6: What do you mean? Like /etc/bashrc?
mmercier has quit [Ping timeout: 255 seconds]
hph^ has quit []
leat has quit [Remote host closed the connection]
leat has joined #nixos
hamishmack has quit [Remote host closed the connection]
tff^ has joined #nixos
<init_6>
srhb: yep
worldofpeace[m] is now known as worldofpeace
<init_6>
or only for user in ~?
<srhb>
init_6: There's /etc/profile, /etc/bashrc, /etc/zshrc (with the proper options enabled in NixOS config)
<srhb>
init_6: Not sure exactly what you're asking for really. :)
humanoyd has joined #nixos
<srhb>
init_6: Any user local config is beyond the scope of NixOS to deal with, normally. You can add whatever you like in ~. (home-manager is a bit of an exception)
<arahael>
Does nixos have any good reviews, say, to compare it to debian?
knupfer has joined #nixos
<srhb>
arahael: None that I know of. Anything specific you're interested in knowing?
<arahael>
I'm mostly curious. I'll eventually install Nix as a package manager on macos, I suspect, but I am a software dev, I'm curious about how I could use Nix to help me produce and deliver applications.
<arahael>
And I'm wondering if I should try NixOS when I get anther desktop at home.
Ariakenom has joined #nixos
<srhb>
arahael: Right.. The main points of interest is the immutability of the system configuration which is facilitated by the Nix package manager, so if you read about that and have some experience with a regular, mutable distro, I think it should be relatively easy to see the differences.
<srhb>
arahael: can only recommend that. :)
<arahael>
I'm trying to figure out how that works in say, the context of a python application.
<srhb>
arahael: If you're familiar with virtualenvs, you can imagine we do something similar but encompassing all packages, not just python packages, whenever you make a project
<srhb>
arahael: That is, not just python deps but also all other system deps are determined by, usually, a shell.nix that provides a shell environment with every dependency readily available for your project.
<arahael>
I exclusively use virtualenvs when I do python.
__Sander__ has joined #nixos
leat has quit [Remote host closed the connection]
<arahael>
Could be interesting. I currently use brew on my mac. Any gotchas if I add nix?
leat has joined #nixos
<srhb>
arahael: I'm not super familiar with Mac anymore, but I imagine not. nix lives more or less exlusively in /nix (sans some config to set up your access to it)
<arahael>
Which build chain would it use?
<srhb>
But a word of warning: nix works best if you go all in. Mixing nix and brew in a single project, for instance, will probably not go well.
<srhb>
arahael: You mean things like clang and such?
<arahael>
Yes.
<srhb>
I'm not sure on how it's dealt with in Darwin. There may be some impurities (usage of non-nix-managed build components) compared to how it works on Linux where it's totally pure. Someone else should probably chime in on this point.
<srhb>
fwiw I've installed Nix on a standard Mac build host without deep knowledge of what it did, and most simple things just worked out of the box...
<arahael>
Nice.
<arahael>
Can nix be used as a cross compilation toolchain?
mariatsji has quit [Remote host closed the connection]
<srhb>
Yes, though it's sort of experimental still, but it's becoming more and more impressive and is already at a stage where some things are possible and trivial compared to every other solution I know
<clever>
arahael: yes
<srhb>
I expect it will be one of the best solutions very soon.
<arahael>
clever: Has anyone ever gotten Nix to cross-compile using a particular vendor compiler? (Say, Apple's SDK for iOS)
<clever>
arahael: aarch64
<clever>
arahael: angerman would know more about ios targeting
<arahael>
clever: So people ar eworking on it - very nice.
<clever>
arahael: angerman has mainly done cross-compiling of haskell to ios
<arahael>
clever: That was my next questio! :)
<arahael>
I've noticed haskell devs tend to like nix, it seems.
hamishmack has joined #nixos
<angerman>
arahael: while I did some mobile stuff (ghc related), the nix integration is mostly done by the obsidian.systems folks (Sonarpules, ...)
hamishmack has quit [Client Quit]
<arahael>
I wonder how it compares to stack (which is also commonly used for package managerment in Haskell)
<srhb>
arahael: They're fairly orthogonal.
<arahael>
srhb: Could you elaborate there?
<srhb>
arahael: Nix' haskell builder uses Cabal (the library, not cabal-install) directly.
<angerman>
srhb: so does stack.
<srhb>
angerman: Yep.
<arahael>
srhb: So it's an alternative to stack?
<srhb>
angerman: and cabal-install
hamishmack has joined #nixos
<angerman>
they both rely on using Setup.hs
<srhb>
arahael: In many ways, yes.
<arahael>
srhb: So, I'd probably end up missing stack's curated package system?
<srhb>
arahael: We have a more or less curated set based on a sort-of-lts release as well
<angerman>
arahael: you can use stackage with nix. There is stack2nix, and some experimental stuff I wrote.
<arahael>
srhb: Hmm, nice.
<arahael>
angerman: Oh, interesting.
<arahael>
angerman: Any articles on that? :)
leat has quit [Remote host closed the connection]
<angerman>
but the curated set in nix is similar to an lts set. (and in principle to the curated hackage set as well; but this would derail the converstaion here)
<srhb>
arahael: We get to do fun stuff like this without ever compiling any Haskell: nix-shell -p 'haskellPackages.ghcWithPackages (p: with p; [ containers lens ])'
<srhb>
arahael: As an practical alternative, if you need it, we're able to fairly easily push nix builds to machines of other architectures.
<arahael>
What's the release process like - you mentioned that nix somehow managed to get into a broken state for haskell - no real CI system?
<srhb>
arahael: eg. we trivially have remote builds.
<angerman>
arahael: and yes, as clever said, you can use qemu to emulate as needed. Unless you want iOS.
<arahael>
srhb: That's _neat_
<srhb>
arahael: A lot works. Packages with a huge number of dependencies fail.
<arahael>
srhb: Any articles on that? (remote builds)
<mpickering>
Haskell on mac is completely broken atm I think
<srhb>
arahael: One thing with nix' determinism is that any change far down the dependency chain forces a rebuild of _every_ reverse dependency, so the build load is quite high...
<angerman>
clever and I managed to build some windows TH runner via WINE :D
<arahael>
angerman: Yeah, I like iOS, I regard it as The Problem Platform. :)
<srhb>
mpickering: What?
<clever>
nix-build '<nixpkgs>' -A hello --argstr system x86_64-darwin
newhoggy has joined #nixos
<mpickering>
I really wouldn't use nix on a mac, far too many commits get merged which break things
<srhb>
mpickering: Hydra claims differently!
<clever>
arahael: this command will build the darwin version of hello, using darwin build slaves
<clever>
no need for any cross-compile fun
<arahael>
mpickering: Could you elaborate?
<mpickering>
People only test their patches on nixos
<angerman>
mpickering: I test exclusively on mac :p
<elvishjerricco>
Yea I've got two macs that rely heavily on nix
<elvishjerricco>
Haven't updated them in a couple months though...
<srhb>
The haskell breakage on Mac is very specific.
<elvishjerricco>
There's been a bunch of stuff with cross happening very aggressively recently. Not terribly surprising that it's broken many things
asuryawanshi has quit [Ping timeout: 248 seconds]
<arahael>
angerman: Thanks for that medium.com link, finally glanced at it. Will also keep that in a tab!
<elvishjerricco>
srhb: Did you say the breakage made it to 18.03? Why were such large changes backported? That sorta violates the whole idea of a stable channel
<srhb>
elvishjerricco: Many of the cross changes to stdenv actually happened before 18.03 release
<srhb>
elvishjerricco: And they are at least partially responsible.
<elvishjerricco>
Ahh
<srhb>
It's just been in a bad state in a very long time, not enough effort/knowledge put in.
<elvishjerricco>
18.03 had a lot going on...
<angerman>
to be fair, all the cross logic is still fairly new, and much better than before.
<srhb>
Sadly my stdenv chops are a bit too weak to really help out.
<srhb>
Yes, that is the case
<mpickering>
Matthew Bauer even said not to merge the patch and it still got merged
leat has quit [Remote host closed the connection]
<srhb>
I love the cross stuff, I'm just sad it hit 18.03 so hard.
<srhb>
Hopefully 18.09 will be in a much better state.
leat has joined #nixos
<arahael>
What is Nix like between say, MacOS and windows?
<arahael>
Because I spend most of my time in those.
<srhb>
arahael: I don't think Nix is really functional on Windows.
<angerman>
However I still think we'll have a few more iterations wrt to cross compilation in nix, until it's all slick :D
<arahael>
(I honestly do very little haskell)
<arahael>
srhb: Ah, what's the issues there?
<angerman>
srhb: Windows is not really functional.
<clever>
:D
<srhb>
arahael: No one working on it for years, I think. There's nothing inherently impossible in it (though we have some design issues that makes it hard...)
<srhb>
angerman: heh :P
<elvishjerricco>
It works in WSL I think
<arahael>
WSL barely counts, at that.
<elvishjerricco>
If WSL ever gets some kind of shim access to windows APIs, it could count
<arahael>
If WSL apps could be launched directly from windows, and if WSL services could be started automatically, then it might count.
<srhb>
arahael: One issue which hits mac currently harder that Linux for haskell builds, for instance, is that we carry around just about all build information for nix in environment variables. Mac has a smaller environment limit than Linux, so it gets hit harder when the environment accidentally explodes. Windows has a way, way lower limit still.
<srhb>
I imagine that would require some major redesigning...
<clever>
arahael: one WSL problem ive heard, is that the files in the rootfs have to be tagged with a special attribute, which windows explorer cant copy when copying files
<arahael>
srhb: Seems that could be redesigned if important.
<clever>
arahael: so the only way to install a custom WSL distro is to untar it inside ubuntu, then use atomic move's from explorer to swap the rootfs
logzet has joined #nixos
<arahael>
clever: That's not a "problem", as such, they really are intended to be distinct.
<clever>
arahael: you also have no way to manage a 2nd rootfs within a given user
<srhb>
arahael: Yes. Though I imagine it's a huge undertaking :-)
<clever>
so you have no way to just install a nix based os
<clever>
you must untar nix from ubuntu, then rename things
orivej has joined #nixos
<arahael>
So nix has a huge, huge, huge bias towards linux.
<srhb>
I don't think so, no.
<srhb>
Towards *nix, yeah, probably.
<clever>
it works best under the linux kernel, but can also function on darwin, and it can generate results that are usable on more platforms
<arahael>
Which is nixos, right, which is linux?
<srhb>
The bias towards NixOS is really quite minimal imo.
<srhb>
But yes, NixOS uses a Linux kernel.
<srhb>
NixOS is more or less Nix + Linux + systemd...
<mpickering>
Right, the problems with mac are not fundamental in the design
<arahael>
Does it leverage systemd?
<srhb>
arahael: Heavily.
<arahael>
srhb: I find that interesting, could you elaborate?
<srhb>
arahael: We generate the systemd configurations declaratively and immutably.
<elvishjerricco>
I always describe NixOS as "Linux From Scratch, but with systemd and rewriting the book in Nix"
<srhb>
Hah
<srhb>
elvishjerricco++
<{^_^}>
elvishjerricco's karma got increased to 2
<clever>
:D
<angerman>
me--
ixxie has quit [Ping timeout: 265 seconds]
<angerman>
:(
<arahael>
elvishjerricco: That appeals to me. ;)
<clever>
angerman: if you try to ++ yourself, the bot will take away a point
<arahael>
Though, I don't like that it's a systemd system if I ever want to deal with it in docker. :(
<srhb>
arahael: Essentially the entire system is a single symlink that we can move back and forth between "generations" -- specific configurations.
<arahael>
Ah, I recall that's a systemd feature - doesn't that depend on particular filesystems, though?
<srhb>
It's not a systemd feature. At least not how it's implemented in NixOS.
<srhb>
brb, laundry.
<clever>
arahael: in nixos, its done via /run/current-system mostly, which replaces /bin and /lib for example
* arahael
installs nix in his macos.
<arahael>
srhb: Thanks for that discussion!
justbeingglad has joined #nixos
leat has quit [Remote host closed the connection]
__monty__ has joined #nixos
leat has joined #nixos
<arahael>
How do I search for, say, gnucash, in the nix package manager? (Noting that nix has yet to install)
<arahael>
Is there a website?
Izorkin has quit [Read error: Connection reset by peer]
<srhb>
Hm, does that work the way I think it does...
<__monty__>
srhb: Maybe give arahael a short primer on what channels there are? (not at all asking for my own benefit ; )
<srhb>
I'm not really an authority since I don't use channels... But mainly nixos-unstable (which is master that has passed some tests) and the current stable release (nixos-18.03) which is a branch cut from master in march which will live until ~october.
Izorkin has quit [Read error: Connection reset by peer]
mariatsji has joined #nixos
<srhb>
Meaning, 18.03 will only get minor version bumps and fixes. Very newer versions will only be available in unstable and the upcoming 18.09
<arahael>
I assume they're forks of nix package descriptions.
Izorkin has joined #nixos
leat has quit [Remote host closed the connection]
<srhb>
arahael: nixpkgs branches, yes.
<srhb>
arahael: master and release-18.03 specifically
<arahael>
Does nix help you produce applications that you then need to deploy to users, who might not have nix?
<srhb>
Hm, the nix search some channel does work with an arbitrary channel, but requires an update each time. It would be nice if the cache was per-channel
<srhb>
arahael: Not Really Though There Are Ways
<Taneb>
arahael: there's stuff like nix bundle, and with a bit of work you can use nix to build staticly linked programs but it's not easy
<srhb>
arahael: Like, it can build docker images, and it can help you produce static binaries (immensely helped by eg. musl-static cross compiling) and there's nix bundle which essentially packs every dependency in a file
<arahael>
Those sounds promising.
<srhb>
arahael: If you inspect a standard nix-build binary with ldd, you'll see that it doesn't even use the standard FHS loader location, so you can't run it on a non-nix system.
<arahael>
I've noticed from the various articles online that it doesn't even try to be LHS compliant.
<srhb>
(Most systems don't have, say, /nix/store/2kcrj1ksd2a14bm5sky182fv2xwfhfap-glibc-2.26-131/lib/ld-linux-x86-64.so.2)
<srhb>
arahael: It's a fundamental feature of Nix.
<arahael>
Ok, I've got nix installed. :)
<arahael>
1GB in /nix. :)
<srhb>
arahael: We use it to track dependencies. When a build is completed, we can every file for strings that point to /nix/store/...
<srhb>
arahael: Those are the runtime dependencies of the package.
<srhb>
arahael: If we were to allow /lib or whatever, that would completely break.
<clever>
s/can/scan/
<srhb>
clever: Thanks
<arahael>
srhb: I realise. It's remarkable how linux has managed to work as it is. The FHS relies quite substntially on a curated set of applications, yet linux dev is very decentralised.
<srhb>
arahael: So rather than not attempting to be compliant, we're strictly attempting to be non-compliant :-)
<arahael>
Good. :)
* arahael
installs 'hello'.
simukis has joined #nixos
<arahael>
I see it installed to ~/.nix-profile.
<srhb>
arahael: If you don't want to litter your profile with arbitrary things, you can nix-shell -p nixpkgs.hello -- then hello will "disappear" (it's still in your store until you garbage collect) from your environment once you close the shell
<arahael>
Interesting.
<arahael>
Yep, that's mentioned lower down in the manual. :)
leat has quit [Remote host closed the connection]
leat has joined #nixos
<arahael>
Hmm, how do I do a search for packages on the command line?
<arahael>
I notice that 'apropos search' doesn't show anything for nix.
<clever>
nix-env has some magic flags for that, cant remember the exact ones
newhoggy has joined #nixos
<arahael>
nix-env q <name>
<arahael>
-q, rather.
ajs124 has joined #nixos
<clever>
,locate bin/firefox
<arahael>
No, that's not it.
<{^_^}>
Found in packages: firefox-wrapper, firefox-unwrapped, firefox-esr-52-unwrapped, firefoxPackages.tor-browser
<clever>
arahael: there is also this bot on irc
<arahael>
,locate golang
<{^_^}>
Found in packages: kt, c14, dep, kbfs, lego, meme, kops, and 76 more
crmlt has quit [Ping timeout: 265 seconds]
<clever>
that command is more about finding a package that contains a given file, then searching by package name
<arahael>
Yeah, I want a particular package.
<srhb>
arahael: If you're just searching by package name, use nix search
<arahael>
nix *search*, thanks.
<arahael>
Doesn't seem to have any results at all.
orivej has quit [Ping timeout: 260 seconds]
clefru has quit [Quit: Leaving]
<srhb>
For?
<arahael>
And nix itself doesn't seem to have a man page.
ericsagnes has quit [Ping timeout: 260 seconds]
<clever>
arahael: your MANPATH has to be updated
<arahael>
srhb: Well, it nither has any results for "nix search golang", nor "nix search gnucash".
newhoggy has quit [Ping timeout: 240 seconds]
<srhb>
arahael: Tried with -u ? (it should be suggesting this)
<clever>
arahael: the manpages are in ~/.nix-profile/share/man/ and the man from your distro doesnt look there
<arahael>
clever: It found the man pages for nix-env fine, though?
<srhb>
clever: I don't think nix has a man page yet, does it?
<clever>
arahael: oh and the nix command is new and lacks man pages
<arahael>
srhb: The first time, it didn't. But subsequent ties it now does.
<arahael>
*times
<srhb>
arahael: We're sort of in an awkward transition towards this new "nix subcommand style interface" which is not complete yet.
<arahael>
srhb: Bit awkward indeed if I'm using the stable channel.
<srhb>
It has some new features (like nix search which is great) and lacks some older one which are covered by the nix-dash-something commands,
<arahael>
Don't know if I'm on stable, though, actually: I'm on - channels(root): `"nixpkgs-18.09pre144939.14a9ca27e69"`
<srhb>
arahael: That's unstable.
x1n4u has quit [Ping timeout: 255 seconds]
<arahael>
By default!?
<srhb>
I think that's the default on mac.
<clever>
arahael: nix-channel --list
<srhb>
Maybe for any standalone nix installation
<srhb>
arahael: Think of it as rolling release ;-)
<srhb>
arahael: It goes through the same test set that the stable channel does.
<arahael>
I don't like rolling releases - normally. :)
<srhb>
Well, you're free to switch channel :)
<arahael>
I'll stick with the default until I have a clue. :)
leat has quit [Remote host closed the connection]
leat has joined #nixos
<Taneb>
I have a half-memory of being told there's a file you can edit instead of using ad-hoc stuff with nix-env on multi-user Nix on other-linux
<__monty__>
arahael: I haven't encountered much issues on unstable. Only some haskell package breakages.
<Taneb>
Can anyone throw some documentation at me?
<goibhniu>
Taneb: you can also add --remove-all, if you want to only have that set of packages installed
newhoggy has joined #nixos
<arahael>
srhb: I don't understand either, but 'nix search -u gnucash' is pretty fast, yet 'nix-env -qa gnucash' takes a while and has a totally different result (it seems gnucash doesn't exist, afterall)
<srhb>
arahael: How about nix search -u -f channel:nixos-unstable packagename ?
<arahael>
srhb: I got something~ `nix-env -qa go` works, with actual results. Nice.
<srhb>
Then drop the -u and -f in subsequent commands
dejanr has quit [Ping timeout: 276 seconds]
Baughn has quit [Ping timeout: 245 seconds]
<srhb>
arahael: nix-env -qa does not cache, so it can be slow, but yeah, if it works...
tilpner has quit [Ping timeout: 256 seconds]
kosmikus has quit [Ping timeout: 260 seconds]
jeschli has quit [Ping timeout: 260 seconds]
<__monty__>
arahael: -qa searches for package names so it has to evaluate all the things. What I personally do is nix-env -qaP --description > somefile, then rg 'gnucash' somefile. Just have to remember to update the file every time you update your channel.
<arahael>
"nix search -u go" doesn't have any results, even so, though.
SOO7 has quit [Ping timeout: 256 seconds]
<clever>
__monty__: nox is a search util that basically does that, with automatic update
<srhb>
It seems like it's not finding nixpkgs to search through. Odd.
<arahael>
__monty__: Seems awkward. I miss 'apt-cache'.
<ocharles_>
Hello. How do I copy a .drv from a remote machine to my machine?
<ocharles_>
into my /nix/store, that is
<clever>
ocharles_: nix-copy-closure
<srhb>
ocharles_: nix-copy-closure can do that, but nix copy cannot.
<ocharles_>
ok, let me see if I can work out how to do it
<arahael>
What language is nix implemented in?
<srhb>
arahael: C++ mostly.
<clever>
arahael: c++
<arahael>
Pragmatic.
<srhb>
arahael: An alternate hnix implementation is being worked on if that bothers you :-)
<__monty__>
arahael: Sure, nix-env is not known for its awesome UX : ), nix search should solve the problem though. Not sure what issues you're having.
* goibhniu
uses `nix-env -qaP | grep -i gnucash` to search for packages
<srhb>
(Guess the language...)
<ocharles_>
oh cool, that was easy. nix-copy-closure --from user@host /nix/store/thing-i-want.drv
<clever>
ocharles_: yep
<arahael>
"nix search -u '.*'" is *empty*.
<srhb>
Does anyone know *why* it doesn't work with nix copy? It seems a weird thing to lack.
<clever>
arahael: what is in ~/.nix-defexpr/ and `echo $NIX_PATH` ?
<arahael>
srhb: C++ is a fine choice. :)
Swant has quit [Ping timeout: 606 seconds]
<clever>
srhb: nix copy will try to build the .drv, then copy its result
<srhb>
Blargh. needs a switch..
<clever>
srhb: yeah
x1n4u has joined #nixos
<arahael>
clever: channels_root, which has three directories, what info are you after there?
<arahael>
clever: My NIX_PATH is: /nix/var/nix/profiles/per-user/root/channels
leat has quit [Remote host closed the connection]
<arahael>
clever: (And I am not root)
fleaz has quit [Ping timeout: 240 seconds]
<clever>
arahael: does one of the subdirs of channels_root contain a default.nix?
leat has joined #nixos
<clever>
ls -l ~/.nix-defexpr/*/*/default.nix
<clever>
-r--r--r-- 1 root root 557 Dec 31 1969 /home/clever/.nix-defexpr/channels_root/nixos/default.nix
<clever>
thats what i have
<arahael>
It does.
emerson has quit [*.net *.split]
hyper_ch2 has quit [*.net *.split]
<arahael>
Mine's slightly larger, and is a year newer. ;)
<arahael>
Erm, a day newer. ;)
<clever>
a whole year? or a few hours?
<clever>
yeah, timezones
<srhb>
arahael: I always get so confused when I see unix 0 from US people :P
<clever>
srhb: its actually unix 1
<srhb>
Ah, yes..
<clever>
0 is treated as an error by some programs
<arahael>
srhb: Of course it's US-centric(!)
<clever>
arahael: all files are last modified at 12:00:01 jan 1st 1970 (1 second after midnight)
silver has joined #nixos
<clever>
arahael: but when timezones apply, that turns into a few hours before midnight, for people in utc-4 for ex
<arahael>
fair enough, and as I'm in GMT+10, that moves it later, I guess.
<clever>
yep
<arahael>
ANyway, so that file exist, for me, and ultimately does 'import ./pkgs/top-level/impure.nix'
<clever>
yeah, thats normal nixpkgs
<clever>
i think its the unfree exception bug in nix-env
* arahael
doesn't fully understand that language - what language is it?
<arahael>
Taneb: As good as lisp can be, surely that's not the only reason!
<arahael>
clever: Ah, so that's what the unfree bug is... But how does this relate to not being able to search?
<srhb>
This is probably not the right place to fully understand their motivations anyway :-)
<arahael>
clever: And suppose I don't actually /want/ unfree software anyway?
<clever>
arahael: it may silently exit if the search passes over any unfree packages
<arahael>
clever: Ok, that sounds like a bug indeed.
Swant has joined #nixos
<elvishjerricco>
does nix have any way to help with GPL requirements?
<arahael>
I think I'll just use nix-env -qaP
leat has quit [Remote host closed the connection]
leat has joined #nixos
<arahael>
srhb: Sure. :)
SOO7 has joined #nixos
kiloreux has quit [Ping timeout: 245 seconds]
simukis has quit [Quit: simukis]
simukis has joined #nixos
* arahael
wonders what xorg is like on macos.
fleaz has joined #nixos
<clever>
$ nix-build '<nixpkgs>' -A xlibs.xorgserver --argstr system x86_64-darwin
emerson has joined #nixos
<arahael>
Apart from a few libraries and xorg stuff, there doesn't appear to be many GUI applications in nix (at least, for darwin). I suppose I shouldn't be surprised.
<clever>
valgrind: mmap-FIXED(0x0, 253952) failed in UME (load_segment1) with error 12 (Cannot allocate memory).
<clever>
it looks like valgrind needs fixed, but it appears to actually support darwin
<arahael>
The moment it has to run an application, it dies, it seems.
<{^_^}>
[nix] @Ma27 opened pull request #2265 → nix why-depends: render output into $PAGER → https://git.io/f9XmF
<__monty__>
arahael: What does the SMC have to do with nix-darwin?
<arahael>
__monty__: Without the SMC, I won't have the same performance/battery management as I have in macos.
<arahael>
__monty__: And it's a user-space application.
<clever>
arahael: nix-darwin still runs on the darwin kernel and the whole darwin ui
<clever>
it just manages a few files in /etc/ via nix
<arahael>
clever: The "whole darwin ui" being macos?
<clever>
the ui is untouched
<arahael>
clever: I thought you just meant the raw darwin kernel?
<arahael>
(On it's own)
<clever>
kernel is also untouched
<LnL>
nix-darwin doesn't have anything to do with SMC or custom ui/kernels
<clever>
nix-darwin is just a pipe of scripts that let you manage some things in a nixos like way
<clever>
pile*
<arahael>
Ah, ok.
<arahael>
My interpretation was it was this whole separate OS that happens to use the open-sourced darwin kernel.
<infinisil>
,locate bin/swift
<{^_^}>
Found in packages: swift
<clever>
arahael: that is a different project that some people have been working on
<infinisil>
arahael: yup, swift is there
<arahael>
clever: Right, I thought it was a port to that project!
<LnL>
you're thinking of something like pure darwin
<arahael>
infinisil: I meant, projects /using/ swift.
<arahael>
LnL: Indeed.
<infinisil>
arahael: ah
<LnL>
let me know if you have questions about it
<arahael>
LnL: What's nix-darwin? :)
Swant has quit [Quit: Gone to IKEA]
Swant has joined #nixos
<infinisil>
arahael: Just checked, not a single package using the swift compiler
<arahael>
infinisil: How did you check?
emerson has quit [*.net *.split]
<clever>
arahael: i grepped all of nixpkgs, nothing refers to it
<arahael>
infinisil: Btw, you're not allowed to use a non-standard swift compiler for iOS.
<arahael>
I see.
<infinisil>
rg -w swift -t nix
<infinisil>
arahael: I'm not surprised by this
<arahael>
That's the second time I've seen 'rg'.
<infinisil>
It's really awesome, using it every day :D
<arahael>
infinisil: Yeah, well, it's another example of a "difficult" platform. :) I like using iOS as an example of a complicated package to setup.
<arahael>
I feel iOS is even harder to work with than windows.
simukis has quit [Quit: simukis]
<infinisil>
I'm glad to have given up on the apple ecosystem
<LnL>
arahael: it brings a bunch of features that can be declaratively managed on nixos with configuration.nix to macOS, like config files in /etc, launchd services, and the nix/nix-daemon installation itself
newhoggy has quit [Remote host closed the connection]
<arahael>
LnL: Sounds intriguing, where should I read about it?
<arahael>
infinisil: I'm happier with the apple ecosystem, though there are some sucky things about it. I find Anddroid far more annoying.
<arahael>
LnL: Thanks, I'll put that into my tabs as well! :)
lhart has quit [Quit: lhart]
<infinisil>
arahael: i mean if you are engulfed in apple (using macos and ios devices), then development is enjoyable (let's ignore xcode for now), but if you're not (e.g. on linux), it's incredibly more complex if even possible
<infinisil>
i did really enjoy swift while i used it though, really a nice language (again, ignoring xcode..)
<arahael>
infinisil: Yeah, but Swift's only FFI is ObjC. :(
<arahael>
infinisil: Makes it tricky to use in Android.
emerson has joined #nixos
<infinisil>
i'm pretty sure it supports C?
<arahael>
infinisil: You can't call into Swift fromC.
<infinisil>
@convention(c) or something like that iirc
xy3_ has quit [Ping timeout: 240 seconds]
<arahael>
Hmm, that must be new.
<arahael>
(Or I must have missed it)
<infinisil>
Yeah, it's been there for a while (Swift 2 apparently)
<arahael>
What I thought was nuts, though, is that you can't compile swift as a static library (on iOS)
isaac_ has quit [Quit: Connection closed for inactivity]
<arahael>
Ah @convention(c) seems to be only for closures. Still, that certainly makes it possible.
x1n4u has quit [Ping timeout: 260 seconds]
<infinisil>
Yeah, I'm not entirely sure how it all works though, never used it myself
<arahael>
Too much work, I was looking at using Swift in a Java project. Ended up ruling it as infeasible.
<disasm>
is it possible to have multiple attributes in a shell.nix you can select with a single default? Something like nix-shell runs the default version and nix-shell -A foo runs the foo attr set
<clever>
disasm: look at the shell.nix in iohk-ops, under passthru
<infinisil>
disasm: Yeah, use passthru of the derivation
<infinisil>
:p
iyzsong has joined #nixos
booglewoogle has joined #nixos
vaninwagen_ has joined #nixos
<booglewoogle>
hey, is there a way to edit a file in the store? i've got a binary package with a config file there which i'd like to edit
<clever>
booglewoogle: it has to be patched at build time to have the new config
<booglewoogle>
i see
wucke13 has joined #nixos
<clever>
booglewoogle: or patched to look for the config in a better location
mmercier has quit [Quit: mmercier]
<booglewoogle>
what's the function I'd have to add to my nix-expression to do that post compilation?
<booglewoogle>
or, how would you go about it
leat has joined #nixos
<booglewoogle>
:p
<clever>
booglewoogle: first, i would nix-shell into an env suitable for building the package, and run unpackPhase and patchPhase in the unpacked directory
<clever>
booglewoogle: then copy the entire directory to src-orig
leat has quit [Remote host closed the connection]
<clever>
booglewoogle: then edit the non-orig version, to look for the config elsewhere, maybe obey a $FOO_CONFIG_PATH var
phdoerfler has joined #nixos
leat has joined #nixos
<clever>
then make a patch with `diff src-orig src -u > foo.patch`
<clever>
and then make an override to add that to patches
Izorkin has quit [Read error: Connection reset by peer]
Izorkin_ has joined #nixos
newhoggy has joined #nixos
alexteves has joined #nixos
<booglewoogle>
okay, that's a mouthful. a problem here would be that I can't seem to build from a nix-shell I think I have setup to mimic the environment nix-build enters when building the expression. so for now i seem to be bound to edit the expression in some way
wucke13 has quit [Quit: WeeChat 2.0]
<booglewoogle>
but maybe I can infer from your description what steps I can take
<booglewoogle>
thanks!
<clever>
booglewoogle: i dont usually build it from a nix-shell
<clever>
i only use that to get a copy of the src
<booglewoogle>
oh i see
vaninwagen_ has quit [Ping timeout: 268 seconds]
ajs124 has left #nixos ["Machine going to sleep"]
newhoggy has quit [Ping timeout: 248 seconds]
neof0x has joined #nixos
<Lisanna>
anyone have any writings / guides on optimizing hydra deployments to handle a large quantity of concurrent builds?
<{^_^}>
[nix] @Ma27 opened pull request #2266 → nix search: allow `-a` for attribute-only searches → https://git.io/fHUiQ
orivej has joined #nixos
<Lisanna>
I'm getting a lot of "DBI Connection failed: DBI connect(...) failed: FATAL: remaining connection slots are reserved for non-replication superuser connections" messages in my hydra-queue-runner journal
<clever>
Lisanna: you need to ensure postgres is running
<Lisanna>
these aren't fatal errors
<Lisanna>
the build is still making progress
<Lisanna>
the database is just getting overloaded I think
<Lisanna>
and the hydra web interface goes down for a few seconds periodically
<clever>
ah
leat has quit [Remote host closed the connection]
<Lisanna>
but always comes back
<clever>
you may need to increase the connection count in postgresql then
<Lisanna>
I'm throwing hundreds of build steps at it at a time
leat has joined #nixos
newhoggy has joined #nixos
<Lisanna>
clever OK, do you know where that gets configured initially?
<clever>
nope
newhoggy has quit [Client Quit]
<Lisanna>
alright, thanks for the pointer
newhoggy has joined #nixos
tilpner has joined #nixos
iyzsong-x has joined #nixos
iyzsong has quit [Ping timeout: 240 seconds]
phdoerfler has quit [Quit: Leaving.]
lhart has joined #nixos
xy3_ has quit [Ping timeout: 256 seconds]
newhoggy_ has joined #nixos
newhoggy has quit [Quit: Leaving...]
newhoggy_ is now known as newhoggy
leat has quit [Remote host closed the connection]
leat has joined #nixos
kosmikus has joined #nixos
nuncanada has joined #nixos
nuncanada has quit [Client Quit]
joehh1 has joined #nixos
<avn>
Folks, I have silly question -- is possible to delete damadged .drv file (my VM was out of space)
<{^_^}>
[nixpkgs] @orivej pushed to master « mpv: fix build with wayland after #41902 »: https://git.io/fH8ew
<pie_>
so local dnsmasq will work but i cant actually succeed at any dns queries because there are no upstreams specified
<thblt>
Hello, #nixos. I'm upgrading from 18.03 to nixos-unstable, by `sudo nix-channel --add https://nixos.org/channels/nixos-unstable nixos` (and nixos-rebuild etc). But I'm not sure I understand what I should do wrt 'system.nixos.stateVersion'? Leave it at '18.03'?
<sphalerite>
Anyone know a pastebin like ix.io (but with known maintainers) and sprunge.us (but fully functioning)? Something I can paste to by just piping into a simple curl command?
<hyper_ch2>
nlytend: also, you could clean out old generations and free space that way
<nlytend>
I tried 'nix-collect-garbage -d' but it appears that's not enough
booglewoogle has joined #nixos
<infinisil>
nlytend: Did you run it with sudo?
<nlytend>
My / is a 50GB partition
<booglewoogle>
hey, how would I cleanly uninstall a custom package that's not known to nix-env or configuration.nix from the store?
<nlytend>
Do i need 'sudo'?
<Taneb>
booglewoogle: you can give nix-env the nix store path
<infinisil>
nlytend: Well it can't free any system generations without sudo, which is probably what's taking up the most space. I recommend first not using -d, but rather `--delete-older-than 3d` or so
<clever>
booglewoogle: nix-store --delete, and dont use force if it says its in use
<booglewoogle>
nix-store --delete
<booglewoogle>
?
<booglewoogle>
okay
<booglewoogle>
that cleans anything not in the config? just so I roughly know what it does :D
<nlytend>
Thanks, now i understand.
<infinisil>
booglewoogle: Read the man page
leat has quit [Remote host closed the connection]
<booglewoogle>
oh yeah.. sorry
<booglewoogle>
and thanks again!
leat has joined #nixos
<infinisil>
no worries :)
tzemanovic has joined #nixos
<nlytend>
Infinisil so this will keep the drvs i built today or do i have to build everything again for 'nixos-rebuild'
<clever>
nlytend: --delete-older-than 3d will delete generations from older then 3 days, then the normal GC deletes all garbage, including partial results from a recent nixos-rebuild
<infinisil>
nlytend: I think unless you manually set `keep-derivations = true` in nix.conf it will remove them
<pie_>
eren, that serverfault link doens tseem helpful. if im just doing server=127.0.0.1#53 that should be fine
<{^_^}>
[nixpkgs] @roberth pushed to haskell-outputs-bin-etc-lib « haskellPackages.happy: fix circular reference caused by separate bin »: https://git.io/fHXUD
<infinisil>
Looks also open to me
crmlt has quit [Ping timeout: 256 seconds]
<niksnut>
ah, for some reason I was at #377
<pie_>
ugh i think i also misinterpreted some stuff
<sphalerite>
yeah I don't see that. I don't see anything from wmertens in it
<clever>
also open here, and i dont see wmertens being mentioned
<pie_>
except for some incomprehensible reason its listening on all interfaces (i changed the port number for testing) instead of obeying listen-address=::1,127.0.0.1
<pie_>
eren, im 90% sure it was the port collision
<{^_^}>
[nixpkgs] @volth opened pull request #42909 → perlPackages: fix meta and fix build with perl-5.26 → https://git.io/fHSWr
ajs124 has joined #nixos
<{^_^}>
[nixpkgs] @bkchr opened pull request #42910 → services.plasma5: Update start menu with an activationScript → https://git.io/fHSb0
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
omarty has joined #nixos
<infinisil>
When I have a package definition { stdenv, foo }: ...
<infinisil>
And an updates makes it so `foo` isn't needed anymore
<infinisil>
Should the argument be removed, or should it be kept for backwards compatibility?
rprije has quit [Remote host closed the connection]
rprije has joined #nixos
<infinisil>
I'm for removing it
<gchristensen>
why would it be kept for bc?
<gchristensen>
oh in case someone was explicitly passing foo?
leat has quit [Remote host closed the connection]
leat has joined #nixos
Jackneill has joined #nixos
<samueldr>
how good are the trace with deprecation warning patterns in nix/nixpkgs?
<infinisil>
gchristensen: Yeah
<gchristensen>
samueldr: not good / recommended
mariatsj_ has quit [Remote host closed the connection]
<gchristensen>
infinisil: I'd drop it.
<gchristensen>
if we want to move to more bc there, we could start adding `, ...`
mariatsji has joined #nixos
<cocreature>
is there a way to get "cabal2nix" (or callCabal2nix) to not add the editedCabalFile and revision lines when I run it on source fetched from github?
rprije has quit [Ping timeout: 240 seconds]
__Sander__ has quit [Read error: Connection reset by peer]
<infinisil>
gchristensen: ", ... considered harmful" though
<infinisil>
Because something with arguments being ignored or so
<gchristensen>
agreed
<infinisil>
Oh
moet has quit [Ping timeout: 255 seconds]
<infinisil>
How about changing `.override` to emit a useful warning when you try to override arguments that don't exist
mariatsji has quit [Ping timeout: 256 seconds]
leat has quit [Remote host closed the connection]
leat has joined #nixos
mariatsji has joined #nixos
<gchristensen>
does it not? :)
<infinisil>
> hello.override { foo = 10; }
<{^_^}>
anonymous function at /var/lib/nixbot/state/nixpkgs/pkgs/applications/misc/hello/default.nix:1:1 called with unexpected argument 'foo', at /var/lib/nixbot/state/nixpkgs/lib/customisation.nix:74:12
<infinisil>
Hmm I guess that's not too bad
joepie91_to_go has quit [Quit: Konversation terminated!]
joepie91_to_go has joined #nixos
<infinisil>
Ah right, I'm thinking of just making this a warning instead of a failure
ajs124 has left #nixos ["Machine going to sleep"]
mariatsji has quit [Remote host closed the connection]
<clever>
infinisil: so you can either abuse the toxml, or somehow call the show function
<clever>
or just add what you said above
<clever>
checking one more idea...
<infinisil>
Am confused, how exactly do you want to detect ...?
dbmikus has quit [Ping timeout: 240 seconds]
<infinisil>
Ah, with toXML I see
graphene has quit [Read error: Connection reset by peer]
<tenten8401>
is making massive modules (everything in config configurable) for NixOS frowned upon or something or do most people just take the easy way out with extraConfig?
<tenten8401>
I know having an extraConfig is always good, but there are a lot of modules that use that exclusively
graphene has joined #nixos
<{^_^}>
[nixpkgs] @domenkozar closed pull request #41215 → zoom-us: update && added new field to `meta` attributes → https://git.io/vh3c9
leat has quit [Remote host closed the connection]
leat has joined #nixos
tadni_ has quit [Remote host closed the connection]
<samueldr>
tenten8401: there is currently an issue when adding an astronomical amouint of options, it makes the overall modules system a tad bit slower per-option
<tenten8401>
So it might be better to add a config = {} block for my options?
<samueldr>
tenten8401: 15 shouldn't be an issue
<infinisil>
tenten8401: The idea is to represent the services config as a Nix value instead of a string, which makes merging possible, syntax checks and it's more flexible
<samueldr>
clever: yeah :/ I hope you find some non-trivial but generic fix that fixes every memory issues with nix ever ;)
leat has joined #nixos
asuryawanshi has quit [Remote host closed the connection]
<clever>
samueldr: the heavy-fix-all idea i had, is to store every single Value in a hashtable, and check for duplicates at creation, and merge
asuryawanshi has joined #nixos
<foldingcookie>
hash consing!
<tenten8401>
this is what I'm currently doing for my module: https://hastebin.com/hinowuhahi.bash -- Looking at the ZNC PR it might be desirable to do something like that, but I'm still very new to this
<Lisanna>
yeah, but I have other jobsets that I want to feed only tested build products into
<tenten8401>
not sure how messy my module is due to the lack of experience but I'm sure there's someone cringing at it
<clever>
Lisanna: use the test as an input, then the build will fail because a dep cant be built?
<clever>
ah, if its in another jobset, that gets a bit tricky
<Lisanna>
I just want a build for a thing to fail if a test in the same jobset fails
<infinisil>
tenten8401: Yeah that's a good fit for what I'm doing with ZNC, you could allow the user to override all those options in the json value.
jensens has quit [Ping timeout: 276 seconds]
<Lisanna>
e.g.: src, src-tested, test1, test2
wucke13 has quit [Quit: WeeChat 2.0]
<Lisanna>
then in another jobset I want to use src-tested as an input
wucke13 has joined #nixos
<tenten8401>
I have no clue how I'd do something like that but it's definently something I'll look into
camsbury has quit [Remote host closed the connection]
<infinisil>
tenten8401: Want me to explain it in more detail?
<samueldr>
infinisil: do I understand right that all under `.config` won't show up as-is as options in the manpage and options.html?
<infinisil>
samueldr: Indeed
<tenten8401>
infinisil: sure, if you'd like
<samueldr>
ah, it's a drawback
<samueldr>
though, infinisil, probably fixable
<tenten8401>
would I have to make my own json exporter if I wanted to do something like that?
<samueldr>
if more modules implemented semanticTypes-like things, a convention could be made to allow them to self-document?
<infinisil>
samueldr: True, but the limited flexibility before was really annoying, me and other people had to PR every single thing that needed to change
<Lisanna>
I could hack it together by touching $out/nix-support/failed, but if the output is not a directory then I'm screwed
CrazedProgrammer has quit [Read error: Connection reset by peer]
<infinisil>
samueldr: What do you mean by self-document?
knupfer has quit [Ping timeout: 276 seconds]
* samueldr
may have misunderstood a bit
roconnor has joined #nixos
<Lisanna>
hack it together by mutating src to src-tested, then conditionally touching $out/nix-support/failed
<infinisil>
samueldr: The options you can set in there need to be looked up in the manual for the package
<Lisanna>
s/mutating/copying
wucke13 has quit [Client Quit]
wucke13 has joined #nixos
iyzsong has quit [Read error: Connection reset by peer]
roconnor has quit [Client Quit]
<infinisil>
samueldr: So the module also has the added benefit of being timeless, whatever new options get added to the package are automatically usable in your nixos config. Also, different version of packages are no problem
<samueldr>
though, self-documentation: it could be possible to implement something that isn't used in the module for making the options, but only for listing available options
<infinisil>
tenten8401: Not a json generator (there's builtins.toJSON for that), but probably some json type should be added, so that the value can be checked (probably a bit too hard for a beginner tbh)
<samueldr>
so it doesn't affect eval performances for modules, but allows manual and options.html to at least document common needed options
<infinisil>
samueldr: Hmm I see, how about a manual scraper from the package derivation :P
<infinisil>
The package definitions with the package module?
matthewbauer has quit [Read error: Connection reset by peer]
<Lisanna>
ugh... hydra is ignoring my build products for all of my successful builds
<infinisil>
(Am a bit confused)
leat has quit [Remote host closed the connection]
leat has joined #nixos
endformationage has joined #nixos
<samueldr>
ha, I was thinking out loud, but if configurations are moved inside package definitions, nixos could realistically be a bunch of packages, so to "enable" nixos it could also be implemented as an overlay on top of nixpkgs?
<infinisil>
:O
* infinisil
takes some time to digest that
matthewbauer has joined #nixos
<samueldr>
I don't know if I went all hollywood gooble-dee-gook or if what I said all made sense
<infinisil>
> pkgs.nixos
<{^_^}>
<LAMBDA>
<infinisil>
I mean there's already this function to build a nixos system ^^
<infinisil>
That would be cool, all of NixOS being just a bunch of modules in packages
jirido[m] has joined #nixos
dbmikus has joined #nixos
<infinisil>
This might even work
ryanartecona has quit [Quit: ryanartecona]
<infinisil>
tenten8401: Oh also: Feel free to ping me when you open a PR for the module system, will gladly help you improve it
wucke13 has quit [Quit: WeeChat 2.0]
wucke13 has joined #nixos
wucke13 has quit [Client Quit]
ixxie has joined #nixos
Judson has joined #nixos
leat has quit [Remote host closed the connection]
Judson is now known as Guest19148
leat has joined #nixos
<tenten8401>
infinisil: the module I'm making?
<tenten8401>
will do
<infinisil>
:)
<tilpner>
samueldr - We were trying to use modules from https://github.com/nix-community/NUR yesterday. It is currently not possible to use pkgs.* in imports because pkgs is defined in a module
tbone has quit [Ping timeout: 260 seconds]
<samueldr>
tilpner: what was proposed would obviously mean a full overhaul, so also finding a solution that made 1) external modules easier to use 2) that issue a non-issue
tbone has joined #nixos
<samueldr>
but I hadn't thought how if nixos is also an overlay of packages with modules, it would make external modules easier (probably) to work with
griff_ has joined #nixos
<infinisil>
tilpner: Oh I have an idea
<tilpner>
samueldr - I would be interested in discussing about whatever may come out of that idea. There is need for a Nix2 nix-channel replacement, and this would go together well with general sources management
orzo_ is now known as orzo
<infinisil>
Let the top-level nur definition be like { packages = pkgs: { ... }; modules = { foo = ...; }; }
<samueldr>
I didn't think a half-thought table-corner napkin idea would attract thise much attention :o
<infinisil>
Then modules doesn't depend on pkgs
<infinisil>
Which is how it should be, because they really don't depend on them
<ryantm>
Can people review and merge my change to fetchFromGitHub? https://github.com/NixOS/nixpkgs/pull/42771 I would like to work on getting changelogs into nixpkgs-update/r-ryantm this U.S. holiday break
<infinisil>
Or even better: top-level definition should be an attrset of values that can either take a pkgs argument or not
<tilpner>
infinisil - https://tx0.co/1l inf-recs too, it's not really about removing pkgs
<tilpner>
Every usage of nur would have to redefine it, or reimport it
<gchristensen>
tnks: what is your input, and what is your desired output?
<infinisil>
tnks: Like that ^^
<tnks>
wait a second... why is that working in my repl, but not here?
<cell>
It was "outdated" apparently; does anyone know what its replacement is?
<infinisil>
tnks: Restricted eval, so you can't access any paths (except /var/lib/nixbot/state/nixpkgs)
<tnks>
oh, got it.
<infinisil>
I should probably point nixbot to have its cwd at that path instead of the root /
<tnks>
well, on my REPL, that gives me "true", which suggests that there's a way to convert a path to a respective destination in /nix/store.
<infinisil>
tnks: Does the "${./.}" not do what you want?
<tnks>
infinisil: oh, you're right.
<gchristensen>
yay nix!
<tnks>
I think I've taken all these path -> string conversions for granted, but now I want to understand the levers the wizard behind the curtain is pulling.
leat has quit [Remote host closed the connection]
jperras has joined #nixos
leat has joined #nixos
<gchristensen>
Nix will always put referenced files in to the store, unless you use tricks to tell it not to
erasmas has quit [Quit: leaving]
<infinisil>
> ./.
<{^_^}>
/var/lib/nixbot/state/nixpkgs
<gchristensen>
* however, nix-repl exposes a weird behavior by default
l5 has joined #nixos
<tnks>
gchristensen: what's that weird behavior?
l5 has left #nixos [#nixos]
<tnks>
I hate to convince myself of falsehoods by playing around in the REPL.
<tnks>
also, I'm on the new "nix repl" with 2.0.
<infinisil>
tnks: I should package this nixbot in here into a usable CLI. The way it works is much nicer than nix repl imo
<{^_^}>
[nixpkgs] @Ma27 opened pull request #42929 → gradle-completion: init at 1.3.1 → https://git.io/f5vlB
<gchristensen>
tnks: nix's repl is exposing ./. in a way which is impossible to use in Nix without it first being converted in to a nix store path, or a trick to keep it as the string-path
<gchristensen>
tnks: in other words, if you actually use `./.` anywhere in Nix, it'll be moved in to the nix store first.
<tnks>
gchristensen: what's the trick not to put it in the store?
<gchristensen>
toString ./.
<tnks>
got it.
sir_guy_carleton has quit [Quit: WeeChat 2.0]
<infinisil>
Also, import doesn't put it into the store
<gchristensen>
imo that isn't material to the issue
<gchristensen>
nix repl is making the syntax around ./. confusing
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
leat has quit [Remote host closed the connection]
leat has joined #nixos
<infinisil>
What do you people think of having colored output in builders?
<samueldr>
stdout normal stderr red?
<samueldr>
bad idea: some software don't use stderr for errors
<samueldr>
which may confuse the value of the messages
<infinisil>
Nah, I'm thinking about enabling colors for cmake builds
<infinisil>
The colors look nice, would it have something that wouldn't work with it?
_cyril_ has quit [Ping timeout: 264 seconds]
<samueldr>
upstream colors = positive as long as it won't cause issues elsewhere
<infinisil>
Maybe it'll mess up ofborg for example gchristensen
<infinisil>
The colors would have to be enabled unconditionally, since the build can't detect where its logs will land (tty or something else)
<gchristensen>
should be fine
<samueldr>
for the log viewer, what would happen is that the escape codes would be in the output (I think) though IIRC there are libs which could handle those... though this may not work as expected with the way it's built
mariatsji has quit [Remote host closed the connection]
<gchristensen>
basically have to treat build output as maliciously arbitrary P
<gchristensen>
:P
<samueldr>
but stripping them isn't an issue, using them would be (just a bit)
<infinisil>
Alright I'll open a PR then :D
mariatsji has joined #nixos
<infinisil>
It will be easy to spot errors in a cmake build then
_cyril_ has joined #nixos
<samueldr>
(for those following at home, the logs are line-oriented, one DOM element per line, for different reasons...)
<gchristensen>
might could add color support to the viewer
<samueldr>
^ gchristensen: what I was talking about
<gchristensen>
yea
WizBright has quit [Ping timeout: 260 seconds]
fragamus has joined #nixos
<gchristensen>
ofborg might strip the codes out
mariatsji has quit [Ping timeout: 268 seconds]
leat has quit [Remote host closed the connection]
leat has joined #nixos
<infinisil>
There's also CLI's to strip colors
<infinisil>
I think I recently saw a small command that could do it without any extra dependencies
<acowley>
When I call "cabal2nix cabal://lens-4.17" I get "cabal2nix: NoHackageTarballFound". I thought I'd used cabal2nix like this in the past to download cabal files automatically, but perhaps I'm misremembering. Is there any easy way to do so now?
tmaekawa has joined #nixos
tmaekawa has quit [Client Quit]
<acowley>
Passing an https URL throws a variety of errors, too
<infinisil>
gchristensen: Heh, aws-sdk-cpp is probably gonna time out, it's one of the larger builds
<infinisil>
I should change the base branch to staging
fragamus has joined #nixos
wucke13 has joined #nixos
griff_ has quit [Quit: griff_]
cryptocat1094 has joined #nixos
lhart has joined #nixos
leat has quit [Remote host closed the connection]
leat has joined #nixos
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xy2_ has quit [Ping timeout: 248 seconds]
xy2_ has joined #nixos
alasi has joined #nixos
Neo-- has joined #nixos
<infinisil>
gchristensen: I'm conflicted: Using `export CLICOLOR_FORCE=1` in cmake's setup-hook.sh directly (it gets executed when sourced) makes the cmake build itself colored (because only the bootstrap phase is uncolored)
<infinisil>
It doesn't look nice in the setup-hook.sh, but the output looks much nicer
<robstr>
Is the documentation correct on nix installation ? first time installing it on mac and it directly creates the multi user version
phdoerfler has quit [Quit: Leaving.]
<samueldr>
robstr: just to be sure, which doc are you referring to?
<endformationage>
Is there a way to know if a config option is at its default or not? I only want to create a dir if a config option's path is its default.
leat has quit [Remote host closed the connection]
<infinisil>
endformationage: Yeah
<LnL>
wait, --daemon is already in the live installer?
<wucke13>
Now it complains that there already is an installation of nix. Even so running the given rm ... command does not change that it is complaining about nix being installed already
<gchristensen>
maybe close your shell and open a new one
<{^_^}>
[nixpkgs] @mmlb opened pull request #42939 → grpcio-tools: init at 1.13.0 → https://git.io/f5y42
<gchristensen>
if that doesn't work, please paste the full output
<samueldr>
unless there's a way for RPM-based (like your centos) to do like on deb-based with checkinstall, where you would re-install from source, but using checkinstall, to track all files, force install then uninstall
<wucke13>
I will try it manually. I will post results in a fet minutes ;)
<wucke13>
It worked! Thank you a lot guys!
<wucke13>
Is there any way to quickly check that it is a fully functional multiuser install?
<infinisil>
ryantm: I just got commit rights yesterday, I'll merge it in a day or so :D
leat has quit [Remote host closed the connection]
<endformationage>
infinisil: OK, I reference my module options via a top level options arg, and would like to use attrByPath, but my option is within a submodule. How does that work? Do I just use `attrByPath ["<name>" mySubmodulePathOption] "" opts`?
leat has joined #nixos
<ryantm>
infinisil: grats
<endformationage>
infinisil: OK, I reference my module options via a top level options arg, and would like to use attrByPath, but my option is within a submodule. How does that work? Do I just use `attrByPath ["<name>" mySubmodulePathOption] "" opts`?
<endformationage>
infinisil: OK, I reference my module options via a top level options arg, and would like to use attrByPath, but my option is within a submodule. How does that work? Do I just use `attrByPath ["<name>" mySubmodulePathOption] "" opts`?
<endformationage>
infinisil: OK, I reference my module options via a top level options arg, and would like to use attrByPath, but my option is within a submodule.
<fragamus>
given a package that is installed and supplies libraries, what is the correct expression to get the path to those installed libraries so that I can link to them?
<{^_^}>
[nix] @dtzWill opened pull request #2268 → tests/search.sh: minor fix to unbreak tests after search ux merge → https://git.io/fdeNf
<infinisil>
> lib.makeLibraryPath [ libalsa ]
<{^_^}>
undefined variable 'libalsa' at (string):152:23
<Baughn>
Repairing them doesn't do it. Restarting bluetooth.service doesn't do it. Rebuilding nixos with a new /etc/bluetooth/audio.conf that explicitly disables HSP seems to do it, but it breaks on reboot, and *removing* that file also seemed to do it.
<slabity[m]>
Is there a recommended way to integrate home-manager into NixOS's configuration? Or is it recommended to keep it separate from the system configuration?
<elvishjerricco>
How should I debug low framerates in X? Considering it's pretty much every window that's slow, I'm tempted to say it's a driver issue, but I'm not sure how to verify that.
<joepie91>
Baughn: would recommend looking at system-wide journalctl around the time of bluetooth init to see whether it's conflicting with something
<{^_^}>
[nixpkgs] @dotlambda pushed commit from @r-ryantm to master « you-get: 0.4.1077 -> 0.4.1099 (#42942) »: https://git.io/fdCB2
<infinisil>
elvishjerricco: s/roughly/exactly regarding the HM thing
<infinisil>
Unless I'm missing something
<joepie91>
I've had some similar issues with an overexcited mtp daemon and a usb-to-serial
<Baughn>
joepie91: I mean, it does connect to the headset... it just does so in HFP mode, and refuses to switch to A2DP.
<Baughn>
But I'll try that.
<joepie91>
where the mtpd was wrecking my serial connection :)
<joepie91>
Baughn: also, I assume this is 18.03 and not unstable?
<elvishjerricco>
infinisil: I wasn't sure if `home-manager.<user>` could be a module function like it's supposed to be in your home-manager config
<slabity[m]>
That file in the repo seems to be exactly what I'm looking for. But is it available somewhere in nixpkgs? I'd prefer not to have to clone and keep it updated manually
<infinisil>
elvishjerricco: Can indeed, it's a full fledged home manager submodule integrated
<Baughn>
joepie91: This is unstable. I had the same problem on 18.03.
<joepie91>
Baughn: hm. fwiw, I'd recommend pinning bluetooth to stable
<elvishjerricco>
slabity[m]: You probably can not do `imports = ["${pkgs.homemanager}/nixos/default.nix"];`, because imports can modify `pkgs`, so the module system considers that a pradox
<joepie91>
bluez is notoriously buggy
crmlt has quit [Ping timeout: 245 seconds]
<joepie91>
and introduces lots of new bugs all the time
<elvishjerricco>
s/pradox/paradox
graphene has quit [Remote host closed the connection]
<Baughn>
It doesn't work in stable, though. :P
<{^_^}>
[nixpkgs] @roberth pushed 14 commits to haskell-outputs-bin-etc-lib: https://git.io/fdCRe
<joepie91>
Baughn: right, just as a general tip :)
<joepie91>
anyway, seems it may be breaking on PA's end?
<Baughn>
I've got errors on PA's end too, yup.
leat has quit [Remote host closed the connection]
<elvishjerricco>
slabity[m]: You'll either need the source checked out on your machine, or you'll need to use `builtins.fetchTarball` / `builtins.fetchGit` to get the source at eval time
<joepie91>
as the cause of the sink deregistration I mean
<Baughn>
Trying to ask about it just led to the bluez and pulseaudio developers pointing fingers at each other.
<joepie91>
sec
<mpickering>
Are recursive attribute sets an anti-pattern?
<joepie91>
naturally
<elvishjerricco>
mpickering: IMO, yes
<slabity[m]>
Hmm... I might try it anyways
leat has joined #nixos
graphene has joined #nixos
<mpickering>
I don't see why you would use one rather than use makeExtensible
<Baughn>
It's very troublesome. I might have to switch back to windows. :/
<elvishjerricco>
Sometimes its handy when you're just making a data structure. But anything you mean to later extend is a bad fit
<infinisil>
mpickering: It's really useful sometimes
<joepie91>
Baughn: have you set pulseaudioFull as your pulseaudio package?
Ariakenom has quit [Quit: Leaving]
<Baughn>
Yes.
<joepie91>
hm.
<Baughn>
With an bluetoothSupport=true override.
<elvishjerricco>
mpickering: makeExtensible isn't such a great pattern either, though, IMO. It's basically mutable OOP in Nix
<joepie91>
ah, I don't have that override
<joepie91>
works for me though
<mpickering>
Isn't that the point of nix?
<elvishjerricco>
hm?
<joepie91>
Baughn: how have you tried to set it to A2DP? pavucontrol?
<infinisil>
mpickering: I'm often using it when I experiment with something, I just write a default.nix with `rec { foo = 10; bar = foo + 20; }`, I don't have to worry about structuring it nicely like this and can easily eval any variable
<Baughn>
And pactl, and a2dp.py.
<joepie91>
Baughn: what happens if you do it in pavucontrol?
<Baughn>
The UI gives the appearance of switching, but nothing happens.
<joepie91>
Baughn: go through this a few times: open pavucontrol, select A2DP, close pavucontrol
<joepie91>
until it sticks
<joepie91>
I had some issues with this as well
<mpickering>
infinisil, how about if the language construct was `rec self: { foo = 10; bar = self.foo + 20; }`
<Baughn>
I'll try it next time it breaks. Right now I don't want to break my system.
<joepie91>
Baughn: (that's not a NixOS-specific issue btw)
<joepie91>
once it sticks it sticks permanently
<mpickering>
elvishjerricco: Overriding is a key concept of nix yes?
<Baughn>
joepie91: Well, no, it breaks if I reboot.
<gchristensen>
not nix-the-lang
<Baughn>
Which I do a lot.
<mpickering>
But the way you have to achieve it is so low level using fix points
<gchristensen>
but could be
<elvishjerricco>
mpickering: Yea, but I think the implementation should be very different
<mpickering>
gchristensen: That's my point. The language should make it easier to express the key concepts.
<mpickering>
To make a Haskell analogy, it's quite like having to directly write core all the time
<elvishjerricco>
Rather than these dynamically typed attr sets with functions that alter the sets but have to remember to reinstall themselves and any other such functions, we should just have good data structures and `fix` them manually in the right places
<mpickering>
It's very very expressive, too expressive perhaps but doesn't make it easy to do the right thing
<mpickering>
what do you mean by "good data structures"?
<joepie91>
Baughn: might be a different issue. would recommend pushing bluez/pulseaudio devs a bit more until one of them gives you a way to get a definitive answer to "whose fault is this" :)
<Baughn>
It needs a type system. And better error messages.
<joepie91>
though I am not at all surprised that you're getting ping-ponged back-and-forth, from what I know about the two projecfts
<joepie91>
projects*
<elvishjerricco>
mpickering: `nixpkgs`'s `overlays` concept is better than `haskellPackages.extend`, for instance, because it's not mutating a data structure.
<Baughn>
I'm half tempted to switch to Android. :P
<{^_^}>
[nix] @samueldr opened pull request #2269 → Manual: Updates install notes for one-liner → https://git.io/fdlUr
<mpickering>
.extend isn't mutating anything either
<infinisil>
mpickering: elvishjerricco: Would you two mind a separate Nix channel for Nix-the-language discussions? It's sometimes getting quiet crowded in here (as seen right now). #nix-lang would be it
<Baughn>
In principle it should be possible to port the Android bluetooth stack to Linux, right?
<Baughn>
...maybe.
<elvishjerricco>
#nixos-chat?
<joepie91>
Baughn: you say that, but my android phone also had issues with A2DP...
<infinisil>
That's for actually offtopic things
<elvishjerricco>
Oh didn't notice you recommended nix-lang
lhart has joined #nixos
<mpickering>
We are on topic though heh
<mpickering>
I would make this post on discourse but my posts don't seem to lead to any meaningful discussion
fragamus has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<samueldr>
infinisil: it's the JDK brought in by dependencies which is unfree
<elvishjerricco>
Does NixOS not have glxgears?
<worldofpeace_>
infinisil: And I think pixmaps is just for application specific icons (like a plain old svg)
<worldofpeace_>
elvishjerricco: It does
<worldofpeace_>
elvishjerricco: glxinfo has it
<elvishjerricco>
Ah, thanks
matthewbauer has quit [Read error: Connection reset by peer]
hamishmack has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elvishjerricco>
Strange. glxgears is reporting 60fps, but when it's running it slows all my windows to like 2 fps
matthewbauer has joined #nixos
<elvishjerricco>
I am using compton. Would that be able to screw with it?
leat has quit [Remote host closed the connection]
leat has joined #nixos
<infinisil>
worldofpeace_: Me not using any kind of icons in pretty much all programs contributes to me not knowing about it :)
<worldofpeace_>
infinisil: cli for life! :)
<infinisil>
worldofpeace_: Have you tested this multimc package?
<worldofpeace_>
elvishjerricco: glxgears like always says 60fps
<elvishjerricco>
worldofpeace_: Why would it's report be different than reality?
<worldofpeace_>
infinisil: other people have tested and merged the changes that are picked. I omitted a commit that fixed a build for qt5.11 because that's not in 18.03.
<worldofpeace_>
infinisil: So not really
<infinisil>
At least it was tested by somebody, good enough
<worldofpeace_>
^
philipwhite has joined #nixos
<philipwhite>
Hey, I'm having some trouble using X11 libraries with Rust. "opening library failed(libX11.so.6...". Anybody know a work around?
rardiol1 has quit [Read error: Connection reset by peer]
<philipwhite>
My shell.nix has buildInputs = [ x11 xorg.libX11 ]
<{^_^}>
[nixpkgs] @Infinisil pushed 3 commits to release-18.03: https://git.io/fFY8C
leat has quit [Remote host closed the connection]
leat has joined #nixos
chreekat has quit [Ping timeout: 256 seconds]
justanotheruser has joined #nixos
<elvishjerricco>
Weird. If I hide all other windows, glxgears starts looking a lot better. Still definitely not 60fps though, despite its report on the command line that it is.
jluttine has quit [Ping timeout: 260 seconds]
freeman42x[nix] has joined #nixos
chreekat has joined #nixos
jluttine has joined #nixos
<worldofpeace_>
elvishjerricco: you're having graphics performance issues and you're using glxgears to debug?
<elvishjerricco>
worldofpeace_: I don't know how to handle graphics issues :P
<elvishjerricco>
Even scrolling in firefox has horrendously low FPS
tzemanovic has quit [Remote host closed the connection]
matthewbauer has quit [Read error: Connection reset by peer]
<elvishjerricco>
Pretty much the only thing actually operating at 60fps is the cursor, and even that I'm not totally sure about
matthewbauer has joined #nixos
leotaku_ has quit [Ping timeout: 256 seconds]
<infinisil>
gchristensen: How many users do I need to get into #nix-lang for it to be recognized as "official"? :P
<worldofpeace_>
:P Graphics issues are my least favorite of all issues. But glxgears won't get you further than 'OpenGl is like slow`
tzemanovic has joined #nixos
<elvishjerricco>
Yea. No clue how to get further than that though
leat has quit [Remote host closed the connection]
leat has joined #nixos
<gchristensen>
infinisil: I dunno, but you have a good start there :) its under the Nix group reg now, so go forth and grow
<worldofpeace_>
elvishjerricco: You said something about compton?
<elvishjerricco>
worldofpeace_: Yea I've got compton enabled, with a little bit of fanciness
<infinisil>
gchristensen: Awesome thanks, could you maybe also add {^_^} to that channel? The nix eval would certainly be appreciated there
<gchristensen>
oh sure
<samueldr>
infinisil: adding it to the log
<gchristensen>
hmm can I add afeature to {^_^} before you get frustrated about me not doing it yet ...
<infinisil>
samueldr: Awesome!
<samueldr>
(and as always, any nix-related channel that wants to be in the log, feel free to ask)
<infinisil>
gchristensen: Sure, I mean it's still your backend ;)
{`-`} has joined #nixos
<worldofpeace_>
elvishjerricco: your graphics card? Compton hasn't seen a code change since like 2016 though...