cnidario has quit [Read error: Connection reset by peer]
shabius has joined #nixos
jperras has quit [Ping timeout: 246 seconds]
shabius has quit [Client Quit]
shabius has joined #nixos
kim0 has quit [Quit: Connection closed for inactivity]
<buckley310>
I have found that since 18.09, GVFS no longer mounts file shares under /run/user/1000/gvfs/ like it's supposed to. however if i run "systemctl --user stop gvfs-daemon.service", then it starts working until i reboot again.
thc202 has quit [Ping timeout: 252 seconds]
alex`` has quit [Quit: WeeChat 2.2]
<{^_^}>
[nixpkgs] @peti pushed to haskell-updates « hackage-packages.nix: automatic Haskell package set update »: https://git.io/fxBa5
<acowley>
What does "error: path '/nix/store/.....' is not valid" imply?
<samueldr>
the error is thrown from a condition looking like "!store->isValidPath"
<samueldr>
hmm doesn't look bad
<acowley>
It takes about 5 hours to get to that stage of the build so just a teensy bit painful to debug
<samueldr>
oh, a couple more hits in the nix source
* samueldr
looks more closely
jperras has quit [Ping timeout: 252 seconds]
<samueldr>
hmm, it's getting out of my league quickly while looking at the nix source code for this
<samueldr>
src/libstore/store-api.cc is probably where the error originates from, but a couple of strings would end up as that specific error
astronavt has joined #nixos
<acowley>
Yeah, the nix code isn't shedding much light on this for me
jperras has joined #nixos
sgillespie has joined #nixos
<sgillespie>
Howdy, I'm trying to debug why I node version manager (nvm) doesn't work for me
<sgillespie>
I've nailed it down to a missing library: libstdc++.so.6 => not found
<clever>
sgillespie: if it downloads pre-compiled anything, it will fail
<sgillespie>
That's what it does...
<Ralith>
last time I saw that error it meant a remote binary cache couldn't find the path
<clever>
sgillespie: all binaries must be patchelf'd before they can work on nixos, and its recomended to just let nix-build download and compile/patch them
lorilan has joined #nixos
astronavt has quit [Ping timeout: 252 seconds]
<sgillespie>
Well that certainly makes sense
jperras has quit [Ping timeout: 268 seconds]
<sgillespie>
Where can I learn about patchelf'ing
<clever>
sgillespie: its all in the nixpkgs manual
lorilan has quit [Remote host closed the connection]
jperras has joined #nixos
<sgillespie>
Thanks, looks like I've got some reading to do
<colemickens>
It appears it's switching URLs from HTTPS to HTTP. Which I don't imagine should be happening.
luigy has left #nixos [#nixos]
17WAAVVDM has joined #nixos
07IAAK10I has joined #nixos
silver_ has quit [Read error: Connection reset by peer]
ryantrinkle has joined #nixos
ryantrinkle has quit [Ping timeout: 244 seconds]
aminb is now known as bandali
orivej has quit [Ping timeout: 244 seconds]
<acowley>
It used to be that on NixOS when I typed a command name that wasn't on PATH, I'd get a suggestion for what package I needed. I no longer see those, and I'm not sure what I did to break it. Any ideas?
<acowley>
Oh, it might be something to do with nix-channel
<acowley>
I think I tried to delete everything to do with that some time back as it was becoming such a regular source of problems
* samueldr
deletes question
<samueldr>
the command-not-found implementation IIRC only works if you're using channels
<acowley>
I do have a NIX_PATH with a nixpkgs definition
<acowley>
Well I'm glad to finally know of a reason I would want channels
<acowley>
I wish I understood them better. It seems like quite a bit of overlap between NIX_PATH, ~/.nix-defexpr, and nix-channel.
* samueldr
looks deep in the stack of unfinished things
<samueldr>
I tried making a command-not-found based on nix-index
<samueldr>
but it uh... segfaulted bash
Lisanna has quit [Ping timeout: 268 seconds]
<acowley>
Can I add a nix-channel that won't come back to constantly haunt me? Can't it just point to the existing git checkout I use?
<acowley>
Like you can ln -s your git checkout to ~/.nix-defexpr
<samueldr>
I don't really know
<acowley>
I want everything to equal everything else
<samueldr>
because even then, the command-not-found AFAIUI needs to be in the system's nixpkgs since it's built with nixos
<acowley>
I'm surprised nobody's taken a machete to these overlapping mechanisms given how accepting nixpkgs is of drastic surgery in general
<acowley>
I guess I should set up a channel again, then. It's a very useful feature.
<samueldr>
I'm thinking most end up comfortably nested on one side or the other of the tooling, without thinking back (at least I did)
<acowley>
My trouble is that I find having a git checkout makes submitting PRs much easier
<acowley>
So it has to be a sudo nix-channel --add
<acowley>
I really don't understand how nix breaks things down between users
<acowley>
Why would this feature need a channel rather than looking at NIX_PATH? Why would it only look at root's channels and not the user's?
<acowley>
I guess channels provide an extra "channel" of information for the database of commands
<samueldr>
only issue you have to be aware is that it's not part of selectable and copiable text in the flow (at least not guaranteed to be)
<gchristensen>
right... hrm
<samueldr>
oh, it's not necessarily an issue though
o1lo01ol1o has joined #nixos
<o1lo01ol1o>
When does hydra master get merged into nixpkgs? is there a schedule or is it ad hoc?
<gchristensen>
samueldr: notably, links doesn't display the =>
<samueldr>
well... that's another issue altogether :)
<gchristensen>
maybe there is another way.
<samueldr>
maybe something an XSL sheet could do?
<gchristensen>
definitely is something it could do
<samueldr>
insert the additional "decorative" elements before docbook processes the document, so it's not part of the source, but still present for those formats requiring it
<gchristensen>
ok bed time, this has been a fun and _quick_ hack
<gchristensen>
thank you samueldr!
<samueldr>
no, thank you for the good doc work :)
<aleph->
samueldr: Yeah so just waiting for somebody with my laptop to paste me what they have loaded kernel wise.
<samueldr>
well, maven isn't the worse, it's the projects using the eclipse SDK which have a component that's managed outside of maven... but let's not talk about that :)
<samueldr>
this is not just "plain C"
<samueldr>
these are kernel modules :/
<aleph->
Okay, not "plain."
<samueldr>
most common distros have what's called "dkms"
<samueldr>
which is a way to distribute and consume kernel modules from outside the source tree
<aleph->
Ahhhh
<samueldr>
we don't have dkms on nixos...
<samueldr>
dkms isn't really pure (as in FP pure)
<aleph->
Aye
<samueldr>
I think another user found a good way to compile modules out of the kernel tree some days ago
<aleph->
Ah cool.
<samueldr>
hmmm, can't seem to find a good reference to find in the logs
<samueldr>
I obviously can't *test* it, but it built fine
<aleph->
Yeah, let me try it
<worldofpeace>
samueldr persistent secret agenda in there :P
<samueldr>
(and now I think I know how to handle a dkms module if I need to!)
<Drakonis>
adding a dkms framework would probably be nice
<samueldr>
I decidedly can't maintain something I can't use
<samueldr>
Drakonis: dkms itself is a no-go because dkms aims to install things itself
<Drakonis>
would there be a better solution to that?
<samueldr>
though it may be interesting if possible to wrap some of it so instead of stdenv.mkDerivation you would mkDKMS or something
<Drakonis>
probably
<samueldr>
but as the derivation shows, I'm not sure it's warranted
<Drakonis>
it'd be sufficiently sane if you could just point to the source and it would build the module for you
<aleph->
samueldr: ./system76 didn't work.
<aleph->
Woops
<samueldr>
woops? :)
<aleph->
Nevermind, removed the .nix
<Drakonis>
i actually wish it was nyxos
<samueldr>
yeah, both those files in a subdirectory
<Drakonis>
and nyx
<aleph->
Worked fine
<samueldr>
the real test will be on rebuild, aleph-
<aleph->
I did a rebuild
<aleph->
I always do -rebuild
<samueldr>
on a reboot*
<aleph->
Ah
<aleph->
Let's try it!
<aleph->
BrB
aleph- has quit [Quit: WeeChat 2.2]
aleph- has joined #nixos
<samueldr>
and followed by homework: on 4.19 release, update this so it works with it; and following by keeping tabs on that system76-dkms repo for updates... :)
<samueldr>
(waited until you came back)
<aleph->
samueldr: Worked like a dream
<samueldr>
awesome!
<aleph->
Thnaks
<aleph->
Thanks.*
<samueldr>
this should ease you in until you grok this all
<worldofpeace>
samueldr++
<{^_^}>
samueldr's karma got increased to 34
<samueldr>
it sucks when the hardware isn't working right
<aleph->
Wonder if I can have it do it on auto?
<aleph->
Hmm
<Drakonis>
4.19 is out?
<Drakonis>
if it isn't, it should be out this weekend
<Drakonis>
where's the lobsters ruby package
<aleph->
Ugh don't remind me
<aleph->
Need to try making that
<Drakonis>
i'll take this opportunity to pimp lobsters
<Drakonis>
pls join
<Drakonis>
its good.
pie__ has joined #nixos
<aleph->
samueldr: The resul folder it generates, do I need to keep that?
<Drakonis>
you're doing a build?
<aleph->
Drakonis: Well the nix files he gave me builds the module
<aleph->
Not a big deal, not like I need to commit it to github
mayhewluke has quit [Ping timeout: 252 seconds]
mayhewluke has joined #nixos
<colemickens>
../include/modules/battery.hpp:3:10: fatal error: filesystem: No such file or directory
<colemickens>
#include <filesystem>
<colemickens>
^~~~~~~~~~~~
<colemickens>
I don't know enough about C++ these days to know what to try to do to fix my derivation
<Drakonis>
its probably filesystem.h?
<Drakonis>
you didn't import the header correctly?
<Drakonis>
alternatively, you should pick up a little bit of c++ to do this properly
<Ralith>
colemickens: you need to use a C++17 standard library, and possibly put the compiler in C++17 mode
<colemickens>
Uhm okay.
<colemickens>
lol
Ralith_ has joined #nixos
<colemickens>
I just want to package something that builds fine wiht Meson on a normal OS.
<samueldr>
aleph-: a nixos-rebuild switch will not create a result link, and if you have one, it is not required
<aleph->
Queston how is sec on nix? Are there signatures for the cached binaries?
<samueldr>
yes there is
<aleph->
samueldr: Huh, nixos-rebuild switch created a result folder
<samueldr>
only build and build-vm from nixos-rebuild will leave result symlinks :/
<samueldr>
to what does it point to?
<aleph->
Odd
<Ralith>
colemickens: the OS isn't really relevant
<colemickens>
Ralith: sure but I'm guessing there's a simple flag that I need to add to the derivation...
<colemickens>
I am guessing I'm not the first person to try to build a C++ project that needs a certain flag to the generic build infra to get g++ to od the right thing.
aleph- has quit [Ping timeout: 246 seconds]
endformationage has quit [Quit: WeeChat 1.9.1]
<Ralith>
colemickens: generally that's the responsibility of the project's own build system
<Ralith>
colemickens: they might be relying on a newer version of gcc, which you can provide by customizing the provided stdenv with overrideCC
<Ralith>
compiling with clang/libc++ is possible too but a bit of a pain since it changes the ABI so you need to get every transitive dependency as well
<colemickens>
okay, that helps too. I was also just reading about libc++ too, but I also don't think that it sounds the best path.
<colemickens>
I have new things to try :)
FireFly has joined #nixos
<Ralith>
gcc is sometimes slow to support new C++ features, and distros are usually slow to update gcc due to the massive impact
<colemickens>
What I'm reading hints that in gcc7, it needed to be <experimental/filesystem> but that it has stabilized in gcc8. Trying to confirm which is the default in NixOS right now, etc.
<Ralith>
18.09 is on gcc7
<Ralith>
might be easiest just to patch the `#include`
<colemickens>
Yeah, just found `gcc = gcc7`. Cool. I think you're probably right again.
<Ralith>
you might find other, more significant issues, but it's worth a try
o1lo01ol1o has quit [Remote host closed the connection]
pie__ has quit [Remote host closed the connection]
jasongrossman has joined #nixos
IRCsum has quit [Read error: Connection timed out]
<{^_^}>
[nixpkgs] @FRidh pushed commit from @veprbl to master « arrow-cpp: 0.10.0 -> 0.11.0 (#48066) »: https://git.io/fxB1M
<{^_^}>
[nixpkgs] @FRidh merged pull request #48022 → pythonPackages.mypy_extensions: use typing from stdlib on >=3.5 → https://git.io/fxsFa
<{^_^}>
[nixpkgs] @FRidh pushed commit from @catern to master « pythonPackages.mypy_extensions: use typing from stdlib on >=3.5 »: https://git.io/fxB19
<schmittlauch[m]>
Hi, I still struggle to build a development environment for a nix-shell as a nix expression. I need opencv to be available for compiling and linking against, but it doesn't appear in the search path. Any ideas?
<symphorien>
can you paste you shell.nix and error ?
<srhb>
symphorien: haskell.lib.dontStrip?
<symphorien>
is it recursive ?
<srhb>
symphorien: There's also enableDWARFDebugging, depending on what you need.
<srhb>
symphorien: No, for that you probably want to override haskellPackages.callPackage
<symphorien>
I just need gdb to give me useful stacktraces
<schmittlauch[m]>
srhb: generally speaking: What needs to be done to have include paths and library search directories set accordingly in a nix-shell? Is putting the packages into buildInputs enough?
<srhb>
schmittlauch[m]: Generally yes. If you check `env`, you should see opencv in the relevant NIX_CFLAGS etc.
<schmittlauch[m]>
env?
<srhb>
A command to list your environment variables
<srhb>
env | grep opencv
<schmittlauch[m]>
Ah, that env
<schmittlauch[m]>
yes, indeed
<srhb>
schmittlauch[m]: Normally I tend to write the actual mkderivation first (such that I can nix-build the project) and then create a shell.nix that calls that.. Still investigating, not used to c++.. :)
<{^_^}>
[nixpkgs] @xeji pushed commit from @volth to staging « perlArchiveCpio -> perlPackages.ArchiveCpio »: https://git.io/fxBDz
<schmittlauch[m]>
What'd be the difference between the both expressions? The shell.nix just using pkgs.mkShell?
<schmittlauch[m]>
I'm starting a project from scratch, that's why I can't build anything yet
<srhb>
schmittlauch[m]: mkDerivation is fine, buildInputs = [(pkgs.callPackage ./default.nix)]
<srhb>
Where default.nix contains all the actual dependencies and looks like a regular package in the nixpkgs tree, eg { stdenv, opencv3, ... }: stdenv.mkDerivation ...
<schmittlauch[m]>
I'm using direnv by the way, that's why I don't have a dedicated shell.nix
jbgi has quit [Ping timeout: 250 seconds]
<symphorien>
schmittlauch[m]: my guess is that cc-wrapper only injects the required arguments when *using* gcc and not when you call it with --print-search-dirs
juhe has joined #nixos
elgoosy has quit [Remote host closed the connection]
elgoosy has joined #nixos
<schmittlauch[m]>
might be possible. Thx so far
<srhb>
Seems surprising..
<srhb>
Where do I find a hello world for opencv3 :P
<juhe>
Hello. If I "ping noob", it doesn't work, though "ping noob.lan" works fine. I use systemd.resolved and had also set systemd.resolved.domains to ["lan"] (even though I'd like to avoid this for notebooks for which I'd like to get the domains automatically from DHCP server). No luck with "ping noob" anyways... Any idea how to get that working?
<juhe>
DNS local name resolution is not working, because /etc/resolv.conf points to /etc/static/resolv.conf which is a link to /nix/store/<hash>-systemd-239/lib/systemd/resolv.conf. I'd expect to have some of the links to point to /run/systemd/resolve/resolv.conf. Is it possible to get the link to the proper file without doing it manually after each time I do "nixos-rebuild switch"?
<arianvp>
hmmph
<juhe>
Actually... it didn't work even when I do the link to the file in /run directory...
<arianvp>
so 'nix search' only seems to be listing things that are instlaled in my environment...
<arianvp>
I install things like `nix-env --set my-user-env` though instead of with nix-env -iA
<arianvp>
but why would that matter? :/
<arianvp>
shouldn't nix search just evaluate nixpkgs/all-packages.nix ?
<srhb>
arianvp: approximately, yes.
<srhb>
(It should list the top level attributes from importing nixpkgs, more or less)
<srhb>
That it indeed what nix search -u does for me.
<arianvp>
but it doesn't :/
<arianvp>
maybe I should strace?
<srhb>
arianvp: I would start with a clean environment first and try pointing it at a nixpkgs manually.
<srhb>
strace as a last resort :-P
<arianvp>
what is a 'clean environment'
<srhb>
arianvp: something like nix-shell --pure -p nix less
<arianvp>
can I just remove all `nix` related folders in my homedir?
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 3 commits to master: https://git.io/fxBSE
thc202 has joined #nixos
<arianvp>
I think it has to do with the fact that I `nix-env --set` my environment to a custom set of packages, that is not in the nixpkgs set that is in the NIX_PATH
gerschtli has quit [Quit: WeeChat 2.0]
<arianvp>
or something along those lines
gerschtli has joined #nixos
<arianvp>
but why the hell doesn't it work in a pure shell :/
kiloreux has joined #nixos
kiloreux_ has joined #nixos
xenog has joined #nixos
<srhb>
arianvp: I don't think nix search ought to care about your profile in any way
<srhb>
Just nixpkgs from NIX_PATH
<arianvp>
srhb: Aaaah. I had a `nixpkgs` overlay that discarded all non-GPL packages
<arianvp>
that explains, lol
<arianvp>
which I added for demonstration purposes months ago during a talk
<{^_^}>
[nixpkgs] @FRidh pushed to staging « python.buildEnv: new argument `makeWrapperArgs` »: https://git.io/fxB9T
huevo5050 has joined #nixos
<huevo5050>
hi, im in nixos 18.09 and nix-rebuild is failing because flash upstream has been retired. I see in github that a fix has been backported to 18.09 but neither nix-channel --update nor nix-rebuild boot --upgrade gets the new version
<huevo5050>
I've tried to clean old configs and generations but no success
<tazjin>
colemickens: you can just parameterise over it, the angle brackets just evaluate to a file paths, so your config can take that as an input argument
<tazjin>
*-s
<colemickens>
I guess I need something like nixpkgs = mypkgs somewhere, I'm just not sure where.
<colemickens>
I'll keep poking at it.
<tazjin>
can you gist/paste a short example of what you're trying to do?
<colemickens>
yeah, about to do that. (also, thank you!)
<{^_^}>
[nixpkgs] @yegortimoshenko pushed 2 commits to master: https://git.io/fxBFG
<Lisanna>
Hey, I want to use a machine as a remote builder that has inbound network access but no outbound network access. What options should I set in its nix.conf file to avoid it attempting to download stuff from the internet?
<Lisanna>
when it builds remotely it prints "building '/nix/store/blah' on '<remote builder>' and then prints the same thing immediately afterwards but without the "on '<remote builder>'"
<gchristensen>
oh weird
<Lisanna>
which made me think it was falling back to the local machine due to the inability to connect to a substituter
<Lisanna>
but it's just the weird way nix-build prints stuff
<Lisanna>
OK... now to figure out how to specify a remote builder in a build machines file that uses a non-standard port for SSH...
<Lisanna>
NIX_SSHOPTS is available for command-line initiated builds but don't know if there's an equivalent way to specify it for stuff like hydra
<Lisanna>
which can only read these definitions from a build machines file
<Lisanna>
...and, of course, I only want it to apply to some of the build machines
<srhb>
gchristensen: Can I see the epyc-1's hydra machine config somewhere?
<jbo>
Is there a way to reduce the parallelism of `nixos-rebuild`? I find that it saturates my disk i/o, which causes X to freeze for a bit whenever a big update is happening.
<infinisil>
jbo: --max-jobs n or --cores m
<infinisil>
max-jobs is how many nix-builds at a time, cores is how many cores for a single build
<jbo>
infinisil: hmm - I suspect that it's literally just package unpackings. I'll try nix-builds
<jbo>
aha! max-jobs=24 :-/
<jbo>
ooh - and nix.buildCores = 0 # max
<jbo>
yes, this probably does need some tuning
<jbo>
infinisil: thanks!
<infinisil>
:D
wpcarro has joined #nixos
<wpcarro>
I'm having wireless issues where I need to `reboot` everytime after my computer sleeps in order to restore the wireless connection. `systemctl restart wpa_supplicant.service` doesn't seem to do the trick. Any ideas for troubleshooting?
<wpcarro>
It's been going on for about a week and I think my patience has waned a bit
<orbekk>
jbo: nix.daemonIONiceLevel and nix.daemonNiceLevel are probable good to set too
<wpcarro>
wsj.com
<wpcarro>
sorry about sending this ^
<orbekk>
wpcarro: I don't know really but maybe some kind of driver issue with your chipset? sometimes there are flags you can pass to the driver, that's resolved some issues for me in the past
<samueldr>
wpcarro: that's a consistent failure after sleep?
<wpcarro>
samueldr: consistent
<samueldr>
(if so at least it's easier to repro and figure out things)
<wpcarro>
I reboot multiple times a day bc of it
<samueldr>
chipset + laptop model?
<wpcarro>
samueldr: does chipset mean my CPU model?
<samueldr>
wifi adapter
<wpcarro>
ok let me look that up. It's a Macbook Pro 15" unibody... will research
<samueldr>
ah, no need then
<samueldr>
not much variance in there
<samueldr>
and well documented
<samueldr>
do you know the model number, like macbookproX,Y ?
<samueldr>
what I'd do to try and figure out thing: before sleeping, clear the dmesg kernel buffer `dmesg -C`, suspend, resume, then dump the `dmesg` output at resume `dmesg > resume.txt` hopefully there's something in there
<wpcarro>
samueldr: tough to tell bc I used to rely on the "About this Mac..." menu. I can try and figure it out though
<{^_^}>
[nixpkgs] @NeQuissimus pushed 3 commits to release-18.03: https://git.io/fxRUh
<samueldr>
wpcarro: I'm specifically pointing out the "identifying your computer" bit
<wpcarro>
samueldr: MacBookPro11,5
jbo has quit [Ping timeout: 272 seconds]
<samueldr>
thanks
<{^_^}>
[nixpkgs] @NeQuissimus pushed 4 commits to release-18.09: https://git.io/fxRUj
<samueldr>
given such a model number, it's easy to know exactly the hardware you have
<wpcarro>
samueldr: I can see how that'd help. I'm googling it to learn more
<samueldr>
wpcarro: which kernel are you using? `uname -r`
<wpcarro>
samueldr: 4.14.71
<samueldr>
something dirt cheap to try: `boot.kernelPackages = pkgs.linuxPackages_4_18;` in your configuration
<wpcarro>
That's another part of what attracted me to NixOS, is that I hope to swap in different kernel versions easily
<wpcarro>
samueldr: does that change out the kernel?
<samueldr>
(then rebuild, reboot)
<samueldr>
yes!
<wpcarro>
omg that's so cool
<samueldr>
NixOS is conservative wrt the kernel
<wpcarro>
absolutely amazing
<samueldr>
it uses the last LTS by default
<samueldr>
but between 4.14 and 4.18 there's a bunch of changes!
mkoenig has quit [Quit: Lost terminal]
<wpcarro>
samueldr: okay I'll rebuild and see what happens
<wpcarro>
do I need unstable channel for that?
<samueldr>
shouldn't need to
<samueldr>
just a reasonably updated channel, either 18.03, 18.09 or unstable
<samueldr>
kernel updates always are backported AFAIK
<wpcarro>
I think I'm 18.03
<wpcarro>
channels are another weak area of my Nix knowledge
<gchristensen>
it would be good to update to 18.09 :)
<wpcarro>
well... most is weak, but I'm working on bolstering it all
<wpcarro>
gchristensen: I'd love to
<wpcarro>
when I run `nix-channel --list` I have `nixos-unstable` and `nixpkgs-unstable`
<samueldr>
the system builds with root's channels
<samueldr>
so you will need to `sudo nix-channel --list` to see the right one
<wpcarro>
samueldr: ah I was wondering how all of that was working. That makes sense. Let me see what that output is
<samueldr>
(or sudo -i to get an interactive shell as root)
<wpcarro>
yeah it's `nixos` 18.03
rardiol has quit [Remote host closed the connection]
<wpcarro>
should I `sudo nix-channel --add <url> nixos-18.09`?
<{^_^}>
[nixpkgs] @yegortimoshenko opened pull request #48325 → fetchurl: warn on rev archives, resolves #32999 → https://git.io/fxRTu
<samueldr>
you will need to rop the "18.09" in the last parameter
<samueldr>
it needs to be named "nixos"
<wpcarro>
and when I `rebuild switch` it'll switch everything to whatever is on the 18.09 channel?
<wpcarro>
if so, then I think that clears up a ton of my confusion
<samueldr>
not entirely certain if you need to --update the channel after adding
<wpcarro>
samueldr: is there any harm in doing that anyway?
<samueldr>
shouldn't be any harm
<samueldr>
if it updated already, it'll mostly be a no-op
<wpcarro>
this is awesome. Thanks so much gchristensen and samueldr for the insights
<samueldr>
the manpage for nix-channel seems to say that --update is required (their example for adding is followed by --update)
<wpcarro>
samueldr: okay I ran `sudo nix-channel --update` anyways... simple enough
<samueldr>
though
<samueldr>
prefer nixos-rebuild boot when changing channels
<samueldr>
switch might work fine, probably will, but just in case
<wpcarro>
samueldr: I think I need to `rebuild` anyways because of the Kernel update
<wpcarro>
about to do that, so I'll be hopping offline in a minute here
<wpcarro>
*fingers crossed*
<samueldr>
good luck :)
<wpcarro>
thanks again
<samueldr>
though pretty confident everything will be working as it should
Lisanna has quit [Ping timeout: 272 seconds]
<wpcarro>
samueldr: turns out that `linuxPackages_4_18` wasn't available on 18.03 but is on 18.09
<wpcarro>
thankfully I switched over before
<samueldr>
:/ right, last is 4.17, weird
revtintin has quit [Quit: WeeChat 2.1]
wpcarro has quit [Remote host closed the connection]
gammarray has joined #nixos
shabius has joined #nixos
shabius has quit [Max SendQ exceeded]
shabius has joined #nixos
wpcarro has joined #nixos
<wpcarro>
samueldr: looking like 4.18 isn't working for me
<wpcarro>
I can't get past Stage 2
<gammarray>
hi, i'm curious how to add a service to my configuration.nix that will only be started manually with systemctl... seems like it should be easy, but my searches aren't turning up any useful results.
<sphalerite>
gammarray: just define it without wantedBy = ["multi-user.target"]; and it won't be autostarted
<infinisil>
mokasin: Maybe try diffing the result with nix-diff
<symphorien>
You can point nixos-rebuild to a lightweight configuration (with -I nixos-config=foo.nix iirc)
<hyper_ch>
hmm, just run nixos-rebuild boot --upgrade and got this error: error: assertion failed at /nix/store/xlmja9agydii8nazmp5c9n40573kdpys-nixos-19.03pre155260.276b99a847e/nixos/pkgs/development/libraries/vulkan-loader/default.nix:4:1
<symphorien>
But you need a few boiler plate options like a boot loader
<{^_^}>
[nixpkgs] @c0bw3b closed pull request #45512 → bazel: move darwin ad hoc code to darwin patch → https://git.io/fALym
silver has joined #nixos
silver_hook has quit [Ping timeout: 252 seconds]
silver_hook has joined #nixos
<goibhniu>
I'm having trouble finding a GUI audio player that works apart from VLC ... clementine, elisa and amarok don't seem to be working (nixos-unstable) ... any recommendations? (I'd like something with mpris support)
<goibhniu>
(VLC stutters at the start of each track too)
<boomshroom>
I'm feeling like playing some Minecraft right now, but when I launched it, it doesn't produce any sound. I've tested with MultiMC and the official launcher.
<boomshroom>
The most helpful log line I can find is `AL lib: (EE) ALCplaybackOSS_open: Could not open /dev/dsp: No such file or directory`
<boomshroom>
It also doesn't seem to matter whether or not it's modded.
kini has quit [Quit: No Ping reply in 180 seconds.]
<clever>
boomshroom: is it visible in pavucontrol?
<boomshroom>
infinisil: That would fix sound in the official launcher, however I'm currently using MultiMC
devopsdeluxe has quit [Quit: ZNC 1.7.1 - https://znc.in]
<boomshroom>
I don't have pavucontrol installed. -_-
<Drakonis>
i smell minecraft
devopsdeluxe has joined #nixos
<boomshroom>
Drakonis: Specifically the StoneBlock modpack
<clever>
boomshroom: ah, how did you download it? all the links are windows-only
<Drakonis>
its java
<Drakonis>
java...............
<boomshroom>
clever: Usually I use CMPDL, but Something was happening causing the official launcher to crash, so I tried MultiMC, imported it, and now it works (but without sound).
<clever>
Drakonis: the pack management utils are are moving towards windows only
devopsdeluxe has quit [Client Quit]
<clever>
Drakonis: and the site is just not giving you a .zip option, because idiots cant unpack a zip
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fxRZB
<{^_^}>
[nixpkgs] @matthewbauer closed pull request #43575 → Move note from COPYING into new file COPYING-NOTICE → https://git.io/fNY8A
mkoenig has joined #nixos
<{^_^}>
[nixpkgs] @delroth opened pull request #48336 → tests/prometheus-exporters: add tests for new Tor exporter → https://git.io/fxRZi
<elvishjerricco>
fresheyeball: What do you need for GHCJS?
<fresheyeball>
elvishjerricco: I just want to get a simple project going
<fresheyeball>
now I am thinking I will stick with jsaddle warp
<fresheyeball>
but even then I can't get it going
<elvishjerricco>
fresheyeball: I usually start out with `nix-shell -p haskell.compiler.ghcjs84` and `cabal new-configure --ghcjs`. I switch to Nix once I need anything resembling OPs or better version pinning
<elvishjerricco>
i.e. I use `cabal new-build` until that point
alex`` has quit [Ping timeout: 268 seconds]
<elvishjerricco>
and just let cabal download and build the deps
<fresheyeball>
elvishjerricco: what impact does -new stuff have in this case?
<elvishjerricco>
fresheyeball: Well it's either new-build or sandboxes, else you risk the global package DB "cabal hell" of ye olden times.
<elvishjerricco>
And I just find new-build more pleasant than sandboxes
<{^_^}>
[nixpkgs] @yegortimoshenko opened pull request #48337 → nginx: if root is in Nix store, use path's hash as ETag → https://git.io/fxRZj
<{^_^}>
[nixpkgs] @unode opened pull request #48338 → libaosd: init at 0.2.7-9-g177589f → https://git.io/fxRni
Unode_ has joined #nixos
__monty__ has quit [Quit: leaving]
cnidario has quit [Remote host closed the connection]
<Unode_>
hi all. I'm trying to create a PROJECT/dependencies folder that I can point vscode to in order to have it find all project specific dependencies. I've considered using 'nix-env -p PROJECT/dependencies ...' but this creates links for each generation which cause unnecessary visual noise. On the other hand nix-build builds a single derivation. Is there any other option that could be used here?
<makefu>
worldofpeace: i just tested and it seems that the current version of peewee builds on py2, even though the pkgbuild uses two different folders
<fresheyeball>
elvishjerricco: I added the jailbreak and pushed, no dice
<Acou_Bass>
hey everyone, this isnt a huge deal but its something ive only just noticed and its now bugging me XD ive got my locale set as i18n.defaultLocale = "en_GB.UTF-8"; in configuration.nix, KDE sets my language to en_GB correctly but for some reason firefox's dictionary is set to en_US - ive not installed any dictionaries to firefox, its just using my default system one from what i can see, but all my spellcheck
<Acou_Bass>
boxes are coming out with fuzzy red lines because i dont type american spellings
<Acou_Bass>
is this something i can fix in nixos or shall i just installanother dictionary in firefox and pretend it never happened?
<worldofpeace>
makefu: Yeah the attribute to build it with py3 is `python3Packages.peewee`. I think the main problems with current derivation is there's missing check dependencies(shoud be in `checkInputs`) and that there's no way to enable/disable optional features.
<infinisil>
Unode_: What's the problem with nix-shell?
<infinisil>
Unode_: You can always just clean up the old generation no?
<Unode_>
infinisil: I am using nix-shell for compiling but can't think of a good way to go about it to make vscode happy. I don't want to run it from within a nix-shell (if possible).
<{^_^}>
[nixpkgs] @ryantm opened pull request #48339 → treewide: fix evaluation with `allowAliases = false` → https://git.io/fxRck
<Unode_>
infinisil: that's what I'm going for now. Just wondering if there's any way to tell nix-env to not use generations at all and simply replace the target link.
<infinisil>
Oh actually
<infinisil>
Isn't nix-env just a fancy wrapper around buildEnv?
<infinisil>
You could build the environment with that using nix-build, then it will be in the result symlink
<Unode_>
won't that trigger builds from source?
<Unode_>
rephrasing, I don't actually know how to merge multiple derivations into a single 'result' target
<Unode_>
nix-env -p includes -iA cairo.dev pango.dev xlibs.libX11.dev xorg.libXcomposite.dev
<symphorien>
use buildEnv
<Unode_>
is what I'm using now
<symphorien>
all things in the buildInputs of buildEnv will be merged
<clever>
paths*
<symphorien>
without recompiling
<Unode_>
ok, I'll read about it. Thanks for the pointers
<wpcarro>
I'm trying to switch to kernel 4.17. I'm seeing that `linuxPackages_4_17` is defined in the `top-level/all-packages.nix` file on 18.09-beta of nixpkgs. When I try to `rebuild switch`, I get an error about a missing attribute `linuxPackages_4_17`. I'm not sure how else to troubleshoot this atm. My `sudo nix-channel --list` is on 18.09
<makefu>
worldofpeace: okay i see what you mean, not sure if this actually makes sense for cozy but hey... what is the current best practice to define optional dependencies which are turned off by default?
<clever>
wpcarro: did you use pkgs.linuxPackages_4_17 ?
<wpcarro>
clever: in my `configuration.nix`, yes.
<symphorien>
wpcarro: the branch is release-18.09, not 18.09-beta
<wpcarro>
clever: ah are you saying that's a smarter way to get the dir? Love that
<clever>
it also finds it the nixpkgs when not using channels, if you change NIX_PATH
<clever>
and can help debug if you are messing with NIX_PATH
<Unode_>
symphorien: getting lost here. The link you sent instructs on how to write a ~/.config/nixpkgs/config.nix and meant to be used with nix-env. I always get lost in how to convert this to a nix-build recipe. Do you know what section to read to understand how to adapt one and the other?
<symphorien>
write a buildEnv expression in a file
szicari has quit [Ping timeout: 246 seconds]
<symphorien>
nix-build file.nix
<symphorien>
the result symlink will be analogous to a profile
<makefu>
another thing, is there a way in 'nix build' to show what is happening in the different build phases (default behavior in nix-build)?
<wpcarro>
Has anyone run into issues with Linux 4.18 not being able to boot past Stage 2? I'm consistently getting an issue with RNG, which I hear is a random number generator
<{^_^}>
[nixpkgs] @matthewbauer opened pull request #48344 → Auto update/libbsd → https://git.io/fxRCn
Drakonis has quit [Read error: Connection reset by peer]
<wpcarro>
I'm guessing maybe MacBook Pros have difficulty with 4.18
<hodapp>
hm, seeing on 18.09 when trying to run Cura: "Cura: freeglut (foo): glutBitmapCharacter: bitmap font 0x00000000 not found. Make sure you're not passing a stroke font."
<hodapp>
the fact that 'foo' appears in this error is odd
<hodapp>
but it appears that some text won't render (anything in the 3D view)
<hodapp>
Can anybody else reproduce this? should just be able to install cura, run it, and see this error in the console
drakonis_ has quit [Ping timeout: 252 seconds]
drakonis_ has joined #nixos
orivej has quit [Ping timeout: 245 seconds]
<symphorien>
hodapp: AttributeError: 'NoneType' object has no attribute 'findChild'
<symphorien>
I don't see your error
shabius has quit [Quit: Leaving]
shabius has joined #nixos
orivej has joined #nixos
<hodapp>
is that error fatal for you?
<hodapp>
such that you wouldn't even get far enough to see my error
endformationage has joined #nixos
<symphorien>
yes it is
<symphorien>
I get a screen to send a crash report
<hodapp>
weird, and you're on 18.09? and how did you run it? (nix-env, nix-shell, nix-build)