dot
vizie's NixOS desktop: Hyprland, CachyOS kernel and gaming tweaks
695c973
3 files changed +46 −20
modifiedMIGRATION.md
@@ -55,16 +55,31 @@ | ||
| 55 | 55 | |
| 56 | 56 | |
| 57 | 57 | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 58 | 69 | |
| 59 | 70 | |
| 60 | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 61 | 75 | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 62 | 79 | |
| 63 | - | |
| 80 | + | |
| 64 | 81 | |
| 65 | - | |
| 66 | - | |
| 67 | - | |
| 82 | + | |
| 68 | 83 | |
| 69 | 84 | |
| 70 | 85 | |
@@ -74,9 +89,8 @@ | ||
| 74 | 89 | - |
| 75 | 90 | - |
| 76 | 91 | |
| 77 | - | |
| 78 | - | |
| 79 | - | |
| 92 | + | |
| 93 | + | |
| 80 | 94 | - |
| 81 | 95 | |
| 82 | 96 | - |
@@ -131,9 +145,7 @@ | ||
| 131 | 145 | copy your settings and addons back before you start it: |
| 132 | 146 | |
| 133 | 147 | ```bash |
| 134 | - sudo mount -o ro /dev/disk/by-label/backup /mnt | |
| 135 | - cp -a /mnt/wow/{WTF,Interface} ~/Games/battlenet/drive_c/'Program Files (x86)'/'World of Warcraft'/_retail_/ | |
| 136 | - sudo umount /mnt | |
| 148 | + cp -a /mnt/backup/wow/{WTF,Interface} ~/Games/battlenet/drive_c/'Program Files (x86)'/'World of Warcraft'/_retail_/ | |
| 137 | 149 | ``` |
| 138 | 150 | |
| 139 | 151 | - |
@@ -141,8 +153,9 @@ | ||
| 141 | 153 | |
| 142 | 154 | |
| 143 | 155 | |
| 144 | - | |
| 145 | - | |
| 146 | - | |
| 147 | - | |
| 148 | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + |
@@ -3,7 +3,7 @@ | ||
| 3 | 3 | # nixos-generate-config --show-hardware-config --root /mnt |
| 4 | 4 | # and keep the generated one if they differ. |
| 5 | 5 | # |
| 6 | -# The file systems aren't here: disko.nix defines the drive's layout, and | |
| 6 | +# The NVMe drive's file systems aren't here: disko.nix defines its layout, and | |
| 7 | 7 | # disko turns it into fileSystems entries. |
| 8 | 8 | { |
| 9 | 9 | config, |
@@ -24,6 +24,20 @@ | ||
| 24 | 24 | ]; |
| 25 | 25 | boot.kernelModules = [ "kvm-amd" ]; |
| 26 | 26 | |
| 27 | + # The Kingston SATA SSD with the CachyOS backup (tools/backup-to-sata), | |
| 28 | + # read-only so nothing on it changes by accident. nofail: the system still | |
| 29 | + # boots once the drive is gone or reused. | |
| 30 | + fileSystems."/mnt/backup" = { | |
| 31 | + device = "/dev/disk/by-label/backup"; | |
| 32 | + fsType = "btrfs"; | |
| 33 | + options = [ | |
| 34 | + "ro" | |
| 35 | + "noatime" | |
| 36 | + "nofail" | |
| 37 | + "x-systemd.device-timeout=10s" | |
| 38 | + ]; | |
| 39 | + }; | |
| 40 | + | |
| 27 | 41 | # The second drive (sdb, ext4) was commented out in CachyOS's fstab too. |
| 28 | 42 | # fileSystems."/home/vizie/Games" = { |
| 29 | 43 | # device = "/dev/disk/by-uuid/deadbeef-b2a7-406c-9704-4d07e2f38996"; |
modifiedtools/restore-from-sata
@@ -1,10 +1,9 @@ | ||
| 1 | 1 | #!/usr/bin/env bash |
| 2 | 2 | # Puts back what restore-filter lists from the backup drive into the new |
| 3 | 3 | # system's home folder (MIGRATION.md, step 3). Run it as root from the backup |
| 4 | -# drive itself, mounted at /mnt: | |
| 4 | +# drive itself, which NixOS mounts read-only at /mnt/backup: | |
| 5 | 5 | # |
| 6 | -# mount -o ro /dev/disk/by-label/backup /mnt | |
| 7 | -# /mnt/vizie/git/dot/tools/restore-from-sata | |
| 6 | +# /mnt/backup/vizie/git/dot/tools/restore-from-sata | |
| 8 | 7 | set -euo pipefail |
| 9 | 8 | |
| 10 | 9 | user=vizie |