58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{
|
|
disko.devices = {
|
|
disk = {
|
|
disk1 = {
|
|
device = "/dev/sda";
|
|
type = "disk";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
boot = {
|
|
name = "boot";
|
|
size = "1M";
|
|
type = "EF02";
|
|
};
|
|
esp = {
|
|
name = "ESP";
|
|
size = "512M";
|
|
type = "EF00";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
};
|
|
};
|
|
root = {
|
|
size = "100%";
|
|
content = {
|
|
extraArgs = ["-f"];
|
|
type = "btrfs";
|
|
subvolumes = {
|
|
"/root" = {
|
|
#mountpoint = "/";
|
|
};
|
|
"/nix" = {
|
|
mountpoint = "/nix";
|
|
};
|
|
"/persist" = {
|
|
mountpoint = "/persist";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
nodev = {
|
|
"/" = {
|
|
fsType = "tmpfs";
|
|
mountOptions = [
|
|
"defaults"
|
|
"mode=755"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|