types: pass parent node to all subTypes

This commit is contained in:
lassulus 2023-06-07 13:42:39 +02:00
parent e0179917d8
commit 62f939e213
15 changed files with 79 additions and 27 deletions

View file

@ -1,4 +1,4 @@
{ config, options, diskoLib, lib, rootMountPoint, ... }:
{ config, options, diskoLib, lib, rootMountPoint, parent, ... }:
{
options = {
type = lib.mkOption {
@ -55,6 +55,10 @@
default = null;
description = "A path to mount the BTRFS filesystem to.";
};
_parent = lib.mkOption {
internal = true;
default = parent;
};
_meta = lib.mkOption {
internal = true;
readOnly = true;