all repos — nixfiles @ 375725cc27d35349cd2d4d2dcab87ee43de065ef

System and user configuration, managed by nix and home-manager

Add hostname to /etc/hosts
Alan Pearce alan@alanpearce.eu
Fri, 22 Sep 2017 13:31:10 +0200
commit

375725cc27d35349cd2d4d2dcab87ee43de065ef

parent

64ed5e8642a2ea66937e328d5ce9bc22b38055ff

2 files changed, 9 insertions(+), 0 deletions(-)

jump to
A modules/base.nix
@@ -0,0 +1,8 @@+{ config, pkgs, ... }:
+
+{
+  networking.extraHosts = ''
+    127.0.0.1 ${config.networking.hostName}
+    ::1 ${config.networking.hostName}
+  '';
+}
M satoshipad.nixsatoshipad.nix
@@ -3,6 +3,7 @@ {
   imports = [
     ./hardware-configuration.nix
+    ./modules/base.nix
     ./modules/grub2.nix
     ./modules/laptop.nix
     ./modules/thinkpad.nix