diff --git a/flake.nix b/flake.nix index 0581967..7cd81bb 100644 --- a/flake.nix +++ b/flake.nix @@ -95,7 +95,6 @@ "azure" "b2" ]; - # default = "b2"; }; healthcheck = lib.options.mkOption { type = lib.types.submodule { @@ -161,14 +160,14 @@ type = lib.types.listOf lib.types.str; }; preCommand = lib.options.mkOption { - type = lib.types.lines; - default = ""; + type = lib.types.lines; + default = ""; + }; + postCommand = lib.options.mkOption { + type = lib.types.lines; + default = ""; + }; }; - postCommand = lib.options.mkOption { - type = lib.types.lines; - default = ""; - }; - }; } ); }; @@ -323,12 +322,12 @@ paths = lib.strings.concatStringsSep " " backup.paths; in '' - ${backup.preCommand} + ${backup.preCommand} - ${package}/bin/restic backup${one-file-system}${excludes} ${paths} + ${package}/bin/restic backup${one-file-system}${excludes} ${paths} - ${backup.postCommand} - '' + ${backup.postCommand} + '' ) cfg.backups );