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 d1080e8a..f3e2f9c2 100644
--- a/modules/zfssnap/default.nix
+++ b/modules/zfssnap/default.nix
@@ -1,7 +1,7 @@
1{ config, pkgs, lib, ... }: 1{ config, pkgs, lib, ... }:
2 2
3with lib; 3with lib;
4 4
5let 5let
6 zfssnap = pkgs.stdenv.mkDerivation rec { 6 zfssnap = pkgs.stdenv.mkDerivation rec {
7 name = "zfssnap"; 7 name = "zfssnap";
@@ -37,7 +37,7 @@ in {
37 options = { 37 options = {
38 services.zfssnap = { 38 services.zfssnap = {
39 enable = mkEnableOption "zfssnap service"; 39 enable = mkEnableOption "zfssnap service";
40 40
41 config = mkOption { 41 config = mkOption {
42 type = with types; attrsOf (attrsOf str); 42 type = with types; attrsOf (attrsOf str);
43 default = { 43 default = {
@@ -82,7 +82,7 @@ in {
82 ExecStart = let 82 ExecStart = let
83 mkSectionName = name: strings.escape [ "[" "]" ] (strings.toUpper name); 83 mkSectionName = name: strings.escape [ "[" "]" ] (strings.toUpper name);
84 zfssnapConfig = generators.toINI { inherit mkSectionName; } cfg.config; 84 zfssnapConfig = generators.toINI { inherit mkSectionName; } cfg.config;
85 in "${zfssnap}/bin/zfssnap -v prune --config=${pkgs.writeText "zfssnap.ini" zfssnapConfig}"; 85 in "${zfssnap}/bin/zfssnap -vv prune --config=${pkgs.writeText "zfssnap.ini" zfssnapConfig}";
86 }; 86 };
87 }; 87 };
88 88