localbackup: default to empty target list

This commit is contained in:
Jörg Thalheim 2024-03-20 10:02:42 +01:00
parent bc75c637ef
commit 58ae9d9cd0

View File

@ -51,6 +51,7 @@ in
}
)
);
default = { };
description = "List of directories where backups are stored";
};
@ -74,7 +75,7 @@ in
trap "umount ${lib.escapeShellArg mountpoint}" EXIT
'';
in
lib.mkIf (cfg.targets != [ ]) {
lib.mkIf (cfg.targets != { }) {
environment.systemPackages = [
(pkgs.writeShellScriptBin "localbackup-create" ''
set -efu -o pipefail