nixos/modules/filesystem/chn-PC.nix

32 lines
640 B
Nix
Raw Normal View History

2023-06-05 21:53:13 +08:00
{
config =
{
fileSystems =
{
"/" =
{
device = "/dev/mapper/root";
fsType = "btrfs";
2023-06-15 00:55:18 +08:00
options = [ "subvol=@root,compress-force=zstd:3" ];
2023-06-05 21:53:13 +08:00
};
2023-06-09 21:09:52 +08:00
"/swap" = {
device = "/dev/mapper/root";
fsType = "btrfs";
options = [ "subvol=@swap" ];
};
2023-06-05 21:53:13 +08:00
"/boot" =
{
device = "/dev/disk/by-uuid/50DE-B72A";
fsType = "vfat";
};
};
2023-06-09 21:09:52 +08:00
swapDevices = [ { device = "/swap/swap"; } ];
2023-06-05 21:53:13 +08:00
boot.initrd.luks.devices.root =
{
device = "/dev/disk/by-partuuid/49fe75e3-bd94-4c75-9b21-2c77a1f74c4e";
header = "/dev/disk/by-partuuid/c341ca23-bb14-4927-9b31-a9dcc959d0f5";
allowDiscards = true;
};
};
}