@@ -15,7 +15,7 @@ let
1515
1616 inherit (pkgs) lightdm writeScript writeText;
1717
18− # lightdm runs with clearenv(), but we need a few things in the enviornment for X to startup
18+ # lightdm runs with clearenv(), but we need a few things in the environment for X to startup
1919 xserverWrapper = writeScript "xserver-wrapper"
2020 ''
2121 #! ${pkgs.bash}/bin/bash
@@ -209,9 +209,12 @@ in
209209 services.dbus.enable = true;
210210 services.dbus.packages = [ lightdm ];
211211
212− # lightdm uses the accounts daemon to rember language/window-manager per user
212+ # lightdm uses the accounts daemon to remember language/window-manager per user
213213 services.accounts-daemon.enable = true;
214214
215+ # Enable the accounts daemon to find lightdm's dbus interface
216+ environment.systemPackages = [ lightdm ];
217+
215218 security.pam.services.lightdm = {
216219 allowNullPassword = true;
217220 startSession = true;