config/systems/base/fs.nix

38 lines
836 B
Nix
Raw Normal View History

2024-11-22 18:05:37 +01:00
{
...
}:
{
boot.supportedFilesystems = [ "btrfs" ];
fileSystems."/" = {
device = "none";
fsType = "tmpfs";
2024-11-22 18:40:23 +01:00
options = [ "defaults" "mode=755" ];
2024-11-22 18:05:37 +01:00
};
fileSystems."/boot" = {
device = "/dev/disk/by-label/boot";
2024-11-22 19:49:20 +01:00
fsType = "vfat";
2024-11-22 18:05:37 +01:00
};
fileSystems."/nix" = {
device = "/dev/disk/by-label/btrfs";
fsType = "btrfs";
options = [ "compress=zstd" "subvol=nix" "noatime" ];
};
fileSystems."/persistent" = {
device = "/dev/disk/by-label/btrfs";
fsType = "btrfs";
options = [ "compress=zstd" "subvol=persistent" "noatime" ];
autoResize = true;
neededForBoot = true;
};
2024-11-22 20:10:23 +01:00
fileSystems."/media" = {
device = "vm@b9b22d11-3492-49a6-92b7-b36cdf0161fe.cephfs=/media";
fsType = "ceph";
options = [ "nofail" ];
};
2024-11-22 18:05:37 +01:00
}