nixos/modules/garage-lvm-data.nix
James Andariese 10e8117cea updates for garage
add garage tank mount
open up the firewall on the k3s agents for now
apply this to xerneas (yveltal doesn't have an hdd)
2025-04-20 01:46:26 -05:00

15 lines
429 B
Nix

{ config, ... }:
{
# make an LV for the tank. add VGs to it.
# parted /dev/sda
# stuff to make this for lvm.
# vgcreate xerneas-tank-hdd /dev/sda1
# lvcreate -l 50%FREE xerneas-tank-hdd --name garage-data
# mkfs.xfs -L xerneas-gdat /dev/mapper/xerneas--tank--hdd-garage--data
fileSystems."/var/lib/garage/data" = {
device = "/dev/mapper/xerneas--tank--hdd-garage--data";
fsType = "xfs";
};
}