summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2022-01-11 18:47:40 +0100
committerGitHub <noreply@github.com>2022-01-11 18:47:40 +0100
commit2d9eea6d7686476f666d45d4da088a3dfa846952 (patch)
tree2307b659d095b49fc5e636efba7af1f8e95a51a9 /nixos
parentb24992b5018aafd6e0c91c5c19e3d0f302268b0d (diff)
parentb451eca621d8cd52345e2094e46e970719b6a902 (diff)
downloadnixpkgs-2d9eea6d7686476f666d45d4da088a3dfa846952.tar
nixpkgs-2d9eea6d7686476f666d45d4da088a3dfa846952.tar.gz
nixpkgs-2d9eea6d7686476f666d45d4da088a3dfa846952.tar.bz2
nixpkgs-2d9eea6d7686476f666d45d4da088a3dfa846952.tar.lz
nixpkgs-2d9eea6d7686476f666d45d4da088a3dfa846952.tar.xz
nixpkgs-2d9eea6d7686476f666d45d4da088a3dfa846952.tar.zst
nixpkgs-2d9eea6d7686476f666d45d4da088a3dfa846952.zip
Merge pull request #154320 from abbradar/nscd-unit
nscd service: fix ordering and start automatically
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/system/nscd.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/services/system/nscd.nix b/nixos/modules/services/system/nscd.nix
index d720f254b81..00a87e788dc 100644
--- a/nixos/modules/services/system/nscd.nix
+++ b/nixos/modules/services/system/nscd.nix
@@ -50,7 +50,9 @@ in
     systemd.services.nscd =
       { description = "Name Service Cache Daemon";
 
-        wantedBy = [ "nss-lookup.target" "nss-user-lookup.target" ];
+        before = [ "nss-lookup.target" "nss-user-lookup.target" ];
+        wants = [ "nss-lookup.target" "nss-user-lookup.target" ];
+        wantedBy = [ "multi-user.target" ];
 
         environment = { LD_LIBRARY_PATH = nssModulesPath; };