summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorGregor Kleen <pngwjpgh@users.noreply.github.com>2016-11-10 22:40:09 +0100
committerChristoph Hrdinka <c.github@hrdinka.at>2016-11-11 14:06:07 +0100
commit54199414e38081e016e7a525c90bcdbcd392621a (patch)
tree03b85fc3ecb7c0a82ecdb4943eabd2fc394d82d1 /nixos
parentbb2a67d226d2fc8b268655132fee33a720046613 (diff)
downloadnixlib-54199414e38081e016e7a525c90bcdbcd392621a.tar
nixlib-54199414e38081e016e7a525c90bcdbcd392621a.tar.gz
nixlib-54199414e38081e016e7a525c90bcdbcd392621a.tar.bz2
nixlib-54199414e38081e016e7a525c90bcdbcd392621a.tar.lz
nixlib-54199414e38081e016e7a525c90bcdbcd392621a.tar.xz
nixlib-54199414e38081e016e7a525c90bcdbcd392621a.tar.zst
nixlib-54199414e38081e016e7a525c90bcdbcd392621a.zip
nsd service: fix typo
Closes #20343.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/nsd.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/nsd.nix b/nixos/modules/services/networking/nsd.nix
index 6af1dd736431..ccfd219620cf 100644
--- a/nixos/modules/services/networking/nsd.nix
+++ b/nixos/modules/services/networking/nsd.nix
@@ -118,8 +118,8 @@ let
   '';
 
   yesOrNo = b: if b then "yes" else "no";
-  maybeString = prefix: x: if x == null then "" else ''${prefix} "${s}"'';
-  maybeToString = prefix: x: if x == null then "" else ''${prefix} ${toString s}'';
+  maybeString = prefix: x: if x == null then "" else ''${prefix} "${x}"'';
+  maybeToString = prefix: x: if x == null then "" else ''${prefix} ${toString x}'';
   forEach = pre: l: concatMapStrings (x: pre + x + "\n") l;