Files
server-config/mount.sh
T
Floweynt 76fa38e34c
flake-check / flake-check (push) Canceled after 0s
lint / lint (push) Canceled after 0s
diff-tag / dix (push) Canceled after 0s
initial commit
2026-08-31 08:41:45 -05:00

16 lines
468 B
Bash

#!/usr/bin/env bash
set -euo pipefail
DEV=/dev/disk/by-uuid/5dfd3b74-2162-4167-825b-21259ca48820
EFI=/dev/disk/by-uuid/7155-EF89
mount -o subvol=@root "$DEV" /mnt
mkdir -p /mnt/{nix,persist,var/log,btrfs_root,boot}
mount -o subvol=@nix "$DEV" /mnt/nix
mount -o subvol=@persist "$DEV" /mnt/persist
mount -o subvol=@logs "$DEV" /mnt/var/log
mount -o subvolid=5 "$DEV" /mnt/btrfs_root
mount "$EFI" /mnt/boot
btrfs subvolume create /mnt/persist/@secrets