<noobly_>
why would the command "gist <(nix-build -E 'let p = import <nixpkgs> {}; in p.lib.callPackageWith (p) (import ./racket.nix) {}')" fail to gist because it creates and empty file?
<tilpner>
Try "gist <(nix-build -E 'let p = import <nixpkgs> {}; in p.lib.callPackageWith (p) (import ./racket.nix) {}' 2>&1)"
<clever>
noobly_: you can also nix-build .... 2>&1 | gist -
<tilpner>
A no-changes $ nixos-rebuild switch timing comes out at 6.55s user 0.88s system 7% cpu 1:36.48 total for me. That seems way too long, and most of its time is spent in "setting up tmpfiles", which calls out to systemd-tmpfiles. Did anyone have a similar problem?
<clever>
also, it sounds like your making that way too complex
<noobly_>
clever: is the hyphen in "gist -" necassary? and ok I'll try that more simplified version
<clever>
yeah, the - tells it to read stdin
<tilpner>
Yeah, that callPackageWith was my fault, I corrected that locally
<noobly_>
ok, trying again. this command takes hours on my machine, so it's hard to troubleshoot
<luigy>
hmm how would I go in order to get an environment in which the haskell dependencies of more than a single package get included? instead of haskellPackages.servant.env I would have something like (combineHaskellDeps [haskellPackages.servant, haskellPackages.servant-server]).env
<noobly_>
Awesome tilpner, you got it working on 32 bit?
<tilpner>
noobly_ - Maybe. I used callPackage_i686, and it built successfully, but I don't know if that'll translate to working on your system
ris has quit [(Ping timeout: 276 seconds)]
<noobly_>
tilpner: so, as far as using that file goes, I would just need to place it wherever, but include "racket.nix" in my imports section of the configuration.nix file?
<eacameron>
I finally needed this bad enough that I just made it.
<eacameron>
A CLI to watch as many *different* glob patterns as you want and each pattern can be given a command to run when it changes
<eacameron>
See usage
<eacameron>
I hope to get this into nixpkgs soon
<tilpner>
clever - I just tried that. I switched to a configuration that doesn't have a display-manager and am now sitting at a console. I can't get your suggestion to work, what exactly should bootstrap.nix return in your idea?
noobly_ has joined #nixos
<clever>
tilpner: something like this
<clever>
example a: { ... }@args: import /home/clever/nixpkgs args
<clever>
hmmm, but that might not work with <nixpkgs/nixos> now that i think of it, would need some experimentation
Supersonic112 has quit [(Disconnected by services)]
<clever>
eacameron: sounds neat
Supersonic112_ has joined #nixos
Supersonic112_ is now known as Supersonic112
<eacameron>
clever: Yah it's nothing special. Took an hour or so to make (mainly cuz there was already a Haskell lib that did 99% of the work)
<eacameron>
clever: I'm still baffled this doesn't exist in some GNU project
<eacameron>
inotifywait is pretty rough
aneeshusa has quit [(Quit: WeeChat 1.9)]
<noobly_>
tilpner: hey, sorry computer froze for awhile, but earlier you said "No, didn't you already import it into your systemPackages as I told you?", by this you mean include "racket.nix" in the enviroment.systemPackages function within configuration.nix? Apologies if you've already outlined this, I don't remember this
silentcuboid has quit [(Ping timeout: 260 seconds)]
<pie_>
well i just freed 3 gigs with garbage collection, hope i didnt need any of that
<swflint>
In /home/swflint/.nix-profile/bin/gcc
<clever>
pie_: that is why you and swflint should always build things with nix-build, and never try to do things by hand
<clever>
swflint: and also, installing gcc doesnt work, you must nix-shell -p gcc
<clever>
pie_: nix can only know about things being in-use by other things in /nix/store
leothrix has joined #nixos
<pie_>
ugh haha, i always mess up with ld
<joepie91>
new strategy for learning how complex Nix code works: try to convert it to JS manually
<pie_>
*ldd ; if the path is shorter i think i didnt fix it yet
<clever>
pie_: so if you do everything with nix-store, then nix will never delete something in-use
<pie_>
clever, yeah i know :P :/
<joepie91>
(with some hacks to make lazy evaluation work in JS)
<pie_>
it runs \o/
<pie_>
nevermind it crashes
<clever>
joepie91: it can help to know how thunks work in nix
<clever>
joepie91: basicaly, any time nix parses a non-trivial expression, it just generates a value of type thunk, that basicaly contains a function pointer and some args
<clever>
joepie91: and if you try to use that value for anything, nix will run it on the spot, and replace the thunk with the return value
<clever>
and while running, it will temporarily change the type to black-hole
<swflint>
Clever: that did it. Now to learn how to write a build expression.
<clever>
if it ever hits a black hole, it will know its turned back and hit its own stack trace
<fresheyeball>
hey can you refresh me on a command
<fresheyeball>
I'm in a local clone of the nixpkgs repo
<fresheyeball>
and I want to do a nix-env install
<fresheyeball>
nix-env -i -f?
<joepie91>
clever: hmm, have a source code reference for me by any chance to read up more about that?
<pie_>
hm its supposed to work with a mouse
<joepie91>
clever: (fwiw, I had little trouble converting Nix to JS -- the trouble was mostly in understanding the concept behind the original Nix code)
<joepie91>
(but the conversion is fairly mechanical)
<pie_>
its /nix/store/r0802bkz0c70kswbjqpf9h8jn5rvn9kd-sane-config/lib/sane:/run/opengl-driver/lib:/run/opengl-driver-32/lib
<joepie91>
pie_: iirc Unity stuff does a bunch of runtime loading, you can figure out what it's missing by strace'ing the process and grepping for missing libs
<joepie91>
pie_: I have a script that filters strace output for such issues but it's not published yet
<joepie91>
I can shove it onto git if you want :p
<pie_>
LD_DEBUG=all didnt show anything :C
<pie_>
guess i have to look closer
<pie_>
would be useful i think :)
<clever>
i think LD_DEBUG only handles things flagged with DT_NEEDED
<clever>
but dlopen isnt covered
<joepie91>
pie_: alright, give me a few minutes to get it into a vaguely cleaned-up state :P
<pie_>
>.> oh....
<clever>
pie_: while you wait, try strace -e open
<pie_>
strace | gre pdlopen xD
<pie_>
oooor that
<clever>
dlopen is a library function, strace wont find it
<joepie91>
it may also fail on non-library things btw
<clever>
any files its trying to open are a good place to stat
<clever>
start*
<pie_>
[...]
<pie_>
open("/dev/input/js253", O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or directory)
<pie_>
open("/dev/input/js254", O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or directory)
<pie_>
open("/dev/input/js255", O_RDONLY|O_NONBLOCK) = -1 ENOENT (No such file or directory)
<pie_>
jesus thats one way to do device enumeration
<joepie91>
lol
<clever>
:D
<clever>
ever heard of readdir?
<clever>
dont worry, bash does the same thing with file handles, lol
<pie_>
wow, a lot of junk to parse in this output :I
<joepie91>
hence why I wrote a script :D
<pie_>
tfw it searches several folders and you have to figure out if it actually foudn the lib :P
<joepie91>
uh...
<joepie91>
wtf?
<joepie91>
Git just ate my code..
<joepie91>
well shit.
<clever>
joepie91: reflog?
<joepie91>
it just flat-out deleted uncommitted shit
<joepie91>
hold on
<clever>
pie_: usualy, it will stop when it fails, so the last thing it did is the important one
<clever>
just need to scroll up past the error handling logic
<pie_>
alternatively, i can paste it xD
<joepie91>
yay for extundelete
ertes has joined #nixos
<pie_>
oh it didnt like not having libudev
<pie_>
*shrug*
<pie_>
but at least joepie91 got motivated to clean some code :P
schoppenhauer has quit [(Ping timeout: 248 seconds)]
<pie_>
and i got reminded that strace is a thing
<eacameron>
Is there a way to take a regular default.nix file and install it via nix-env?
<joepie91>
pie_: it'll filter out a bunch of known-missing stuff that's usually not a problem, and separately identify libraries and not-libraries, and also ignore stuff like /dev
<joepie91>
so the resulting report should be reasonably useful and clean
<swflint>
Clever: same error.
erictapen has quit [(Ping timeout: 240 seconds)]
<clever>
swflint: oh right, need to add { stdenv, xlibs }: to the start of the file
<pie_>
mesa_noglu provides libgl right?
<joepie91>
pie_: be aware that 'missing libraries' may not necessarily translate to 'this is why it crashes' - some libraries it will look for but are optional (pulseaudio is a typical example)
<swflint>
Okay. Is there any way to make it work without the weird nix-build incantation?
<joepie91>
think so, yes
<clever>
pie_: LD_LIBRARY_PATH provides the real libgl
<pie_>
well it says it cant find libgl even though im pretty sure it can
<clever>
pie_: nixos has to change it at runtime for the gpu driver you need
<eacameron>
clever: dash: Perfect. Yep that'll do it.
pxc1 has quit [(Ping timeout: 260 seconds)]
<swflint>
Clever: still have an error (variable $src or $srcs should point to the source)
<clever>
swflint: oh right, have to add unpackPhase = ":";
<clever>
swflint: and to make it work without that incanation, add it to either your config.nix, or nixpkgs and open a PR so it works for all
katie has joined #nixos
<joepie91>
pie_: does my tool say that, or does the game say that?
<katie>
any recommendations for a Standard ML compiler?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jerith666 opened pull request #27031: cnijfilter: init at 2.80 (master...cnijfilter-2-80) https://git.io/vQ0E1
NixOS_GitHub has left #nixos []
<pie_>
joepie91, tool says taht
<pie_>
hmmm still no sound
<swflint>
Clever: getting a no such file or directory error.
<clever>
swflint: from which command?
<pie_>
oh, libpulse
<joepie91>
pie_: hm, might be a tool bug. if you can upload your strace log somewhere (transfer.sh?) then I can have a look at that tomorrow
<joepie91>
pie_: I'd be very surprised if it legitimately cannot find libgl
<pie_>
joepie91, no im pretty sure it can :P
<clever>
joepie91: gist is also a command in nixpkgs, and it just uploads right to gist
<swflint>
Clever: it was caused by a typo. Never mind.
<pie_>
once people are really bored it would be nice if package naming was made more consistent
dmr has quit [(Quit: Lost terminal)]
iyzsong has joined #nixos
<swflint>
Clever: how would I add it to a personal config.nix?
<pie_>
yay\o/ its more or less OK now!
<clever>
swflint: in the packageOverrides, do x11idle = pkgs.callPackage ./x11idle.nix {};
<clever>
swflint: then you can just nix-build '<nixpkgs>' -A x11idle, or nix-env -iA nixos.x11idle
<swflint>
Ah. Okay.
<joepie91>
clever: strace logs are massive, and iirc gist is pretty limited in filesikze
<joepie91>
filesize*
<clever>
joepie91: gist only limits what can be seen on the site, you can still git clone the logs
<clever>
joepie91: ive moved 10-15mb of strace logs like that before
<joepie91>
hm, I'm pretty sure I had issues with paste size before
<joepie91>
perhaps that has changed
<joepie91>
(and I mean that it rejected my paste)
<joepie91>
pie_: anyhow, if you can drop me a link to your strace log at some point tonight, I'll look at it tomorrow
<clever>
pie_: yeah, thats where nixos puts the gl drivers for your gpu
<clever>
vendors like to make things difficult, and you need the right libGL for your card
<clever>
and rpath and immutable outputs makes that tricky on nix
<clever>
so LD_LIBRARY_PATH is required, to sneak those in after things have been made immutable
<clever>
otherwise, you would have to compile amd and nvidia versions of every gui app
<pie_>
aw reentering the game loaded me back in that room and it fixed my orientatio
drakonis has joined #nixos
<pie_>
clever, neat
<pie_>
just saying that thats the gl lines i have
<pie_>
*libgl
<swflint>
Clever: do I need to specify both rev and sha256?
<clever>
swflint: yes
<clever>
git needs a rev, and nix needs a sha256
<swflint>
And how would I determine those?
<clever>
nix-prefetch-git will tell you the sha256
<clever>
git will tell you the rev
<clever>
nix-prefetch-git might also give a rev
<tilpner>
noobly_ - No, most of my system broke after I passed wrong paths to nixos-rebuild, and I just now discovered I also had broken activation scripts
<swflint>
Awesome, thanks!
<tilpner>
noobly_ - I... currently can't test
<clever>
tilpner: did you use a revision of nixpkgs that wasnt from a nixos channel?
orivej has quit [(Ping timeout: 260 seconds)]
<tilpner>
Ah, here we go, back in X. I don't really know what happened, I ran nixos-rebuild and X stopped immediately
<swflint>
Clever: fetchgit doesn't work (undefined variable fetchgit)
<clever>
swflint: you need to add fetchgit to the function arguments on line 1
<clever>
tilpner: check the journal
<swflint>
Clever: okay. My apologies if I'm being annoying or seem ontuse.
<swflint>
*obtuse
<noobly_>
tilpner: Oh ok, well good luck with your current endeavors :-) if I see you on tomorrow maybe I'll bug you then
orivej has joined #nixos
<noobly_>
if I don't figure it out by then that is ;)
<tilpner>
noobly_ - Did you get minimal Racket to work at least?
<noobly_>
Yes I did! Thank you for that
<tilpner>
Yay! That's all I use, really. I never got used to DrRacket
<noobly_>
Well this book / course I use (How to Design Programs) uses it quite a bit, so I thought it'd be nice. But if I do'nt need it, then no big deal I suppose (I've never not used it)
zraexy has quit [(Ping timeout: 260 seconds)]
zraexy has joined #nixos
<tilpner>
You should be able to use another editor for now, but of course it would be good to get DrRacket working as well
<tilpner>
clever - No, it was some recent nixos-17.03 revision, it just didn't have a display-manager systemd file and everything. It's not a problem now, the other thing you said solved my original problem. I didn't know you could also pass an object to fetchTarball
<tilpner>
clever - But apparently my current Nix is too old to support sha256 as an argument (re: Nix update in nixos-rebuild)
HurricaneHarry has quit [(Ping timeout: 260 seconds)]
<swflint>
How can I fix the error?
<swflint>
setting sha256 to null fixed it, but it seems a bit off.
<noobly_>
So I had help getting a C library to work and want to submit a pull request to make it available for anyone. I commited the details of the package, but what else do I need to upload? Does the default.nix need to be commited too?
<noobly_>
And what would be the right base / compare for such a package? I just don't want to have to cause anyone any hassel and want to make sure it's done right
noobly_ has quit [(Ping timeout: 260 seconds)]
<tilpner>
swflint - This looks like a bug. You can get the correct hash from the error message or by passing --fetch-submodules to nix-prefetch-git
noobly_ has joined #nixos
<tilpner>
swflint - But nix-prefetch-git should default to that, and prints "fetchSubmodules": true in both cases, so something definitely is broken here
noobly_ has quit [(Client Quit)]
<swflint>
Hmm. Well, where should I submit the bug report?
<hodapp>
okay, about to give up on tt-rss.nix. I just tried basically the stock configuration with an nginx virtualhost, and I am still getting that bullshit problem where all PHP pages render as blank with a 200 OK.
<hodapp>
as far as I can tell, it's just broken out of the box, and the fact that it's based on tooling that prefers to fail silently is a complicating factor
jgertm has joined #nixos
drakonis has quit [(Read error: Connection reset by peer)]
<hodapp>
yeah. just tried it in a completely empty container with just nginx & postgresql
HurricaneHarry has joined #nixos
ebzzry has quit [(Ping timeout: 276 seconds)]
<jtojnar>
When running `nix-channel --update` with https://github.com/jtojnar/nix-extrapkgs I am getting "error: syntax error, unexpected ID, expecting '.' or '=', at (string):5:85"
<jtojnar>
any idea how can I debug it?
jacob_ has joined #nixos
jacob_ is now known as Guest27936
<tilpner>
What's the current content of your ~/.nix-channels?
ebzzry has joined #nixos
xadi has quit [(Ping timeout: 260 seconds)]
eacameron has quit [(Remote host closed the connection)]
FRidh has quit [(Read error: Connection reset by peer)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 1 new commit to master: https://git.io/vQ0rP
<NixOS_GitHub>
nixpkgs/master a5a98f9 Frederik Rietdijk: krename: fix build
NixOS_GitHub has left #nixos []
FRidh has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] dywedir opened pull request #27037: xsv: 0.11.0 -> 0.12.1 (master...xsv) https://git.io/vQ0rQ
NixOS_GitHub has left #nixos []
bennofs has joined #nixos
tmaekawa has joined #nixos
tmaekawa has quit [(Client Quit)]
Jackneilll has joined #nixos
thc202 has joined #nixos
leat has quit [(Read error: Connection reset by peer)]
<mojjo>
Does anybody have an advice what to do against memory issues on nix? When running one or more JVMs I'm frequently hitting the point where memory usages gets close to 100%. and this is the only occasion that makes my machine hang once in a while, forcing me to reboot. I'm using a swap partition, but I'm not sure if it works properly. `free` tells me though that's in use now. Remeber having the same issue with another
<mojjo>
machine and it was solved by a swap then. That makes me doubt if it works properly now..
<tilpner>
There's zram that you could enable, but... it might not help very much
<tilpner>
You could also try to limit Java's memory hunger by setting a max heap size limit
<mojjo>
alright, I'll check them out..
<tilpner>
Also play around with kernel.sysctl = { "vm.swappiness" = ...; };
<stranger__>
hi. is it to possible to combine few packages into one?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] FRidh pushed 6 new commits to master: https://git.io/vQ0oE
<NixOS_GitHub>
nixpkgs/master bd08111 Frederik Rietdijk: python.pkgs.django_1_9: remove...
<NixOS_GitHub>
nixpkgs/master 6bcf106 Frederik Rietdijk: python.pkgs.django_1_6: remove...
<NixOS_GitHub>
nixpkgs/master d25c87c Frederik Rietdijk: python.pkgs: do not pin django version...
NixOS_GitHub has left #nixos []
<tilpner>
See if buildEnv is what you want, stranger__
<FRidh>
or symlinkJoin which is even simpler
k0001_ has joined #nixos
DanC has quit [(Ping timeout: 268 seconds)]
mojjo has left #nixos ["Killed buffer"]
celldee has joined #nixos
leat has joined #nixos
<celldee>
I'm trying to set up a minimal NixOS environment that uses the sway window manager with wayland. I have most things working but have a couple of minor snags. Is anyone using a similar setup?
* tilpner
tried, but nvidia :(
<stranger__>
cool, thanks :)
<sphalerite>
celldee: I've tried it out a couple of times. What are the snags?
slyfox_ is now known as slyfox
<celldee>
sphalerite: I've been trying to set background wallpaper using the 'output' directive but can't get anything to display.
<celldee>
sphalerite: The directive in my sway config is
DanC has joined #nixos
<celldee>
output "*" background /home/chris/Pictures/Wallpapers/wallpaper.jpg fill
blahdodo has quit [(Remote host closed the connection)]
<tilpner>
Does sway complain when started with --debug?
<tilpner>
If we can't solve this, perhaps also ask in #sway
<celldee>
Also, wanted to try swaylock but it is not built with current nixos sway package. I had to build my own package that included pam as a build input and then I got it.
<celldee>
tilpner: I'll try it
mpcsh has quit [(Quit: THE NUMERICONS! THEY'RE ATTACKING!)]
mpcsh has joined #nixos
blahdodo has joined #nixos
<sphalerite>
celldee: hmm, it doesn't seem to work for me either, although strace shows that it is reading the image file
<sphalerite>
That is, to get the debug output. Not to actually get the background image working
<celldee>
tilpner: Had a look, I don't think that my problem is addressed by this as I'm using the full path to my background image file.
<celldee>
sphalerite: Thanks for that.
Filystyn has quit [(Remote host closed the connection)]
<sphalerite>
celldee: I think I might have it
<sphalerite>
celldee: do you have a line in your config that sets the stock background?
<sphalerite>
no, never mind, that didn't help...
<celldee>
sphalerite: No, I used an i3 config file as the starting point for my sway config
<sphalerite>
For some reason the line "output * bg /nix/store/p7bw86zafn90fj975c6fnyl5v2vb711h-sway-0.11/share/sway/Sway_Wallpaper_Blue_1920x1080.png fill", which is in the stock config, works
<celldee>
sphalerite: That's interesting. I'll give it a try ...
<sphalerite>
but taking that line verbatim and replacing the filepath with my own breaks :/
pie_ has joined #nixos
celldee has quit [(Quit: Page closed)]
<sphalerite>
Hm, trying running swaybg manually
<sphalerite>
(against its own advice)
<tilpner>
Try with something that's also a png and of the same resolution (away)
celldee has joined #nixos
<sphalerite>
Yep, it's just because it wasn't a png >_>
<spluko>
Hi, I'm trying to build QLC+ on NixOS. I get an error "libudev development package not found". The instructions for Ubuntu say you need libudev-dev which doesn't seem to exist for NixOS.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jokogr opened pull request #27041: skrooge: drop kdelibs4support dependency (master...f/skrooge-drop-kdelibs4support) https://git.io/vQ0PU
<sphalerite>
Even better than using nix-shell :) if you have libudev in buildInputs that's like having libudev-dev installed on other distros. You may need to add pkgconfig or something for the build scripts to be able to find it though
ris has joined #nixos
<sphalerite>
If you could share your expression so far it would be very helpful
<spluko>
Sure, one sec...
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] pSub pushed 1 new commit to master: https://git.io/vQ0Pl
<NixOS_GitHub>
nixpkgs/master b300472 Sebastian Jordan: guetzli: init at 1.0.1 (#26595)...
<sphalerite>
spluko: if you use qt5.mkDerivation instead of stdenv.mkDerivation it'll add appropriate qmake flags andd you won't need to manually specify qmake
<sphalerite>
(although that's probably not relevant to it finding libudev)
<spluko>
Cool, I'll try that anyway
<sphalerite>
My best guess is that you need pkgconfig to get it working — try adding nativeBuildInputs = [ pkgconfig ];
<spluko>
qt5.mkDerivation doesn't seem to be in scope: "error: attribute ‘mkDerivation’ missing, at /home/peter/Workspace/qlc+/default.nix:6:2"
<spluko>
nativeBuildInputs = [ pkgconfig ]; worked though... on to the next failure
<sphalerite>
Oh yeah, I think that changed between 17.03 and unstable and I was looking at unstable. For 17.03 add qt5.qmakeHook to the buildInputs instead Ithink
<spluko>
sphalerite: seems to have built now! However install is failing "cannot create directory '/usr/lib': Permission denied" which makes sense on nixos. Any suggestions?
<sphalerite>
spluko: if you're using the qmake hook, it should tell qmake where to install it correctly (make sure to get rid of your preBuild line)
carlosda1 has quit [(Ping timeout: 240 seconds)]
bennofs has quit [(Ping timeout: 260 seconds)]
<hyper_ch>
gchristensen: so, how to best remove that faulty file?
<gchristensen>
hyper_ch: it is already gone
<hyper_ch>
you're an optimist... I'll retry :)
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] aycanirican opened pull request #27042: update patches so that they can be applied to perl 5.22.3 (master...fix_perl_patches) https://git.io/vQ01U
<sphalerite>
spluko: there seem to be a lot of explicit references to /usr in the code, you'll need to get all of those out :/
<spluko>
nice :-( Am I supposed to do that with patch files?
<spluko>
... and what should I change them to?
<sphalerite>
spluko: patches are the simplest option but won't work for all cases. You might need to use sed to substitute in the right paths in some places
<sphalerite>
using postPatch
<sphalerite>
hang on let me see if I can find an example in nixpkgs
<gchristensen>
by the wa error: build of ‘/nix/store/jbiqdv3yd9m38jnwhvqkd2g2pkh83apv-nixos-system-subi-17.09pre110094.1add3519df.drv’ failed <- 1add3519df is your commit verssion
spluko has joined #nixos
<gchristensen>
sure, just saying it did manage to build on hydra
<Filystyn>
huper_ch if you wnat teamviewer to work
<Filystyn>
download their bianry from site and
<Filystyn>
steam-run it
<Filystyn>
;-)
<hyper_ch>
gchristensen: will you open bug reports for ktorrent / kdevelop?
<gchristensen>
hyper_ch: no, I'm not a user or really capable of that. can you?
<hyper_ch>
you're not capable of that? you know more about nixos than me... way more
<gchristensen>
I know nothing of kdevelop or ktorrentt
<Infinisil>
hyper_ch: I mean you're the one who has the problem, why would he report a bug for you?
<gchristensen>
I don't know much about C/++ either
<hyper_ch>
that "not much" is probably "a lot more than me"
<gchristensen>
I'm not going to open your issues for you
<hyper_ch>
ah yeah, for openvpn I just do apt-get build-dep openvpn (on debian), fetch current sources, unpack, run ./configure, make, make install :)
<gchristensen>
you don't need to be an expert to open issues
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vcunat opened pull request #27045: stdenv: refactor meta checks (master...meta-refactor-2-rebased) https://git.io/vQ0Mb
NixOS_GitHub has left #nixos []
<hyper_ch>
gchristensen: well, it seems to report kde bugs you have to be an expert... most of the bugs I reported on kde were marked as invalid or ignored for such a long time that EOL has become and then marked invalid
carlosda1 has joined #nixos
<gchristensen>
yeah that is unfortunate
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc created revert-26983-i3/allow-custom-configuration (+1 new commit): https://git.io/vQ0Mj
<NixOS_GitHub>
nixpkgs/revert-26983-i3/allow-custom-configuration ed59b2c Graham Christensen: Revert "i3: add `configFile` to enable cutom configuration locations"
NixOS_GitHub has left #nixos []
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] grahamc opened pull request #27046: Revert "i3: add `configFile` to enable cutom configuration locations" (master...revert-26983-i3/allow-custom-configuration) https://git.io/vQ0DJ
NixOS_GitHub has left #nixos []
<Infinisil>
hyper_ch: That's usually the reality for bigger projects, there are just so many bug reports and not enough people to want to look at all of them. Debugging is the hardest part of programming, especially if you can't reproduce it yourself
<Filystyn>
hyper_ch maybe you should upgrade to unstable but let me see something..
<hyper_ch>
Filystyn: I am on unstable...
<gchristensen>
Filystyn: stable isn't broken like thiscurrently
<gchristensen>
part of the problem of unstable :P
<Filystyn>
ooh;-)
<manveru>
btw, does anyone know how to setup nginx to make file checksums for static files instead of looking at mtime? (which is always the same in nix store...)
<Filystyn>
ill see if i can compile ktorrent downlaoding it now. gib me sec
<hyper_ch>
Infinisil: the problem is, when there's a bug report like 2-3 years just left alone, nothing done and then marked invalid because EOL it makes me wonder, if I should report a bug next time...
<hyper_ch>
gchristensen: seems vbox is working again -- at least it's compiling here
<Infinisil>
Does unstable really build all packages? I once heard it would just randomly select a few, because it would be too much if everything was built on every PR
<gchristensen>
yeah, our volunteers don't always get to bug fixes
<gchristensen>
hopefully more people volunteer
carlosda1 has quit [(Ping timeout: 255 seconds)]
<gchristensen>
Infinisil: no it builds all packages
<gchristensen>
but not on every PR
<Infinisil>
Ahh, when then?
<Infinisil>
Like just once every hour or so?
<hyper_ch>
when the Elders of Nixos press the button "recompile everything now"
<gchristensen>
every 8 hours
<hyper_ch>
(or so I imagine)
tmaekawa has joined #nixos
<Infinisil>
gchristensen: I see, so unstable can progress once every 8 hours at max I'd think
<hyper_ch>
Infinisil: you make it sound like that's something bad - https://xkcd.com/303/
<Infinisil>
And running them manually after we've compiled them of course
<Infinisil>
hyper_ch: :P
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 6 new commits to master: https://git.io/vQ0Du
<NixOS_GitHub>
nixpkgs/master 6f36967 Vincent Laporte: ocamlPackages.lablgl: mark as broken on Darwin
<NixOS_GitHub>
nixpkgs/master ed12c7a Vincent Laporte: ocamlPackages.git-http: init at 1.11.0...
<NixOS_GitHub>
nixpkgs/master e8c0e8a Vincent Laporte: ocamlPackages.git-unix: init at 1.11.0...
NixOS_GitHub has left #nixos []
<Infinisil>
I would really like to get some games working on nixos eventually
<hyper_ch>
tux racer?
<Infinisil>
I dream of playing Overwatch or Rocket League on NixOS
stranger__ has quit [(Quit: Connection closed for inactivity)]
<srhb>
Infinisil: Aren't those on Steam?
<srhb>
Probably Just Work^{tm}
<Infinisil>
srhb: Rocket League is on Steam, Overwatch is in the blizzard launcher
<hyper_ch>
and wouldn't you require proper gfx support?
<Infinisil>
gfx?
<hyper_ch>
video card
<srhb>
Infinisil: Hm, Blizzard things can occasionally be a bit annoying...
<srhb>
hyper_ch: We have that?
<hyper_ch>
don't know if you have a video card
<srhb>
Oh
<srhb>
You mean the actual hardware :P
<Infinisil>
I'm currently running NixOS only on my intel (Mac) laptop, but I eventually want to put it on my now Windows machine which has an Nvidia graphics card, there I'd test these two gaes
<hyper_ch>
well, from what I know nvdiai and amd running subpar on linux compared to that other OS
<Infinisil>
hyper_ch: And btw every computer has a graphics card, some just not as powerful
<srhb>
hyper_ch: No, it's fine.
bennofs has quit [(Ping timeout: 260 seconds)]
<hyper_ch>
every computer has a video card? really?
<srhb>
Maybe not a _discrete_ video card, but certainly an integrated one. Aside from some embedded systems.
<gchristensen>
every reasonable one
<gchristensen>
any counter example you come up with will prove the rule
<manveru>
Infinisil: i've got a ton of games on steam that work nicely, including rocket league :)
<manveru>
for battle.net you need wine
<Infinisil>
manveru: Nice to hear! I'm excited to try it
<manveru>
i've played stuff like heroes of the storm and hearthstone on nixos... tried overwatch but that was months ago
<Infinisil>
manveru: If overwatch doesn't work I'll try my best to get it to work
<Filystyn>
wnated to check if i can build that ktorrent
<gchristensen>
unstable is broken in some way
<Filystyn>
but it fails on qt shit knwos why never had such problem
<manveru>
hyper_ch: i only buy games now that support linux out of principle ;)
<manveru>
hyper_ch: and out of 509 games in my steam library, 302 run on linux already
<hyper_ch>
well, if you run a game in a virtualized environemnt, isn't it then also supported by linux because you run linux on the host?
<Infinisil>
manveru: Similarly I use firefox out of principle, even though chrome might be a bit faster. (because of all that web standard stuff mozilla is doing)
<Infinisil>
manveru: 509 games??? Holy moly..
<srhb>
hyper_ch: Not if the virtualized environment means "Windows license"
<hyper_ch>
Infinisil: ssome people just don't have enough to do at work ;)
<manveru>
heh
<manveru>
i always go back to dota anyway :P
<Filystyn>
hyper_ch seems it's impossible to even compile it udner nix now welel this is a bit failure
<Filystyn>
so i guees all you can do is get binary and steam-run ti
<hyper_ch>
Filystyn: compile what?
<Filystyn>
steam-run binary
<Filystyn>
i tried to compile ktorrent
<Filystyn>
and nix-shell breaks
<hyper_ch>
I opened bug report
<srhb>
Filystyn: How does nix-shell break? Isn't it just the derivation failing?
<Filystyn>
what do you mean
<srhb>
Filystyn: "undefined variable ‘qt’ at (string):1:81"
<Infinisil>
srhb: In the paste he sent you can see that the expression itself fails to evaluate
nh2 has joined #nixos
<Filystyn>
might be i pasted wrong output?
<Filystyn>
give me sec
<srhb>
Maybe I clicked a wrong link... :-P
<srhb>
In that link it just says qt is undefined, which it is.
<nh2>
is there a reason why cache.nixos.org should be 2x slower in Singapore than in Europe? It takes 2x as long to bring up my AWS machine there with nixops, with identical config
<gchristensen>
nh2: we don't have cloudfront endpointst in singapore because of how expensive it is
<nh2>
gchristensen: ah, that explains it. Is there a list where I can see where we have cloudfront endpoints?
<nh2>
I could for example put my AWS server into Seoul instead as well
<Infinisil>
srhb: Is that something other than a nix expression failing to evaluate?
<Filystyn>
omg yeah i ate ending lol
<Filystyn>
it works now
<srhb>
Infinisil: I suppose not. It just sounded like Filystyn said nix-shell itself was breaking.
<Infinisil>
Ah
<Infinisil>
Filystyn: You ate ending? Who is Ending?
iyzsong has quit [(Read error: Connection reset by peer)]
<Infinisil>
I really wonder if NixOS is used by anything other than developers, seems pretty hard to use as a "user" only
DeaDSouL has joined #nixos
Mateon1 has quit [(Ping timeout: 248 seconds)]
Mateon2 is now known as Mateon1
<gchristensen>
some :)
<spluko>
I should probably know this, but when doing substitutions in postPatch, what do I put for the install directory?
<Infinisil>
$out
<Infinisil>
ah no
<Infinisil>
Well $sourceRoot is where your source is
<Infinisil>
wait but what has that to do with installing?
romildo has joined #nixos
<Infinisil>
In the patch phase you want to patch the source, in the install phase you want to install it to $out
<sphalerite>
Infinisil: I think some people here install it for less technically-skilled people and administer it for them. I'd definitely install it on my grandma's computer.
<spluko>
In the app I'm installing, it hard codes the install directory to /usr. I need to patch that
DeaDSouL_ has joined #nixos
<Infinisil>
sphalerite: Ah yes that, very valid use case, NixOS pretty much "just works"
<Infinisil>
(if you don't use any other than the semesterly releases)
<hodapp>
I do use it a lot for development stuff
<hodapp>
I'm kinda unconcerned with who uses it for "other" stuff so long as it remains comprehensible to me
<adisbladis>
Infinisil: It would definitely need some higher level tooling to be used by "users"
<nh2>
gchristensen: another question, when I ping cache.nixos.org from Singapore, then reverse DNS doesn't resolve to *.cloudfront.net, but to 13.32.205.47. Is that an upstream server in the US?
<Infinisil>
spluko: I don't know anything about qmake, but usually you can do something like `make install PREFIX=$out` or `make install DESTDIR=$out`. The Makefiles usually let you set this, best have a look at it to see how it works
<adisbladis>
nh2: Overall the caches are pretty slow from asia..
<Infinisil>
(don't know if that applies to qmake though)
koserge has joined #nixos
<spluko>
OK, I think I just need to replace with $out, I'll try it.
<gchristensen>
IMO geodistribution is the largest selling factor for me re some p2p cache system
<spluko>
It is somewhat tedious that I have to run the whole build from the start every time I test my package. Is there some way to keep previous build progress whilst developing a package?
<hodapp>
spluko: what package?
<Infinisil>
docker works guaranteed
<Infinisil>
And isn't too bad on performance
<hodapp>
the problem is I'm on a host without tons and tons of disk space
DanC has quit [(Ping timeout: 260 seconds)]
<spluko>
hodapp: I'm writing a nix expression to build QLC+. I'm new to this, so making lots of mistakes. I now have the build working, but install is failing due to path issues. Each time a try a fix, it runs the whole build again.
eacameron has joined #nixos
<hodapp>
as in, I only have ~2 GB free right now, and trying to be able to work within that amount - and docker containers can be rather large
<hodapp>
spluko: hmmm. trying in nix-shell and going through build steps by hand can alleviate some of this but mostly I don't know a good way around it
<Infinisil>
spluko: You could use nix-shel
darlan has joined #nixos
darlan has quit [(Client Quit)]
eacameron has quit [(Ping timeout: 248 seconds)]
alpha_sh has joined #nixos
ris has quit [(Ping timeout: 240 seconds)]
<spluko>
Infinisil: I thought that might be the way, but haven't figured out the relationship between an expression for a derivation and what to do in a shell. I've looked for a tutorial on the steps to go through to add new software to nix - build it in a shell, build a local package, build it as part of nixpkgs or something. Haven't found anything.
chris___ has joined #nixos
<gchristensen>
hodapp: I'd try unsetting database.host and postgresql.enableTCPIP
<gchristensen>
gotta go
<hodapp>
gchristensen: when I tried that earlier, it refused to connect and I didn't feel like going through the yak shaving ritual of figuring out why unix domain sockets weren't working
<sphalerite>
spluko: if you just nix-shell default.nix (assuming that's what your expression file is called) you get an environment for building the expression in
<Infinisil>
What I really want is an interactive nix-shell that creates the expression for you as you go along
<hodapp>
gchristensen: but I'm pretty sure this matters none, because I can put a "Hello World" PHP file in the web root directory and it fails to serve even this
chris___ has quit [(Quit: leaving)]
<spluko>
Yes, I was thinking that might be useful
phinxy has joined #nixos
phinxy has quit [(Changing host)]
phinxy has joined #nixos
DanC has joined #nixos
asymmetr- has quit [(Ping timeout: 240 seconds)]
ebzzry has joined #nixos
civodul has joined #nixos
romildo has quit [(Quit: Leaving)]
eacameron has joined #nixos
Fare has joined #nixos
<spluko>
It looks like qmake can reference environment variables using $$(out). Do I need any escaping to put that in a postPatch? I'm just getting a syntax error when qmake reaches the line I've tried to patch.
jonte has joined #nixos
<hodapp>
can you get it to echo the actual line at you so you can see what $$(out) was bastardized into?
<spluko>
dunno, maybe :-)
FRidh has quit [(Ping timeout: 260 seconds)]
<symphorien>
maybe $out is just a shell variable and not an environment variable and you have to export it before
<Infinisil>
spluko: Can you show the makefile/
<Infinisil>
?*
FRidh has joined #nixos
<spluko>
Infinisil: the makefile seems to be generated dynamically by qmake. I can post the input file qmake uses if that would be useful?
<Infinisil>
sphalerite: But this isn't used in the makefile
<Infinisil>
It looks like they did this before, but changed it at some point while leaving the old declaration in
<Infinisil>
isn't used in the .pri file*
<sphalerite>
oh
<spluko>
I'm not clear what += means here. the manual says "The += operator appends a new value to the list of values in a variable"
<spluko>
could it be used in another file?
<spluko>
INSTALLROOT is used in many files
carlosda1 has joined #nixos
jonte has quit [(Ping timeout: 240 seconds)]
DeaDSouL_ has quit [(Remote host closed the connection)]
FRidh has quit [(Ping timeout: 260 seconds)]
<Infinisil>
spluko: Don't know
<Infinisil>
Well += is really just adding a string to an existing one, very intuitive
mudri has joined #nixos
carlosda1 has quit [(Ping timeout: 276 seconds)]
zraexy has joined #nixos
<sphalerite>
spluko: what if you put preConfigure = ''qmakeFlags="INSTALLROOT=$out"''; inthe expression?
celldee has quit [(Quit: leaving)]
<sphalerite>
symphorien: no, I'm pretty sure $out is an env variable, because it's set by nix and as such can't really be shell-specific AFAIU
<spluko>
So that I don't have to keep running the whole build, I'm trying to use nix-shell. In the shell, I copy the source directory, cd to it and try running qmake. This fails with error "Could not find qmake configuration file linux-g++." am I missing some step?
<spluko>
trying preConfigure = ''qmakeFlags="INSTALLROOT=$out"'';. In nix-shell, I've done the configure and the build. eval "$installPhase" doesn't seem to do anything, should it?
Filystyn has joined #nixos
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQ05k
<NixOS_GitHub>
nixpkgs/master dbe61c9 Vincent Laporte: ocamlPackages: make lwt-3.0.0 the default
NixOS_GitHub has left #nixos []
marsel has quit [(Ping timeout: 276 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] lheckemann opened pull request #27053: firefox wrapper: add libudev to libs (master...firefox-gamepad) https://git.io/vQ05O
NixOS_GitHub has left #nixos []
<sphalerite>
pie__: it was you who noticed that firefox didn't have gamepad support, right? Well ^
<pie__>
sphalerite, yay \o/
<spluko>
saphalerite: I guess I can't do an install from a shell, but I tried make install anyway. It is still trying to write to /usr/lib
<srhb>
spluko: If you're developing currently, you should probably use the builder functions.
<srhb>
spluko: as in, unpackPhase, buildPhase, then try figuring out what the installPhase should be if the default one doesn't work
<srhb>
spluko: make install is typically not what you want (it usually tries to install globally.) Instead you want the usual "make build" and then your installPhase should copy the resulting files (that should be in a build or dist directory or something like that) to the store, using $out
<srhb>
It all depends on the project in question of course.
<srhb>
I just noticed you had a longer conversation about this above, sorry about butting in then. :) I should learn to scroll back.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] vbgl pushed 1 new commit to master: https://git.io/vQ059
<NixOS_GitHub>
nixpkgs/master 3beb47f Vincent Laporte: ocamlPackages.inotify: init at 2.3...
NixOS_GitHub has left #nixos []
<spluko>
srhb: the project is QLC+. it is a QT5 project using qmake. According to the nixpkgs manual, the default installPhase is to create the $out directory and do make install.
asymmetric has joined #nixos
<zraexy>
Is there anyone here who can merge hydra pull requests?
pietranera has joined #nixos
pietranera has left #nixos []
ebzzry has quit [(Ping timeout: 276 seconds)]
<srhb>
spluko: Yeah I just noticed you were already onto this. But it sounds like the Makefile isn't respecting the destination directory, so you might want your own installPhase. Do you get a decent output in CWD after buildPhase?
pietranera has joined #nixos
<pietranera>
Hello, does anyone know how I can expose a lua package to my shell? Is there something similar to python.withPackages?
<pietranera>
or anything I can do to modify my LUA_PATH env var... all I can see is that lgi is there (possibly because I am using the Awesome WM)
<nh2>
clever: I finished the nginx cache.nixos.org reverse proxy cache we once talked about: https://gist.github.com/nh2/28bce850755cf14bd7749ea78e4238ab. Ha to use proxy_cache_valid, otherwise nginx wouldn't save any files in the cache dir
carlosda1 has quit [(Ping timeout: 248 seconds)]
<spluko>
srhb: depends what you mean by decent. It goes through each module of the project to see if there is anything to install. The first one which has something fails when it tries to create /usr/lib. I think I can patch the file to use $out, but I need to figure out how to escape $.
<srhb>
spluko: Wait, buildPhase tries to copy things to /usr/lib ? Not installPhase?
asymmetric has joined #nixos
<srhb>
But OK, sounds like you have a different but viable approach :)
<spluko>
Sorry, my confusion buildPhase is fine and spews pages and pages. The problem is installPhase.
<spluko>
I've now patched the file and the failure is now trying to write into the store (in nix-shell)
<spluko>
So, this might be fixed.
<spluko>
I'll try a nix-build
<Infinisil>
srhb: Regarding scrolling back in my IRC client (irssi), I still haven't figured out how I can do that /.\
<nh2>
domenkozar: ping
<srhb>
Infinisil: I use weechat, it's pageup. I just forget and then regurgitate something someone else has already said :P
<sphalerite>
Infinisil: alt-p/alt-n or pgup/pgdown
<srhb>
Infinisil: I think irssi has the same bindings, by the way
<srhb>
(Or at least weechat is closely modelled on irssi in that regard)
<Infinisil>
sphalerite: HOLY SHIT THANKS
<sphalerite>
hahaha
<Infinisil>
I always pressed Ctrl-P and Ctrl-N and wondered why it wouldnpt work
<sphalerite>
those switch between windows :)
<Infinisil>
exactly
<Infinisil>
my life is complete now
Itkovian has joined #nixos
<Infinisil>
Damn, you have no idea how nice it feels to finally be able to scroll back after all this time
<Infinisil>
I even turned on logging everything to a file, specifically so I could "scroll back"
MercurialAlchemi has quit [(Remote host closed the connection)]
rtjure has quit [(Ping timeout: 276 seconds)]
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Itkovian has joined #nixos
<Infinisil>
Yeah, but it's really hard to find something there
ixxie has joined #nixos
Itkovian has quit [(Client Quit)]
rtjure_ has quit [(Ping timeout: 260 seconds)]
ryanartecona has joined #nixos
marsel has joined #nixos
romildo has joined #nixos
Filystyn has quit [(Quit: Konversation terminated!)]
<romildo>
Where is the best place in the file system to put a nix expression for the jwm-settings-manager package? It is a configuration manager for JWM: https://github.com/Israel-/jwm-settings-manager
<sphalerite>
spluko: what do you want to achieve with the nix-shell?
<sphalerite>
Have the result of the build available in it?
<sphalerite>
You don't need to, you can just do ./result/bin/<name>
noobly_ has joined #nixos
<sphalerite>
but if you want to do it anyway I think the shortest way is nix-shell -p 'import ./default.nix'
<spluko>
I want to run the binary which has now been build and placed in the store
rtjure has quit [(Ping timeout: 268 seconds)]
<spluko>
...by nix-build
<spluko>
If I had built it with -A qlcplus, i could just use nix-shell -p qlcplus, but I may be completely wrong
<LnL>
I think you need to use nix-shell -I nixpkgs=. -p foo in order for -p to use your local checkout
<spluko>
LnL: even though I have already done nix-build?
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] jfrankenau opened pull request #27055: mpd service: Start when needed and harden (master...mpd-startWhenNeeded) https://git.io/vQ0xC
NixOS_GitHub has left #nixos []
<spluko>
I tried it and got "error: stack overflow (possible infinite recursion)"
<sphalerite>
spluko: just do ./result/bin/qlcplus or whatever
<sphalerite>
you don't need nix-shell for that
stanibanani1 has joined #nixos
<sphalerite>
But if you do want to use nix-shell I think the shortest way is nix-shell -p 'import ./default.nix'
<sphalerite>
As I said before
<Infinisil>
sphalerite: Didn't know that works
freusque has joined #nixos
rtjure has joined #nixos
<spluko>
Oh, so ./result is a symlink to the entry it created in the store
<spluko>
How does import ./default.nix work? How does that know about the entry in the store?
justan0theruser has joined #nixos
<spluko>
Is it some map to a cache?
boomshroom has joined #nixos
<boomshroom>
Good morning!
freusque has quit [(Ping timeout: 255 seconds)]
<boomshroom>
Has anyone tried directly creating a derivation without going through nix-instantiate?
justanotheruser has quit [(Ping timeout: 248 seconds)]
<rtjure>
seems like it was the ip(254?) and there was another mistake.. and I forgot I am using that machine to talk to you
marsel has joined #nixos
<boomshroom>
As in, making a tool that outputs .drv files directly
<rtjure>
thx sphalerite!
<Infinisil>
boomshroom: Why would you want that?
<Infinisil>
And that's exactly what nix-instantiate already does
justan0theruser has quit [(Quit: WeeChat 1.7.1)]
justanotheruser has joined #nixos
<boomshroom>
I'm thinking of making a tool to facilitate installing packages. I figured it would maintain it's own derivation that it builds into the user's environment and I was wondering if it would be possible for it to output a pre-instantiated .drv rather than a .nix.
layus has quit [(Read error: Connection reset by peer)]
layus has joined #nixos
carlosda1 has joined #nixos
pxc has joined #nixos
<boomshroom>
I wouldn't just write a simple wrapper around nix-env as I want it to still be declarative and have a list of packages installed with it like a mystuff buildEnv, but accessed with a similar interface as nix-env. Since it would just be one file, it would be easy to move it between machines.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Nadrieril opened pull request #27056: [neovim] Allow overriding the derivation of neovim even through the c… (master...override-configured-neovim) https://git.io/vQ0pO
NixOS_GitHub has left #nixos []
<boomshroom>
On my endevours to install Nix on my university account: findutils has failed with 3 test failures, all of which include "Cannot fork"
pietranera has quit [(Ping timeout: 260 seconds)]
ryanartecona has quit [(Quit: ryanartecona)]
romildo has quit [(Quit: Leaving)]
<boomshroom>
The first error is failed to create temporary directory because it already exists. Second: t-select-out.tmp: No such file or directory and ./test-select-out.sh: 25: test: =: unexpected operator. Third test-sigprocmask.c:85: assertion 'sigint_occurred == 1' failed.
carlosda1 has quit [(Ping timeout: 260 seconds)]
<boomshroom>
Closer inspection reveals that the third error has "sh: fork: retry: No child processes" instead of "Cannot fork."
zraexy has quit [(Ping timeout: 268 seconds)]
<boomshroom>
Someone at curseforge decided it was a good idea to only let people install mods through their client and not make it available on all platforms that support Minecraft.
<clever>
boomshroom: and that java launcher they had?, lets deprecate it!
<boomshroom>
clever: The modpack I'm looking for isn't even mentioned on the FTB site. It's been a while since I've played minecraft, and I figured I'd give it another try after seeing this modpack.
<boomshroom>
I can say, I wasn't expecting clever of all people to play Minecraft.
<sphalerite>
Do we have a #nixos minecraft server? :p
<clever>
i play it every now and then, but the computer has trouble getting reasonable perf
<clever>
Infinisil: i do have nix packages for multimc and ftb launcher
<clever>
and mcedit
<boomshroom>
I saw MultiMC, but the website didn't give anything for FTB. I guess it just hasn't updated?
<clever>
curse is trying to kill ftb
<boomshroom>
Well the manual approach didn't work.
<boomshroom>
Hold on, I think I found a way to replace the Twitch client with Nix itself. >:D
<Infinisil>
clever: Nice
<boomshroom>
Downloading the pack manually gave a manifest.json which includes the needed version of minecraft forge, and a list of "files" with a projectID and fileID which can be used to find a specific download link to a jar that can just be dropped into the mods folder.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Nadrieril opened pull request #27057: bitlbee service: Add option to load libpurple plugins into bitlbee (master...bitlbee-libpurple) https://git.io/vQ0hQ
NixOS_GitHub has left #nixos []
<boomshroom>
One of the problems I can think of is having the modpack in the store, but the writable saves and configuration files in a writable location.
<sphalerite>
you could make a wrapper that creates a temporary directory to replace .minecraft and symlinks in the mutable data from ~/.minecraft and the immutable modpacks
<boomshroom>
To the text editor!
praduca has joined #nixos
<Infinisil>
Oh hey I just had a cool idea
<Infinisil>
how about a per-irc shared machine
<Infinisil>
where we could test stuff
<Infinisil>
have it in a separate window and everybody could see what was going on
<Infinisil>
and typing stuff
<Infinisil>
and because all of it would be sandboxed you can't break it (unrecoverably)
<Infinisil>
admins could have some permissions over it, like resetting it etc.
stranger__ has joined #nixos
<Infinisil>
And there could be a way to register and upload to your specific folder
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Nadrieril opened pull request #27058: fzf: Include fzf shell scripts in output (master...fzf-shell-scripts) https://git.io/vQ0jo
NixOS_GitHub has left #nixos []
<stranger__>
hey, there is a fetchgit, but is there a neat way to apply few cherry-picks over checkout?
mkoenig has quit [(Remote host closed the connection)]
<catern>
to save you the click: chmod: changing permissions of '/nix/store/1v887yh765dmz7r3mlckqlgn2ny73qyq-xz-5.2.2-bin': Operation not permitted
<catern>
but I can definitely chmod that path
<symphorien>
the sandbox forbids chmod
<catern>
that seems doubtful considering the generic builder uses chmod :)
<catern>
and I am also not running this build as root - is the sandbox still happening?
stanibanani1 has quit [(Ping timeout: 268 seconds)]
<gchristensen>
catern: is it by chance trying to set higher order bits?
<gchristensen>
like 1777
<gchristensen>
(the 1 is the higher order bit)
<catern>
not sure how I can check that?
<catern>
also, I just did "nix-store -K --realise /nix/store/...-drv; env -i bash; source /tmp/tmp-build-location/env-vars; source $stdenv; fixupPhase"
<catern>
and it worked :(
<catern>
whyyyy :(
<catern>
gchristensen: I assume the chmod is just the one in the generic fixupPhase, which just does +w
<gchristensen>
ah
tmaekawa has joined #nixos
<gchristensen>
how did you get here?
<catern>
I'm trying to set up Hydra, so I am just setting up a patchelf build to get started. it's pulling from internal (identical) copies of nixpkgs and patchelf, successfully. then when it goes to build patchelf, I get a failure in the build for xz - the one you see above
<catern>
(I am setting up Hydra on Debian, and without root access)
<gchristensen>
what nixpkgs version?
<catern>
I'm also not sure exactly why it isn't using substitutes, but hopefully that doesn't matter
<catern>
release-17.03
<catern>
the config is exactly copied from what's on hydra.nixos.org
<gchristensen>
hmm muilds for me but /nix/store/vkbh4xbgxvx3v9813d4kdwv8ggwrp038-xz-5.2.2-bin
<gchristensen>
why different I wonder
<catern>
i noticed that too, comparing to release-17.03 on my other installation, but wasn't sure how to debug it
pietranera has joined #nixos
<catern>
the depends of my xz seem quite different:
<catern>
I guess that's chmod -R trying to recurse
<catern>
but why isn't it succeeding in the first place?
<boomshroom>
I'm trying to use nix-prefetch-url, but the file name isn't a part of the url. Instead the provided url redirects to the filename. The reason I can't use the redirect is because it's not derivable from the json list of dependencies I'm trying to use.
jdjfigihegeghd has joined #nixos
<boomshroom>
Is it possible to use nix-prefetch-url if I don't know the end filename?
eacameron has joined #nixos
jdjfigihegeghd has quit [(Read error: Connection reset by peer)]
<catern>
boomshroom: could you just download the file then use nix-store --add?
<boomshroom>
catern: that works. Now I just need a way to easily call shell commands and parse json.
<clever>
gchristensen: i believe hydra checks for subs after the eval, inside the hydra-queue-runner daemon
<clever>
gchristensen: as hydra loads each job from the queue, it will check for subs, before moving to the next job
pietranera has quit [(Remote host closed the connection)]
<clever>
gchristensen: i have seen it sit on single-threaded curl requests, and not fire new jobs up
<gchristensen>
ohhh sorry!
<gchristensen>
yes it is the queue monitor thread, not evaluator thread!
<clever>
but also, the evaluator will run the build-queued perl hook, for every single build
<clever>
eelco made a commit recently saying it takes 0.7sec for each, and ~9 hours in total
<clever>
during which time, it cant do another eval of that jobset
<gchristensen>
I think he disabled that
<clever>
yep
eacameron has quit [(Ping timeout: 260 seconds)]
<clever>
and that was just a few hours after i fixed a problem in the github status plugin, related to it
<clever>
because it took 9 hours, it could say a build was queued, after the build passed
<clever>
causing github to claim the build is pending
<catern>
heh, an amusingly fundamental problem on another box (presumably because /nix is a symlink there - it's a bind mount on the box I've been working on before) https://hastebin.com/oqilimucog "configure: error: C compiler cannot create executables"
<clever>
catern: can you pastebin the entire output of "mount"?
tmaekawa has quit [(Quit: tmaekawa)]
<catern>
clever: with regard to my previous problem? or the one I just posted?
<clever>
catern: the one you just posted
justan0theruser has joined #nixos
<catern>
I don't expect help with that one, I assume it's just due to /nix being a symlink on this host; also I think I wasn't clear, this problem is occuring on a box where there are no bind mounts or anything happning, so I assume "mount" is not useful
<clever>
but the tmpfs its building in might be mounted noexec
<catern>
oho
jgertm has joined #nixos
<spinus>
I'm working with kvm/qemu, I'm using standard config, but it looks like it mounts /nix/store from host system and than mounts overlays to keep changes to nix store. When I'm not mounting /nix/store, it doesn't boot (as it requires stuff during the boot). What is good way to have persistant /nix/store only inside vm without mounting it? Would it be possible to copy /nix/store/ to disk during the boot if it does not exist? If
<spinus>
put that?
<catern>
clever: nice guess but it's not mounted noexec
justanotheruser has quit [(Ping timeout: 240 seconds)]
tmaekawa has joined #nixos
<catern>
it's not worth debugging this issue though, there's no point in doing any builds on a box where /nix is a symlink, it will fail for various reasons (later, when I can, I will make it not a symlink)
<clever>
spinus: you would need to use make-disk-image.nix, and then nix-copy-closure or nixops to keep it up to date
<clever>
spinus: this creates a disk image containing a full nixos install, with grub, and xen
<clever>
then boots it under qemu
<clever>
and makes use of xen commands inside the guest
eacamero_ has joined #nixos
<spinus>
xen in qemu?
<clever>
yes
<spinus>
what does it do?
<spinus>
or, what's the point
<clever>
i wanted to test xen unikernels, but they only run under the xen hypervisor
<clever>
and i wanted the entire test to run without root
<clever>
so i had to run xen under qemu
<spinus>
wow, cool stuff
<clever>
but the critical problem, is that the 9plan/virtio stuff to share /nix/store/ from the host, doesnt work
<clever>
so i need a new 1gig disk image file for every test
<clever>
say goodbye to your free space :P
eacameron has quit [(Ping timeout: 260 seconds)]
<spinus>
samba?
<spinus>
nfs
<clever>
the host lacks root
<clever>
its all happening inside a nix-buid
<clever>
build*
<spinus>
maybe mount in initrd?
<spinus>
ah
<clever>
and the linux is inside xen, inside qemu
<clever>
it only detects xen, so it turns off qemu features
<clever>
who would be crazy enough to run a vm inside a vm?
<spinus>
the gist name exactly describes that :)
spluko has quit [(Quit: Page closed)]
<clever>
exactly
<clever>
but if your fine with impure stuff like persisting the disk image, and using nix-copy-closure to import new builds
<clever>
it will work for your needs
<clever>
just delete the xen bits
<spinus>
I never thought about running that in qemu before, but maybe it's time for me to play with L4
eacameron has joined #nixos
eacamero_ has quit [(Ping timeout: 248 seconds)]
<spinus>
I'm exactly very fine with persisting disks, I try to emulate "cloud" :]
<clever>
just make sure you enable kvm, or performance will be horid
<spinus>
yeah, I'll add qemu module
<spinus>
btw, do you know by any chance what's happening when the nix-store changes in host (for example some stuff is removed), is guest going crazy?
<clever>
for the normal guests, only stuff that the guest should know about is registered into the db.sqlite
faffolter has quit [(Ping timeout: 268 seconds)]
<clever>
and the host knows thats in use via the cmdline in /proc
<clever>
so it wont delete that closure
<clever>
but when you start doing weird things, you might break it in weird ways
eacameron has quit [(Read error: Connection reset by peer)]
sigmundv_ has joined #nixos
eacameron has joined #nixos
<spinus>
clever: yeah, so I was thinking about the scenario like: I'm starting vms, doing stuff, stopping. Another day, I'm doing nix-strore --gc and than try to run guests
<spinus>
so yeah, probably disk images is the way to go :)
<spinus>
thanks again, I'm looking at your gist now
<clever>
the build-vm stuff in nix is mostly meant for read-only use of the store
<clever>
where you make a nix file that pre-builds everything it will need, before launching the vm
jsgrant has quit [(Ping timeout: 240 seconds)]
Itkovian has joined #nixos
eacameron has quit [(Ping timeout: 240 seconds)]
<boomshroom>
I wonder sometimes when writing scripts to generate nix-files why can't I just write it in Nix. Just because I don't know the hash now doesn't mean I won't later.
eacameron has joined #nixos
<boomshroom>
I find it particularly annoying when the website that's hosting the file posts a hash, but you need to download the hash in order for it to be considered deterministic, but you still can't know the hash of the hash.
tmaekawa has quit [(Quit: tmaekawa)]
eacameron has quit [(Ping timeout: 276 seconds)]
<clever>
boomshroom: builtins.fetchurl allows you to fetch things in an impure fasion, but it will re-download it every time you eval the nix file
<clever>
and thats usualy a bad design in general, because the version can change without warning
eacamero_ has joined #nixos
<boomshroom>
clever: Can I use builtins.fetchurl and use its output as a hash for another fetchurl without losing reproducability?
<catern>
boomshroom: by definition no, because its output could be any arbitrary thing, it could even not be a hash
Turion has quit [(Ping timeout: 248 seconds)]
mkoenig has joined #nixos
eacameron has joined #nixos
<boomshroom>
catern: If it wasn't a hash, it would just fail the build rather than leave it with an unchecked download.
<praduca>
hi, anyone here use pgadmin?
eacamero_ has quit [(Ping timeout: 255 seconds)]
<praduca>
I want to know if the fact that it doesnt end up on the system menu is a bug or not... if so I will fill a bugreport
bennofs has joined #nixos
<clever>
boomshroom: but the website could change the tarball and hash at any point, and then it ceases to be reproducable
<catern>
boomshroom: yes, the fact that that would cause the build to fail would make it not reproducible
<catern>
I guess that's a bit too stringent
phinxy has quit [(Ping timeout: 276 seconds)]
<catern>
go with what clever said
<boomshroom>
If one of the websites used in Nixpkgs went offline, that would also cause the build to fail.
sg2002 has joined #nixos
<clever>
yeah
justan0theruser has quit [(Quit: WeeChat 1.7.1)]
<clever>
but if you properly delcare the hash, it can be cached to tarballs.nixos.org
eacameron has quit [(Ping timeout: 260 seconds)]
<clever>
and then it can skip the site entirely
<catern>
(tarballs.nixos.org is dead, I thought?)
<sg2002>
Hello. Have a question - recently I updated my box to plasma5 and now there's no option to switch to a different user from kde. Is this becuase the new dm, whatever it's called does not support this?
<catern>
(hydra just does the caching now)
<catern>
(but yes)
<clever>
catern: not sur eabout that, havent been keeping up wtih how the config is changing behind the scenes
<boomshroom>
Really, the current system doesn't drop the impurity, it just moves it to the person or machine writing the derivation. And it's impractical to cache every possible package.
justan0theruser has joined #nixos
noobly_ has left #nixos []
tmaekawa has joined #nixos
carlosda1 has joined #nixos
justan0theruser has quit [(Client Quit)]
eacameron has joined #nixos
justan0theruser has joined #nixos
<boomshroom>
As a person, I am lazy. Therefore, if I can make a machine do most of the work, it will. That means 1 step asking nix for a type of package and its id and it taking care of the rest, rather than use a separate tool to download everything impurely and then tell Nix what to do assuming that what it downloaded is reproducible.
<spinus>
boomshroom: for the same reason I prefer nix way
<spinus>
I spent so many hours debugging crap
<spinus>
waste of time debugging because somebody changed the file on some hosting
<spinus>
or changed a tag in git
<boomshroom>
I basically have to download a package before telling Nix how to download what I just downloaded, despite the fact that it's unlikely anyone else will use it.
carlosda1 has quit [(Ping timeout: 240 seconds)]
<spinus>
boomshroom: I have a scripts for that, for most 3rdparty packages I have "update" script which fetches stuff and produce nix source file
<spinus>
garbas uses that aproach in firefox in nixpkgs I think
<spinus>
so you fetches new sources, run your tests, if everything is ok, you commit that and stay happy
eacameron has quit [(Ping timeout: 255 seconds)]
eacameron has joined #nixos
DeaDSouL has joined #nixos
<boomshroom>
The script I'm writing doesn't even do updates, it takes a specific version and gives its dependencies, which are all given as specific versions.
<boomshroom>
So the whole thing is as deterministic as the file host.
<boomshroom>
One thing that's annoying is that he md5 of each file is provided... embedded in HTML.
<boomshroom>
Is it possible to write a Nix derivation that makes a Nix derivation?
eacameron has quit [(Ping timeout: 268 seconds)]
<simpson>
Yes; the pattern is called import-from-derivation.
<simpson>
And it works like it sounds: write an expression to the Nix store, then import from it.
civodul has quit [(Quit: ERC (IRC client for Emacs 25.2.1))]
eacameron has joined #nixos
<joepie91>
praduca: depending on your environment you may need to relogin to your session to trigger a rescan of applications
<praduca>
ah, ok. The thing is I installed it for some weeks now, and even an reinstall doesn't do the icon to appear on menu... but other apps do
<joepie91>
praduca: have you restarted or relogged-in yet, though?
<joepie91>
a lot of application menus do rescans on every logon
<boomshroom>
The first derivation would be nondeterministic (unless the file-host acts nicely), the output derivation would be deterministic.
<joepie91>
praduca: hm, now that I check, pgadmin isn't in my application menu either
<joepie91>
so yeah, that might actually be a package bujg
<joepie91>
bug*
<boomshroom>
BRB: going to mow the lawn.
<praduca>
both. is a desktop, and i did a restart after reinstall pgadmin just now
boomshroom is now known as boomshroom-away
<joepie91>
yeah, def a bug then
tmaekawa has quit [(Quit: tmaekawa)]
<praduca>
i think i will try to login on kde to see if it correct the problem...
<praduca>
I use gnome and xfce
<joepie91>
mind that it's going to be a bug either way :P
<joepie91>
XFCE 4 here with whiskers menu
<joepie91>
or w/e it's called
<joepie91>
the slightly fancier menu
eacameron has quit [(Ping timeout: 260 seconds)]
<praduca>
ok, I will try to do the reinstall and restart the computer on kde just in case. if the problem doesn't solve, I fill a bug report for it
<praduca>
tks to all!
bennofs has quit [(Ping timeout: 248 seconds)]
<gchristensen>
praduca: try opening the program via the terminal maybe?
<joepie91>
praduca: please file a bug even if a KDE start *does* solve the issue :)
<praduca>
ah, it works
<joepie91>
because even if it works in KDE, that just means it's a bit less broken, but still broken
<praduca>
I'm just trying to figure out if the menu is a bug :) i'm opening it from the terminal since
<praduca>
but tks :)
<praduca>
rebooting
<joepie91>
well yeah - if something GUI-y is installed but does not appear in the menu, then it's going to be a bug either way :P
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
Wizek_ has joined #nixos
Itkovian has joined #nixos
Jackneilll has quit [(Remote host closed the connection)]
simukis has quit [(Ping timeout: 255 seconds)]
jdjfigihegeghd has joined #nixos
jdjfigihegeghd has left #nixos []
pietranera has quit [(Quit: Leaving.)]
eacameron has quit [(Ping timeout: 240 seconds)]
arianvp2 has joined #nixos
eacameron has joined #nixos
phinxy has joined #nixos
praduca has joined #nixos
Fare has quit [(Quit: Leaving)]
eacameron has quit [(Ping timeout: 248 seconds)]
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Lassulus opened pull request #27066: ucspi-tcp: remove tests for file permissions (master...ucspi-tcp-fix) https://git.io/vQEIb
NixOS_GitHub has left #nixos []
<spinus>
clever: disk is built ok, but at boot time, it says "found a dos partition table in /dev/vda", did you have that by any chance?
Itkovian has quit [(Quit: My MacBook has gone to sleep. ZZZzzz…)]
riclima has joined #nixos
riclima has quit [(Read error: Connection reset by peer)]
<spinus>
it's kind of strage, I connected through vnc and terminal, but keyboard doesn't react (but it's working in grub)
stranger__ has quit [(Quit: Connection closed for inactivity)]
marsel has quit [(Ping timeout: 260 seconds)]
hapticFeels has joined #nixos
jgertm has quit [(Ping timeout: 240 seconds)]
magnetophon1 has joined #nixos
<magnetophon1>
I have a couple of system profiles that I'd like to get rid of completely. How can I do that?
mitchty has quit [(Remote host closed the connection)]
mitchty has joined #nixos
<gchristensen>
magnetophon1: find the profile's gc root via `nix-store --gc --print-roots` then delete it
celldee has joined #nixos
<magnetophon1>
gchristensen: Thanks, so I can just manually delete the unneeded folders in "/nix/var/nix/profiles/system-profiles/"?
pikajude has quit [(Quit: ZNC 1.6.5 - http://znc.in)]
<gchristensen>
yeah, then
<gchristensen>
nix-collect-garbag
<gchristensen>
e
pikajude has joined #nixos
<magnetophon1>
gchristensen: thanks!
celldee has quit [(Client Quit)]
vandenoever has quit [(Ping timeout: 248 seconds)]
hiratara has quit [(Ping timeout: 246 seconds)]
Rajsun has joined #nixos
carlosda1 has joined #nixos
hiratara has joined #nixos
eacameron has joined #nixos
carlosda1 has quit [(Ping timeout: 248 seconds)]
eacameron has quit [(Ping timeout: 260 seconds)]
eacameron has joined #nixos
<spinus>
I found that I had "qemu" in modules and that was part of the problem
<spinus>
looks like qemu module requires some specific layout/fs
eacameron has quit [(Ping timeout: 240 seconds)]
eacameron has joined #nixos
ddd12 has joined #nixos
<praduca>
Hi, anyone knows if VICE emulator need some configuration to work properly on nixos?
eacameron has quit [(Ping timeout: 260 seconds)]
eacameron has joined #nixos
<boomshroom-away>
If I make a derivation that depends on builtins.fetchurl, it will download the file unconditionally, but will still use the old versions if the hash is the same, correct?
boomshroom-away is now known as boomshroom
eacameron has quit [(Ping timeout: 276 seconds)]
davidak has quit [(Quit: Leaving.)]
<boomshroom>
Is it possible to call bash code outside of stdenv.mkDerivation?
eacameron has joined #nixos
<magnetophon1>
when I try to build with a musnix RT kernel, I get: "error: anonymous function at /home/bart/source/nixpkgs/pkgs/os-specific/linux/kernel/generic.nix:1:1 called without required argument ‘hostPlatform’, at /home/bart/source/musnix/pkgs/os-specific/linux/kernel/linux-4.9-rt.nix:3:1", here's that file: https://github.com/musnix/musnix/blob/master/pkgs/os-specific/linux/kernel/linux-4.9-rt.nix
<spinus>
boomshroom: yes
<magnetophon1>
any ideas what causes that?
<spinus>
boomshroom: what do you mean outside?
thc202 has quit [(Ping timeout: 260 seconds)]
hamishmack has quit [(Quit: hamishmack)]
<boomshroom>
spinus: As in without instantiating a derivation with a "builder" attribute. Mostly because I don't know the name if the file statically.
ebzzry has joined #nixos
<spinus>
boomshroom: I think I don't get your use case
eacameron has quit [(Ping timeout: 276 seconds)]
<boomshroom>
like an `extern` function in c and other languages. Or `native` in Java. I could make a derivation and just have the name be the provided ids with the actual file inside a directory.
eacameron has joined #nixos
sigmundv_ has quit [(Ping timeout: 260 seconds)]
eacameron has quit [(Ping timeout: 260 seconds)]
<boomshroom>
How do I download a file from the commandline who's name isn't the basename of the provided url?
<spinus>
curl url -o file?
hiratara has quit [(Remote host closed the connection)]
<boomshroom>
spinus: I don't know the filename either, it's gotten from a redirect.
<spinus>
curl -L follows redirects, try with that
<boomshroom>
(I mean, I o for this specific one, but I like making things general)
<boomshroom>
curl may be able to follow redirects, but I need the basename of the redirect. If I go to the url in my browser, the url ends in "download", but when it actually downloads, it has the proper filename.
eacameron has quit [(Ping timeout: 240 seconds)]
<magnetophon1>
gchristensen: hmm, I seem to have been over eager with deleting GC roots: "File or directory doesn't exist: /nix/var/nix/profiles/per-user/root/channels/" how do I recreate it?
<spinus>
boomshroom: curl should catch that
<spinus>
if not, you can follow the redirects manually
<spinus>
and you should have filename in the header returned by last call
<boomshroom>
For something ubiquitous in web browsers, I'm surprised it's so hard to find the functionality in a command line tool.
<gchristensen>
magnetophon1: why did you delete it?
<clever>
spinus: is partitioned=true; and installBootloader=true set?
<magnetophon1>
gchristensen: cause I'm dumb
<magnetophon1>
:/
<clever>
spinus: ahh
<magnetophon1>
gchristensen: "nix-channel --update" seems to have fixed it though
<gchristensen>
ok but maybe be cautious in there.
<gchristensen>
my question again though is why did you delete it? what were you hoping it would do?
<clever>
2017-07-02 18:42:34 < magnetophon1> I have a couple of system profiles that I'd like to get rid of completely. How can I do that?
<magnetophon1>
gchristensen: I was just trying to get rid of unneeded profiles, and mistake that for one
<magnetophon1>
clever: yup
<gchristensen>
why are you trying to get rid f unneeded profiles?
eacameron has joined #nixos
<clever>
magnetophon1: there are 4 to 5 profiles most of the time, nixos, channels (root, your user), nix-env (root, your user)
<magnetophon1>
gchristensen: more diskspace, less cutter in grub
<gchristensen>
and nix-collect-garbage -d doesn't do enough for you?
<clever>
only the ones starting with system show up in grub, and even after you GC them, you need to rebuild the grub config
<magnetophon1>
s/cutter/clutter
<spinus>
clever: yes, both set. I removed qemu from modules and solved that one. Now I'm fighting with another thing, it does not see the disk at all. I used shell_on_fail and no disk at all, maybe I have wrong params to libvirt
<clever>
spinus: you may need to include the kernel modules in the initrd, one sec
<magnetophon1>
clever: if I do a successful rebuild switch my grub shoud be OK again, right?
<clever>
magnetophon1: yeah
<magnetophon1>
phew
<clever>
spinus: the qemu-vm.nix in nixos tries to also share the store, but i have a more stripped down one
<gchristensen>
magnetophon1: did you try nix-collect-garbage -d ?
<magnetophon1>
gchristensen: yes
<clever>
spinus: this only puts the qemu drivers into the initrd, but doesnt force weird config onto things
<gchristensen>
it wasn't thorough enough?
carlosda1 has joined #nixos
<magnetophon1>
gchristensen: no, I had a few profiles witch pointed to old nixos versions, so lot's of disk-space
<spinus>
yeah, I'm exactly looking at qemu file in nix now and trying to find modules
<spinus>
clever: ^^
<gchristensen>
but nix-collect-garbage deletes every generation but the one you booted with, and the current one
<clever>
spinus: the one i linked should have most of them
<gchristensen>
if you pass '-d'
<magnetophon1>
gchristensen: and clutter in grub. they are gone now. (haven't rebooted yet though, so idk for sure about grub)
eacameron has quit [(Ping timeout: 248 seconds)]
<boomshroom>
Well, so far curl options "-O", "-J", "-LO", and "-LJ" don't do what I want.
<gchristensen>
but that is what nix-collect-garbage does, is what Im trying to say, and I suspect you're not aware of the `-d` option since it is less dangerous that rm'ing random symlinks
eacameron has joined #nixos
<magnetophon1>
gchristensen: it didn't delete them. that's why I asked her about removing profiles. and you told me I could rm links... no?
<spinus>
clever: thank you sir, trying that now (I see also that qemu config has some kernel setup, I'll try that next)
<gchristensen>
it sounded like you had a specific profile, not general clean up :)
<spinus>
btw, I was wondering, when nixosState is bumped, when I change it in configuration.nix? (it only goes forward, right?)
<clever>
spinus: it should never be bumped
<boomshroom>
I want "ActuallyAdditions-1.10.2-r105.jar", not "download"
erictapen has quit [(Ping timeout: 240 seconds)]
<clever>
spinus: the whole point of that option, is so that nixos knows what state your nixos was originally installed in
<magnetophon1>
clever: sure, that would be more simple, but then I'd be missing all my recent PR's which just landed in unstable. Where can I read up on those cross compiler changes?
Guest27936 has quit [(Quit: Lost terminal)]
<boomshroom>
wget prints out the redirected url, but I can't find an option to make the output its basename rather than what I typed.
<spinus>
clever: ah, I think I need to read
<magnetophon1>
clever: I've already reported a bug 15 min ago...
<tilpner>
spinus - On reinstallation, probably
<clever>
magnetophon1: you may want to compare it to the new versions of the kernel stuff in nixpkgs
<clever>
spinus: stateVersion controls a range of things that arent backwards compatible, like the postgresql format on-disk, what type of ssh host keys sshd uses, and a few others
sg2002 has left #nixos ["ERC (IRC client for Emacs 25.2.2)"]
<gchristensen>
clever: that option needs more in-line docs :P
<spinus>
boomshroom: in that case, looks like the server doesn't return proper header with filename
<spinus>
it only redirects to new path
<magnetophon1>
and gchristensen: thanks you too! both of you have been very helpful, like always!
<clever>
boomshroom: i believe with the name attribute of fetchurl, you can just set the name
<gchristensen>
<3 I'm sorry I got grumpy about nix-collect-garbage / -d
<clever>
boomshroom: and nix-prefetch-url can accept a nix file and attribute path
<spinus>
I see curl and wget can use remote filename (curl with -O) but server must return proper response
<spinus>
browsers do a lot of tricks to provide better user exp
<boomshroom>
clever: I'm not
eacameron has joined #nixos
<spinus>
clever: tilpner: what if I want to upgrade all those, postgres format and keys :)? reinstall?
<boomshroom>
I'm not going to manually encode 96 filenames for this.
<clever>
spinus: bump the state version, and then fix whatever breaks
<tilpner>
spinus - I don't know what's stored in that postgres db, but I imagine wiping only the relevant parts would be easier than reinstalling
<magnetophon1>
gchristensen: NP, sorry for being so careless. NixOS has spoiled me, making me think my system is unbreakable. (and it hasn't let me down this time either. :) )
<tilpner>
spinus - You would lose data in either case (unless you intend to migrate it manually, which is probably too tedious), so there's no reason to reinstall
<clever>
boomshroom: that does some things involving modpacks in curse
ilyaigpetrov has quit [(Quit: Connection closed for inactivity)]
<spinus>
tilpner: clever: I see, thanks for explaining, so actually I should be good. Curretnly my approach is that I connect to my vms, nixos-generate-cofnig --show-hardware-only (state is here) and I merge that with my config.
<magnetophon1>
clever: that was easy enough: I did some git-timemachine in emacs, and found that all I needed to do was add "hostPlatform, " to the first line... kernel is building, PR to musnix is in the making...
<clever>
:D
<boomshroom>
clever: from what I can tell, it seems to be three hardcoded modpacks that use mods from curse, rather than scripts to import modpacks from curse.
eacamero_ has quit [(Ping timeout: 260 seconds)]
<clever>
boomshroom: it might have been generated somewhere, you can try asking Baughn next time he is on
<clever>
brb
<Baughn>
Uhm?
<Baughn>
Oh, yeah. I have a tool to scrape / update packs on curse, but it's not in that repository. I kind of left it at the 90%-done mark, see.
<Baughn>
You can use the 'import' subcommand to convert a Curseforge .zip modpack to the .yaml format the tool otherwise uses as input.
mkoenig has quit [(Remote host closed the connection)]
<boomshroom>
Baughn: Thank you. I found cursetool when looking where 'builder' was generated, and while I don't care about the yaml, it otherwise seems to do most of what I want. Now to get it to output a client configuration rather than a server configuration.
<Baughn>
It won't do that directly, but the builder can output an MCUpdater configuration.
<Baughn>
It's got comments on how to do so on localhost if you'd like to try it.
justelex has quit [(Read error: Connection reset by peer)]
justelex_ has joined #nixos
<boomshroom>
Baughn: I'll check out MCUpdater. I like to do things with the vanilla launcher. I keep a 'minerafts' subdirectory of my .minecraft where I keep my modpacks.
<Baughn>
The pack-builder is very much geared towards running servers. MCUpdater is how I get people clients to connect to said server.
<Baughn>
There simpler ways, if you just want to run a Curse pack. MultiMC can do it, for example.
NixOS_GitHub has joined #nixos
<NixOS_GitHub>
[nixpkgs] Profpatsch opened pull request #27068: i3 man & doc (master...i3-man) https://git.io/vQE3I
NixOS_GitHub has left #nixos []
marantz has quit [(Quit: Leaving.)]
erictapen has joined #nixos
nh2 has joined #nixos
<boomshroom>
"packs without servers are useless" Whoever wrote that clearly doesn't understand singleplayer.
<Baughn>
Perhaps not, though some people do claim performance improvements from splitting the game in half. ;-)
<boomshroom>
I've tried running a local server. It did not work.
spinus has left #nixos []
<Baughn>
Oh, that does typically mean on a second computer.
eacameron has joined #nixos
<boomshroom>
Baughn: Oh. I have tried connecting to a server on my desktop from my laptop. It wasn't terrible, but the keyboard, trackpad, and monitor on my laptop are nowhere near as enjoyable as my full desktop setup.
<Baughn>
...yeah, I don't think that'd overcome your laptop not being a desktop.
eacamero_ has joined #nixos
justelex_ has quit [(Ping timeout: 255 seconds)]
eacameron has quit [(Ping timeout: 240 seconds)]
erictapen has quit [(Ping timeout: 240 seconds)]
<clever>
boomshroom: i also prefer a private server so chunkloaders dont cripple my system when i'm not actually playing
<clever>
(aka, having to leave the entire client open)
eacamero_ has quit [(Ping timeout: 268 seconds)]
markus1189 has joined #nixos
<clever>
boomshroom: and if i forget to even play the game for a week, i can login to a surprise of more stuff, or game-breaking lag from an out of control farm, lol
markus1199 has quit [(Ping timeout: 260 seconds)]
<boomshroom>
clever: I don't know if that's a good thing or a bad thing. One thing I do know is it's hard to convert a singleplayer world to a multiplayer world. The last time I tried that, I ended up teleporting and duplication items.
<clever>
the only thing i can think of that would cause that, is if you where forcing the game to play offline
<clever>
the server thinks your a different player
elninja44 has joined #nixos
pie__ has quit [(Ping timeout: 240 seconds)]
hellrazor has quit [(Ping timeout: 260 seconds)]
hellrazor has joined #nixos
phinxy has quit [(Read error: Connection reset by peer)]