Archived
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{ ... }:
|
|
|
|
{
|
|
disko.devices = {
|
|
disk.main = {
|
|
type = "disk";
|
|
device = "/dev/sda";
|
|
|
|
content = {
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
esp = {
|
|
priority = 1;
|
|
name = "ESP";
|
|
size = "512M";
|
|
type = "EF00";
|
|
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
mountOptions = [ "umask=0077" ];
|
|
extraArgs = [
|
|
"-F"
|
|
"32"
|
|
"-n"
|
|
"boot"
|
|
];
|
|
};
|
|
};
|
|
|
|
swap = {
|
|
size = "8G";
|
|
|
|
content = {
|
|
type = "swap";
|
|
randomEncryption = false;
|
|
# label = "swap";
|
|
};
|
|
};
|
|
|
|
root = {
|
|
size = "100%";
|
|
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
extraArgs = [
|
|
"-L"
|
|
"nixos"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
} |