configuration.nix/hosts/wynne/hardware/filesystem.nix

58 lines
1.5 KiB
Nix
Raw Normal View History

2024-07-03 17:03:51 +05:30
_: {
2024-07-03 18:34:32 +05:30
boot = {
initrd.supportedFilesystems = [ "vfat" "btrfs" ];
supportedFilesystems = [ "vfat" "btrfs" "ext4" "exfat" ];
};
2024-07-03 17:03:51 +05:30
fileSystems = {
"/" = {
device = "/dev/disk/by-partlabel/WYNNE_ROOT";
fsType = "btrfs";
options = [ "subvol=@root" "compress-force=zstd" "noatime" ];
neededForBoot = true;
};
"/nix" = {
device = "/dev/disk/by-partlabel/WYNNE_ROOT";
fsType = "btrfs";
options = [ "subvol=@nix" "compress-force=zstd" "noatime" ];
neededForBoot = true;
};
"/persist" = {
device = "/dev/disk/by-partlabel/WYNNE_ROOT";
fsType = "btrfs";
options = [ "subvol=@persist" "compress-force=zstd" "noatime" ];
neededForBoot = true;
};
"/mnt/system" = {
device = "/dev/disk/by-partlabel/WYNNE_ROOT";
fsType = "btrfs";
options = [ "subvol=/" "compress-force=zstd" "noatime" ];
};
2024-07-04 22:11:37 +05:30
"/mnt/data" = {
device = "/dev/disk/by-partlabel/DATA1";
fsType = "btrfs";
options = [ "subvol=/" "compress-force=zstd" "noatime" "nofail" "x-systemd.automount" "x-systemd.device-timeout=5" ];
};
2024-11-27 23:59:27 +05:30
"/var/lib/private" = {
device = "/dev/disk/by-partlabel/DATA1";
fsType = "btrfs";
options = [ "subvol=@state" "compress-force=zstd" "noatime" ];
};
2024-07-03 17:03:51 +05:30
"/boot" = {
device = "/dev/disk/by-partlabel/WYNNE_BOOT";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
};
swapDevices = [
{ device = "/dev/disk/by-partlabel/WYNNE_SWAP"; }
];
}