mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
35 lines
831 B
Nix
35 lines
831 B
Nix
{disko, ...}: {
|
|
imports = [disko.nixosModules.disko];
|
|
disko.devices = {
|
|
disk.nvme0n1 = {
|
|
device = "/dev/disk/by-id/nvme-WDC_PC_SN530_SDBPNPZ-512G-1006_21311N802456";
|
|
type = "disk";
|
|
content = {
|
|
type = "gpt";
|
|
partitions = {
|
|
ESP = {
|
|
name = "ESP";
|
|
start = "1MiB";
|
|
end = "1GiB";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "vfat";
|
|
mountpoint = "/boot";
|
|
};
|
|
};
|
|
root = {
|
|
start = "1GiB";
|
|
end = "100%";
|
|
part-type = "primary";
|
|
content = {
|
|
type = "filesystem";
|
|
format = "ext4";
|
|
mountpoint = "/";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
_file = ./disko.nix;
|
|
}
|