From 03582eb6e3c6124a74604c96029f085839022989 Mon Sep 17 00:00:00 2001 From: Jörg Thalheim Date: Sat, 5 Jun 2021 07:48:20 +0200 Subject: nixos/k3s: add zfs to path --- nixos/modules/services/cluster/k3s/default.nix | 1 + 1 file changed, 1 insertion(+) 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"; -- cgit 1.4.1