<clever>
mightybyte: its opening the file [ that you put in the config
<clever>
mightybyte: line 19 is to blame
<clever>
mightybyte: what is the content of /etc/nix/nix.conf ?
<clever>
inquisitiv3: we will know for sure once we see if efiInstallAsRemovable helps
<clever>
inquisitiv3: your motherboard firmware is broken i believe
<clever>
mightybyte: if you do `set -x` and re-run `nix-env -i htop` does it fail again? and what output does it produce?
<clever>
inquisitiv3: pvscan and vgchange -a y
<clever>
jD91mZM2: systemd-boot also failed mid install
<clever>
jD91mZM2: we changed the config over to grub
<clever>
mightybyte: does the error happen only with nix commands, or all commands?
<clever>
inquisitiv3: re-open the luks device with cryptsetup, then re-activate lvm, and mount your rootfs and /boot, then edit configuration.nix, add boot.loader.grub.efiInstallAsRemovable = true; and re-run nixos-install
<clever>
inquisitiv3: thats a crap-ton of uefi options, and the nixos one is missing
<clever>
mightybyte: ls -l ~/.nix-profile/bin/
<clever>
mightybyte: ls -l ~/.nix-profile/bin/\[
<clever>
mightybyte: can you screenshot it?
<clever>
Dedalo: i just run plain bash here
<clever>
inquisitiv3: boot the installer again and run `efibootmgr -v` what does it list?
<clever>
what error?
<clever>
now we just umount everything, reboot, and pray!
<clever>
yay
<clever>
that option is only for use with legacy booting
<clever>
boot.loader.grub.device = "nodev";
<clever>
inquisitiv3: change line 14 of https://pastebin.com/yMgBBGSk to "boot.loader.grub.enable = true; and re-run nixos-install
<clever>
all i can think of is "boo systemd" and to try grub, lol
<clever>
everything should just be working...
<clever>
yeah
<clever>
inquisitiv3: and also `fdisk -l /dev/sda ; cat /mnt/etc/nixos/hardware-configuration.nix`
<clever>
yes
<clever>
inquisitiv3: what about the contents of hardware-configuration.nix and the output of `mount` ?
<clever>
yeah
<clever>
inquisitiv3: nixos-rebuild reads /etc/nixos/configuration.nix, but nixos-install reads /mnt/etc/nixos/configuration.nix
<clever>
ah
<clever>
acowley: are you using nix-shell?
<clever>
that also works and is better
<clever>
acowley: if you put cmake into the buildInputs, then the cmakeConfigurePhase is automatically set when the stdenv is loading
<clever>
inquisitiv3: yes
<clever>
d1rewolf: the `nox` tool will cache that, `nix search` also uses multiple threads to speed it up i think
<clever>
and if your client GC's one, it has to recreate it, and then the clients one is technically wrong
<clever>
which are effectively identical
<clever>
tilpner: given the same input files, it can produce different squashfs files
<clever>
tilpner: its possible that mksquashfs is not deterministic
<clever>
inquisitiv3: you can run `nixos-rebuild build` to check the file again
<clever>
tilpner: what file are you trying to force a re-copy, and how exactly is it differing?
<clever>
tilpner: if --verify-path says its good, then --repair-path will probably not want to change it
<clever>
inquisitiv3: what error did you get?
<clever>
tilpner: did the client garbage collect the path, then rebuild it?
<clever>
tilpner: run `nix-store --verify-path /nix/store/foo` on both ends
<clever>
inquisitiv3: ah, didnt notice that
<clever>
tilpner: why exactly do you want to re-copy it?
<clever>
tilpner: there is no need to re-copy the path, nix ensures that that is never needed
<clever>
and if the network does come back, cancel the timer
<clever>
pie__: i was thinking use at to start a timer to activate the current build, activate the new one, and if the network doesnt come back, the timer fires and undoes it
<clever>
sphalerite: ah, that looks like it does most of whats needed
<clever>
> at.meta.description
<clever>
at may be better
<clever>
since it has to be started without a rebuild, and then aborted after the switch
<clever>
pie__: i wouldnt really use a systemd timer for this task
<clever>
pie__: and obviously abort that timer when you confirm network is still working
<clever>
acowley: ah, that looks like it would fix it
<clever>
acowley: i used nix-repl for that (the 1.0 one), but it was just recently removed from nixpkgs
<clever>
gchristensen: pie__: you could setup a timer to run $(readlink /run/current-system)/bin/switch-to-configuration test after a timeout
<clever>
:)
<clever>
and that can help as well
<clever>
and at that point, you might as well just do: nix-env -f /home/brandon/workspace/nixpkgs -i ats-pkg
<clever>
bebarker: you need to use -f '<nixpkgs>' to make it search the path
<clever>
bebarker: nix-env basically ignores NIX_PATH and -I by default
<clever>
acowley: it will just log the error to the journal and continue
<clever>
adamantium: i run zfs on all of my machines, and Dedalo just did a zfs install
<clever>
then nixos ignores the extra file, and grub sources it
<clever>
adamantium: you could also modify your script to create a grub-extra-entries.cfg, and then just use extraEntries = "source grub-extra-entries.cfg";
<clever>
adamantium: lines 50/51 and others come from configuration.nix, and thats how the entra entries get in
<clever>
adamantium: nixos will run this script, to scan /nix/var/nix/profiles/system* and generate the grub config