localbackup: default to empty target list
This commit is contained in:
@@ -51,6 +51,7 @@ in
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
default = { };
|
||||||
description = "List of directories where backups are stored";
|
description = "List of directories where backups are stored";
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -74,7 +75,7 @@ in
|
|||||||
trap "umount ${lib.escapeShellArg mountpoint}" EXIT
|
trap "umount ${lib.escapeShellArg mountpoint}" EXIT
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
lib.mkIf (cfg.targets != [ ]) {
|
lib.mkIf (cfg.targets != { }) {
|
||||||
environment.systemPackages = [
|
environment.systemPackages = [
|
||||||
(pkgs.writeShellScriptBin "localbackup-create" ''
|
(pkgs.writeShellScriptBin "localbackup-create" ''
|
||||||
set -efu -o pipefail
|
set -efu -o pipefail
|
||||||
|
|||||||
Reference in New Issue
Block a user