summary refs log tree commit diff
diff options
context:
space:
mode:
authorGraham Christensen <graham@grahamc.com>2017-12-20 17:56:03 -0500
committerGitHub <noreply@github.com>2017-12-20 17:56:03 -0500
commit9f31fe81aadd988d7c395645023d94901b9cb588 (patch)
tree3b274904aa41217c2e5fd03f3cfac1054b4611cd
parentd30f5f8a2e3511d8b88f2c03334fff13b9c2ff44 (diff)
downloadnixpkgs-9f31fe81aadd988d7c395645023d94901b9cb588.tar
nixpkgs-9f31fe81aadd988d7c395645023d94901b9cb588.tar.gz
nixpkgs-9f31fe81aadd988d7c395645023d94901b9cb588.tar.bz2
nixpkgs-9f31fe81aadd988d7c395645023d94901b9cb588.tar.lz
nixpkgs-9f31fe81aadd988d7c395645023d94901b9cb588.tar.xz
nixpkgs-9f31fe81aadd988d7c395645023d94901b9cb588.tar.zst
nixpkgs-9f31fe81aadd988d7c395645023d94901b9cb588.zip
nixos: zfs: correct the networking.hostId error message
Users were confused that the error message said config.networking.hostId, and indeed that did nothing to fix their problem.

Update the error message to specify the option they should actually set.
-rw-r--r--nixos/modules/tasks/filesystems/zfs.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/tasks/filesystems/zfs.nix b/nixos/modules/tasks/filesystems/zfs.nix
index 7fee9911532..2c0a165887b 100644
--- a/nixos/modules/tasks/filesystems/zfs.nix
+++ b/nixos/modules/tasks/filesystems/zfs.nix
@@ -268,7 +268,7 @@ in
       assertions = [
         {
           assertion = config.networking.hostId != null;
-          message = "ZFS requires config.networking.hostId to be set";
+          message = "ZFS requires networking.hostId to be set";
         }
         {
           assertion = !cfgZfs.forceImportAll || cfgZfs.forceImportRoot;