feat: adds disk layout for hazel

This commit is contained in:
Ahwx 2025-07-30 16:25:24 +02:00
parent 13228786c8
commit 45be0c928d

37
hosts/hazel/disko.nix Normal file
View file

@ -0,0 +1,37 @@
{ inputs, ... }:
{
imports = [
inputs.disko.nixosModules.disko
];
disko.devices = {
disk = {
my-disk = {
device = "/dev/sda";
type = "disk";
content = {
type = "gpt";
partitions = {
ESP = {
type = "EF00";
size = "500M";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
}