Create a module for generating partition scripts

This commit is contained in:
Manuel Thalmann 2024-06-20 18:42:40 +02:00
parent 1adba2b761
commit a2e3498268

18
lib/modules/partition.nix Normal file
View file

@ -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'";
};
};
}