How do we refer to etc package from NixOS configuration?
问题 I want to get a path, which leads to nixos /etc location (any one of /run/current-system/etc or /nix/store/hashhere-etc-1.0 ). I use this path to configure pppd connect script, some kind of the following, environment.etc."huawei" = { text = '' /dev/ttyUSB0 38400 lock crtscts nodetach noipdefault # Below here what I've struggled connect ${pkgs.etc}/${environment.etc."huawei-script".target} ''; mode = "0777"; target = "ppp/peers/huawei"; }; I have tried to write ${pkgs.etc} or ${system.build