2017-07-29
23:29
<
clever >
Infinisil: proxy changes have no effect on already open connections
23:28
<
clever >
its just cache.nixos.org being slow as is usual
23:28
<
clever >
that doesnt sound related to nix-daemon or the proxy
23:27
<
clever >
nixos-rebuild
23:26
<
clever >
can you gist that output?
23:24
<
clever >
then it will use the env of nixos-rebuild
23:24
<
clever >
nixos-rebuild as root should be able to spawn workers on its own without the daemon
23:24
<
clever >
stop the nix-daemon service as well, "systemctl stop nix-daemon"
23:23
<
clever >
Infinisil: at a glance, all it does is set a few env variables, so run "env | grep proxyhostname" and unset them, then nixos-rebuild switch should temporarily work
23:18
<
clever >
all i can think of then is to patch patchelf
23:17
<
clever >
usually better to set it at link time
23:17
<
clever >
it would also mess with addresses embeded into the binary, you would have to apply relocations and such
23:16
<
clever >
bennofs: there is a field in the ELF header that says what address to load it at
23:15
<
clever >
been a few months since i delt with that, so i cant remember
23:12
<
clever >
a few hours i think
23:11
<
clever >
slabity: i have used wine.override { wineBuild = "wineWow"; }; before
23:10
<
clever >
slabity: one sec
23:08
<
clever >
et4te: i have passed the message on to one of the guys behind stack2nix
22:36
<
clever >
Infinisil: 404, after a pretty long delay
22:36
<
clever >
et4te: "${gcc.cc.lib}/lib/libgcc_s.so"
22:18
<
clever >
catern: nixpkgs also has cross-compiler support, so you can skip cross-tools
22:17
<
clever >
catern: :D
22:16
<
clever >
catern: pitch nix at them!
22:16
<
clever >
et4te: this cabal flag tells it to always pass -lgcc_s to ghc
22:15
<
clever >
configureFlags = "--ghc-option=-lgcc_s"
22:12
<
clever >
but gcc.cc.lib contains the libgcc_s.so
22:12
<
clever >
the gcc attribute in nixpkgs is a wrapper around gcc
22:09
<
clever >
gchristensen: i only ever do (import <nixpkgs>{}).lib, so its probably low
22:06
<
clever >
but using inherit like in your version makes it much clearer
22:06
<
clever >
i just had to grep
22:06
<
clever >
gchristensen: ah, i always had trouble finding out which file a given lib function came from, the // make it unclear
22:04
<
clever >
et4te: yeah, i'm not sure what to do next
22:03
<
clever >
fnordxyz: boot the nixos install cd, mount everything to /mnt like in the middle of the install, and "nixos-install --chroot" and "nixos-rebuild boot"
22:02
<
clever >
the fix is seemingly just gone, yet its affects are still in hackage-packages.nix
22:01
<
clever >
though the file being patched no longer exists in the repo
22:01
<
clever >
i think it goes on the bits-extras derivation
21:57
<
clever >
the commit i linked also shows it modifying the configure flags some
21:57
<
clever >
configureFlags = "--ghc-option=-lgcc_s"
21:55
<
clever >
et4te: in hackage-packages.nix, it was just set to null
21:55
<
clever >
33994 }) {gcc_s = null;};
21:48
<
clever >
aaronlevin: try adding /usr/lib to $LD_LIBRARY_PATH
21:46
<
clever >
aaronlevin: yeah, opengl has trouble when using nix on other distros
21:46
<
clever >
aaronlevin: is this on nixos or another distro?
21:45
<
clever >
et4te: can you gist the file stack2nix generated?
21:42
<
clever >
et4te: cant see anything on this end as to why its failing, the hackage-packages version of data.bits looks normal
21:40
<
clever >
can you gist the entire error?
21:40
<
clever >
what are you trying to build?
21:38
<
clever >
ah, its now in gcc.cc.lib
21:38
<
clever >
hmmm, not seeing it in a recent one,
*looks more*
21:37
<
clever >
so add gcc.cc to your inputs
21:37
<
clever >
et4te: gcc_s is inside gcc.cc
21:35
<
clever >
can you gist the nix expression and the full error?
18:47
<
clever >
et4te: what error is stack2nix giving?
17:46
<
clever >
M-liberdiko: what is the contents of your configuration.nix file and what changes have you done to that nixpkgs?
17:46
<
clever >
M-liberdiko: you can use -I nixpkgs= to insert things into the search path as well
03:36
<
clever >
and i have found images inside images inside images before, lol
03:36
<
clever >
and save the image on the nas
03:36
<
clever >
i usualy image a drive with dd before wiping it
03:31
<
clever >
pretty sure nixos has an option for it
03:30
<
clever >
you can change the background image
03:21
<
clever >
but there is no luks involved, so zfs just scans everything for a pool called "naspool", and finds all of the pieces, then assembles it
03:21
<
clever >
Infinisil: the part labels collide, so the symlink can only point to one
03:21
<
clever >
/dev/sdc1: LABEL="naspool" UUID="7200155095284679922" UUID_SUB="6735154720865869234" TYPE="zfs_member" PARTLABEL="zfs" PARTUUID="0d2fcda2-8863-2c43-bd4e-0c83a1bebfad"
03:21
<
clever >
/dev/sdb1: LABEL="naspool" UUID="7200155095284679922" UUID_SUB="17637093852783491482" TYPE="zfs_member" PARTLABEL="zfs" PARTUUID="868e6929-235b-d442-88d0-65d5256a9a67"
03:21
<
clever >
/dev/sda1: LABEL="naspool" UUID="7200155095284679922" UUID_SUB="9359165330978170301" TYPE="zfs_member" PARTLABEL="zfs" PARTUUID="0419e4bb-1fb5-2446-ad2b-d889c89bbc3b"
03:20
<
clever >
though in my case, i gave every part of the pool the name zfs, so that route is bork for me
03:19
<
clever >
lrwxrwxrwx 1 root root 10 Jul 28 23:04 zfs -> ../../sda1
03:19
<
clever >
[root@nas:~]# ls -l /dev/disk/by-partlabel/
03:19
<
clever >
that one is based on the serial#, model, and partition index
03:17
<
clever >
yeah, but the randomly generated uuid is harder to deal with
03:15
<
clever >
poke around in /dev to find a symlink matching the partlabel
03:15
<
clever >
partlabel can be made fixed, while letting the uuid randomize
03:14
<
clever >
youll need to manually add it with the right uuid, or partlabel
03:14
<
clever >
so it silently skipped it
03:14
<
clever >
its not aware of the device being in use
03:08
<
clever >
Infinisil: nixos-generate-config will create the luks entry for you
03:06
<
clever >
oborot: how many wifi interfaces do you have?
03:01
<
clever >
Infinisil: yeah, they conflict
03:00
<
clever >
to make it use a certain disk always
03:00
<
clever >
i think thats for when you modify the efi settings
02:59
<
clever >
the disk doesnt come into play
02:59
<
clever >
because its reading config from the flash in the motherboard
02:58
<
clever >
but that option uses a special name that is in the default search path, normally reserved for install media
02:58
<
clever >
normally, you have to configure the efi to boot from a given binary in the efi system partition
02:57
<
clever >
you may also want to enable the removable option, one sec
02:57
<
clever >
the firmware may not like booting efi from an external drive
02:56
<
clever >
why are there 2 nixos's present on the same macbook?
02:54
<
clever >
are you running on the macbook when you run nixos-install?
02:53
<
clever >
how are you doing the install exactly?
02:52
<
clever >
it should be pointing to the grub binary on an efi system partition
02:52
<
clever >
Infinisil: that util lets you query the firmware config, to see what the EFI is set to boot from
02:50
<
clever >
do you have a /etc/wpa_supplicant.conf file?
02:49
<
clever >
so it should work
02:49
<
clever >
it sucessfully read the firmware
02:49
<
clever >
[ 448.751115] usb 1-1: ath9k_htc: Transferred FW: ath9k_htc/htc_9271-1.4.0.fw, size: 51008
02:47
<
clever >
any firmware related errors near the end?
02:45
<
clever >
oborot: what does dmesg say?
02:44
<
clever >
oborot: what error did it give?
02:44
<
clever >
what happens when you run efibootmgr from the livecd?
02:33
<
clever >
and then replug the usb adapter
02:33
<
clever >
oborot: try setting hardware.enableAllFirmware = true; in configuration.nix and then do nixos-rebuild switch
02:33
<
clever >
very differnt from mine then, but we can still try the common things
02:32
<
clever >
and if you unplug it and run lsusb again, that row disapears?
02:29
<
clever >
oborot: what does yours say in lsusb?
02:29
<
clever >
Bus 007 Device 033: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
02:28
<
clever >
oborot: what is the brand?
02:26
<
clever >
Infinisil: if a size is missing, it fills everything it can
02:26
<
clever >
Infinisil: it can also export the current table as text, so you can make it in gparted, then export it to text, and tweak that template
02:14
<
clever >
what does efibootmgr say when ran from the livecd?
02:14
<
clever >
Infinisil: hmmm, did you say this was on a mac?
02:06
<
clever >
with gpt, you have a uuid at the partition and fs level
02:06
<
clever >
the plain uuid is randomly generated
02:05
<
clever >
i seems to give the most details
02:05
<
clever >
use the i command in fdisk to compare it to something known-good, or gist the state
02:04
<
clever >
Infinisil: and in expert mode (x command to unlock it), you can change it with n
02:04
<
clever >
n change partition name
02:03
<
clever >
Infinisil: its visible in fdisk like this
02:03
<
clever >
Command (m for help): i
02:03
<
clever >
[root@nas:~]# fdisk /dev/sda
02:02
<
clever >
but the name isnt important
02:02
<
clever >
in gparted, you can just set it in the gui
02:01
<
clever >
so you can label things where the FS doesnt support labels
02:01
<
clever >
gpt has partition table level uuid/type/label for every partition
02:01
<
clever >
the partlabel is just a string you can freely set on any partition
02:00
<
clever >
but that can be set in the partition editor
02:00
<
clever >
i dont think the bios cares about the partlabel
01:46
<
clever >
without running cryptsetup open, what does blkid /dev/sd* show? from a livecd
01:43
<
clever >
Infinisil: yeah
2017-07-28
21:11
<
clever >
i just go for a simple ext4 for /boot
21:10
<
clever >
Infinisil: ive also heard that zfs doesnt correctly handle journal playback of any filesystem
21:08
<
clever >
stage 1.5 has to ask for a password to even find /boot, then linux has to ask for a password to open /
21:08
<
clever >
Infinisil: and also, encrypting /boot means you have to enter 2 passwords to even boot the machine, and a 3rd to login
21:08
<
clever >
Infinisil: while it does have luks, lvm, and zfs support, i'm not sure if grub is capable of using all 3 at once from stage 1.5
21:07
<
clever >
Infinisil: heh, i think thats asking a bit too much of grub
21:03
<
clever >
schoppenhauer: what if you run strace over emacs as you try to load it?
21:02
<
clever >
but if /boot is its own dataset, nix will copy things over, and it might work
21:02
<
clever >
so grub cant navigate the mess that is /nix/store/
21:02
<
clever >
ive heard that grub has trouble if there are too many directories in the path of files on zfs
21:01
<
clever >
schoppenhauer: then that emacs should be working
21:01
<
clever >
avn: and because of how nixos works, all of the /boot variants must update together, or bad things happen
21:00
<
clever >
avn: boot.loader.grub.devices takes an array of drives to put stage 1.5 into, but that still relies on the /boot partition surviving
21:00
<
clever >
what about in this directory?
21:00
<
clever >
ls /nix/store/mk20xpab15j3if0srq4xn3r296gz2k4b-emacs-packages-deps/share/emacs/site-lisp
20:58
<
clever >
that should just be a bash script, what is inside it?
20:57
<
clever >
type is part of bash, so its more likely to work
20:57
<
clever >
Infinisil: there is also "type emacs"
20:40
<
clever >
and the weakest link in the chain will always be your choice of zfs redundancy
20:40
<
clever >
so a loss of /boot due to other disks dying will never happen
20:40
<
clever >
so grub can survive even with a loss of all but 1
20:39
<
clever >
i think that one uses a mirror
20:35
<
clever >
this guide even includes using an mdadm raid for /boot
20:34
<
clever >
so its best to match them all in size
20:33
<
clever >
the raidz1 stuff in zfs can only use the size of the smallest disk in the array
20:33
<
clever >
the laptop is the only one without reduncancy, but i could always zfs send it to the NAS
20:30
<
clever >
and my NAS is a raidz1 over 4 drives i think
20:30
<
clever >
my desktop is on an SSD mirror
20:29
<
clever >
the system still "worked", but apt was hosed beyond repair
20:29
<
clever >
Infinisil: lost the main 500gig volume, and the /var/db/dpkg directory
20:29
<
clever >
Infinisil: one day, one of the hdd's in the array failed, and i had no redundancy setup
20:28
<
clever >
c74d: ah, so it will probably break
20:28
<
clever >
Infinisil: and because i was constantly resizing things, the LV inside it was in over 200 fragments
20:28
<
clever >
Infinisil: many years ago, i used LVM to join 4 pata drives up into a "giant" 500gig array, with ext3 on top
20:27
<
clever >
c74d: good question, i havent gotten it to work yet on that machine
20:26
<
clever >
Infinisil: then make a zfs pool on /dev/${vgname}/root and swap on /dev/${vgname}/swap
20:26
<
clever >
Infinisil: then you can run pvcreate and vgcreate on that, followed by 2 lvcreate's, which makes a /dev/${vgname}/{swap,root} pair of nodes
20:25
<
clever >
Infinisil: when you run cryptsetup open, you give it a name for the device, and it will appear at /dev/mapper/${name}
20:24
<
clever >
or just no swap
20:24
<
clever >
you could potentialy do randomly encrypted swap, or swap on a 2nd luks
20:24
<
clever >
only if you want swap on the same luks device
20:23
<
clever >
just luksFormat a device, open it, then create lvm nodes and zfs as normal
20:23
<
clever >
but it was fairly simple, and i just helped somebody thru it lastnight
20:23
<
clever >
not for luks + lvm + zfs
20:22
<
clever >
so i opted to encrypt my zfs and swap with a single luks device, so one passphrase unlocks everything
20:22
<
clever >
but i think that breaks hibernation
20:22
<
clever >
so at shutdown, its imposible to recover the swap
20:22
<
clever >
there is an option to use a random encryption key on the swap, and to not save the key
20:21
<
clever >
then persist, in plaintext, for ages
20:21
<
clever >
in theory, passwords you type go into ram, and potentialy go into swap
20:21
<
clever >
but if your not using luks, zfs and swap just get normal partitions directly on the drive
20:20
<
clever >
then zfs eats one, and swap eats the other
20:20
<
clever >
on my laptop, i use LVM to split 1 luks volume into 2 block devices
20:20
<
clever >
and it can allow fragmenting, striping, or jbod
20:20
<
clever >
lvm just maps ranges of blocks to ranges of blocks, with a static mapping
20:19
<
clever >
lvm is much simpler
20:19
<
clever >
and allocating memory during swap is bad
20:19
<
clever >
zfs needs to allocate a lot of memory
20:19
<
clever >
swap on a zvol has reportedly had major problems for years
20:19
<
clever >
otherwise, i can just use partitions
20:19
<
clever >
and thats only when i want to mix zfs and swap on the same luks device
20:18
<
clever >
but if i want swap on the same block device as zfs, i use lvm
20:18
<
clever >
mostly, it does the same thing as zfs and zvol's, so i dont use it much
20:17
<
clever >
line 37 solved that
20:17
<
clever >
pre-existing LV's had been activated by nixos, and refused to unlock the disk
20:17
<
clever >
i also ran into an lvm issue once on ubuntu
20:05
<
clever >
nh2: so it would skip most of it
20:05
<
clever >
nh2: i think i saw an issue on nixpkgs about overriding the autoconf cache via stdenv
16:30
<
clever >
then check pavucontrol
16:30
<
clever >
hodapp: try turning pulseaudio on in configuration.nix
16:29
<
clever >
and it is listing pulseaudio names for devices
16:29
<
clever >
hodapp: under settings->audio, i see 3 mic input options
16:28
<
clever >
so it breaks under a nix-shell
16:28
<
clever >
dang, obs now relies on propagated userenv packages
16:27
<
clever >
checking this end...
16:26
<
clever >
then in the main window, you can control the mix of all of them
16:26
<
clever >
so you could add 3 or 4 different audio captures
16:26
<
clever >
in the OBS settings, you can configure secondary capture sources
16:21
<
clever >
check the levels in pavucontrol
16:21
<
clever >
then cross-xserver capture can get your screen recorded
16:21
<
clever >
the above gist removes all opengl from it
16:20
<
clever >
so partial opengl support breaks it
16:20
<
clever >
the funny thing, is that OBS works "better" with zero opengl support
16:18
<
clever >
that might allow the webgl to keep working on the host x server
16:18
<
clever >
and i think it needs more cpu, its basicaly doing 30 screenshots per sec
16:17
<
clever >
one of the advanced options, set it to capture from :0
16:17
<
clever >
hodapp: you can do cross-xserver capture in obs, but its monitor level, not window level
16:17
<
clever >
hodapp: yeah, this creates a new x server with zero gl support, and runs obs inside that
16:15
<
clever >
something critical is wrong in the opengl, but it runs fine under things like xephyr and xnest
16:15
<
clever >
i'm on ati
16:15
<
clever >
hodapp: ive got the same problem on my end, what GPU do you have?
16:14
<
clever >
LnL: line 22 has autoindent on
16:11
<
clever >
so you can pause, and copy out of my terminal at any point
16:10
<
clever >
and also, asciinema isnt video, thats just raw text, with timestamps on every character
16:10
<
clever >
Infinisil: something in there is doing it, the .vimrc is empty
16:09
<
clever >
Infinisil: not sure, but i have the config in a gist
16:07
<
clever >
hodapp: OBS can do audio
16:06
<
clever >
hodapp: obs-studio can do full compositing of many windows, webcams, other media sources, and scene transition stuff, and then either record or stream
16:05
<
clever >
hodapp: obs-studio for full gfx, asciinema for text-mode recording
16:00
<
clever >
Infinisil: there is a yaml2json program in the haskellPackages.yaml derivation
15:38
<
clever >
FRidh: ah, maybe postgress is broken then
15:35
<
clever >
FRidh: maybe the initial db import
15:35
<
clever >
FRidh: ah, sounds like some of the hydra init stuff failed
15:33
<
clever >
FRidh: what happens if you run these 2?
15:33
<
clever >
FRidh: sudo -u hydra -i -> hydra-create-user admin --password hunter2 --role admin
15:32
<
clever >
FRidh: i dont think its the postgress user, let me check my logs
15:29
<
clever >
FRidh: try a role of 'admin' instead
14:58
<
clever >
magnicida: it took 12 seconds for my not-os to boot under qemu
14:57
<
clever >
not-os boots pretty fast, a lot of useless junk has been removed
14:57
<
clever >
but treating the entire thing more as firmware then software
14:56
<
clever >
magnicida: i had originally designed it to run on a rack of ~8 servers, network booting from eachother
14:56
<
clever >
magnicida: another benefit of not-os, is that your entire system is ~3 files in /boot, so its very easy to version the entire machine and up/downgrade
14:54
<
clever >
joepie91: my kexec trick doesnt even boot on a 512mb system, and i dont think it can get far enough to make its own swap
14:53
<
clever >
and jouralctl compat
14:53
<
clever >
Binary file /nix/store/aw58bcj28add9scpqizsfcjjzzd5l8z3-util-linux-2.29.2-bin/bin/logger matches
14:53
<
clever >
not-os lacks udev entirely!
14:52
<
clever >
i think its the udev libraries mostly
14:52
<
clever >
Binary file /nix/store/aw58bcj28add9scpqizsfcjjzzd5l8z3-util-linux-2.29.2-bin/bin/lsblk matches
14:51
<
clever >
ah, it was utillinux, not coreutils
14:51
<
clever >
LnL: double-checking
14:50
<
clever >
Infinisil: yep
14:50
<
clever >
every other part is a stock build from the nix binary cache
14:50
<
clever >
the only thing i'm compiling specially is coreutils (to remove systemd)
14:49
<
clever >
i'm also using a full glibc, so it could be made even smaller
14:49
<
clever >
depends a lot on what else you want it to run, thats just a bare sshd and runit
14:49
<
clever >
LnL: yeah, 40ms for the squashfs, plus some initrd and kernel space
2017-07-27
04:11
<
clever >
Infinisil: ehh, this build is taking too long, i'll just finish it tomorrow
04:08
<
clever >
yeah, i have trouble signing off :P
03:50
<
clever >
Infinisil: that is the internals behind how pkgs.hello.meta.position works
03:44
<
clever >
{ column = 3; file = "/nix/store/5n59fpmkjna4gfcnjh5b0kpgn4vnpvkq-nixpkgs-17.03pre96825.497e6d2/nixpkgs/pkgs/top-level/all-packages.nix"; line = 32; }
03:44
<
clever >
clever@c2d ~ $ nix-instantiate --eval -E 'with import <nixpkgs>{}; builtins.unsafeGetAttrPos "callPackage" pkgs'
02:30
<
clever >
et4te: nix-copy-closure
02:22
<
clever >
heading off to bed now