Seems my hosts file (/etc/hosts
) points to /nix/store/gds7bha3bx0a22pnzw93pgf0666anpyr-etc-hosts
and is read only.
How am I meant to modify this file?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityModify the nixos config with:
networking.extraHosts =
''
127.0.0.2 other-localhost
10.0.0.1 server
'';
networking.extraHosts
from the configuration.nix
file will get into the /etc/hosts
on the resulting NixOS system.
Dec 17, 2018 at 18:51