summaryrefslogtreecommitdiff
path: root/modules/zfssnap/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/zfssnap/default.nix')
-rw-r--r--modules/zfssnap/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/zfssnap/default.nix b/modules/zfssnap/default.nix
index 9ff0157b..35eea776 100644
--- a/modules/zfssnap/default.nix
+++ b/modules/zfssnap/default.nix
@@ -11,7 +11,7 @@ let
11 11
12 buildInputs = with pkgs; [makeWrapper]; 12 buildInputs = with pkgs; [makeWrapper];
13 13
14 python = pkgs.python39.withPackages (ps: with ps; [pyxdg pytimeparse dateutil systemd]); 14 python = pkgs.python39.withPackages (ps: with ps; [pyxdg pytimeparse dateutil]);
15 15
16 buildPhase = '' 16 buildPhase = ''
17 substitute $src zfssnap \ 17 substitute $src zfssnap \
@@ -67,7 +67,7 @@ in {
67 before = [ "zfssnap-prune.service" ]; 67 before = [ "zfssnap-prune.service" ];
68 serviceConfig = { 68 serviceConfig = {
69 Type = "oneshot"; 69 Type = "oneshot";
70 ExecStart = "${zfssnap}/bin/zfssnap --no-stderr -vv"; 70 ExecStart = "${zfssnap}/bin/zfssnap -vv";
71 }; 71 };
72 }; 72 };
73 systemd.services."zfssnap-prune" = { 73 systemd.services."zfssnap-prune" = {
@@ -78,7 +78,7 @@ in {
78 ExecStart = let 78 ExecStart = let
79 mkSectionName = name: strings.escape [ "[" "]" ] (strings.toUpper name); 79 mkSectionName = name: strings.escape [ "[" "]" ] (strings.toUpper name);
80 zfssnapConfig = generators.toINI { inherit mkSectionName; } cfg.config; 80 zfssnapConfig = generators.toINI { inherit mkSectionName; } cfg.config;
81 in "${zfssnap}/bin/zfssnap --no-stderr -vv prune --config=${pkgs.writeText "zfssnap.ini" zfssnapConfig}"; 81 in "${zfssnap}/bin/zfssnap -vv prune --config=${pkgs.writeText "zfssnap.ini" zfssnapConfig}";
82 }; 82 };
83 }; 83 };
84 84