backups: make extraFiles list of strings
This commit is contained in:
parent
020d9486dd
commit
cb54891484
@ -31,11 +31,9 @@ let
|
|||||||
description = "List of database names to backup.";
|
description = "List of database names to backup.";
|
||||||
};
|
};
|
||||||
extraFiles = mkOption {
|
extraFiles = mkOption {
|
||||||
type = types.lines;
|
type = types.listOf types.str;
|
||||||
default = "";
|
default = [];
|
||||||
example = ''
|
example = [ "/var/lib/nginx" ];
|
||||||
/var/lib/nginx
|
|
||||||
'';
|
|
||||||
description = "Additional files to be appended to filelist.";
|
description = "Additional files to be appended to filelist.";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -62,7 +60,7 @@ let
|
|||||||
${builtins.concatStringsSep "\n" postgresqlBackupPaths}
|
${builtins.concatStringsSep "\n" postgresqlBackupPaths}
|
||||||
|
|
||||||
# Extra files
|
# Extra files
|
||||||
${cfg.extraFiles}
|
${builtins.concatStringsSep "\n" cfg.extraFiles}
|
||||||
|
|
||||||
# Exclude all unspecified files and directories
|
# Exclude all unspecified files and directories
|
||||||
- /
|
- /
|
||||||
|
Loading…
Reference in New Issue
Block a user