It is just an adapted version from the NixOS module. I'll eventually figure out how to be 'properly configured' with the Nix language through the `lib.generator`.