<clever>
sigtrm: can you paste the exact error ssh gave?
<clever>
mightybyte: and how did you update to 18.03?
<clever>
mightybyte: is cache.nixos.org listed in /etc/nix/nix.conf ?
<clever>
mightybyte: what is taking that long to build?
<clever>
sigtrm: try `systemctl stop firewall`
<clever>
sigtrm: is the machine acting as a router?
<clever>
sigtrm: you can also run reset to reset the terminal
<clever>
sigtrm: ps aux | grep sshd
<clever>
sigtrm: is sshd running?
<clever>
sigtrm: check the ip's shown by `ip addr`
<clever>
infinisil: already tried it, but it just makes the problem worse :P
<clever>
Dedalo: the vimium extension lets you search for tabs by title with T
<clever>
Dedalo: 22 windows with a total of 436 tabs for the second profile
<clever>
Dedalo: 35 windows, with a total of 1399 tabs, for the first chrome profile
<clever>
Dedalo: i have over 1000 tabs in chrome, and it uses 32gig of ram and sometimes another 32gig of swap
<clever>
Dedalo: if you want hibernation, then the swap has to be bigger then the ram, beyond that, it depends purely on what you run and how bad your tab addition is
<clever>
rescue_boot.nix mainly saves you from having to dig out the USB you installed from
<clever>
Dedalo: its more for if you mess up the root partition, or want to make drastic changes to root
<clever>
Dedalo: the rescue script only works if /boot is intact
<clever>
jgt: it will obey /etc/nix/machines when building the inputs to the expression, but the shell itself will be ran locally
<clever>
windows probably already had gpt tables there
<clever>
Dedalo: p will tell you if its dos or gpt
<clever>
jgt: ah, so your probably hitting the original problem that made it linux-only
<clever>
jgt: did you set allowBroken?
<clever>
jgt: ^^^
<clever>
jdnavarro: error: Package ‘postgis-2.4.4’ in /home/clever/apps/nixpkgs/pkgs/development/libraries/postgis/default.nix:101 is not supported on ‘x86_64-apple-darwin’, refusing to evaluate.
<clever>
and it adds an option for it to grub
<clever>
Dedalo: that drops a ~300mb initrd into /boot, that contains the entire nixos installer
<clever>
Dedalo: also of note, nvme only boots with uefi, so your /boot partition has to be an efi system partition, with GPT tables, and formated as fat32
<clever>
fresheyeball: i dont drink beer, lol
<clever>
Dedalo: then you want to aim fdisk at the nvme drive
<clever>
Dedalo: so you have 2 drives plugged in, sdb, and nvme0n1, by the sizes, can you tell what physical device each is?
<clever>
fresheyeball: you can also just copy the whole module to the current dir and imports = [ ./copy.nix ];
<clever>
Dedalo: what does lsblk say?
<clever>
elvishjerricco: ExecStart is not a nixos option, you have to mkForce the entire serviceConfig
<clever>
Dedalo: i also recomend having seperate datasets for / and /nix/
<clever>
and GPT partition tables
<clever>
Dedalo: make sure to mount boot after the rootfs
<clever>
Dedalo: so you need an efi system partition, which will be formated as fat32, and mounted to /mnt/boot/, and then a partition for zfs, with the root mounted to /mnt/
<clever>
Dedalo: then your booting the USB in EFI mode, and will probably also want efi for the nixos install
<clever>
due to pesky licenses, we cant ship an image with zfs enabled
<clever>
symphorien: though you also have to edit the USB's configuration.nix if you want to enable ZFS support
<clever>
Dedalo: does `mount | grep efi` show efivarfs being mounted?
<clever>
Dedalo: inside the main { and } that surround the bulk of the file
<clever>
Dedalo: you will need a /boot that is not zfs, and then depending on uefi and/or gpt, some other things
<clever>
did you install it with nix-env or systemPackages?
<clever>
maerwald: you sometimes have to logout and back in to get that kind of thing detected
<clever>
but by accident, i used nix master, which was too new, and then the nix within nixpkgs couldnt read db.sqlite
<clever>
i used lynx from text mode to open hydra and find the path to nix
<clever>
so i had a very broken gentoo install, and a very very old nix
<clever>
house*
<clever>
i was in the middle of moving the gentoo data off to wipe the system and had to leave the huse
<clever>
ive done the above before, when upgrading a nix 1.9 on gentoo, without /usr/bin, lol
<clever>
and then just jam it into PATH temporarily
<clever>
srhb: you can still run `nix-store -r /nix/store/hash-nix-2.0/ to download a new nix, without having to parse nixpkgs
<clever>
Taneb: it may not allow numbers as a job name?
<clever>
nothing obvious from the ps tree
<clever>
yep
<clever>
Taneb: try doing `systemctl restart hydra-evaluator` and see if it recovers
<clever>
Taneb: is localhost in /etc/nix/machines ?
<clever>
Taneb: can you pastebin the output of `ps -eH x` ran on the hydra machine?
<clever>
Taneb: there should be a jobset called .jobsets, which will show the normal status page, including when it last did an eval and how often it evals
<clever>
,libraries thekolb
<clever>
thekolb: it only works under nix-shell and nix-build
<clever>
thekolb: gcc wont work right if you install it with nix-env
<clever>
but $CC is set to the right thing on darwin and clangStdenv.mkDerivation
<clever>
Dezgeg: when using gcc, cc exists, but when using clang, cc doesnt exist
<clever>
thekolb: yeah, change the makefile to use $CC
<clever>
tobiasBora: yeah, you need --allow-unsafe-native-code-during-evaluation, or builtins.exec wont even exist
<clever>
tobiasBora: it outputs { val1 = 5*5; ... }
<clever>
and it will behave as if you had originally written foo = /tmp/whatever.json;
<clever>
tobiasBora: the script on lines 5&6, could then download the json to a temp file, then just echo the path to stdout
<clever>
in this case, i use nix to create a script, then builtins.exec to run that script impurely, and whatever the script printed, is then parsed as nix, and returned by builtins.exec
<clever>
it could just be a string or a path
<clever>
tobiasBora: i'm not sure where its documented, but it can return any expression you want
<clever>
if its under 2tb, you dont really need to bother with GPT
<clever>
so GPT needs a dedicated bios boot partition do handle the same task
<clever>
the GPT tables take up more then 1 sector, and dont allow using "unused" space
<clever>
ixxie: it has to be MBR/dos, or the requirements get a bit more complex
<clever>
when using MBR, grub puts stage1 in the "unused" space between sector 1 and partition 1, which is usually about 2048 sectors long due to alignment requirements
<clever>
ixxie: umount, partition it with 1 partition, then format sda1 and start over
<clever>
ixxie: yeah
<clever>
ixxie: did you mount sda or sda1?
<clever>
LnL: also of note, prior to discovering nixos, i was writing my own initrd's for gentoo, and even had wifi drivers and firmware loading in one initrd, to netboot over wifi
<clever>
the FS choice as well
<clever>
LnL: but kexec lets you repartition and reformat it however you want
<clever>
LnL: the main limitation of NIXOS_LUSTRATE is that you must reuse the existing partition layout of the install
<clever>
LnL: and that automation was based on when i manually converted gentoo to nixos, and debugged the problems it had
<clever>
LnL: but the debian junk in /bin and /lib and /etc will break nixos, so a `touch /etc/NIXOS_LUSTRATE` will tell the nixos initrd to rename eveyrthing in / on bootup
<clever>
LnL: then `touch /etc/NIXOS` to bypass some safeties, and `./result/bin/switch-to-configuration boot` to install the nixos bootloader
<clever>
LnL: basically, you can install nix on any linux distro, then just `nix-build '<nixpkgs/nixos>' -A system -I nixos-config=/etc/nixos/configuration.nix` to build a copy of nixos within /nix (on debian!)
<clever>
tobiasBora: but its usually enough to get ssh fixed, and then you can just switch to ssh
<clever>
tobiasBora: main issue ive seen with both curses and serial console, is that its not properly aware of the screen width/height, and things get a little wonky
<clever>
LnL: /etc/NIXOS_LUSTRATE is based on how i had mutated one of my gentoo installs into nixos a year or 2 ago
<clever>
ixxie: you have ~5 minutes to cancel it with `shutdown -c`
<clever>
ixxie: yeah, thats a safety for if you cant get in
<clever>
ixxie: lsblk
<clever>
ixxie: once your booted into it, you can just mount the hdd to /mnt and install as normal, just like you had used the ISO
<clever>
jasongrossman: nixos-generate-config defaults to /, and its designed so you can re-run it from a normal install, to update /etc/nixos/hardware-configuration.nix
<clever>
its just a wrapper that runs `nixos-rebuild` under a chroot for you
<clever>
and i would expect `nixos-install --root /` to break
<clever>
jasongrossman: nixos-install defaults to /mnt/
<clever>
mightybyte: execsnoop, ran as root
<clever>
strace it!
<clever>
its called nix-index
<clever>
,locate firefox
2018-08-09
<clever>
a thunk is how a lazily evaluated language works
<clever>
without that, it will be super-lazy, and wont even run the thunks
<clever>
symphorien: in this case, it will allow --json to force thunks
<clever>
symphorien: try builtins.toJSON instead of --json
<clever>
symphorien: what command caused the failure?
<clever>
it will say function, not thunk
<clever>
> builtins.toJSON { a = x: x*5; }
<clever>
symphorien: what did you pass to builtins.toJSON?
<clever>
fresheyeball: is the process running?
<clever>
ldconfig does not work in nix
<clever>
selfsymmetric-pa: sudo will mess with env vars
<clever>
yeah
<clever>
selfsymmetric-pa: what about `sudo -i` then `nixos-rebuild switch` ?
<clever>
selfsymmetric-pa: and what command is giving the error?
<clever>
selfsymmetric-pa: what does `echo $NIX_PATH` say?
<clever>
which allows you to then forcibly bypass things
<clever>
at least in mysql, you can start the daemon with a special parameter, that disables all auth and just gives localhost full admin
<clever>
that is also the simplest way to change the stateVersion, at the cost of data loss
<clever>
and it should recreate everything and obey the current config
<clever>
elvishjerricco: if its a fresh install, just blow away `/var/lib/postgresql` after you stop the service, then start it again
<clever>
elvishjerricco: from within psql, you can query them
<clever>
fresheyeball: ah
<clever>
elvishjerricco: yeah
<clever>
elvishjerricco: changing the stateVersion back restored the old datadir, and the whole db
<clever>
and as a result, all data just vanished
<clever>
elvishjerricco: i also recently got surprised by a recent accidental change of stateVersion, the datadir for postgres now contains the version#
<clever>
,locate libstdc++.so
<clever>
symphorien: is wireguard still in extraModulePackages?
<clever>
nix will parse it once, and generate a nix-build command, that then makes the squashfs