Custom kernel configuration

I can’t compile the kernel with my config. During the build, the default NixOS kernel config is generated.

My configuration.nix = dpaste: /etc/nixos/configuration.nix