{"action":"closed","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/12928","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/12928/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/12928/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/12928/events","html_url":"https://github.com/NixOS/nixpkgs/issues/12928","id":132855167,"number":12928,"title":"/etc/hosts missing localhost 15.09.1012.9fe0c23 (Dingo)","user":{"login":"witkamp","id":63522,"avatar_url":"https://avatars.githubusercontent.com/u/63522?v=3","gravatar_id":"","url":"https://api.github.com/users/witkamp","html_url":"https://github.com/witkamp","followers_url":"https://api.github.com/users/witkamp/followers","following_url":"https://api.github.com/users/witkamp/following{/other_user}","gists_url":"https://api.github.com/users/witkamp/gists{/gist_id}","starred_url":"https://api.github.com/users/witkamp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/witkamp/subscriptions","organizations_url":"https://api.github.com/users/witkamp/orgs","repos_url":"https://api.github.com/users/witkamp/repos","events_url":"https://api.github.com/users/witkamp/events{/privacy}","received_events_url":"https://api.github.com/users/witkamp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-02-11T00:09:45Z","updated_at":"2016-12-24T22:28:01Z","closed_at":"2016-12-24T22:28:01Z","body":"By default the `/etc/hosts` file empty\n\nSetting  `network.extraHosts = \"\"` produces a `/etc/hosts` file with localhost defined as expected.\n\nI would expect the `/etc/hosts/` file would contain localhost definitions by default.\n\nThis is my `configuration.nix` file\n\n```\n{ config, pkgs, ... }: {\n  imports = [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ];\n  fileSystems.\"/\" = { device = \"/dev/sda1\"; fsType = \"ext4\"; };\n  swapDevices = [ ];\n  nix.maxJobs = 24;\n  # Use the gummiboot efi boot loader.\n  boot.loader.gummiboot.enable = true;\n  networking = {\n#    extraHosts = \"\";        # Needed to generate /etc/hosts\n  };\n}\n```\n"}}
{"actor":{"display_login":"Mic92"}}