mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:36 +01:00
fix(docs): correct stale and mismatched documentation (#338)
This commit is contained in:
1 parent
b2ec56db66
commit
68ea04f173
28 files changed
+111
-84
No files matched your search
@@ -27,8 +27,9 @@ partitioning is no longer needed.
|
||||
### 1. Partition and mount with disko (recommended)
|
||||
|
||||
Layout is defined in [../hosts/idols-ai/disko-fs.nix](../hosts/idols-ai/disko-fs.nix): **nvme1n1**,
|
||||
ESP (450M) + LUKS + btrfs (subvolumes: @nix, @guix, @persistent, @snapshots, @tmp, @swap). Root is
|
||||
tmpfs; [preservation](https://github.com/nix-community/preservation) uses `/persistent`.
|
||||
ESP (~600M) + LUKS + btrfs (subvolumes: `/` at `/btr_pool`, `@nix`, `@persistent`, `@snapshots`,
|
||||
`@tmp`, `@swap`). Root is tmpfs; [preservation](https://github.com/nix-community/preservation) uses
|
||||
`/persistent`.
|
||||
|
||||
```bash
|
||||
git clone https://github.com/ryan4yin/nix-config.git
|
||||
@@ -43,6 +44,9 @@ nix run github:nix-community/disko -- --mode destroy,format,mount ../hosts/idols
|
||||
# Mount only (e.g. after first format, without wiping):
|
||||
# nix run github:nix-community/disko -- --mode mount ../hosts/idols-ai/disko-fs.nix
|
||||
|
||||
# the separate data disk (mounts at /data):
|
||||
nix run github:nix-community/disko -- --mode destroy,format,mount ../hosts/idols-ai/disko-fs-data.nix
|
||||
|
||||
# setup the automatic unlock via the tpm2 chip
|
||||
systemd-cryptenroll --tpm2-device=auto --tpm2-pcrs=0+7 /dev/<encrypted-disk-part-path>
|
||||
```
|
||||
|
||||
@@ -271,6 +271,9 @@ nixos-enter
|
||||
mv /etc/machine-id /persistent/etc/
|
||||
mv /etc/ssh /persistent/etc/
|
||||
|
||||
# leave the chroot; the remaining steps run from the live environment, where /mnt is the target
|
||||
exit
|
||||
|
||||
# delete the generated configuration after editing
|
||||
rm -f /mnt/etc/nixos
|
||||
rm ~/nix-config/hosts/12kingdoms-shoukei/hardware-configuration-new.nix
|
||||
@@ -282,7 +285,7 @@ git config --global user.name "Ryan Yin" # git-1
|
||||
git commit -am "feat: update hardware-configuration"
|
||||
|
||||
# copy our configuration to the installed file system
|
||||
cp -r ../nix-config /mnt/etc/nixos
|
||||
cp -r ~/nix-config /mnt/etc/nixos
|
||||
|
||||
# sync the disk, unmount the partitions, and close the encrypted device
|
||||
sync
|
||||
|
||||
Reference in new issue
Block a user