68 lines
1.6 KiB
Nix
68 lines
1.6 KiB
Nix
|
{
|
||
|
disko.devices = {
|
||
|
disk = {
|
||
|
master = {
|
||
|
type = "disk";
|
||
|
device = "/dev/sda";
|
||
|
content = {
|
||
|
type = "gpt";
|
||
|
partitions = {
|
||
|
BOOT = {
|
||
|
size = "1M";
|
||
|
type = "EF02";
|
||
|
};
|
||
|
|
||
|
ESP = {
|
||
|
size = "512M";
|
||
|
type = "EF00";
|
||
|
content = {
|
||
|
type = "filesystem";
|
||
|
format = "vfat";
|
||
|
mountpoint = "/boot";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
root = {
|
||
|
size = "100%";
|
||
|
content = {
|
||
|
type = "btrfs";
|
||
|
extraArgs = [ "-f" ];
|
||
|
subvolumes = {
|
||
|
"/root" = {
|
||
|
mountpoint = "/";
|
||
|
mountOptions = [
|
||
|
"compress=zstd"
|
||
|
"noatime"
|
||
|
];
|
||
|
};
|
||
|
|
||
|
"/home" = {
|
||
|
mountpoint = "/home";
|
||
|
mountOptions = [
|
||
|
"compress=zstd"
|
||
|
"noatime"
|
||
|
];
|
||
|
};
|
||
|
|
||
|
"/nix" = {
|
||
|
mountpoint = "/nix";
|
||
|
mountOptions = [
|
||
|
"compress=zstd"
|
||
|
"noatime"
|
||
|
];
|
||
|
};
|
||
|
|
||
|
"/swap" = {
|
||
|
mountpoint = "/swap";
|
||
|
swap.swapfile.size = "8G";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|