add mount contract to authelia block
This commit is contained in:
parent
01eb07a6d2
commit
896c376b6d
1 changed files with 37 additions and 0 deletions
|
@ -202,6 +202,43 @@ in
|
||||||
description = "Rule based clients";
|
description = "Rule based clients";
|
||||||
default = [];
|
default = [];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
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."authelia" = {
|
||||||
|
poolName = "root";
|
||||||
|
} // config.shb.authelia.mount;
|
||||||
|
```
|
||||||
|
'';
|
||||||
|
readOnly = true;
|
||||||
|
default = { path = "/var/lib/authelia-authelia.${cfg.domain}"; };
|
||||||
|
defaultText = { path = "/var/lib/authelia-authelia.example.com"; };
|
||||||
|
};
|
||||||
|
|
||||||
|
mountRedis = lib.mkOption {
|
||||||
|
type = contracts.mount;
|
||||||
|
description = ''
|
||||||
|
Mount configuration for Redis. This is an output option.
|
||||||
|
|
||||||
|
Use it to initialize a block implementing the "mount" contract.
|
||||||
|
For example, with a zfs dataset:
|
||||||
|
|
||||||
|
```
|
||||||
|
shb.zfs.datasets."redis-authelia" = {
|
||||||
|
poolName = "root";
|
||||||
|
} // config.shb.authelia.mountRedis;
|
||||||
|
```
|
||||||
|
'';
|
||||||
|
readOnly = true;
|
||||||
|
default = { path = "/var/lib/redis-authelia"; };
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
Loading…
Reference in a new issue