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.
commit72a64ea4f1f32d77b1fd34eb07efc904ae415f6b
authorPeter Hoeg <peter@hoeg.com>
dateWed 2 Aug 2017, 16:16 (9 years ago)
parent5d62d87
nixos/modules/config/nsswitch.nix+2−1
@@ -28,7 +28,8 @@ let
2828 passwdArray = [ "files" ]
2929 ++ optional sssd "sss"
3030 ++ optionals ldap [ "ldap" ]
31− ++ optionals mymachines [ "mymachines" ];
31+ ++ optionals mymachines [ "mymachines" ]
32+ ++ [ "systemd" ];
3233
3334 shadowArray = [ "files" ]
3435 ++ optional sssd "sss"