Nix pkg on Clear Linux

Hello, I’m trying to use nix pkg on clear linux (because current count of packages on clear is not enough so I’ve found another option). Everything works fine except 2 things that do not allow me use nix pkg freely:

  1. When I try to install some apps (vivaldi, googe-chrome, vscode, nerdfonts, etc.) I receive the message “error: while setting up the build environment: getting attributes of path ‘/etc/hosts’: No such file or directory”
  2. Apps do not see my local fonts

Anyone knows how to solve those ones? Thank you.

I found that clear stores /etc/hosts, /etc/services and nsswitch.conf under /usr/share/defaults/etc/
For now I’ve created symlinks to the files, so installation process works fine. May be there is another way to solve the issue through .config/nixpkgs/config.nix ??

Still can’t find any solution for fonts. Also have some problems with kde themes under gnome …

I’m not really an expert on this, but… are you starting X11 from Nix packages? If your are starting it from Clear Linux packages probably you should look in its documentation for a solution