2017-08-26
18:39
<
clever >
did you set nix.package in configuration.nix?
18:38
<
clever >
and then tries to open a file by the name of "use Nix::Config; Nix::Config::readConfig; print $Nix::Config::config{"binary-caches"};"
18:38
<
clever >
but with the * matching nothing, it sets the -I path to a literal "-e"
18:37
<
clever >
so instead of opening a literal *.txt, it just doesnt get a path
18:37
<
clever >
nullglob is a bash thing that the stdenv turns on to make thr stringly typed mess less of a mass
18:37
<
clever >
thats my guess
18:37
<
clever >
and now the entire args list is out of sync
18:37
<
clever >
then the argument eats the next argument
18:36
<
clever >
and because of nullglob, the string vanishes
18:31
<
clever >
it sounds like its treating the string of perl code as a filename
18:30
<
clever >
not sure then
18:27
<
clever >
Infinisil: nixos-unstable branch of which repo?
18:26
<
clever >
Infinisil: are you using a channel?
18:12
<
clever >
hyper_ch: nope
18:12
<
clever >
Turion: another nix expression, either written by hand, or generated with cabal2nix
18:12
<
clever >
and it will automatically be able to use everything in haskellPackages, and build against the right version of ghc
18:11
<
clever >
so you could do paths = p: [ (p.callPackage ./custom_thing.nix {}) ];
18:11
<
clever >
that set also contains a callPackage function, which can be used to load up other nix expressions, like ones made via cabal2nix
18:10
<
clever >
yes and no
18:10
<
clever >
Turion: ghcWithPackages takes a single function as an argument, and it passes it a set of every package in nixpkgs (which came from hackage)
18:05
<
clever >
that would explain the intel_do_flush_locked in the error
18:04
<
clever >
nwuensche: i suspect the gpu drivers may not support hibernation
18:02
<
clever >
haskell dependencies have to be passed to ghcWithPackages
18:01
<
clever >
dont think thats related
18:00
<
clever >
nwuensche: the video drivers appear to have crashed
18:00
<
clever >
Aug 26 19:23:02 nixos xss-lock[7403]: X connection lost; exiting.
18:00
<
clever >
Aug 26 19:23:02 nixos display-manager[7327]: intel_do_flush_locked failed: Input/output error
18:00
<
clever >
Aug 26 19:23:02 nixos kernel: drm/i915: Resetting chip after gpu hang
17:58
<
clever >
hmm, given that it happened 2 minutes before the resume, it might have been at login
17:56
<
clever >
nwuensche: what about this?
17:56
<
clever >
Aug 26 19:20:13 nixos xsession[7342]: /nix/store/m5fzkvclh7zvrcldr0gvhwp4m24v663h-terminator-1.0/lib/python2.7/site-packages/terminatorlib/window.py:386: GtkWarning: Das Symbol »terminator_active_broadcast_group« konnte nicht gefunden werden,
17:49
<
clever >
nwuensche: remove the -u and read more of the journal around the time of going in and out of hibernation
17:41
<
clever >
sphalerite: any other ideas?
17:39
<
clever >
and imediately after, systemd says it stopped x11
17:38
<
clever >
this line looks odd
17:38
<
clever >
Aug 26 19:23:04 nixos systemd[1]: display-manager.service: Service hold-off time over, scheduling restart.
17:35
<
clever >
that would explain 2 of the errors in the gist, but not the main problem
17:31
<
clever >
everything in that gist happened within a 11 second period, so there is a bit of a gap in the data
17:29
<
clever >
nwuensche: how long was it in hibernation?
17:29
<
clever >
nwuensche: and at what timestamp did you resume from hibernation?
17:26
<
clever >
nwuensche: what about journalctl --since=today -u display-manager ?
17:19
<
clever >
nwuensche: check the journal and see whats up with xorg
17:13
<
clever >
firejail in every place, no mention of firefox
17:10
<
clever >
construct: firejail would be in the wrapper
17:08
<
clever >
check /etc/group
17:08
<
clever >
any gid that isnt already in use
17:06
<
clever >
and puts me into it
17:06
<
clever >
construct: the both.nix file creates the wireshark group
17:06
<
clever >
that lets you limit who can use the tool
17:06
<
clever >
construct: in the example i gave, only members of the wireshark group can execute, but the setuid bit is set, so the program becomes root
17:03
<
clever >
nwuensche: if the uptime is low, then it rebooted, but if the uptime is high, then only xorg crashed
17:01
<
clever >
nwuensche: and what is the uptime after logging in again?
16:54
<
clever >
ah, setuid isnt allowed within normal derivations
16:53
<
clever >
construct: what error did firejail return?
16:49
<
clever >
you would need to iterate over the paths in $storePaths, and create a rule to allow read and maybe execute on each entry
16:49
<
clever >
construct: 27 then acts on the entire graph
16:49
<
clever >
construct: line 14 generates a reference graph, and line 20 extracts every path in the closure from the graph
16:47
<
clever >
construct: i dont think its documented anywhere
16:45
<
clever >
construct: you would probably need to write something using exportReferenceGraph that allows it accessing all of its dependencies
16:40
<
clever >
only have*
16:40
<
clever >
and they have have an effect when inside a string in a nix expression
16:38
<
clever >
and that file is usually a bash script that runs another firefox
16:37
<
clever >
${pkgs.firefox}/bin/firefox is the full path, but you would then need to replace every / with a .
16:37
<
clever >
oh right, the path of firefox is in the store
16:33
<
clever >
Turion: id say start with cabal2nix, that creates a nix file that runs the entire build for you
16:33
<
clever >
and the special gcc bash script inserts that into the args when running the real gcc
16:32
<
clever >
nix-shell adds -I flags to NIX_CFLAGS_COMPILE
16:16
<
clever >
Turion: a nix option
16:14
<
clever >
Turion: installing things will never make them available to builds
15:18
<
clever >
freeman42y: anything you could normally put into /etc/sudoers (check its man page)
14:10
<
clever >
and libudev
14:09
<
clever >
open("/nix/store/210papbs0b9qarlb4m8jjmnp3xmlz5bd-glibc-2.25/lib/libudev.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
14:08
<
clever >
it may need libpci.so, it failed to find that
14:08
<
clever >
open("/nix/store/210papbs0b9qarlb4m8jjmnp3xmlz5bd-glibc-2.25/lib/libpci.so", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
14:07
<
clever >
just random observations as i read the log
14:06
<
clever >
which it is unpacking at startup
14:06
<
clever >
lush: i think the GoPanda binary also contains a tar with a full load of npm modules
14:06
<
clever >
open("/tmp/.org.chromium.Chromium.eCyjXy/node_modules/request/examples/README.md", O_WRONLY|O_CREAT|O_TRUNC, 0600) = 27
14:05
<
clever >
lush: yeah, definitely chromium based, it made a tmp dir with chromium in the name
14:05
<
clever >
mkdir("/tmp/.org.chromium.Chromium.eCyjXy", 0700) = 0
14:01
<
clever >
glancing at the binary of gopanda, i can see clear signs of v8
13:55
<
clever >
gist also does syntax highlighting if the filename ends in .nix
13:54
<
clever >
if you post an updated copy of the expression i can build it on my end and do that
13:54
<
clever >
id start by running it under "strace -f" and looking to see what the real failure is, the logs may not say it
13:53
<
clever >
nix doesnt allow setuid binaries in any package
13:52
<
clever >
does this thing contain an entire build of chromium??
13:49
<
clever >
we can guess it wants that in bin and copy it there
13:48
<
clever >
depends heavily on where its expecting the files
13:46
<
clever >
to $out/bin/
13:45
<
clever >
which is a single file
13:45
<
clever >
78 only copies GoPanda2
13:42
<
clever >
it should also copy icudtl.dat
13:40
<
clever >
lush: do you see how line 77 and 78 copy the locales and the main binary?
13:35
<
clever >
gchristensen: dont know of any services that do that, but it should be simple to make an irc bot that does that
13:34
<
clever >
lush: check the original package to see if icudtl.dat is somewhere?
13:31
<
clever >
lush: gcc.cc.lib
13:30
<
clever >
lush: it is in gcc, but gcc is a bash wrapper
13:29
<
clever >
viaken: if its a package in nixpkgs, just open a PR there
13:23
<
clever >
since your not doing a cross-compile, its safe to let that fail
13:23
<
clever >
romildo: and i think its only to find out what special flags are needed when cross-compiling
13:22
<
clever >
romildo: it appears to be compiling some code into conftest.o, then using file to figure out what arch it used
13:22
<
clever >
lush: same way you did gnome3.gconf, which i gave directions for above
13:21
<
clever >
ah, you linkd it above
13:19
<
clever >
romildo: file will never be in /usr/bin, even if it is available
13:14
<
clever >
gnome2.gtk.out 0 s /nix/store/rdwslb6cywp40dm9rv6aqgapfjcyrzpm-gtk+-2.24.31/lib/libgtk-x11-2.0.so
13:09
<
clever >
alsaLib.out 0 s /nix/store/wwgynkpy6y98wpr3xd9yf69fgw68171r-alsa-lib-1.1.2/lib/libasound.so
13:06
<
clever >
all of the low-level x libs are under xlibx
13:06
<
clever >
xlibs.libXi.out 0 s /nix/store/wsa2arwihgwy6mma6gsn8116zw356ly6-libXi-1.7.9/lib/libXi.so
13:05
<
clever >
harder to guess this one, it could have also been in cairo, and i wouldnt have guessed gnome2
13:05
<
clever >
gnome2.pango.out 0 s /nix/store/6hxsq6p1gskwc53k1p2ssx8jpm5c9xni-pango-1.40.4/lib/libpangocairo-1.0.so
13:03
<
clever >
yeah, you can sometimes guess them
13:03
<
clever >
fontconfig.lib 0 s /nix/store/h5z81pcppd5isqx98c8k4dznvh8rx83w-fontconfig-2.12.1-lib/lib/libfontconfig.so
13:02
<
clever >
romildo: read the configure script near line 7029, and see what its doing with file
13:02
<
clever >
lush: add gnome3 to the arguments at the top, and gnome3.gconf to the inputs
13:01
<
clever >
gnome3.gconf.out 0 s /nix/store/fx6rxhmcig9dqspz8gams55id3jxwj9j-gconf-3.2.6/lib/libgconf-2.so.4
12:58
<
clever >
i pasted that ~20 mins ago
12:58
<
clever >
nspr.out 22,544 x /nix/store/3k02a7f3gcbw22pvyfv38sf94vjwlfvy-nspr-4.13.1/lib/libplc4.so
12:50
<
clever >
ahawkins: can you gist your current expression?
12:43
<
clever >
lush: yeah
12:41
<
clever >
ah, got the name slightly off, nix-index is the package, nix-index and nix-locate are commands within it
12:38
<
clever >
nspr.out 22,544 x /nix/store/3k02a7f3gcbw22pvyfv38sf94vjwlfvy-nspr-4.13.1/lib/libplc4.so
12:37
<
clever >
lush: nix-locate
12:35
<
clever >
lush: before the }:, add ,nss
12:35
<
clever >
lush: and add nss to the function arguments near line 1
12:32
<
clever >
lush: so add nss to the buildInputs
12:32
<
clever >
nss.out 1,399,112 x /nix/store/wfgshwx9ir33xnlyhmy9fwqwy1hjm0yk-nss-3.30/lib/libnss3.so
12:32
<
clever >
$ nix-locate libnss3.so
12:32
<
clever >
lush: the package containing nss3 has to be added to the buildInputs
12:31
<
clever >
that gives you a shell running as root
12:31
<
clever >
freeman42x[nix1]: sudo
12:30
<
clever >
lush: same reason, this isnt a nixos module
12:29
<
clever >
lush: the nixpkgs.config is also invalid
12:28
<
clever >
lush: where did you put the config.nix file?
12:27
<
clever >
its not a nixos module, so it shouldnt have that line
12:27
<
clever >
delete line 1 of config.nix
12:24
<
clever >
lush: can you put the gopanda.nix and config.nix into a gist?
12:17
<
clever >
lush: nix-env -iA nixos.gopanda
12:16
<
clever >
gspia: nix-build does help isolate a lot more problems from system-wide things
12:13
<
clever >
gspia: have you looked into just not using stack for the builds?, there are things like stack2nix and cabal2nix
12:02
<
clever >
gspia: yeah, it might need -p gcc
12:01
<
clever >
freeman42x[nix1]: what about this? boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta];
12:00
<
clever >
gspia: and having it system wide makes it half-work when you forget that, so you dont notice the problem
12:00
<
clever >
gspia: its more that gcc has to correctly be put into the inputs for nix-shell
11:58
<
clever >
any errors in dmesg? and dont paste the whole thing, lol
11:58
<
clever >
no changes
11:58
<
clever >
freeman42x[nix1]: any change in ip link?
11:56
<
clever >
freeman42x[nix1]: what happens when you do "sudo modprobe -v brcmfmac"
11:55
<
clever >
freeman42x[nix1]: yeah, one sec
11:54
<
clever >
lush: copy the nix expression into a file called gopanda.nix in ~/.config/nixpkgs/ and then add "gopanda = pkgs.callPackage ./gopanda.nix {};" to the package overrides in config.nix
11:52
<
clever >
remove gcc from systemPackages
11:51
<
clever >
that breaks a lot of things
11:51
<
clever >
outside of the nix shell, what does "type gcc" say?
11:49
<
clever >
gspia: and all of this was ran under "nix-shell -p zlib zlib.dev" ?
11:48
<
clever >
gspia: it appears to be failing to find both halves of zlib
11:48
<
clever >
cannot find -lz
11:48
<
clever >
/run/user/1000/25970-4.c:1:18: fatal error: zlib.h: No such file or directory
11:46
<
clever >
freeman42x[nix]: its case sensitive, extraGroups
11:45
<
clever >
ahawkins: and nix-env -iA nixos.mystuff
11:45
<
clever >
ahawkins: as an example, { packageOverrides = pkgs: { mystuff = { inherit firefox hello vim; }; }
11:44
<
clever >
ahawkins: use config.nix and nix-env to install a set of packages
11:42
<
clever >
teto: after manualy mounting /dev/sda2 to /boot, run "nixos-generate-config" and it will rebuild /etc/nixos/hardware-configuration.nix
11:38
<
clever >
teto: you must mount sda2 to /boot
11:38
<
clever >
teto: then your grub config is on /dev/sda2, not the /boot dir of sda1
11:37
<
clever >
teto: are you booting with efi or legacy?
11:35
<
clever >
teto: what does fdisk say about your drive?
11:34
<
clever >
gspia: this flag may alos help
11:34
<
clever >
with the verbosity flag -v3 to see the error messages.
11:34
<
clever >
compiler at the preprocessing stage. In this case you can re-run configure
11:32
<
clever >
teto: and what arguments did you run nix-env with?
11:32
<
clever >
teto: is /boot mounted when you run nixos-rebuild?
11:30
<
clever >
may also help
11:30
<
clever >
gspia: the contents of /home/gspia/.cabal/logs/ghc-8.2.1/zlib-0.6.1.2-12c573b5b6af44f3fe6db28d6fb711b3953aa3469d4309a13adce662dc7f3622.log
11:30
<
clever >
gspia: oh right, paths are truncated, re-run it with -s 5000 as well
11:07
<
clever >
gspia: can you gist all of the output that strace generates?
11:06
<
clever >
gspia: you may also need to add -f to strace
11:00
<
clever >
gspia: run the failing command under "strace -e execve" and confirm what its doing to try and detect zlib
11:00
<
clever >
Guest51535: and joko is online
10:57
<
clever >
freeman42x: nix-env -iA nixos.irssi
10:56
<
clever >
freeman42x: what is the full line that lspci gave?
10:56
<
clever >
gspia: is pkgconfig at use any?
10:56
<
clever >
Guest51535: that will probably work
10:54
<
clever >
Guest51535: boot.kernelPackages = pkgs.linuxPackages_4_12;
10:53
<
clever >
freeman42x: then the driver isnt loading yet, what does "lspci -nn" say for the card?
10:52
<
clever >
once you learn the tricks, you never go back!
10:51
<
clever >
freeman42x[m]: does "ip link" show a wifi interface?
10:45
<
clever >
you can also just use the above nix-shell to temporarily use it without installing
10:44
<
clever >
nix-shell -p wirelesstools
10:44
<
clever >
freeman42x: wirelesstools.out 40,352 x /nix/store/ynhdq4ajcwb8mrjwdawr12cvza891crd-wireless-tools-29/bin/iwlist
10:33
<
clever >
and is stack in nix mode?
10:32
<
clever >
what is the exact command you are running?
10:31
<
clever >
just that and nothing else?
10:30
<
clever >
yorick: what arguments are you padding to nix-shell?
10:24
<
clever >
yorick: nixpkgs will add the .dev automatically
10:18
<
clever >
freeman42x: try "iwlist scan" first, thats a good test of the drivers
10:18
<
clever >
only after wpa_supplicant has connected
10:01
<
clever >
dmesg should include the name of the firmware
2017-08-25
10:10
<
clever >
oh, networking.supplicant.<name>.userControlled.enable seems to do exactly what you want, though ive never let nixos manage that config
10:10
<
clever >
nwuensche: did you change etworking.supplicant.<name>.configFile.path ?
10:07
<
clever >
so i get all of the old wifi passwords pre-entered
10:07
<
clever >
and my /etc/wpa_supplicant.conf isnt managed by git, i just scp the file in from another machine when doing an install
10:06
<
clever >
that allows wpa_cli (running as a member of wheel) to connect and query/manipulate the daemon
10:06
<
clever >
nwuensche: i have this line in my wpa_supplicant.conf, along with the blocks that wpa_passphrase generates
10:06
<
clever >
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
03:05
<
clever >
boomshroom: both commands cause nix to read every single file in the entire nix store
02:48
<
clever >
and dont use the force flag
02:48
<
clever >
ah yeah, and it doesnt fix things, run nix-store --delete on each thing it says is bad
02:46
<
clever >
babs_: that file got corrupted, run nix-store --verify --check-contents
02:44
<
clever >
babs_: have you had any improper shutdowns recently?
02:42
<
clever >
babs_: what is the content of /nix/store/8zbfwjwmi0c2085527p1rndxdyxisrv5-hello-2.8.drv ?
02:35
<
clever >
babs_: what is the content of default.nix?
02:29
<
clever >
babs_: you need to run nix-build on the .nix file, not the .drv
01:57
<
clever >
slabity: what context is that failure happening in?
01:45
<
clever >
nix-repl '<nixpkgs/nixos>'
01:38
<
clever >
thats the line of config that triggered it
01:38
<
clever >
networking.wireless.interfaces = [ "wlp1s0" ];
01:36
<
clever >
neonfuz: this is what created the ifaces variable
01:36
<
clever >
neonfuz: one sec
01:35
<
clever >
this is what mine happens to contain
01:35
<
clever >
exec wpa_supplicant -s -u -Dnl80211,wext -c /etc/wpa_supplicant.conf $ifaces
01:35
<
clever >
ifaces="-iwlp1s0"
01:34
<
clever >
and the value of ifaces from that script?
01:32
<
clever >
something in my tab-completion completed all symlinks
01:32
<
clever >
neonfuz: /etc/systemd/system/wpa_supplicant.service
01:32
<
clever >
tab completion messed up
01:31
<
clever >
Fare: nixos will auto-create it
01:31
<
clever >
Fare: logout and then log back in
01:29
<
clever >
neonfuz: what arguments is it running wpa-supplicant with?
01:29
<
clever >
neonfuz: then cat the start script listed under ExecStart
01:29
<
clever >
neonfuz: [clever@eeepc1:~]$ cat /nix/store/bnl9ab56lhxznxig8c110dr5qhfvgchs-unit-script/bin/wpa_supplicant-start
01:27
<
clever >
Fare: wjocj iser are ypu running nix-env as, and what is the output of "ls -l ~/.nix-profile" ?
01:26
<
clever >
Fare: what other user?
01:25
<
clever >
Fare: the owner should match the name of the directory, and it should be 755
01:25
<
clever >
drwxr-xr-x 2 clever users 18 Aug 22 10:29 /nix/var/nix/profiles/per-user/clever/
01:24
<
clever >
Fare: what user owns /nix/var/nix/profiles/per-user/fare ?
01:20
<
clever >
neonfuz: is the driver visible in lsmod?
01:16
<
clever >
nix-repl> :b networkmanager_strongswan
01:16
<
clever >
[clever@amd-nixos:~]$ nix-repl '<nixpkgs>'
01:16
<
clever >
and reviewing the generated dbus config to make sure it has the right references
01:16
<
clever >
so everything relies on the networkmanager_strongswan having dbus files at the right path
01:15
<
clever >
and random config files from that range get copied into /etc at 182-202
01:14
<
clever >
so all of the packages listed on 109-112 get added to dbus
01:13
<
clever >
it also inherits everything from environment.systemPackages
01:13
<
clever >
yeah, nixos modules can do that
01:12
<
clever >
and all of that is automated, so as long as you put the right package into services.dbus.packages, it just worka
01:10
<
clever >
which uses an xml stylesheet and xsltproc to insert the paths into an xml template
01:09
<
clever >
all-packages.nix- callPackage ../development/libraries/dbus/make-dbus-conf.nix {
01:09
<
clever >
all-packages.nix: makeDBusConf = { suidHelper, serviceDirectories }:
01:08
<
clever >
line 15 then passes that list to makeDBusConf, in nixpkgs
01:08
<
clever >
line 94 provides a base default, dbus and everything in systemPackages are in the dbus.packages by default
01:07
<
clever >
timclassic: it also helps to read the above dbus.nix, to see what it does
01:07
<
clever >
timclassic: its also in the man page, "man configuration.nix"
2017-08-24
08:54
<
clever >
you almost always need to set both of them
06:12
<
clever >
amdgpu didnt exist when i went thru all 2 options :P
06:10
<
clever >
amdgpu is the one that fixed everything
06:10
<
clever >
dont think i tried radeon then
06:09
<
clever >
with amdgpu, everything just works
06:09
<
clever >
with the non-free driver (i forget the nixos name), it crashes instantly upon turning on a 2nd monitor
06:09
<
clever >
and several other issues
06:09
<
clever >
steam and obs refuse to even start due to missing opengl features
06:08
<
clever >
with the "ati" driver (old open-source one), i have no text in KSP mods (both native and wine)
06:08
<
clever >
oh, that reminds me of my issues
06:06
<
clever >
and that wifi chip has DMA to the main cpu ram
06:06
<
clever >
joepie91: basicaly, if your phone tries to connect to an AP, it can execute code in your wifi chip
06:05
<
clever >
so you can just sniff for the ssid's they are lookign for, and spoof a router in the phones list