From 8526662a33beee8b344ec668c02529ee5b5cfbb5 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Wed, 28 Oct 2020 01:05:14 +0100 Subject: [PATCH] systemd: add withNss flag --- pkgs/os-specific/linux/systemd/default.nix | 6 ++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 7 insertions(+) diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix index cd0968b42189..90df8a57ff19 100644 --- a/pkgs/os-specific/linux/systemd/default.nix +++ b/pkgs/os-specific/linux/systemd/default.nix @@ -67,6 +67,7 @@ , withLocaled ? true , withLogind ? true , withNetworkd ? true +, withNss ? true , withPolkit ? true , withRemote ? false # has always been disabled on NixOS, upstream version appears broken anyway , withResolved ? true @@ -285,6 +286,11 @@ stdenv.mkDerivation { ] ++ lib.optionals (withShellCompletions == false) [ "-Dbashcompletiondir=no" "-Dzshcompletiondir=no" + ] ++ lib.optionals (!withNss) [ + "-Dnss-myhostname=false" + "-Dnss-mymachines=false" + "-Dnss-resolve=false" + "-Dnss-systemd=false" ]; preConfigure = '' diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 00462f38c19f..e2e83dc103f0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18674,6 +18674,7 @@ in withLocaled = false; withLogind = false; withNetworkd = false; + withNss = false; withPolkit = false; withResolved = false; withShellCompletions = false;