From 45be0c928d7f2320bc905fbdbb03383688bff40b Mon Sep 17 00:00:00 2001 From: Ahwx Date: Wed, 30 Jul 2025 16:25:24 +0200 Subject: [PATCH] feat: adds disk layout for `hazel` --- hosts/hazel/disko.nix | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 hosts/hazel/disko.nix diff --git a/hosts/hazel/disko.nix b/hosts/hazel/disko.nix new file mode 100644 index 0000000..d308f8b --- /dev/null +++ b/hosts/hazel/disko.nix @@ -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 = "/"; + }; + }; + }; + }; + }; + }; + }; +}