From 72a64ea4f1f32d77b1fd34eb07efc904ae415f6b Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Wed, 2 Aug 2017 16:16:42 +0800 Subject: nsswitch: add systemd module In order for DynamicUser = true to work in services, we need the nss-systemd module to be able to resolve the user and group names generated dynamically. --- nixos/modules/config/nsswitch.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nixos/modules/config') diff --git a/nixos/modules/config/nsswitch.nix b/nixos/modules/config/nsswitch.nix index 16c43a99ad56..97278238dcd5 100644 --- a/nixos/modules/config/nsswitch.nix +++ b/nixos/modules/config/nsswitch.nix @@ -28,7 +28,8 @@ let passwdArray = [ "files" ] ++ optional sssd "sss" ++ optionals ldap [ "ldap" ] - ++ optionals mymachines [ "mymachines" ]; + ++ optionals mymachines [ "mymachines" ] + ++ [ "systemd" ]; shadowArray = [ "files" ] ++ optional sssd "sss" -- cgit 1.4.1