60 lines
1.6 KiB
Nix
60 lines
1.6 KiB
Nix
|
{
|
||
|
disko.devices = {
|
||
|
disk = {
|
||
|
#FIXME change to proper device or make dynamic like figdetingbits
|
||
|
sda = {
|
||
|
type = "disk";
|
||
|
# FIXME change to proper device or make dynamic like figdetingbits
|
||
|
device = "/dev/sda";
|
||
|
content = {
|
||
|
type = "gpt";
|
||
|
partitions = {
|
||
|
ESP = {
|
||
|
priority = 1;
|
||
|
name = "ESP";
|
||
|
start = "1M";
|
||
|
end = "512M";
|
||
|
type = "EF00";
|
||
|
content = {
|
||
|
type = "filesystem";
|
||
|
format = "vfat";
|
||
|
mountpoint = "/boot";
|
||
|
};
|
||
|
};
|
||
|
root = {
|
||
|
size = "100%";
|
||
|
content = {
|
||
|
type = "btrfs";
|
||
|
extraArgs = [ "-f" ]; # Override existing partition
|
||
|
# Subvolumes must set a mountpoint in order to be mounted,
|
||
|
# unless their parent is mounted
|
||
|
subvolumes = {
|
||
|
"/root" = {
|
||
|
mountpoint = "/";
|
||
|
};
|
||
|
|
||
|
"/persist" = {
|
||
|
mountOptions = [ "compress=zstd" ];
|
||
|
mountpoint = "/persist";
|
||
|
};
|
||
|
|
||
|
"/nix" = {
|
||
|
mountOptions = [ "compress=zstd" "noatime" ];
|
||
|
mountpoint = "/nix";
|
||
|
};
|
||
|
|
||
|
"/swap" = {
|
||
|
mountOptions = [ "noatime" ];
|
||
|
mountpoint = "/.swapvol";
|
||
|
swap.swapfile.size = "8192M";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|