about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJoerg Thalheim <joerg@thalheim.io>2017-11-03 08:36:11 +0000
committerJoerg Thalheim <joerg@thalheim.io>2017-11-03 08:37:02 +0000
commit2e6daff704922ff447eaff19cb721635fd3f27a7 (patch)
treecc6f06e2d580c0f1bdb5f03fad485c0cb1eb5ccb /nixos
parent19d67e136810e592246823518a0d787cc0ef90bc (diff)
downloadnixlib-2e6daff704922ff447eaff19cb721635fd3f27a7.tar
nixlib-2e6daff704922ff447eaff19cb721635fd3f27a7.tar.gz
nixlib-2e6daff704922ff447eaff19cb721635fd3f27a7.tar.bz2
nixlib-2e6daff704922ff447eaff19cb721635fd3f27a7.tar.lz
nixlib-2e6daff704922ff447eaff19cb721635fd3f27a7.tar.xz
nixlib-2e6daff704922ff447eaff19cb721635fd3f27a7.tar.zst
nixlib-2e6daff704922ff447eaff19cb721635fd3f27a7.zip
nixos/unbound: correct indented interface/access lists
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/unbound.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/networking/unbound.nix b/nixos/modules/services/networking/unbound.nix
index bcce4accdd6e..545ee327d596 100644
--- a/nixos/modules/services/networking/unbound.nix
+++ b/nixos/modules/services/networking/unbound.nix
@@ -8,9 +8,9 @@ let
 
   stateDir = "/var/lib/unbound";
 
-  access = concatMapStrings (x: "  access-control: ${x} allow\n") cfg.allowedAccess;
+  access = concatMapStringsSep "\n  " (x: "access-control: ${x} allow") cfg.allowedAccess;
 
-  interfaces = concatMapStrings (x: "  interface: ${x}\n") cfg.interfaces;
+  interfaces = concatMapStringsSep "\n  " (x: "interface: ${x}") cfg.interfaces;
 
   isLocalAddress = x: substring 0 3 x == "::1" || substring 0 9 x == "127.0.0.1";