nixos-generate-config: add 'lib' to module template

The NixOS manual says modules have the following signature:
 { config, lib, pkgs, ... }:

But our generated configuration.nix file lacks the 'lib' part. Add it.

----

I'm not sure if the lack of 'lib' is intentional or not. Hence the PR.