why disko why

This commit is contained in:
Gerg-L 2023-08-21 22:50:22 -04:00
parent 5fd79726e7
commit 1d77028ac5

View file

@ -1,30 +1,32 @@
{disko, ...}: { {disko, ...}: {
imports = [disko.nixosModules.disko]; imports = [disko.nixosModules.disko];
disko.devices = { disko.devices.disk.sda = let
disk.sda = { baseDevice = "/dev/disk/by-id/ata-WDC_WDS240G2G0A-00JH30_180936803144";
device = "/dev/disk/by-id/ata-WDC_WDS240G2G0A-00JH30_180936803144"; in {
type = "disk"; device = baseDevice;
content = { type = "disk";
type = "gpt"; content = {
partitions = { type = "gpt";
ESP = { partitions = {
start = "1MiB"; ESP = {
end = "1GiB"; device = "${baseDevice}-part1";
content = { start = "1MiB";
type = "filesystem"; end = "1GiB";
format = "vfat"; content = {
mountpoint = "/boot"; type = "filesystem";
}; format = "vfat";
mountpoint = "/boot";
}; };
root = { };
start = "1GiB"; root = {
end = "100%"; device = "${baseDevice}-part2";
type = "EF00"; start = "1GiB";
content = { end = "100%";
type = "filesystem"; type = "EF00";
format = "ext4"; content = {
mountpoint = "/"; type = "filesystem";
}; format = "ext4";
mountpoint = "/";
}; };
}; };
}; };