You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Got a crash that led to my initrd apparently disappearing. After a trip
through the woes of nixos-enter, we're back! In light of this, let's
*not* pull in the new nvidia drivers. We'll stick to 6.12, since I can't
get the drivers from unstable without re-evaluating nixpkgs to allow
unfree.
Anyways, if me or someone else needs it, here's the commands I used to
get nixos-enter working. The wiki was very little help (surprise), but
this guide was super useful:
https://www.adyxax.org/blog/2023/11/13/recovering-a-nixos-installation-from-a-linux-rescue-image/
```bash
sudo mount /dev/nvmeblahblah2 /mnt
cd /mnt
sudo mount /dev/nvme0n1p6 boot
// Maybe required, idk
sudo mount -o bind /dev /mnt/dev
sudo mount -o bind /proc /mnt/proc
sudo mount -o bind /sys /mnt/sys
// Probably not required
sudo chroot /mnt /nix/var/nix/profiles/system/activate # Wiki doesn't include the /system part
sudo nixos-enter
nix shell nixpkgs#git # Required for using flakes with nixos-rebuild
nixos-rebuild boot --flake /home/username/location/of/flake#hostname --option sandbox false # Might not need the sandbox
```
kernelPackages=lib.mkDefaultpkgs.linuxPackages_latest;# 6.13 breaking some stuff
10
+
kernelPackages=lib.mkDefaultpkgs.linuxPackages_6_12;# 6.13 breaking some stuff on stable, see https://github.com/NixOS/nixpkgs/issues/375730#issuecomment-2625157971
11
11
12
12
kernelParams=["boot.shell_on_fail"];# Open terminal environment if we fail to boot
0 commit comments