From 93dcbbf69d778e0cea16eaa010d68cc55526d5b0 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 28 Oct 2020 01:26:24 +0100 Subject: [PATCH] systemd: add withApparmor option --- pkgs/os-specific/linux/systemd/default.nix | 3 ++- pkgs/top-level/all-packages.nix | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix index b608ae72ffc4..9c1b1fee7c89 100644 --- a/pkgs/os-specific/linux/systemd/default.nix +++ b/pkgs/os-specific/linux/systemd/default.nix @@ -55,6 +55,7 @@ , bashInteractive , withAnalyze ? true +, withApparmor ? true , withCoredump ? true , withCompression ? true # adds bzip2, lz4 and xz , withCryptsetup ? true @@ -180,7 +181,6 @@ stdenv.mkDerivation { audit glib kmod - libapparmor libcap libgcrypt libidn2 @@ -189,6 +189,7 @@ stdenv.mkDerivation { pam pcre2 ] + ++ lib.optional withApparmor libapparmor ++ lib.optional wantCurl (lib.getDev curl) ++ lib.optionals withCompression [ bzip2 lz4 xz ] ++ lib.optional withCryptsetup (lib.getDev cryptsetup.dev) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3af884f5edc8..0f7610cad467 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18663,6 +18663,7 @@ in systemdMinimal = systemd.override { pname = "systemd-minimal"; withAnalyze = false; + withApparmor = false; withCompression = false; withCoredump = false; withCryptsetup = false;