mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-24 00:08:44 +08:00
26 lines
483 B
Nix
26 lines
483 B
Nix
|
{
|
||
|
config =
|
||
|
{
|
||
|
fileSystems =
|
||
|
{
|
||
|
"/" =
|
||
|
{
|
||
|
device = "/dev/mapper/root";
|
||
|
fsType = "btrfs";
|
||
|
options = [ "subvol=@root,compress-force=zstd:15" ];
|
||
|
};
|
||
|
"/boot" =
|
||
|
{
|
||
|
device = "/dev/disk/by-uuid/50DE-B72A";
|
||
|
fsType = "vfat";
|
||
|
};
|
||
|
};
|
||
|
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;
|
||
|
};
|
||
|
};
|
||
|
}
|