summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
authorAlan Pearce2017-09-22 13:31:10 +0200
committerAlan Pearce2017-09-22 13:31:21 +0200
commit375725cc27d35349cd2d4d2dcab87ee43de065ef (patch)
tree761e71993167cf92ed78ee666deb172ebe1ba014 /modules
parent64ed5e8642a2ea66937e328d5ce9bc22b38055ff (diff)
downloadnixos-configuration-375725cc27d35349cd2d4d2dcab87ee43de065ef.tar.lz
nixos-configuration-375725cc27d35349cd2d4d2dcab87ee43de065ef.tar.zst
nixos-configuration-375725cc27d35349cd2d4d2dcab87ee43de065ef.zip
Add hostname to /etc/hosts
Diffstat (limited to 'modules')
-rw-r--r--modules/base.nix8
1 files changed, 8 insertions, 0 deletions
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}
+  '';
+}