But doing the same thing on NixOS doesn’t create .bashrc. Is it possible to achieve same thing while on NixOS? I am using standalone Home Manager installation.
You were right in this case. I forgot to include the module where I defined those lines . Once I included it created the .bashrc as expected. Sorry for bothering.