moar progress

This commit is contained in:
caem 2025-01-14 00:16:41 +01:00
parent fdd9ec1568
commit 99605585e1
Signed by: caem
GPG key ID: 69A830D03203405F
5 changed files with 50 additions and 10 deletions

View file

@ -5,7 +5,7 @@
disk = {
master = {
type = "disk";
device = ""; # [managed by install.sh] { device }
device = "/dev/nvme0n1"; # [managed by install.sh]
content = {
type = "gpt";
partitions = {
@ -32,7 +32,7 @@
extraArgs = [ "-f" "-L nixos" ];
postCreateHook = ''
TMP_MNT=$(mktemp -d)
MNT_PART="" # [managed by install.sh] { root partition }
MNT_PART="/dev/nvme0n1" # [managed by install.sh]
mount "$MNT_PART" "$TMP_MNT" -o subvol=/
trap 'umount "$TMP_MNT"; rm -rf "$TMP_MNT"' EXIT
btrfs subvolume snapshot "$TMP_MNT/root" "$TMP_MNT/blank"