Add hostname to /etc/hosts
1 file changed, 8 insertions(+), 0 deletions(-)
changed files
A modules/base.nix
@@ -0,0 +1,8 @@ +{ config, pkgs, ... }: + +{ + networking.extraHosts = '' + 127.0.0.1 ${config.networking.hostName} + ::1 ${config.networking.hostName} + ''; +}