After spending 8-24 hours off a head, without feeding, head lice will dehydrate and die. Any nits that fall off the head are unlikely to hatch and if they do, they will die very quickly unless they can feed,

Unless you are rolling your head around on the carpet, you are not going to get head lice from there.