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,13 +1,15 @@
{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 {
device = baseDevice;
type = "disk"; type = "disk";
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
ESP = { ESP = {
device = "${baseDevice}-part1";
start = "1MiB"; start = "1MiB";
end = "1GiB"; end = "1GiB";
content = { content = {
@ -17,6 +19,7 @@
}; };
}; };
root = { root = {
device = "${baseDevice}-part2";
start = "1GiB"; start = "1GiB";
end = "100%"; end = "100%";
type = "EF00"; type = "EF00";
@ -29,6 +32,5 @@
}; };
}; };
}; };
};
_file = ./disko.nix; _file = ./disko.nix;
} }