nixpkgs/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 nfs module: Fix dependency on statd and idmapd 2016-09-07 14:15:57 +02:00
bcache.nix nixos: move bcache udev rule in a new bcache.nix module 2014-11-10 22:19:43 +01:00
cpu-freq.nix nixos/cpu-freq: list correct default governor in description 2016-08-28 17:14:37 -05:00
encrypted-devices.nix nixos: apply toposort to fileSystems to support bind and move mounts 2016-08-23 18:14:05 +00:00
filesystems.nix Fix "undefined variable ‘device’" using autoFormat 2016-09-30 15:04:36 +02:00
kbd.nix kbd task: fix colors in early initrd 2016-07-24 15:08:49 +03:00
lvm.nix Don't enable LVM2 in containers 2014-04-15 23:43:39 +02:00
network-interfaces-scripted.nix sit interfaces: fix dependency tracking 2016-10-12 00:16:34 +02:00
network-interfaces-systemd.nix networking.dhcpcd: Don't add to system closure when using networkd (#18436) 2016-09-13 07:55:17 +02:00
network-interfaces.nix nixos: provide /etc/hostname 2017-01-02 19:14:06 +01:00
scsi-link-power-management.nix nixos: set scsi link power policy using udev 2015-10-25 19:38:53 +01:00
swraid.nix sw-raid: rename mdadmShutdown 2016-03-09 21:06:27 +03:00
trackpoint.nix trackpoint: fix typo in configuration description 2016-01-11 04:12:04 +00:00
tty-backgrounds-combine.sh Another attempt to eradicate ensureDir 2014-06-30 14:56:10 +02:00