add disko and update config for fred

This commit is contained in:
Don Harper 2024-01-04 22:15:10 -06:00
parent 429a368e3d
commit c2a0dfab64
4 changed files with 50 additions and 6 deletions

40
hosts/fred/disko.nix Normal file
View file

@ -0,0 +1,40 @@
{
disko.devices = {
disk = {
vdb = {
device = "/dev/sda";
type = "disk";
content = {
type = "table";
format = "gpt";
partitions = [
{
name = "ESP";
start = "1M";
end = "500M";
bootable = true;
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
}
{
name = "root";
start = "500M";
end = "100%";
part-type = "primary";
bootable = true;
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
}
];
};
};
};
};
}