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 \
|
substituteInPlace ./modules/blocks/restic/docs/default.md \
|
||||||
--replace \
|
--replace \
|
||||||
'@OPTIONS_JSON@' \
|
'@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 \
|
substituteInPlace ./modules/services/nextcloud-server/docs/default.md \
|
||||||
--replace \
|
--replace \
|
||||||
|
|
|
||||||
|
|
@ -100,7 +100,7 @@ in
|
||||||
instances = mkOption {
|
instances = mkOption {
|
||||||
description = "Each instance is backing up some directories to one repository.";
|
description = "Each instance is backing up some directories to one repository.";
|
||||||
default = {};
|
default = {};
|
||||||
type = attrsOf (submodule ({ name, config, ... }: {
|
type = attrsOf (submodule ({ name, options, ... }: {
|
||||||
options = {
|
options = {
|
||||||
request = mkOption {
|
request = mkOption {
|
||||||
type = contracts.backup.request;
|
type = contracts.backup.request;
|
||||||
|
|
@ -113,8 +113,8 @@ in
|
||||||
result = mkOption {
|
result = mkOption {
|
||||||
type = contracts.databasebackup.result;
|
type = contracts.databasebackup.result;
|
||||||
default = {
|
default = {
|
||||||
restoreScript = fullName name config.settings.repository;
|
restoreScript = fullName name options.settings.value.repository;
|
||||||
backupService = "${fullName name config.settings.repository}.service";
|
backupService = "${fullName name options.settings.value.repository}.service";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -124,7 +124,7 @@ in
|
||||||
databases = mkOption {
|
databases = mkOption {
|
||||||
description = "Each item is backing up some database to one repository.";
|
description = "Each item is backing up some database to one repository.";
|
||||||
default = {};
|
default = {};
|
||||||
type = attrsOf (submodule ({ name, config, ... }: {
|
type = attrsOf (submodule ({ name, options, ... }: {
|
||||||
options = {
|
options = {
|
||||||
request = mkOption {
|
request = mkOption {
|
||||||
type = contracts.databasebackup.request;
|
type = contracts.databasebackup.request;
|
||||||
|
|
@ -137,8 +137,8 @@ in
|
||||||
result = mkOption {
|
result = mkOption {
|
||||||
type = contracts.databasebackup.result;
|
type = contracts.databasebackup.result;
|
||||||
default = {
|
default = {
|
||||||
restoreScript = fullName name config.settings.repository;
|
restoreScript = fullName name options.settings.value.repository;
|
||||||
backupService = "${fullName name config.settings.repository}.service";
|
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