Concerning the source code and programming methods their is no such limiting things as rules. If you feel the need to tweak the code, just do it! Everything subsidiary as style and reusability will come later.
Deprecated usage of
nix-shell command with shell.nix file
in favor of
nix develop with flake.nix.
On Arch Linux