nix: clean up infra

This commit is contained in:
jopejoe1 2024-07-10 16:03:10 +02:00
parent 41d510d388
commit 4b05d8a984
13 changed files with 307 additions and 137 deletions

38
nix/infra/disk.nix Normal file
View file

@ -0,0 +1,38 @@
{ ... }:
{
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/sda";
content = {
type = "gpt";
partitions = {
boot = {
size = "1M";
type = "EF02";
};
ESP = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
}