From 210af3b9499057e99ac9e41e681f5b56235cbc19 Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Thu, 30 Mar 2023 15:50:55 -0500 Subject: [PATCH] cleanup --- flake.nix | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) 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 );