moar progress

This commit is contained in:
caem 2025-01-15 00:27:29 +01:00
parent 99605585e1
commit 135236685a
Signed by: caem
GPG key ID: 69A830D03203405F
6 changed files with 83 additions and 55 deletions

View file

@ -30,13 +30,6 @@
content = {
type = "btrfs";
extraArgs = [ "-f" "-L nixos" ];
postCreateHook = ''
TMP_MNT=$(mktemp -d)
MNT_PART="/dev/sda2" # [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"
'';
subvolumes = {
"/root" = {
mountpoint = "/";