Create a module for generating partition scripts
This commit is contained in:
parent
1adba2b761
commit
a2e3498268
1 changed files with 18 additions and 0 deletions
18
lib/modules/partition.nix
Normal file
18
lib/modules/partition.nix
Normal 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'";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue