<acowley>
Anyone have any experience with SDL2 (specifically, the sdl2 haskell package) resulting in an error: sdlExceptionCaller = "SDL.Video.createRenderer", sdlFunction = "SDL_CreateRenderer", sdlExceptionError = "Couldn't find matching render driver"
rardiol1 has quit [Ping timeout: 244 seconds]
lord| has joined #nixos
<acowley>
It's almost certainly a problem finding an OpenGL driver
<acowley>
Yep, some sneaky LD_PRELOAD action made it work
<acowley>
Well that's existentially disappointing
<joepie91>
acowley: something messing with your LD_LIBRARY_PATH, possibly?
<joepie91>
or alternatively the library looking in a fixed path
<acowley>
joepie91: My guess is the second one. I notice the ldd output on the executable doesn't mention libGL, so perhaps SDL2 is opening it manually.
<{^_^}>
[nixpkgs] @AndersonTorres pushed 2 commits to master: https://git.io/fNTAP
<acowley>
Can anyone think of a downside in doing that?
<acowley>
If not, I can open a PR (or if an SDL2 maintainer is around...)
<clever>
acowley: note that propagatedBuildInput's are not available at runtime
<acowley>
clever: Oh, well then I don't know why it fixed the problem
<clever>
acowley: all that does, is automatically add libGL to the buildInputs of anything that has SDL2 in the buildInputs
<acowley>
I guess this shall persist as a nixpkgs mystery then, and hopefully these IRC logs are useful to future people wanting to use SDL2
<clever>
setup hooks within libGL still run, and can mutate the stdenv of whatever was depending on SDL2
<clever>
but thats all at build time
Sonarpulse has joined #nixos
markus1199 has joined #nixos
<{^_^}>
[nixpkgs] @Infinisil opened pull request #43311 → maintainer-list: sort and format → https://git.io/fNTAd
<infinisil>
joepie91: rotaerk: ^^
<{^_^}>
[nixpkgs] @dtzWill opened pull request #43312 → freecad: fix by using python-enabled boost → https://git.io/fNTAF
markus1189 has quit [Ping timeout: 276 seconds]
doyougnu has quit [Ping timeout: 244 seconds]
orivej has quit [Ping timeout: 240 seconds]
tertle||eltret has joined #nixos
sbdchd has joined #nixos
alexteves has quit [Remote host closed the connection]
sbdchd has quit [Ping timeout: 260 seconds]
<joepie91>
acowley: I think that you've probably just inserted a software-rendered libgl?
<joepie91>
normally the LD_LIBRARY_PATH also searches in /run/opengl-driver/lib which is where your chosen graphics drivers get symlinked
<joepie91>
as libgl is provided by the GPU drivers
<joepie91>
acowley: so then your patch would be akin to "always provide software-rendered OpenGL when SDL is used"; which, depending on the path search order, may or may not be a problem :)
stepcut has quit [Remote host closed the connection]
<acowley>
joepie91: I don't know! What clever says is surely right, so I'm not going to do anything unless I get a better handle on what's happening.
<clever>
acowley: you could try to diff the good and bad derivation, both with `diff -u -r` on the results, and nix-diff on the .drv's
<joepie91>
acowley: quickest way to find out whether it forcibly links against software opengl is to look at the libGL that's loaded when running the application and whether it's in 1) the nix store, in a package with 'mesa' in the name, or 2) in /run/opengl-driver (or possibly in a nix store path with a specific vendor's GPU driver, depending on whether symlinks are resolved or not)
<clever>
acowley: and check with nix-store -qR to see if libGL is somehow winding up as a runtime dep anyways
<joepie91>
acowley: this assumes you *have* a /run/opengl-driver, of course
<clever>
acowley: you can check /proc/<PID>/maps to see what libraries it has loaded while running
<clever>
just note that the symlinks will be resolved, so you need to read the links in /run/opengl-driver and confirm its loading the right one, one not from -qR
<kalbasit>
I'm trying to install `ruby` and `rake` but they both provide `bin/bundle` and so they collide. How to fix it? Why does `rake` provide `bundler` as well?
<clever>
kalbasit: you could make an override that joins the 2 packages using buildEnv, and set ignore collisions to true, then install that override instead
<samueldr>
or possibly prefer using a nix-shell instead
<clever>
yeah, that would also work out well
<acowley>
clever, joepie91: thanks for the tips! I have to wrap it up for the time being, but I will investigate further next time I do some maintenance on this project (the ffmpeg-light haskell package).
* clever
heads off to bed
<kalbasit>
samueldr: clever: but it seems wrong to me that I can't simply install ruby and rake together without having to go through hoops, isnt' it?
<samueldr>
it may be, it's weird if both rake and ruby provides bundler's executables
<clever>
kalbasit: things like ruby usually arent supposed to be installed
<clever>
when using nix
<kalbasit>
clever: I don't think that's an assumption a distribution can make. I use Nix as my daily driver on my laptop and I should be able to use ruby/rake when developing ruby projects
<kalbasit>
when using Nix of course
<samueldr>
runtimes, dependencies (and libs) are usually hidden away
<clever>
kalbasit: make a shell.nix that has ruby in the buildInputs, and run nix-shell to get access to ruby
<clever>
kalbasit: thats what nix requires, for developing with any language
<samueldr>
that's what I do at $work, where we work with ROR
<kalbasit>
I see
<clever>
it also entirely avoids the problem of different projects needing different versions of ruby
<samueldr>
(my colleages too, do so, using nix on macOS and other linux distros)
<clever>
nix-shell always provides the one that shell.nix asks for
<kalbasit>
`nix-shell` gives me a bash shell not zsh. I found that using `direnv` can be way more pleasant
<clever>
not what you happened to install last
<clever>
and you reinstall daily to change
<samueldr>
IIRC direnv has support for nix, I haven't looked at direnv much though
* clever
heads off to bed
<kalbasit>
samueldr: yea, I'm currrently using it to dev at work as well
<kalbasit>
I guess I'll just remove all programming languages out of my dotfiles and into my individual projects
<samueldr>
there's also another bonus, dependencies are harder to "leak in"
<samueldr>
e.g. if you start writing something that requires rake, it *has* to be described in the shell.nix (or default.nix)
<kalbasit>
samueldr: question since you mentioned your collegues at work. We currently use `asdf` to manage dependencies (everyone is on Mac except for me). How well does NIx work on Mac? Can I easily lock on specific version regardless of which channel they end up using?
<samueldr>
works fine-to-great, most issues are teething issues with nix and not issues with nix
<samueldr>
and I'd even say teething issues with package management
<samueldr>
(one of our dev used windows exclusively beforehand, without package management)
<samueldr>
and then we simplified to whatever nix 2.0 added
<rotaerk>
nix 2.0 added a simpler way?
* samueldr
may be mistaken
<samueldr>
ah, that's not the page I was looking for
<samueldr>
so yeah, that's the way
<kalbasit>
samueldr: I know this might not be feasible, but is there a way to share what you have done at work? I don't feel like re-inventing the wheel :)
<samueldr>
almost
<infinisil>
rotaerk: builtins.fetchTarball now takes a sha256
<infinisil>
Which allows it to not have to download it once again every hour
<rotaerk>
oh, didn't realize it used to not do that
<infinisil>
Well before you could just pass an url to fetchTarball
<samueldr>
I'll take a tiny bit of time, and re-write it
andreabe_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
andreabe_ has joined #nixos
<kalbasit>
samueldr: I can wait, in the meantime I will move myself leaving everyone else on ASDF
<{^_^}>
[nixpkgs] @nicknovitski closed pull request #41001 → yarn2nix: successfully build packages with "@" and "/" in their name → https://git.io/vhTHK
<samueldr>
only reason I did that is because I have scripted parts of the nix management inside the repo, I have a script bin/update-channel (iirc) that basically does the nix-prefetch-git
<kalbasit>
that’s awesome, thank you samueldr
<kalbasit>
oh I see
<samueldr>
otherwise, I would have put the information directly in the .nix file
<kalbasit>
i’ll probably do the same so I can support installing on CI
<samueldr>
(see the `inherit (pinnedVersion) rev sha256`)
<kalbasit>
we use CircleCI with custom debian based image today
<samueldr>
I have to re-do it, but we use nix-built docker containers on Gitlab CI
<samueldr>
works fine
<kalbasit>
I’ll probably do the same
<samueldr>
I didn't need to learn much about docker, doing it this way :)
<samueldr>
I had a friend doing about the same stuff, but with the docker tooling at their work, every pain point they had the nix solution did it better
igo95862 has quit [Remote host closed the connection]
kamil has quit [Ping timeout: 240 seconds]
<infinisil>
Except that Nix won't work on Windows
<kalbasit>
thankfully, no one uses windows at my company
<samueldr>
thankfully, neither at $client
<samueldr>
though, AFAIUI, what I'm doing should work fine under WSL
<samueldr>
and in any cases, under virtualisation
<infinisil>
At one point, my university was distributing an Ubuntu VirtualBox OVA image for an exercise..
lnikkila_ has quit [Ping timeout: 240 seconds]
bgamari has quit [Ping timeout: 260 seconds]
<infinisil>
And they wanted us to use that Ubuntu's eclipse installation to develop stuff..
<samueldr>
at least it's a sensibly open format, with cross-platform virtualisation support
<samueldr>
though ouch, perfs!
<infinisil>
Yeah, my laptop chocked, and I tried hard to get it to work with Nix, but I was too inexperienced then, couldn't do it
<infinisil>
And all of that because they couldn't get reliable installation instructions for 2 (!) java libraries
<{^_^}>
#34182 (by samueldr, open): Package dbeaver using source build
sir_guy_carleton has joined #nixos
<samueldr>
I tried soing what was suggested (even before it was) without success :/
<joepie91>
infinisil: laughing in Nix... is that like `ha: ha: ha: ha: ha: ha: ha`?
<samueldr>
maven is hell
<infinisil>
joepie91: Heh nice
<srk>
samueldr: +1
<joepie91>
fucking hell Oracle
<joepie91>
"Some opt-outs may fail due to your browsers cookies settings. If you would like to set opt-out preferences using this tool you must allow third party cookies in your browser settings."
<joepie91>
do you... not understand the point of disallowing third-party cookies?
<samueldr>
that's... a catch-22?
<joepie91>
that took a whole two minutes to disable all the tracking junk on Dyn.com, by the way
stepcut has quit [Remote host closed the connection]
<worldofpeace>
Anyone know if cogl defaults to experimental?
klntsky has quit [Remote host closed the connection]
klntsky has joined #nixos
sbdchd has joined #nixos
worldofpeace has quit [Quit: worldofpeace]
phreedom has quit [Remote host closed the connection]
phreedom has joined #nixos
rprije has joined #nixos
alex`` has joined #nixos
jperras has quit [Ping timeout: 244 seconds]
Guest26247 has quit [Ping timeout: 240 seconds]
<kalbasit>
samueldr: is it that hard to install Java apps? On my list of moving to NixOS, I have to get https://www.charlesproxy.com/ working as we use it a lot at work and we share quite a lot of settings
goibhniu1 has joined #nixos
goibhniu has quit [Ping timeout: 256 seconds]
countoren has quit [Ping timeout: 252 seconds]
<{^_^}>
[nixpkgs] @ryantm opened pull request #43315 → treewide: replace search.cpan.org with metacpan.org → https://git.io/fNTjt
blankhart has quit [Quit: WeeChat 1.9.1]
worldofpeace has joined #nixos
<samueldr>
kalbasit: in my specific case, it seems to be *only one component* from the eclipse tooling
<samueldr>
otherwise, I have no idea
<samueldr>
though, as you can also see, using the pre-built binaries do work
<kalbasit>
`inputsFrom` basically for inheriting `buildInputs` from another Derivation?
<samueldr>
yes
Mr_Keyser_Soze has joined #nixos
<samueldr>
if you take my minimal default.nix from earlier, use mkShell instead of stdenv.mkDerivation, and put ruby inside of inputsFrom instead of buildInputs, you can look at $buildInputs inside the shell
<samueldr>
you'll something equivalent to if you did this:
<{^_^}>
[nixpkgs] @matthewbauer merged pull request #43149 → zoom-us: set qt plugin paths in wrapper → https://git.io/fNvat
<{^_^}>
[nixpkgs] @matthewbauer pushed 2 commits to master: https://git.io/fNkT1
johann__ has joined #nixos
nick_h has joined #nixos
andymandias has joined #nixos
nick_h has quit [Ping timeout: 256 seconds]
ckauhaus has quit []
nick_h has joined #nixos
chimay has joined #nixos
hhes has quit [Ping timeout: 245 seconds]
johann__1 has joined #nixos
nick_h has quit [Ping timeout: 260 seconds]
johann__ has quit [Read error: Connection reset by peer]
rardiol1 has quit [Ping timeout: 244 seconds]
trcc has joined #nixos
nick_h has joined #nixos
hhes has joined #nixos
Ariakenom has quit [Quit: Leaving]
<Profpatsch>
infinisil: Yes, the lexical sort of hnix worked this way back then. Not sure if it still does, so maybe piping through hnix again will solve that problem.
<Profpatsch>
I guess it just compare
<Profpatsch>
*the Haskell library just compares code points for nix symbol names.
<{^_^}>
[nixpkgs] @Profpatsch merged pull request #43311 → maintainer-list: sort and format → https://git.io/fNTAd
<{^_^}>
[nixpkgs] @Profpatsch pushed commit from @Infinisil to master « maintainer-list: sort and format »: https://git.io/fNkIs
nick_h has quit [Ping timeout: 240 seconds]
reinzelmann has joined #nixos
iqubic has joined #nixos
jackdk has quit [Ping timeout: 244 seconds]
<kalbasit>
srhb: how to login to the kubernetes cluster as created by `services.kubernetes.roles = [ "master" "node" ];` ? When I run `kubectl get po --all-namespaces` I do not see any of the kube-* pods.
nick_h has joined #nixos
<kalbasit>
also I can't see the kube-dns logs `error: You must be logged in to the server (the server has asked for the client to provide credentials ( pods/log kube-dns-5746ddc44f-6gjs5))`
<{^_^}>
[nixpkgs] @Profpatsch pushed commit from @nlewo to master « buildah: 0.12 -> 1.1 »: https://git.io/fNkqG
<Lisanna>
ldlework hydra does not handle IFDs very well
<ldlework>
hopefully i'll remember that if i ever use hydra
<Lisanna>
having to convert from high-level very nice functional nix code to desperate string parsing in bash and python
<Lisanna>
lol
<elvishjerricco>
Lisanna: I use IFD with hydra pretty often
thc202 has joined #nixos
Turion has joined #nixos
<{^_^}>
[nixpkgs] @adisbladis opened pull request #43328 → WIP: buildGoPackage: Dont copy sources to $out → https://git.io/fNkqX
<Lisanna>
elvishjerricco so your hydra does all its work in the evaluator?
<woffs>
(what's IFD?)
<Lisanna>
'cause mine will if do an IFD here
nick_h has joined #nixos
<Lisanna>
I have like 500 hydra jobs, each one is a test. I want to import the test results into my nix code and do high-level processing with them. But this would just cause all the tests to be run during evaluation time, losing all ability to track build progress
iqubic` has joined #nixos
<elvishjerricco>
Lisanna: Yea IFDs get delegated to build machines. Otherwise we wouldn't be able to use callCabal2nix in the Darwin expressions
<vaibhavsagar>
woffs: Import From Derivation
<elvishjerricco>
Dunno about tracking like that though
logzet has joined #nixos
<Lisanna>
elvishjerricco I'm sure they get delegated out correctly, but hydra won't show those as running jobs
<elvishjerricco>
Ah I see
<Lisanna>
making hydra no more useful than nix-build + cron
<vaibhavsagar>
.IFD
wgas has left #nixos ["Leaving"]
<elvishjerricco>
Lisanna: Maybe do the processing in another pure language like Haskell so it's just another job?
Guest75007 has joined #nixos
<Lisanna>
elvishjerricco closest thing I've got for that is python, don't know haskell and this needs to be done yesterday
betaboon has joined #nixos
iqubic has quit [Ping timeout: 276 seconds]
nick_h has quit [Ping timeout: 260 seconds]
<{^_^}>
[nixpkgs] @peti merged pull request #43271 → all-cabal-hashes: update snapshot to Hackage at 2018-07-03T07:36:18Z → https://git.io/fNUmT
<clever>
Taneb: you could use a shellHook for that
<Taneb>
So, Agda expects there to be a directory $AGDA_DIR with a file that specifies where to find libraries
<Taneb>
The alternative is making a wrapper for the agda executable that passes them in as flags
tzemanovic has joined #nixos
<clever>
Taneb: you can easily have a derivation that generates that directory, and then set that as an attribute in the derivation you run nix-shell on
<infinisil>
WilliamHamilton: the bot has a command ,locate to find files in packages, ,locate bin for binaries. But it seems that such a binary can't be found anywhere
<WilliamHamilton>
infinisil: the new name would be curry-frontend
<WilliamHamilton>
,locate bin curry-frontend
<{^_^}>
Couldn't find any packages
<infinisil>
WilliamHamilton: It's backed by nix-index, which I recommend to install locally
<WilliamHamilton>
installing right now! so the local invocation would be nix-index bin curry-frontend?
<infinisil>
nix-index to make an index, nix-locate to find stuff
<WilliamHamilton>
very good, thanks
<__monty__>
Do you have to keep the index up to date manually?
<infinisil>
__monty__: Currently yes
<infinisil>
Well I haven't updated it after I set it initially tbh, I should probably do that, or automate it
vmandela has joined #nixos
MercurialAlchemi has quit [Ping timeout: 265 seconds]
<WilliamHamilton>
infinisil: what's the process of constructing a derivation like the one in <pakcs>? I'd like to do it from scratch, as I find difficult to understand what I should patch
<WilliamHamilton>
I would have understood something like fsrc/frontend
<WilliamHamilton>
but not only fsrc
<clever>
WilliamHamilton: ah, lines 42-45
<clever>
WilliamHamilton: after unpacking the source, it will rename it, then make a symlink
ckauhaus has quit [Remote host closed the connection]
hxrts_ has quit [Remote host closed the connection]
<WilliamHamilton>
so, postUnpack is executed before the callPackage function?
<clever>
WilliamHamilton: postUnpack is called after unpacking the source, within the derivations builder
ckauhaus has joined #nixos
<clever>
WilliamHamilton: all arguments passed to mkDerivation become env vars within the derivation, and the stdenv will run a bash script that will process them all
<WilliamHamilton>
clever: do have any idea on why that's done? why the src attribute couldn't just be ${fsrc}/frontend/curry-frontend?
<clever>
WilliamHamilton: because ${fsrc} is the path to a .tar.gz, not a directory
rprije has quit [Ping timeout: 256 seconds]
<{^_^}>
[nixpkgs] @danbst closed pull request #20006 → [WIP] munin: add version 2.999.3 and reworked service → https://git.io/vXtKZ
phdoerfler has joined #nixos
<WilliamHamilton>
oh, so ${name} is rewritten by the symlink to contain a path to the code, while before it contained the path to the extracted folder?
<WilliamHamilton>
clever: ^?
<clever>
the unpackPhase will unpack $src
<clever>
and then postUnpack will modify the unpacked source
<clever>
they should have probably used sourceRoot, not a symlink
<WilliamHamilton>
I'm slightly confused by the fact that mkDerivation is called at line 22, and then inside the haskell packages derivation, at lines 30 and 54
<WilliamHamilton>
when is the curryBase mkDerivation triggered?
<clever>
WilliamHamilton: there are a total of 5 derivations in that file
<clever>
WilliamHamilton: line 7 creates a derivation that fetches a .tar.gz
<clever>
line 12 creates a modified version of swiProlog
<clever>
line 15 creates another derivation to fetch a .tar.gz
<clever>
because 15 is refered to by 12, it will always build 15 before it starts to build 12
<clever>
26 then defines how to build currybase, and it refers to 7 at line 33
<clever>
so it must build line 7, before it can start building line 26
<clever>
and because 26 and 50 are inside the set for line 22, they become env variables inside that derivation, so you can access them at $curryBase and $curryFront
<clever>
the author of this file sort of messed up, and never actually uses those bash variables
andymandias has quit [Ping timeout: 240 seconds]
chessai has joined #nixos
<clever>
he instead refers to them at the nix level, on lines 61, 65, 68, and 109
<WilliamHamilton>
that's why he uses `rec` in the call at line 22, right? to reuse them at the nix level
<clever>
yeah
<clever>
if those are moved into the let block, the rec can likely be removed
<WilliamHamilton>
I need a minute to understand what you just explained, and make some notes, brb
<{^_^}>
[nixpkgs] @thoughtpolice pushed commit from R. RyanTM to master « yices: 2.5.4 -> 2.6.0 »: https://git.io/fNkyA
<sphalerit>
A family member needs to use it and I'm considering installing it for her using nix (but nix isn't installed yet and I don't want to do the fussing about if it turns out I need to set up X and stuff as well)
<WilliamHamilton>
clever: and when it is a derivation, I should think of it as an actual directory?
<clever>
WilliamHamilton: depends on which fetch function was used
<clever>
WilliamHamilton: the default unpackPhase will handle directories and .tar.gz files automatically
stepcut has joined #nixos
tester123 has joined #nixos
<tester123>
How does one add an overlay to a configuration.nix?
<tester123>
I'm trying to add this one to modify stack:
<clever>
tester123: nixpkgs.overlays is a nixos option
<tester123>
To force stack to be at version 1.7.1
graphene has quit [Read error: Connection reset by peer]
<WilliamHamilton>
clever, ok last question, how is a file like the pakcs derivation developed? Can one work manually on the intermediate build artifacts and then save the steps in the file?
reinzelmann has quit [Quit: Leaving]
<WilliamHamilton>
or is the author supposed to write all the derivation at once?
graphene has joined #nixos
<clever>
WilliamHamilton: you can put each of those derivations into their own files, and just run nix-build on the parts
<{^_^}>
[nixpkgs] @volth opened pull request #43358 → [staging] libuv: disable tests failed on GCE → https://git.io/fNk9T
<WilliamHamilton>
how would I build that? nix-build example.nix complains that error: cannot auto-call a function that has an argument without a default value ('stdenv')
<clever>
WilliamHamilton: it still has to be loaded with callPackage
<{^_^}>
[nixpkgs] @volth opened pull request #43359 → hspell: fix build when default perl is 5.26+ → https://git.io/fNk94
<WilliamHamilton>
oh, so callPackage is the function that applies the function example.nix, giving it the initial arguments?
<clever>
yeah
<clever>
it will search the pkgs attribute set for each of the args
chessai has quit [Ping timeout: 240 seconds]
ma27 has joined #nixos
chessai has joined #nixos
<WilliamHamilton>
good, that should be enough to get me started; you mentioned before that derivations become variables, like $curryBase. How does that work? Where are those variables in scope?
<WilliamHamilton>
clever: ^
sam__ has quit [Quit: sam__]
<clever>
WilliamHamilton: at the bash level
<clever>
WilliamHamilton: every derivation in nix has a builder and some args, typically the builder is a bash script
<clever>
WilliamHamilton: and every attribute on the derivation becomes an env var for that derivation
ckauhaus has quit [Remote host closed the connection]
ckauhaus has joined #nixos
zduch4c has joined #nixos
<zduch4c>
hello!
<zduch4c>
does Wayland work with GNOME3 yet without pesky hacks?
<WilliamHamilton>
and where should I use this mechanism, for example, in the pakcs derivation?
<zduch4c>
also, I had problems with my username not appearing in GDM, if anyone is wondering why, for your name to appear in GDM your user UID needs to be bigger than 100 for some reason
<clever>
WilliamHamilton: in any of the phases/hooks
<clever>
zduch4c: did you set isNormalUser = true; when creating the user?
<zduch4c>
this should make my GNOME3 session wayland, correct?
justbeingglad has joined #nixos
justbeingglad has quit [Client Quit]
<nbathum>
zduch4c: I had a similar problem when my uid was set to 404 with lightdm
<clever>
nbathum: user not found? lol
<nbathum>
yeah. hahaha turns out some places really won't see it with a low number like that
<cocreature>
zduch4c: I have not tried it myself but https://github.com/NixOS/nixpkgs/issues/32806 suggests that there are at least still some problems in particular in combination with gdm
<{^_^}>
#32806 (by jtojnar, open): Investigate GNOME wayland support
graphene has quit [Read error: Connection reset by peer]
<zduch4c>
ok, I'm going to try it myself, if I don't come back it means it works
ckauhaus has quit [Remote host closed the connection]
ckauhaus has joined #nixos
camsbury has joined #nixos
fendor has quit [Remote host closed the connection]
manny has joined #nixos
fendor has joined #nixos
zduch4c has quit [Ping timeout: 252 seconds]
ckauhaus has quit [Remote host closed the connection]
<nlytend>
this is new: qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
<nlytend>
can't launch qt applications for some reason
ckauhaus has quit [Remote host closed the connection]
Mateon2 has joined #nixos
ckauhaus has joined #nixos
Mateon1 has quit [Ping timeout: 240 seconds]
Mateon2 is now known as Mateon1
grp has joined #nixos
graphene has quit [Ping timeout: 244 seconds]
ckauhaus has quit [Remote host closed the connection]
goibhniu has quit [Remote host closed the connection]
ckauhaus has joined #nixos
trcc has quit [Ping timeout: 260 seconds]
<{^_^}>
[cabal2nix] @Ericson2314 opened pull request #358 → Add hack for common erroneous missing build-tool-depends, and keep duplicate deps for cross → https://git.io/fNkF5
ckauhaus has quit [Remote host closed the connection]
ckauhaus has joined #nixos
goibhniu has joined #nixos
Sonarpulse has joined #nixos
mroutis has joined #nixos
ckauhaus has quit [Ping timeout: 256 seconds]
orivej has quit [Ping timeout: 240 seconds]
johanot has quit [Quit: Leaving.]
orivej has joined #nixos
graphene has joined #nixos
<ajs124>
I'm trying to write a package for pgrouting right now and can't figure out how to get it to install to the right folder. It always trys to put files into /nix/store/*-postgresql-9.6.8-lib/lib. Any ideas?
<{^_^}>
[nixpkgs] @roberth pushed 20 commits to haskell-outputs-bin-etc-lib: https://git.io/fNkNt
<ajs124>
I thought modifying cmake_install.cmake in preInstall should work, but how do I get that store path? "postgresql" is something else
hyper_ch2 has quit [Quit: Page closed]
<grp>
clever: I could build tests.containers-extra_veth.x86_64-linux just fine. Now, how can I find out these attributes like .x86_64-linux ? It's not like I can tab-complete them in the repl. I've been reading tests/make-test.nix, lib/testing.nix but haven't found anything useful
<infinisil>
grp: You should be able to tab complete them
<infinisil>
I can at least
<grp>
nope, nix repl ~/nixpkgs/nixos/release.nix then hitting tab on tests.containers-extra_veth. doesn't yield a thing
<infinisil>
`nix-build nixos/release.nix tests.bind.<TAB>` works for me
graphene has quit [Read error: Connection reset by peer]
<grp>
where are you typing that?
<grp>
repl?
<infinisil>
in zsh/bash
<infinisil>
Oh
<infinisil>
The nix repl currently has a bug where it can't complete attribute with a "-" in them
<grp>
ok, I'm missing whatever completion module you are using
doyougnu has joined #nixos
* grp
searches
<infinisil>
The bash/zsh one should be installed by default
graphene has joined #nixos
adisbladis has quit [Remote host closed the connection]
graphene has quit [Read error: Connection reset by peer]
ckauhaus has joined #nixos
<Taneb>
I'm trying to get Hydra up and running at work, and I'm getting hydra hydra-queue-runner[25885]: error: don't know how to open Nix store 'X' for X {local, auto, file://, file:///, file:///nix/store} as I change the configuration to try and figure this out
graphene has joined #nixos
graphene has quit [Read error: Connection reset by peer]
<Taneb>
(changing the store_uri parameter in the hydra config)
<gchristensen>
infinisil: ^ it probably should not trigger in that case
<infinisil>
gchristensen: Yeah I'll fix that
<infinisil>
grp: What's that?
<grp>
infinisil: nixos exact version?
nlytend has quit [Quit: Leaving]
<Taneb>
In fact it's saying «hydra hydra-queue-runner[27257]: error: don't know how to open Nix store '"local'»
<Taneb>
With those mismatched quotes
chessai has quit [Ping timeout: 256 seconds]
<Taneb>
Which might be a clue
<infinisil>
grp: I'm running nixos-unstable from about 20 days ago if that's what you want to know. That command doesn't work for me, nixos-version might work for you though
<Taneb>
OK, turns out the config file doesn't like quoted strings
<Taneb>
Now I'm getting the more interesting error «hydra hydra-queue-runner[28201]: error: opening lock file '/nix/var/nix/db/big-lock': Permission denied»
<infinisil>
grp: But completion for zsh and bash has been there for a loong time
iqubic` is now known as iqubic
orivej has quit [Ping timeout: 240 seconds]
<grp>
infinisil: pfff, hahaha, and here I was wondering if there was a simpler way to do it... nixos-version....
<infinisil>
:P
orivej has joined #nixos
<grp>
but no, no tab completion for me... yet
cwhy has joined #nixos
endformationage has joined #nixos
<cwhy>
Hello here. I am very new to nix and using it on a Mac. Is there any guides of installing go packages?
<WilliamHamilton>
clever: but I don't get why the hassle. Isn't there a way to signal that I'd like to build the thing in pakcs-1.14.0/frontend/curry-base ?
<clever>
WilliamHamilton: sourceRoot
aminb has quit [Quit: WeeChat 2.1]
<WilliamHamilton>
wait, first I'd like to understand why the cabal folder must be pakcs-1.14.0
<clever>
WilliamHamilton: because the default sourceRoot is the name of the directory tar -xf made
<clever>
WilliamHamilton: it doesnt have to be an attribute to use it in buildInputs
<clever>
WilliamHamilton: buildInputs is an array of nix values
Thra11 has quit [Client Quit]
xy2_ has quit [Ping timeout: 240 seconds]
<WilliamHamilton>
right, and so, is there a way to call ${curryBase}, or should I put that derivation again out of the let and in the big mkDerivation?
<clever>
WilliamHamilton: just put curryBase in buildInputs
<clever>
WilliamHamilton: your already doing that on lines 52, 56, and 59
<kalbasit>
anyone seen an error like the one above when running `nixos-rebuild test` before?
<tenten8401>
Is there some sort've max connection time limit or something in the NixOS firewall by default?
Ross has quit [Ping timeout: 240 seconds]
<tenten8401>
Trying to connect to a Minecraft server I'm running and I keep getting booted off after a couple seconds (it connects fine for the first couple seconds and I can see the world load in)
<clever>
tenten8401: nope
stepcut has quit [Remote host closed the connection]
<tenten8401>
server has no errors, it just says timed out
<kalbasit>
my NIX_PATH: `/home/kalbasit/.nix-defexpr/channels:nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos:nixos-config=/etc/nixos/configuration.nix:/nix/var/nix/profiles/per-user/root/channels`
<clever>
kalbasit: what if you instead run `sudo -i` then `nixos-rebuild test`
<kalbasit>
will try
<clever>
kalbasit: and as root, what does `nix-channel --list` say?
aminb has joined #nixos
aminb has quit [Read error: Connection reset by peer]
<kalbasit>
same error
aminb has joined #nixos
<kalbasit>
clever: ^^
<clever>
kalbasit: and as root, what does `nix-channel --list` say?
<Kim>
I'm getting a really weird segfault when running the KDE displays configuration (kcmshell5 kcm_kscreen): "QQmlThread[17157]: segfault at 20 ip 00007f54c2474eb0 sp 00007f549adf0140 error 4 in libQt5Qml.so.5.10.1[7f54c235e000+41d000]"
<EuAndreh[m]>
srk: If I use a pinned version of `nixpkgs` (created using pkgs.fetchzip ...), the value returned by `callPackage` will come from the pinned package right?
<EuAndreh[m]>
tilpner: The `nixpkgs` in your snippet is the custom nixpkgs instance, right?
<tilpner>
EuAndreh[m] - Correct. If you use a non-pinned callPackage on pinned nixpkgs sources, terrible things may happen as you create a never-tested-before combination
<WilliamHamilton>
I see that $out is the location the build will have in the nix store
<tilpner>
EuAndreh[m] - It would pass the non-pinned dependencies to a pinned nixpkgs. This won't be much of a problem with two different versions of the same branch, but I imagine callPackage-ing nixos-17.09 from nixos-unstable or vice versa
<WilliamHamilton>
but when I use nix-shell, after the buildPhase, there's nothing in the store. How come?
<tilpner>
EuAndreh[m] - You could also use (import <pinned-nixpkgs-source> {}).callPackage <pinned-nixpkgs-source/pkgs/development/web/nodnejs/nodejs.nix> {}, but there'd be little point
<{^_^}>
[nixpkgs] @xeji merged pull request #42699 → nixos/virtualbox: Adds more options to virtualbox-image.nix → https://git.io/f4djh
<{^_^}>
[nixpkgs] @xeji pushed commit from @dalaing to master « nixos/virtualbox: Adds more options to virtualbox-image.nix (#42699) »: https://git.io/fNI3o
<EuAndreh[m]>
Is L12 not pinned?
<tilpner>
EuAndreh[m] - Requires sign-in, then 404
_cyril_ has quit [Ping timeout: 256 seconds]
orivej has joined #nixos
<EuAndreh[m]>
tilpner: Sorry, should be public now
<{^_^}>
[nixos-org-configurations] @edolstra pushed 2 commits to master: https://git.io/fNIsh
<tilpner>
EuAndreh[m] - L12 is not pinned, it relies on the NIX_PATH item <nixpkgs>
andymandias has quit [Ping timeout: 244 seconds]
Judson has joined #nixos
Judson is now known as Guest55745
knupfer has quit [Ping timeout: 240 seconds]
<EuAndreh[m]>
tilpner: Where do I get <pinned-nixpkgs-source> from?
thmzlt has joined #nixos
<tilpner>
EuAndreh[m] - Use pkgs.callPackage (pkgsSrc + "/pkgs/development/web/nodejs/nodejs.nix") {}
<tilpner>
Or "${pkgsSrc}/pkgs/development/web/nodejs/nodejs.nix"
chessai has joined #nixos
<EuAndreh[m]>
Got it, thanks
<chessai>
on NixOS, how do i allow TCP from a specific IP only?
<mightybyte>
I just installed nix on Ubuntu and now I'm getting this error: warning: the group 'nixbld' specified in 'build-users-group' does not exist
<clever>
mightybyte: if you lack a nixbld group, then it only works when ran as a non-root user
<mightybyte>
I would have thought that the installer would create that for me. Anyone know what's up?
<mightybyte>
Ahhh
<clever>
mightybyte: last i checked, the linux installer only does single-user installs, which only work as the user that installed it, which cant be root
<mightybyte>
Does that mean nix only works as non-root or programs built with nix only work as non-root?
tzemanovic has joined #nixos
andymandias has joined #nixos
devhell has quit [Quit: WeeChat 2.1]
rardiol1 has quit [Ping timeout: 260 seconds]
<chessai>
something like networking.allowedTCPPorts but with a conditional
<mightybyte>
clever: So is it just as simple as running "addgroup nixbld"?
<chessai>
something that i might use ufw for on non-NixOS systems
<clever>
mightybyte: you need a nixbld group, with a number of build users within it
<mightybyte>
Is there a standard way to create them?
<Berra>
I cannot find any package using `nix search` related to those at all. Are they only usable by some other means? Do I need to use them by manually downloading or including them?
rardiol1 has joined #nixos
chessai has quit [Ping timeout: 240 seconds]
igo95862 has quit [Quit: igo95862]
ixxie has joined #nixos
<__monty__>
,locate ghcjs
<{^_^}>
Found in packages: haskellPackages.ghcjs-ajax, haskellPackages.ghcjs-perch.doc, haskellPackages.ghcjs-websockets, haskellPackages.ghcjs-base-stub.doc, haskellPackages.ghcjs-codemirror.doc
<__monty__>
> builtins.attrnames haskell.compiler
<{^_^}>
attribute 'attrnames' missing, at (string):154:1
<__monty__>
Wow, why am I being disadvantaged? >: (
<thoughtpolice>
gchristensen: Nice
<clever>
gchristensen: Attackers might be trying to steal your information from grahamc.com (for example, passwords, messages, or credit cards). Learn more
<thoughtpolice>
Was this just like a config option hidden somewhere in CF?
<clever>
gchristensen: This server could not prove that it is grahamc.com; its security certificate is from www.github.com. This may be caused by a misconfiguration or an attacker intercepting your connection.
<gchristensen>
clever: I wonder why you see that and other people don't
<gchristensen>
LnL sees it on one computer and not another
<clever>
gchristensen: its supposed to both cache a binary cache, and mux several caches into a single URL
<gchristensen>
I remember that
Sonarpulse has joined #nixos
graphene has quit [Remote host closed the connection]
<cocreature>
manveru: looks like I was just too stupid to read the wikipage, setting "hardware.opengl.driSupport32Bit = true;" seems to fix it (or at least get me further :))
<mightybyte>
domenkozar: Does cachix work for private repos?
graphene has joined #nixos
frankpf has quit [Ping timeout: 265 seconds]
<samueldr>
cocreature: if the wiki page is missing things, and you can't/don't want to update it, you can tell me and I'll look into fixing it
<samueldr>
(about steam)
<cocreature>
samueldr: will do, thanks for your help!
ZeDestructor is now known as Aeso_
lassulus has quit [Ping timeout: 244 seconds]
Aeso_ is now known as ZeDestructor
ZeDestructor is now known as ZeDestruct0r
ZeDestruct0r is now known as ZeDestructor
lassulus has joined #nixos
<domenkozar>
mightybyte: not yet, you can leave your email at https://cachix.org/#faq to be notified for when it will be :)
<mightybyte>
domenkozar: How would you make that work with access control?
mroutis has quit [Ping timeout: 240 seconds]
hyper_ch has quit [Remote host closed the connection]
hyper_ch has joined #nixos
justbeingglad has joined #nixos
justbeingglad has left #nixos [#nixos]
freeman42x]NixOS has quit [Ping timeout: 268 seconds]
{`-`} has joined #nixos
knupfer has joined #nixos
andrewrk has quit [Ping timeout: 264 seconds]
Deknos has joined #nixos
<domenkozar>
mightybyte: read/write tokens
tzemanovic has joined #nixos
Havvy has joined #nixos
<hyper_ch>
globin: online?
tzemanovic has quit [Ping timeout: 244 seconds]
andrewrk has joined #nixos
<hyper_ch>
how can I remove the latest generation on nixos?
<infinisil>
hyper_ch: The latest as in the one you're currently running??
<hyper_ch>
no, I booted into older generation because newest ones can't import zpool
<hyper_ch>
so I need to delete the two newest generations so that default is back to a bootable one
<domenkozar>
--rollback
<hyper_ch>
domenkozar: and what command?
ambro718 has joined #nixos
<domenkozar>
nixos-rebuild switch --rollback
<ldlework>
domenkozar: so if you boot into a previous generation, nixos-rebuild --rollback will essentially garbage collect the forward generations you don't want anymore?
<domenkozar>
no, it will rollback one generation
<domenkozar>
so run it twice :)
<hyper_ch>
thanks, did so
<LnL>
oh, nixos-rebuild doesn't support -G?
<domenkozar>
afaik no
<domenkozar>
or the manual lies :)
<ldlework>
domenkozar: is there a way to do what I described?
<ldlework>
like maybe you rolled really far back
<ldlework>
and you just want to forward garbage collect
<ldlework>
but retain previous generations
<domenkozar>
you'd rollback
<domenkozar>
and then nix-collect-garbage -d
<domenkozar>
you have to think in terms of GC
humanoyd has quit [Quit: WeeChat 2.1]
<domenkozar>
each nixos-rebuild switch creates a savepoint -- called GC root
<domenkozar>
if you rollback, root is removed
<domenkozar>
and anything that's not in GC root is GCd
<{^_^}>
[nixpkgs] @xeji pushed commit from @mbode to master « heptio-ark: 0.7.1 -> 0.9.0 (#43381) »: https://git.io/fNIzB
fragamus has joined #nixos
<infinisil>
You can manually delete generations with `sudo nix-env -p /nix/var/nix/profiles/system --delete-generations <list of gens to delete, e.g. {100..110}>
<__monty__>
nix-env --delete-generations could definitely do with nicer UX. I just want to say keep the last X generations.
<justanotheruser>
Do any of you have debian vm's or anything of the sort so you can run a dpkg package without having to create a new nix expression for it?
<ldlework>
this could be nice mini guide
<infinisil>
And activate a specific system via /nix/var/nix/profiles/system-{number}/bin/switch-to-configuration
{^_^} has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @mbode opened pull request #43384 → aws-rotate-key: init at 1.0.0 → https://git.io/fNI2T
goertzenator has joined #nixos
andymandias has quit [Ping timeout: 240 seconds]
marzzzello has joined #nixos
grp has quit [Quit: box shutting down...]
marzzzello has quit [Client Quit]
<{^_^}>
[nixpkgs] @fragamus opened pull request #43385 → libcsptr: init at 2.0.4 → https://git.io/fNI22
simukis has quit [Ping timeout: 248 seconds]
andymandias has joined #nixos
lnikkila_ has quit [Ping timeout: 268 seconds]
<goertzenator>
I've got a build script that is doing pkg-config on "xlib_xcb". How do I find which Nix package provides that? I've found all the other x libs I need, but I'm stuck on that one. (ref https://github.com/Daggerbot/x11-rs/blob/master/x11-dl/build.rs)
<kalbasit>
srhb: I'm running into https://github.com/NixOS/nixpkgs/issues/40560 I can't basically do anything with Kubernetes due to this bug. For instance, there's no way to install and use Helm
<{^_^}>
#40560 (by azazel75, open): kubernetes default "admin" user isn't authorized to do anything useful
graphene has quit [Remote host closed the connection]
<clever>
infinisil: oddly, it doesnt have an xlib_xcb.pc file though
<infinisil>
Yeah
graphene has joined #nixos
seafood has joined #nixos
tenten8401 has joined #nixos
<srhb>
kalbasit: I don't remember the fix right now. I helped do it for master. Perhaps you can ping johanot when he's on (CEST time)
<srhb>
kalbasit: I've mostly handed over all the k8s stuff, since I don't actually admin a cluster anymore.
<srhb>
kalbasit: If I were you I'd rely on the master version for now. That's known working.
<kalbasit>
I see, I'll take a look at the master branch
<kalbasit>
I'm running unstable now
<kalbasit>
srhb:
<kalbasit>
srhb: isn't unstable the master branch?
<srhb>
Oh, that should work...
aaddrres has joined #nixos
<srhb>
"Known working" is not what it used to be.
<kalbasit>
srhb: I was trying to fix it for 3 hours last night, no go
<srhb>
kalbasit: Have you pasted your config somewhere?
<srhb>
And the thing that fails?
<tenten8401>
Does anyone know how I'd go about stopping the pulseaudio systemd service in NixOS?
<kalbasit>
srhb: while I have you, how can I delete all of kubernetes data so it's "fresh"? remove all `/var/lib/kubernetes` is enough?
<tenten8401>
I'm logged in as root via SSH and it doesn't seem to want to find the service at all
<srhb>
kalbasit: I think so. Honestly I'm a little rusty on the changes that's been made the last half-year :)
<kalbasit>
srhb: yes, I tried with `kubectl -s https://localhost --insecure-skip-tls-verify logs nginx-app-579d6d7d6b-4q25q`, I even tried using a `curl` call with the right arguments and basic auth `curl -u kubernetes:admin -k -v -XGET -H "User-Agent: kubectl/v1.10.5 (linux/amd64) kubernetes/32ac1c9" -H "Accept: application/json, */*"
<srhb>
kalbasit: Okay. I'm sorry, it's late here and I don't have a working test setup currently. :/ I can ask some of the people that work on it nowadays to check in tomorrow if they have time.
<kalbasit>
srhb: I'll file a BUG today (I need to get a clean env with it first) and I'll send it to you here
<kalbasit>
srhb: thanks, take care.
<srhb>
kalbasit: can you cc me on the bug report instead? Then I won't forget to forward it to the relevant people :)
<kalbasit>
srhb: sounds good
<srhb>
Thanks! :)
<kalbasit>
np
Ridout has joined #nixos
<logzet>
Hmm, I re-dd'ed my stick, tried UEFI and legacy boot, everything with the same result :/
<WilliamHamilton>
hi, I updated the derivation for the pakcs curry compiler, and while it builds nicely if I do nix shell -> unpackPhase -> generatePhase, it doesn't work when it's installed with nix-build. If someone wants to take a look: https://gist.github.com/1e636532aeacb12e16476ebf30c06a3f
<gchristensen>
logzet: can you run sha256sum on the downloaded file?
aaddrres has quit [Quit: Page closed]
<WilliamHamilton>
the error is ERROR: executable '/nix/store/cpw8301inbfm906rfn21rpg04gnzd8q8-pakcs-2.0.2/pakcs/src/pakcs' not found! And I can't figure out where that /src/ comes from
<clever>
for b in $(ls $out/pakcs/bin) ; do
<clever>
WilliamHamilton: dont parse the output of ls, that will fail in a dozen different ways
<clever>
WilliamHamilton: for x in $out/pakcs/bin/*; do
garbas has joined #nixos
<clever>
WilliamHamilton: line 101 is already doing exactly that
<clever>
but the cause cant be located
<clever>
WilliamHamilton: oh, but the makeFlags on 67 dont do anything, line 71 replaces the default buildPhase
<WilliamHamilton>
clever: you're right and I'll rewrite that, but I don't think the error lies there, as I carried that bit from the previous version
<WilliamHamilton>
oh, so if the buildPhase is modified, the makeFlags are not called, good to know
mroutis has quit [Ping timeout: 264 seconds]
<WilliamHamilton>
the puzzling thing is that if I do the nix-shell path, it works through and I can use it, while if I build it, nix builds it but than I can't use the executable because of that error
<logzet>
gchristensen: It matches the checksum from the website
<gchristensen>
logzet: what does stat -c '%s' ./thefile say?
<logzet>
The stick also contained an old installer iso before which yielded the same error
<logzet>
gchristensen: 1060110336
<clever>
logzet: did you dd to sdb or sdb1?
<logzet>
sdc
<gchristensen>
head -c 1060110336 /dev/sdc | sha256sum
<gchristensen>
^ try that
__monty__ has quit [Quit: leaving]
<logzet>
Grub works and stage 1 starts, but mounting root fails :/
tzemanovic has joined #nixos
tzemanovic has quit [Remote host closed the connection]
<{^_^}>
[nixpkgs] @alyssais opened pull request #43391 → tor-browser-bundle: update license to free → https://git.io/fNI6T
tzemanovic has joined #nixos
<logzet>
Maybe it is time to look for another stick
tzemanovic has quit [Client Quit]
<logzet>
gchristensen: It matches the expected sha256
<infinisil>
Phew, the module system is magic, but there's many things you gotta understand for it to be pleasant to use
<infinisil>
With more complicated stuff I mean
<logzet>
gchristensen: Wtf it works on another laptop
<gchristensen>
wat
<logzet>
Yea…
<{^_^}>
[nixpkgs] @grahamc pushed commit from @tadfisher to release-18.03 « firefox: add u2f support »: https://git.io/fNI6r
<clever>
samueldr: the imports list must not depend on any value from the config or options trees
<samueldr>
oh, right
<samueldr>
(I assumed just a let or something)
<pie_>
hostName is just a let
<clever>
i make configuration.nix do imports = [ ./nixcfg/amd-nixos.nix ];
<clever>
and then everything else starts from that, which forms a tree of modules
rprije has joined #nixos
<clever>
no need for variables in paths
<viric>
I happen to sha256sum a lot (git annex, for example)
<samueldr>
my `configuration.nix` is just `import ./machines/ralphwiggum` where ralphwiggum is the hostname
<pie_>
well i guess i *am* overcomplicating it xD
<samueldr>
for the same reasons clever points out
<clever>
samueldr: i keep the boot related stuff seperate from the git managed things
<clever>
samueldr: the uuid's of FS's is going to change if i ever made a replacement
<samueldr>
as for I, I want the complete with specifics inside my git repo :)
<clever>
and conflicts will arise if i want to run both copies at once
<samueldr>
I work with labels
<samueldr>
(which can be an issue if you add storage, etc...)
<logzet>
Well, Xubuntu doesnt work either
<samueldr>
that's good news for nixos, bad news for either the stick or the laptop :/
<logzet>
I guess the stick (or … hope …)
<rycee>
pie_: Yeah, if you want a system-level setup of HM it's best to do though the module.
Sonarpulse has quit [Ping timeout: 268 seconds]
<rycee>
pie_: And packaging Home Manager is a bit tricky because it is typically best if the home-manager tool is managed by Home Manager since we sometimes make changes in the modules that also need changes in the tool. And the modules change quite often…
<pie_>
hm. well i figured some kind of bootstrap would be enough, just to get it to install itself or something
<ldlework>
rycee: can we get a guide on that
<rycee>
pie_: Eventually I guess it would be prudent to have a stable "API" for the tool so it can be installed separately from the modules and be guaranteed to work for like a NixOS release cycle or something.
<pie_>
would be nice. im trying to go really hard on a reproducible config for everyday things
<rycee>
pie_: Well, I would say `nix-shell $HM_PATH -A install` is the bootstrap :-) Of course could have a small Nixpkgs package that wraps all that in a small home-manager-installer script or whatever.
<pie_>
well reproducible/hands-off-rebuild
<rycee>
ldlework: You mean a guide on using the NixOS module? If so, yeah I agree. I'm hoping to write a bit on the Home Manager manual whenever I have some time left over. Basically to put down how to use it from the tool and from the module.
<ldlework>
yeah i am a bit shy with trying out the module
<infinisil>
rycee: Neat!
<infinisil>
I've been using the nixos module for a while now, working well
<samueldr>
ouch, I have ~800MB available, but it looks like (something derived from) sd-image on unstable somehow makes a 1.3GB ext4 FS
<samueldr>
I may have accidentally got graphical stuff though
<samueldr>
oh, that is with cross-compilation
<samueldr>
it added the x86_64 bootstrap tools, and probably other stuff though
sigmundv has joined #nixos
<ldlework>
i just don't quite understand how to do it
<infinisil>
ldlework: Just clone home-manager, add `imports = ./path/to/home-manager/nixos` to your nixos config, then you can use the `home-manager.users.paul = ...` option to set home-manager options
<infinisil>
Stuff like `home-manager.users.paul = { config, ... }: ...` also works if you need that. And merging between multiple nixos modules works as well.
erasmas has quit [Quit: leaving]
<ldlework>
did you really mean to assign imports that way
<ldlework>
rather than assigning imports a list with the nixos module as an element
doyougnu1 has quit [Ping timeout: 240 seconds]
<infinisil>
Ah yes, a list
civodul has quit [Quit: ERC (IRC client for Emacs 26.1)]
<ldlework>
infinisil: what do you mean "And merging between multiple nixos modules works as well." Do you mean expressing your home-management configuration as a bunch of separate nixos modules or something?
<infinisil>
Yeah
<infinisil>
The home-manager.users option can be used from all your nixos modules
sbdchd has joined #nixos
<infinisil>
Just like a normal option and it will get merged properly
<infinisil>
Well it is a normal option, just thought I'd mention it, because the fact that you can assign a function ({ config, ... }: ...) to it might be a bit weird
<logzet>
Okay, my second (and reliable) stick also works on the other laptop, but not the one I want to install nixos on
sbdchd has quit [Ping timeout: 268 seconds]
<pie_>
infinisil, cool
<pie_>
infinisil, is your config readable somewhere btw?
<infinisil>
Um, well it's *online*, but not necessarily readable lol
<samueldr>
I *think* I found one part of my issue... didn't give `system` to the config, now let's see if I get armv7l binaries in that image (after this long build)
<infinisil>
This error is now in unstable
<infinisil>
static languages with compilers wouldn't have allowed this
<clever>
infinisil: hydra could also have caught it, with the right release.nix entry
<clever>
but yeah, a static language makes it much easier to catch
doyougnu has joined #nixos
<clever>
this gives me a thought, llvm ....
<infinisil>
Alright let's see how many more errors i get after updating to latest unstable..
<clever>
could you compile nix to x86 native binary?
<logzet>
Okay, the first error message when I'm trying to boot is "waiting for /dev/root", which times out
<clever>
logzet: there should be a root=something arg to the kernel, which configures what it waits for
halfbit has joined #nixos
andymandias has quit [Ping timeout: 240 seconds]
<logzet>
clever: It is set root=label=NIXOS_BOOT
<logzet>
*NIXOS_ISO
<clever>
logzet: does the initrd give you the option to launch a shell in the initrd?
<logzet>
Which seems to work on another PC
<logzet>
yes
<clever>
logzet: launch that shell, then check `ls -lh /dev/root`, what does it say?
<logzet>
clever: It is a sylink to /dev/disk/by-label/NIXOS_ISO
<logzet>
But /dev/disk/by-label does not exist
andymandias has joined #nixos
<clever>
logzet: and lsblk or blkid outputs?
zugzug has joined #nixos
zugzug has quit [Changing host]
zugzug has joined #nixos
manny has quit [Ping timeout: 268 seconds]
<logzet>
lsblk is not available, blkid lists 2 partitions
<clever>
logzet: and can you still see sdb in blkid, after unplugging the stick?
<logzet>
clever: Yes, it stays there. No luck in changig ports
<clever>
logzet: does lsusb change when you add/remove the usb stick?
<logzet>
Just checked dmesg, no new output there if I connect the stick
<samueldr>
hmmm, am I right in assuming I may be doing something wrong if I see `bootstrap-stage[01234]` in a cross build?
<clever>
logzet: let me check something
<logzet>
And lsusb does not change its output
<samueldr>
well, I'm pretty sure I am since I get this at the end: `error: a 'armv7l-linux' is required to build '/nix/store/nbh24ic1rz0i06zha9illnbx0h114izf-expand-response-params.drv', but I am a 'x86_64-linux'`
<clever>
logzet: can you pastebin the full output of lspci ?
<clever>
samueldr: that looks like a native arm build
<samueldr>
that's what it felt like
<logzet>
clever: Difficult without inet, but lsusb und lspci don't show any labels, just addresses, is that normal for the "emergency" verion?
jackdk has joined #nixos
<samueldr>
I am a bit out of my element, trying to wrap my mind around buliding an ext4 image... though I did set nixpkgs.crossSystem
<clever>
logzet: yeah, thats normal, lets start with just the classes
<clever>
logzet: do you see a class of 0c03?
<logzet>
USB?
<clever>
like: 00:14.0 Class 0c03: 8086:a12f
<clever>
yeah
<clever>
00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller [8086:a12f] (rev 31)
<clever>
one is busybox lspci, the other is `lspci -nn` from pciutils
<logzet>
clever: Yes, there are 3 0c03s
ajs124 has left #nixos ["Stream closed by us: Timed out waiting for stream resumption (connection-timeout)"]
<samueldr>
hm, let's see, it started building when I stopped giving `system = "armv7l-linux"` to the config
ericsagnes has quit [Ping timeout: 240 seconds]
<clever>
logzet: hmmm, and on closer inspection, 0c03 is 1.0, 2.0, and 3.0
<clever>
logzet: what are the vid:pid pairs after each one?
<logzet>
8086:1e2d 8086:1e26 8086:1e31
<clever>
lol, 8086 is the VID for intel!
<samueldr>
cheeky, but easy to remember
<logzet>
Dmesg does not show new USB connections, not for my stick not for a mouse
<clever>
less /nix/store/m2bwx92zkkjm1iwh1as2p23ih4gv0y1a-pciutils-3.5.6/share/pci.ids
<logzet>
Are driver problems for USB an issue under linux?
<clever>
logzet: it sounds like your missing usb drivers, confirming what devices you have
<clever>
1e2d 7 Series/C216 Chipset Family USB Enhanced Host Controller #2
<clever>
1e26 7 Series/C216 Chipset Family USB Enhanced Host Controller #1
<logzet>
That need to be really exotic, if even the linux kernel does not have them by default
<clever>
1e31 7 Series/C210 Series Chipset Family USB xHCI Host Controller
<clever>
logzet: they all look pretty standard
<clever>
logzet: if you check lsmod, does it show ehci and xhci modules being loaded?
<logzet>
yes
<clever>
to get anything more, you would need a proper lspci, which is tricky at this stage
<clever>
logzet: do you have nixos on anything else?
<logzet>
Sure, typing on one installation
<logzet>
*typing this
<clever>
logzet: partition and format the usb stick as-if you where doing a normal UEFI install, then mount the USB stick partitions under /mnt/ and generate some config, then set oot.loader.grub.efiInstallAsRemovable=true; and finish the nixos-install
<clever>
logzet: then you will have a non-live usb stick, that has a fully self-contained nixos that can freely be modified with nixos-rebuild, and have all changes persist