dotfiles/format_btrfs
mitchell fddae3ba36 feat: update niri config for VM, add cachyos repo script
- Update niri output config for Virtual-1 display
- Add cachyos repository installation script
- Fix btrfs device path from vda2 to vda1
- Configure sudo-rs with symbolic links
- Comment out polkit agent and swayidle spawns
2026-05-02 02:11:09 -04:00

23 lines
539 B
Fish
Executable file

#!/usr/bin/env fish
lsblk
echo
read -P 'Device (/dev/vda1): ' -l device
if test -z "$device"
set device /dev/vda1
end
mkfs.btrfs $device
and mount $device /mnt
and btrfs subvolume create /mnt/root
and btrfs subvolume create /mnt/swap
and btrfs subvolume create /mnt/home
and umount /mnt
and mount -o subvol=root $device /mnt
and mount -m -o subvol=swap $device /mnt/swap
and mount -m -o subvol=home $device /mnt/home
and btrfs filesystem mkswapfile --size 4g --uuid clear /mnt/swap/swapfile
and swapon /mnt/swap/swapfile
and lsblk