mirror of
https://github.com/TECHNOFAB11/disko.git
synced 2025-12-12 08:00:05 +01:00
types: pass parent node to all subTypes
This commit is contained in:
parent
e0179917d8
commit
62f939e213
15 changed files with 79 additions and 27 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ config, options, lib, diskoLib, ... }:
|
||||
{ config, options, lib, diskoLib, parent, ... }:
|
||||
{
|
||||
options = {
|
||||
type = lib.mkOption {
|
||||
|
|
@ -48,12 +48,16 @@
|
|||
default = false;
|
||||
description = "Whether to make the partition bootable";
|
||||
};
|
||||
content = diskoLib.partitionType;
|
||||
content = diskoLib.partitionType { parent = config; };
|
||||
};
|
||||
}));
|
||||
default = [ ];
|
||||
description = "List of partitions to add to the partition table";
|
||||
};
|
||||
_parent = lib.mkOption {
|
||||
internal = true;
|
||||
default = parent;
|
||||
};
|
||||
_meta = lib.mkOption {
|
||||
internal = true;
|
||||
readOnly = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue