For instance, if you don't want NixOS to emit /etc/hosts, you can say: environment.etc.hosts.enable = false;