Archived
65 lines
1.0 KiB
Nix
65 lines
1.0 KiB
Nix
{ ... }:
|
|
|
|
{
|
|
disko.devices = {
|
|
disk.main = {
|
|
type = "disk";
|
|
device = "/dev/sda";
|
|
|
|
content = {
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
|
|
bios = {
|
|
size = "1M";
|
|
type = "EF02";
|
|
|
|
content = {
|
|
type = "bios_grub";
|
|
};
|
|
};
|
|
|
|
root = {
|
|
priority = 1;
|
|
size = "100%";
|
|
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
extraArgs = [
|
|
"-L"
|
|
"nixos"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
disk.swap = {
|
|
type = "disk";
|
|
device = "/dev/sdb";
|
|
|
|
content = {
|
|
type = "gpt";
|
|
|
|
partitions = {
|
|
swap = {
|
|
priority = 1;
|
|
size = "100%";
|
|
|
|
content = {
|
|
type = "swap";
|
|
extraArgs = [
|
|
"-L"
|
|
"swap"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
} |