Archie: mount home subvolume as /home

This commit is contained in:
Toast 2023-08-28 14:01:48 +02:00
parent 94a87229f1
commit 60b28ea218

View file

@ -39,17 +39,22 @@
fsType = "vfat"; fsType = "vfat";
}; };
fileSystems = {
/* /*
Mount the root subvolume of the SSD Mount the root subvolume of the SSD
This is helpful for getting things from This is helpful for getting things from
my old Arch install, as well as for running btdu my old Arch install, as well as for running btdu
*/ */
fileSystems = {
"/mnt/ssd" = { "/mnt/ssd" = {
device = config.fileSystems."/".device; device = config.fileSystems."/".device;
fsType = config.fileSystems."/".fsType; fsType = config.fileSystems."/".fsType;
options = [ "subvolid=5" "ro" ]; options = [ "subvolid=5" "ro" ];
}; };
"/home" = {
device = "/dev/disk/by-uuid/5322c217-b87b-4150-8b4c-a8fa17a899bf";
fsType = "btrfs";
options = [ "subvol=@home" "compress=zstd" ];
};
}; };
swapDevices = [ ]; swapDevices = [ ];