Config DWM doesn't work

Hello world! I decided to set up my own dwm config for NixOS (my config for NixOS). I went to the documentation and saw that you can specify the path to the folder with the config. But I faced the following problem: the system simply does not read files from the directory. At the moment, the line indicating the path to the config folder looks like this:

services.xserver.windowManager.dwm.package = pkgs.dwm.overrideAttrs { 
src = /home/ilya/.config/dwm ; 
}; 

I run sudo nixos-rebuild switch and it works without errors. But after reboot computer nothing changes.
I will be very glad to receive help!

Problem is solved by reinstalling system. At that time, I used installation using GUI (but I did partitioning and formatting through terminal), and now I have done everything manually (through terminal).