lightdm updates (merge #574)

Also fixes the situation where some session stuff is written to nix store.