From 375725cc27d35349cd2d4d2dcab87ee43de065ef Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 22 Sep 2017 13:31:10 +0200 Subject: Add hostname to /etc/hosts --- modules/base.nix | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 modules/base.nix (limited to 'modules') diff --git a/modules/base.nix b/modules/base.nix new file mode 100644 index 0000000..acf773e --- /dev/null +++ b/modules/base.nix @@ -0,0 +1,8 @@ +{ config, pkgs, ... }: + +{ + networking.extraHosts = '' + 127.0.0.1 ${config.networking.hostName} + ::1 ${config.networking.hostName} + ''; +} -- cgit 1.4.1