56 lines
1.3 KiB
Nix
56 lines
1.3 KiB
Nix
{ inputs, lib, ... }:
|
|
{
|
|
imports = [ inputs.disko.nixosModules.disko ];
|
|
|
|
disko.devices = {
|
|
disk = {
|
|
sda = {
|
|
type = "disk";
|
|
device = lib.mkDefault "/dev/sda";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
root = {
|
|
priority = 1;
|
|
name = "root";
|
|
start = "512M";
|
|
end = "-2G";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
};
|
|
swap = {
|
|
priority = 2;
|
|
name = "swap";
|
|
start = "-2G";
|
|
end = "100%";
|
|
content = {
|
|
type = "swap";
|
|
discardPolicy = "both";
|
|
resumeDevice = true;
|
|
};
|
|
};
|
|
ESP = {
|
|
priority = 3;
|
|
name = "ESP";
|
|
start = "1M";
|
|
end = "512M";
|
|
type = "EF00";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
mountOptions = [
|
|
"defaults"
|
|
"umask=0077"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|