From a2e3498268577cf0259dff42cefcc83c305d3209 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 20 Jun 2024 18:42:40 +0200 Subject: [PATCH] Create a module for generating partition scripts --- lib/modules/partition.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lib/modules/partition.nix diff --git a/lib/modules/partition.nix b/lib/modules/partition.nix new file mode 100644 index 00000000..ccdcc604 --- /dev/null +++ b/lib/modules/partition.nix @@ -0,0 +1,18 @@ +{ lib, ... }: + let + in { + options = { + partition = { + script = lib.mkOption { + type = lib.types.lines; + description = "The script for partitioning the system's disks."; + }; + }; + }; + + config = { + partition = { + script = "echo 'hello world'"; + }; + }; + }