update documentation
This commit is contained in:
parent
fc10d2b2a3
commit
df61b815ef
3 changed files with 18 additions and 7 deletions
|
|
@ -135,7 +135,10 @@ in stdenv.mkDerivation {
|
|||
substituteInPlace ./modules/blocks/restic/docs/default.md \
|
||||
--replace \
|
||||
'@OPTIONS_JSON@' \
|
||||
${individualModuleOptionsDocs [ ../modules/blocks/restic.nix ]}/share/doc/nixos/options.json
|
||||
${individualModuleOptionsDocs [
|
||||
../modules/blocks/restic.nix
|
||||
../modules/blocks/restic/dummyModule.nix
|
||||
]}/share/doc/nixos/options.json
|
||||
|
||||
substituteInPlace ./modules/services/nextcloud-server/docs/default.md \
|
||||
--replace \
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ in
|
|||
instances = mkOption {
|
||||
description = "Each instance is backing up some directories to one repository.";
|
||||
default = {};
|
||||
type = attrsOf (submodule ({ name, config, ... }: {
|
||||
type = attrsOf (submodule ({ name, options, ... }: {
|
||||
options = {
|
||||
request = mkOption {
|
||||
type = contracts.backup.request;
|
||||
|
|
@ -113,8 +113,8 @@ in
|
|||
result = mkOption {
|
||||
type = contracts.databasebackup.result;
|
||||
default = {
|
||||
restoreScript = fullName name config.settings.repository;
|
||||
backupService = "${fullName name config.settings.repository}.service";
|
||||
restoreScript = fullName name options.settings.value.repository;
|
||||
backupService = "${fullName name options.settings.value.repository}.service";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -124,7 +124,7 @@ in
|
|||
databases = mkOption {
|
||||
description = "Each item is backing up some database to one repository.";
|
||||
default = {};
|
||||
type = attrsOf (submodule ({ name, config, ... }: {
|
||||
type = attrsOf (submodule ({ name, options, ... }: {
|
||||
options = {
|
||||
request = mkOption {
|
||||
type = contracts.databasebackup.request;
|
||||
|
|
@ -137,8 +137,8 @@ in
|
|||
result = mkOption {
|
||||
type = contracts.databasebackup.result;
|
||||
default = {
|
||||
restoreScript = fullName name config.settings.repository;
|
||||
backupService = "${fullName name config.settings.repository}.service";
|
||||
restoreScript = fullName name options.settings.value.repository;
|
||||
backupService = "${fullName name (lib.debug.traceValSeqN 2 (lib.debug.traceValSeqN 2 (lib.debug.traceValSeqN 2 options).settings).value).repository}.service";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
8
modules/blocks/restic/dummyModule.nix
Normal file
8
modules/blocks/restic/dummyModule.nix
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
config = {
|
||||
shb.restic.databases."<name>".settings = {
|
||||
repository = "";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Reference in a new issue