From 7da10c80f60800f8fabc042ba810eaeda7d2d609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Wed, 29 Nov 2023 15:35:07 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20(hydrogen/nginx)=20use=20disko=20fo?= =?UTF-8?q?r=20partitionning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hosts/hydrogen/system/disko/default.nix | 40 +++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 hosts/hydrogen/system/disko/default.nix diff --git a/hosts/hydrogen/system/disko/default.nix b/hosts/hydrogen/system/disko/default.nix new file mode 100644 index 0000000..fe3ac98 --- /dev/null +++ b/hosts/hydrogen/system/disko/default.nix @@ -0,0 +1,40 @@ +{ ... }: { + boot.loader.grub = { + efiSupport = true; + efiInstallAsRemovable = true; + }; + disko.devices = { + disk.disk1 = { + device = "/dev/sda"; + type = "disk"; + content = { + type = "gpt"; + partitions = { + boot = { + name = "boot"; + size = "1M"; + type = "EF02"; + }; + esp = { + end = "500M"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + }; + }; + root = { + name = "root"; + size = "100%"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + }; + }; + }; + }; + }; + }; +}