backups: make extraFiles list of strings

This commit is contained in:
nixbitcoin 2021-09-24 11:27:04 +00:00
parent 020d9486dd
commit cb54891484
No known key found for this signature in database
GPG Key ID: B6044ECBA2DAE5D0
1 changed files with 4 additions and 6 deletions

View File

@ -31,11 +31,9 @@ let
description = "List of database names to backup.";
};
extraFiles = mkOption {
type = types.lines;
default = "";
example = ''
/var/lib/nginx
'';
type = types.listOf types.str;
default = [];
example = [ "/var/lib/nginx" ];
description = "Additional files to be appended to filelist.";
};
};
@ -62,7 +60,7 @@ let
${builtins.concatStringsSep "\n" postgresqlBackupPaths}
# Extra files
${cfg.extraFiles}
${builtins.concatStringsSep "\n" cfg.extraFiles}
# Exclude all unspecified files and directories
- /