From 01eb07a6d22d60f43e157bb7c1437cc29f5c97eb Mon Sep 17 00:00:00 2001 From: ibizaman Date: Mon, 12 Aug 2024 01:25:06 +0200 Subject: [PATCH] add mount contract to ldap block --- modules/blocks/ldap.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/modules/blocks/ldap.nix b/modules/blocks/ldap.nix index d9ee75b..782775c 100644 --- a/modules/blocks/ldap.nix +++ b/modules/blocks/ldap.nix @@ -69,6 +69,24 @@ in type = lib.types.bool; default = false; }; + + mount = lib.mkOption { + type = contracts.mount; + description = '' + Mount configuration. This is an output option. + + Use it to initialize a block implementing the "mount" contract. + For example, with a zfs dataset: + + ``` + shb.zfs.datasets."ldap" = { + poolName = "root"; + } // config.shb.ldap.mount; + ``` + ''; + readOnly = true; + default = { path = "/var/lib/lldap"; }; + }; };