nixpkgs-suyu/nixos/modules/tasks
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
..
filesystems
bcache.nix
cpu-freq.nix
encrypted-devices.nix
filesystems.nix Fix "undefined variable ‘device’" using autoFormat 2016-09-30 15:04:36 +02:00
kbd.nix
lvm.nix
network-interfaces-scripted.nix sit interfaces: fix dependency tracking 2016-10-12 00:16:34 +02:00
network-interfaces-systemd.nix
network-interfaces.nix nixos: provide /etc/hostname 2017-01-02 19:14:06 +01:00
scsi-link-power-management.nix
swraid.nix
trackpoint.nix
tty-backgrounds-combine.sh