mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
Gabriel Arazas
0760acb676
Now we're going beyond these structuring as we might have to accomodate non-system configurations like Nixvim.
49 lines
959 B
Nix
49 lines
959 B
Nix
{ disks ? [ "/dev/nvme0n1" ], ... }:
|
|
|
|
{
|
|
disk.primary = {
|
|
device = builtins.elemAt disks 0;
|
|
type = "disk";
|
|
content = {
|
|
format = "gpt";
|
|
type = "table";
|
|
partitions = [
|
|
{
|
|
name = "root";
|
|
start = "512MiB";
|
|
end = "-8GiB";
|
|
part-type = "primary";
|
|
content = {
|
|
type = "filesystem";
|
|
mountpoint = "/";
|
|
format = "ext4";
|
|
};
|
|
}
|
|
|
|
{
|
|
name = "ESP";
|
|
start = "0";
|
|
end = "512MiB";
|
|
bootable = true;
|
|
content = {
|
|
type = "filesystem";
|
|
mountpoint = "/boot";
|
|
format = "vfat";
|
|
};
|
|
}
|
|
|
|
{
|
|
name = "swap";
|
|
start = "-8GiB";
|
|
end = "100%";
|
|
part-type = "primary";
|
|
content = {
|
|
type = "swap";
|
|
randomEncryption = true;
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|