From c70f154403d7e7e6a655731e0d8a166fa3dd3a70 Mon Sep 17 00:00:00 2001 From: nikstur Date: Fri, 8 Aug 2025 22:37:17 +0200 Subject: [PATCH] systemd: remove iptables dependency Since https://github.com/systemd/systemd/pull/17026 (v248 in 2020), systemd can use nftables without any new dependency! In 259, systemd plans to remove iptables suport altogether. --- pkgs/os-specific/linux/systemd/default.nix | 4 +--- pkgs/top-level/all-packages.nix | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix index 1a29a6306c9a..07220bbac729 100644 --- a/pkgs/os-specific/linux/systemd/default.nix +++ b/pkgs/os-specific/linux/systemd/default.nix @@ -114,7 +114,6 @@ withHostnamed ? true, withHwdb ? true, withImportd ? !stdenv.hostPlatform.isMusl, - withIptables ? true, withKmod ? true, withLibBPF ? lib.versionAtLeast buildPackages.llvmPackages.clang.version "10.0" @@ -427,7 +426,6 @@ stdenv.mkDerivation (finalAttrs: { ++ lib.optional withKmod kmod ++ lib.optional withLibidn2 libidn2 ++ lib.optional withLibseccomp libseccomp - ++ lib.optional withIptables iptables ++ lib.optional withPam pam ++ lib.optional withPCRE2 pcre2 ++ lib.optional withSelinux libselinux @@ -566,7 +564,7 @@ stdenv.mkDerivation (finalAttrs: { (lib.mesonEnable "libcurl" wantCurl) (lib.mesonEnable "libidn" false) (lib.mesonEnable "libidn2" withLibidn2) - (lib.mesonEnable "libiptc" withIptables) + (lib.mesonEnable "libiptc" false) (lib.mesonEnable "repart" withRepart) (lib.mesonEnable "sysupdate" withSysupdate) (lib.mesonEnable "sysupdated" withSysupdate) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2b4ea089eabd..328f4410a49b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11099,7 +11099,6 @@ with pkgs; withHomed = false; withHwdb = false; withImportd = false; - withIptables = false; withLibBPF = false; withLibidn2 = false; withLocaled = false;