1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00
nixpkgs/nixos/modules
Bjørn Forsman cb9195b7bc nixos: provide /etc/hostname
/etc/hostname is the file used by hostnamectl(1) and the
org.freedesktop.hostname1 dbus service (both provided by systemd) to get
the "static hostname". Better provide it so that users of those
tools/services get a proper hostname.

An example of an issue created by the lack of /etc/hostname is that the
bluetooth stack on NixOS identifies itself to peers as "BlueZ $VERSION"
instead of the hostname.

References:
https://www.freedesktop.org/software/systemd/man/hostname.html

Changes v1 -> v2:
  * ensure /etc/hostname ends with a newline
2017-01-02 19:14:06 +01:00
..
config /etc/hosts and /etc/nsswitch.conf cleanups 2016-12-17 16:01:35 +01:00
hardware bumblebee service: replace bbswitch option with pmMethod 2016-11-22 02:35:12 +03:00
i18n/input-method ibus: refresh cache at startup 2016-10-03 05:25:41 -05:00
installer Fix typo 2016-12-30 13:29:43 +02:00
misc nixos/glance: init at liberty version 2016-12-31 09:36:57 +01:00
profiles zfs cannot be distributed. Disabling it in the isos. 2016-12-28 14:57:06 +01:00
programs gphoto2: nixos programs module to configure udev 2016-12-27 17:47:38 -05:00
security grsecurity doc: describe work-around for gitlab 2016-12-08 11:59:57 +01:00
services Merge pull request #21505 from tg-x/mpd-listen 2017-01-01 16:06:17 +01:00
system systemd: add slice support 2016-12-20 10:49:08 +01:00
tasks nixos: provide /etc/hostname 2017-01-02 19:14:06 +01:00
testing virtualisation.qemu.program: Remove 2016-12-20 10:52:46 +01:00
virtualisation docker: deprecate socketActivation option 2017-01-01 09:03:09 +01:00
module-list.nix Merge pull request #21444 from league/fix/gphoto2-udev 2017-01-01 11:16:28 +01:00
rename.nix rename sound.enableMediaKeys to sound.mediaKeys.enable and add volumeStep 2017-01-01 11:44:07 +01:00