mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 08:53:56 -05:00
why disko why
This commit is contained in:
parent
5fd79726e7
commit
1d77028ac5
1 changed files with 26 additions and 24 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue