From de475c6aadc9f081d98f65bcdaaead186c6432ca Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Thu, 28 Nov 2024 11:19:20 +0100 Subject: [PATCH] Templates: init disko single disk template file --- templates/disk/single-disk.nix | 39 ++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 templates/disk/single-disk.nix diff --git a/templates/disk/single-disk.nix b/templates/disk/single-disk.nix new file mode 100644 index 000000000..bb3a11aa9 --- /dev/null +++ b/templates/disk/single-disk.nix @@ -0,0 +1,39 @@ +{ + disko.devices = { + disk = { + main = { + device = "{{mainDisk}}"; + 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 = "/"; + }; + }; + swap = { + size = "{{swapSize}}"; + content = { + type = "swap"; + }; + }; + }; + }; + }; + }; + }; +}