summary refs log tree commit diff
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2021-06-05 07:48:20 +0200
committerJörg Thalheim <joerg@thalheim.io>2021-06-05 07:52:53 +0200
commit03582eb6e3c6124a74604c96029f085839022989 (patch)
tree88ee392dcffc8f735d5fc02f4fe03b885c1fe5c7
parent7c310e8d28ef23066cec5367e9834d648442a4ba (diff)
downloadnixpkgs-03582eb6e3c6124a74604c96029f085839022989.tar
nixpkgs-03582eb6e3c6124a74604c96029f085839022989.tar.gz
nixpkgs-03582eb6e3c6124a74604c96029f085839022989.tar.bz2
nixpkgs-03582eb6e3c6124a74604c96029f085839022989.tar.lz
nixpkgs-03582eb6e3c6124a74604c96029f085839022989.tar.xz
nixpkgs-03582eb6e3c6124a74604c96029f085839022989.tar.zst
nixpkgs-03582eb6e3c6124a74604c96029f085839022989.zip
nixos/k3s: add zfs to path
-rw-r--r--nixos/modules/services/cluster/k3s/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/cluster/k3s/default.nix b/nixos/modules/services/cluster/k3s/default.nix
index afcc7abec4c..729c261b10e 100644
--- a/nixos/modules/services/cluster/k3s/default.nix
+++ b/nixos/modules/services/cluster/k3s/default.nix
@@ -87,6 +87,7 @@ in
       description = "k3s service";
       after = mkIf cfg.docker [ "docker.service" ];
       wantedBy = [ "multi-user.target" ];
+      path = optional config.boot.zfs.enabled config.boot.zfs.package;
       serviceConfig = {
         # See: https://github.com/rancher/k3s/blob/dddbd16305284ae4bd14c0aade892412310d7edc/install.sh#L197
         Type = if cfg.role == "agent" then "exec" else "notify";