update README

This commit is contained in:
Daniel Langbein 2023-09-07 18:54:46 +02:00
parent ccc9a946db
commit de8a6b665f

View File

@ -153,7 +153,7 @@ Summary:
* Create subvolume `@swap` directly below top-level subvolume. * Create subvolume `@swap` directly below top-level subvolume.
* Mount at `/swap` * Mount at `/swap`
* Create swapfile: `sudo btrfs filesystem mkswapfile --size 8g --uuid clear /swap/swapfile` * Create swapfile: `sudo btrfs filesystem mkswapfile --size 8g --uuid clear /swap/swapfile`
* Regenerate hardware-configuration: `sudo nixos-generate-config --dir $(hostname)` * Regenerate hardware-configuration: `sudo nixos-generate-config --dir hosts/$(hostname)`
* Add `swapDevices = [ { device = "/swap/swapfile"; } ];` to hardware configuration and run `nixos-rebuild switch` (see above). * Add `swapDevices = [ { device = "/swap/swapfile"; } ];` to hardware configuration and run `nixos-rebuild switch` (see above).
## Automount encrypted drive ## Automount encrypted drive