nixpkgs-suyu/nixos/modules/virtualisation
Bas van Dijk d06de760f8 nixos/modules/system/activation/top-level.nix: allow overriding system.name
The toplevel derivations of systems that have `networking.hostName`
set to `""` (because they want their hostname to be set by DHCP) used
to be all named
`nixos-system-unnamed-${config.system.nixos.label}`.
This makes them hard to distinguish.

A similar problem existed in NixOS tests where `vmName` is used in the
`testScript` to refer to the VM. It defaulted to the
`networking.hostName` which when set to `""` won't allow you to refer
to the machine from the `testScript`.

This commit makes the `system.name` configurable. It still defaults to:

```
if config.networking.hostName == ""
then "unnamed"
else config.networking.hostName;
```

but in case `networking.hostName` needs to be to `""` the
`system.name` can be set to a distinguishable name.
2020-07-20 13:44:18 +02:00
..
amazon-image.nix ec2-utils: init at 0.5.1, include in amazon-image profile (#67347) 2019-11-01 20:57:44 +00:00
amazon-init.nix nixos/amazon-init.nix: Add gzip to amazon-init path 2020-01-23 14:15:26 +01:00
amazon-options.nix amazon-image.nix: add EFI support, enable by default for aarch64 2019-09-05 00:52:17 +09:00
anbox.nix nixos/modules: Remove all usages of types.string 2019-08-31 18:19:00 +02:00
azure-agent-entropy.patch
azure-agent.nix nixos/azure-agent: always run systemctl of the currently running systemd 2020-05-21 10:34:11 +02:00
azure-bootstrap-blobs.nix
azure-common.nix azure: boot.growPartition = true 2020-03-29 13:56:55 -07:00
azure-config-user.nix
azure-config.nix
azure-image.nix azure: init nixos/maintainers/scripts/azure-new 2020-03-29 13:56:55 -07:00
azure-images.nix
brightbox-config.nix
brightbox-image.nix treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
cloudstack-config.nix
container-config.nix nixos containers: disable NixOS manual in container config. (#75659) 2019-12-15 18:21:52 +02:00
containers.nix nixos/containers: correct isNormaUser to isNormalUser 2020-07-19 16:26:14 +01:00
cri-o.nix nixos/cri-o: default to upstream pause 2020-05-25 12:27:49 +02:00
digital-ocean-config.nix nixos/digital-ocean-image: init 2019-11-24 08:11:33 -08:00
digital-ocean-image.nix nixos/digital-ocean-image: init 2019-11-24 08:11:33 -08:00
digital-ocean-init.nix nixos/digital-ocean-image: init 2019-11-24 08:11:33 -08:00
docker-image.nix
docker-preloader.nix
docker.nix nixos/docker: explicitly load kernel modules 2020-07-18 02:31:25 +00:00
ec2-amis.nix ec2-amis.nix: add NixOS 20.03 images 2020-04-26 09:54:10 -04:00
ec2-data.nix nixos/treewide: Move rename.nix imports to their respective modules 2019-12-10 02:51:19 +01:00
ec2-metadata-fetcher.nix
ecs-agent.nix nixos/*: use $out instead of $bin with buildGoPackage 2020-04-28 20:30:29 +10:00
gce-images.nix
google-compute-config.nix google-compute-config.nix: use sysctl snippets from gce 2019-09-01 02:55:28 +02:00
google-compute-image.nix
grow-partition.nix
hyperv-guest.nix nixos/virtualisation.hypervGuest: use elevator=noop 2020-02-09 19:50:13 +01:00
hyperv-image.nix virtualisation/hyperv-image: remove diskImage after vhdx is generated 2020-05-20 19:56:38 -04:00
kvmgt.nix nixos/kvmgt: allow multiple uuids on same mdev 2020-05-30 12:13:54 -04:00
libvirtd.nix libvirtd: don't start libvirtd-tcp.socket by default 2020-07-08 19:50:23 -04:00
lxc-container.nix
lxc.nix lxc: Fix lxc-usernet(5) man page reference in documentation 2019-12-17 15:37:36 -08:00
lxcfs.nix
lxd.nix lxd: When lxcfs is enabled, start lxd with explicit LXD_LXC_TEMPLATE_CONFIG 2020-06-05 16:37:31 +02:00
nixos-containers.nix nixos/networkd: rename the networkd dhcpConfig option to dhcpV4Config 2020-05-01 13:33:54 +02:00
oci-containers.nix nixos/docker-containers: Rename to virtualisation.oci-containers.containers. 2020-05-04 13:47:25 +01:00
openstack-config.nix
openvswitch.nix openvswitch: better integration with systemd 2019-12-15 21:16:26 +01:00
parallels-guest.nix
podman.nix nixos/{podman,containers}: libpod.conf -> containers.conf 2020-06-26 08:09:36 +10:00
qemu-guest-agent.nix
qemu-vm.nix nixos/modules/system/activation/top-level.nix: allow overriding system.name 2020-07-20 13:44:18 +02:00
railcar.nix nixos/railcar: remove use of the deprecated string type 2019-09-06 14:53:11 +00:00
virtualbox-guest.nix nixos/virtualbox-guest: add vmware driver 2020-06-17 18:43:27 +02:00
virtualbox-host.nix nixos/virtualbox: fix systemd-networkd-wait-online.service waiting for vboxnet0 2019-10-26 00:45:42 +02:00
virtualbox-image.nix nixos/virtualbox-image: change graphics adapter to vmswga 2020-06-17 18:43:28 +02:00
vmware-guest.nix nixos/treewide: Move rename.nix imports to their respective modules 2019-12-10 02:51:19 +01:00
vmware-image.nix virtualisation: add vmware-image (#88523) 2020-05-22 10:03:46 +02:00
xe-guest-utilities.nix
xen-dom0.nix treewide: add types to boolean / enable options or make use of mkEnableOption 2020-04-27 09:32:01 +02:00
xen-domU.nix