From b592c56c0b87532207da69092fd414af3629d573 Mon Sep 17 00:00:00 2001 From: RMT Date: Sun, 1 Dec 2024 23:40:41 +0800 Subject: [PATCH] nixos/k3s: add nftables to k3s's path --- nixos/modules/services/cluster/k3s/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/cluster/k3s/default.nix b/nixos/modules/services/cluster/k3s/default.nix index 2925745c9e0945..2f3221794763e0 100644 --- a/nixos/modules/services/cluster/k3s/default.nix +++ b/nixos/modules/services/cluster/k3s/default.nix @@ -498,7 +498,7 @@ in "network-online.target" ]; wantedBy = [ "multi-user.target" ]; - path = lib.optional config.boot.zfs.enabled config.boot.zfs.package; + path = (lib.optional config.boot.zfs.enabled config.boot.zfs.package) ++ [ pkgs.nftables ]; serviceConfig = { # See: https://github.com/rancher/k3s/blob/dddbd16305284ae4bd14c0aade892412310d7edc/install.sh#L197 Type = if cfg.role == "agent" then "exec" else "notify";