nixpkgs-suyu/nixos/modules
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
..
config nixos.users-groups: Set up subuid/subgid mappings for all normal users 2020-07-13 13:15:02 +02:00
hardware hardware.deviceTree: add name 2020-06-21 13:48:22 +02:00
i18n/input-method ibus: fix installation of dconf database 2020-06-02 22:32:03 +02:00
installer Merge pull request #85065 from worldofpeace/autologin-unified 2020-07-10 00:04:41 -04:00
misc nixos/documentation: add option to generate caches 2020-06-18 10:17:04 +02:00
profiles nixos/displayManager: make autoLogin options independent of DM type 2020-07-09 21:15:35 -04:00
programs Merge pull request #85992 from symphorien/ibus-db 2020-07-07 11:29:53 -04:00
security nixos/acme: execute a single lego command 2020-06-19 14:56:17 +02:00
services Merge pull request #85689 from danieldk/resilio-module-fix 2020-07-20 11:31:36 +02:00
system nixos/modules/system/activation/top-level.nix: allow overriding system.name 2020-07-20 13:44:18 +02:00
tasks Merge pull request #92092 from ElvishJerricco/zfs-encryption-systemd-ask-password 2020-07-02 17:25:53 -04:00
testing nixos/service-runner.nix: Allow quotes in commands + test 2020-02-28 14:26:29 +01:00
virtualisation nixos/modules/system/activation/top-level.nix: allow overriding system.name 2020-07-20 13:44:18 +02:00
module-list.nix Merge pull request #89773 from rnhmjoj/ncdns 2020-07-07 10:58:55 +02:00
rename.nix nixos/displayManager: make autoLogin options independent of DM type 2020-07-09 21:15:35 -04:00