localbackup: default to empty target list

This commit is contained in:
Jörg Thalheim
2024-03-20 10:02:42 +01:00
parent a5406e4950
commit 2a9dabc92d

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