<clever>
mog: i'm guessing thats a broken build of vbox
<clever>
mog: what does `ls -lh /nix/store/zp0xizchw3i15xynwyx51phv18idk9l7-virtualbox-5.2.14/libexec/virtualbox/VirtualBox` report?
<clever>
mog: virtualisation.virtualbox.host.enable = true; is the only thing you need in your config, nothing has to be installed
<clever>
as in my example above, you can also use " in the middle of a '' by throwing some ${ in first
<clever>
> '' you can also ${"mix ''"} and " up if your feeling fancy''
<clever>
,escape"
<clever>
,escape''
<clever>
locallycompact: stack itself also has a nix mode you can probably enable
<clever>
locallycompact: nix-shell -p pkgconfig
<clever>
Mic92: if left alone, i would be more likely to turn all of WRT into a single nix expression that builds the entire thing purely :P
<clever>
betaboon: should be
<clever>
NickHu: oh, and look at something like the old skype package, its 32bit as well
<clever>
pkgsi686Linux.callPackage would give you 32bit for all of your inputs as well
<clever>
and then you dont have to deal with multi-lib at all, its just a pure 32bit env
<clever>
NickHu: if you use pkgsi686Linux.stdenv.mkDerivation, then $NIX_CC will point to the 32bit gcc/glibc
<clever>
nix wipes all timestamps, then make gets confused and thinks the .o is up to date, and doesnt build anything
<clever>
cleanSource also gets rid of things like .o files, which can break builds
<clever>
jschievink: src = lib.cleanSource ./.; will clean that up
<clever>
jschievink: if your using src = ./.; then you just added a result symlink to the source, and now the source is different
<clever>
NickHu: pkgsi686Linux contains all of nixpkgs, but in 32bit
<clever>
NickHu: run nix-store --query --roots on that path
<clever>
NickHu: that might be nvidia to blame, i saw a recent PR where they dropped 32bit support
<clever>
NickHu: hardware.opengl.driSupport32Bit = true; and it will put it into the LD_LIBRRARY_PATH for you
<clever>
steveeJ: next step then is to read the nixos-install script to see what its trying to run
<clever>
haslersn: i think you want `AddKeysToAgent` from `man ssh_config`
2018-11-11
<clever>
ottidmes: you first want to figure out exactly how the data is getting there, check `/proc/<pid>/fd/` for foo, and see what it has open, and check it with strace to see how the logs get out
<clever>
ottidmes: if the exec didnt work, then the program is likely connecting directly to journald
<clever>
steveeJ: what did the --debug show prior to nix-env?
<clever>
steveeJ: usually, it will nix-build a given thing, then pass that to --set
<clever>
steveeJ: oh, that nix-env command is definitely wrong, it should be passing a storepath
<clever>
steveeJ: nixos-install doesnt forward --show-trace to all nix commands it runs, thats a bug ive seen before in a few places
<clever>
romildo: there is also $NIX_BUILD_TOP which i believe will be what you want
<clever>
oh, but if your entirely disabling nix-env, it doesnt really matter
<clever>
once it finds such a file, it stops recursing down that path
<clever>
nix-env will recursively search ~/.nix-defexpr/ for any nix files, foo.nix turns into a channel called foo, foo/default.nix turns into a channel called foo
<clever>
this creates a "channel" called foo, so you can nix-env -iA foo.hello
<clever>
illegalprime: you almost never want to use builder, that just makes things harder
<clever>
illegalprime: stdenv.mkDerivation { buildCommand = "patchShebangs . ; make install"; name = "foo"; }
<clever>
:S
<clever>
,locate libGLX_indirect.so
<clever>
infinisil: i think steam was trying to load libGLX_indirect.so
<clever>
nDuff: similar for preferLocalBuild=true;, why copy 5gigs of deps to a build slave, when your just writing a string to a file?
<clever>
nDuff: allowSubstitutes=false; is mainly to just speed things up, such as when your just going to echo a string to a file
<clever>
the name is part of what is hashed as well
<clever>
and if there is a cache-hit, the name will be in the narinfo
<clever>
nDuff: /nix/store/k95jhvx43xsl287s07dd75r6pn6cjly1-mesa-noglu-18.2.1-drivers results in a request to cache.nixos.org/k95jhvx43xsl287s07dd75r6pn6cjly1.narinfo
<clever>
nDuff: name is never sent to the cache
<clever>
nDuff: also, the only thing it leaks via a cache miss, is the hash of the derivation
<clever>
nDuff: --option substituters ''
<clever>
infinisil: glXChooseVisual is mentioned in 3 issues on the steam-for-linux github
<clever>
mdash: strace generated 900mb of log files!
<clever>
infinisil: giving strace a spin...
<clever>
/nix/store/k95jhvx43xsl287s07dd75r6pn6cjly1-mesa-noglu-18.2.1-drivers is where my gl stuff comes from
<clever>
ive also checked nix-channel a few times, but nixos-unstable hasnt gotten a fix yet
<clever>
videoDrivers = [ "amdgpu" ];
<clever>
infinisil: amd gpu
<clever>
infinisil: thats pretty much all it does, the UI doesnt even load fully
<clever>
infinisil: oh, ive been having a problem with steam lately
<clever>
infinisil: i believe uinput allows steam to fake input devices, and that could be used to trick evtest into thinking you have an xbox controller
<clever>
jgt: that happens if you run add as the wrong user, you usually only want channels on root
<clever>
samueldr: and it lists every single axis and button correctly
<clever>
Input device ID: bus 0x3 vendor 0x45e product 0x2a1 version 0x100
<clever>
/dev/input/event14: Xbox 360 Wireless Receiver
<clever>
infinisil: so it was just a matter of "unplugging" and "replugging" the device
<clever>
samueldr: i dont have any /dev/js*, so i dont think jstest can be used
<clever>
its not loaded on my machine, thats why it was a bit harder to locate
<clever>
infinisil: but oddly enough, steam claims i lack a controller, despite the ui responding to the controller!
<clever>
infinisil: i'm using an xbox one usb<->wireless receiver, and it shows up as a normal input device (evtest can use it), xorg also seems to treat it as an input, and it mostly follows focus in the window manager and just works
<clever>
infinisil: oh, but uinput may be more of a security thing
<clever>
infinisil: i dont really bother with acl's, just change the group permission bits
<clever>
infinisil: is this for the steam controller?
<clever>
jgt: oops, ^^
<clever>
johnw: that looks like it should work
<clever>
if you find the right one, you can then just nix-build that for testing
<clever>
infinisil: because udev.nix is putting a list of things into environment.etc, it will show up as one of the unnamed ones
<clever>
nix-user-chroot from above automates it all
<clever>
Unode: and if you request both a user and mount namespace at once, you can do it without root, and then have the ability to mount --bind, and chroot
<clever>
Unode: the unshare (or clone) syscall is used to create a new set of namespaces, isolated from the parent ones
<clever>
Unode: it sounds like its working
<clever>
should be near the end
<clever>
Unode: where it runs the unshare() syscall
<clever>
Unode: ns-exec-tools shouldnt need root
<clever>
Unode: strace unshare
<clever>
Unode: strace?
<clever>
Unode: strace it?
<clever>
Unode: and what happens if you try to run it?