From 322b7124a8768979dce9cb78245c39561746e389 Mon Sep 17 00:00:00 2001 From: Gergely Risko Date: Thu, 6 Mar 2014 11:54:02 +0100 Subject: [PATCH] Allow ntpq locally --- nixos/modules/services/networking/ntpd.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/services/networking/ntpd.nix b/nixos/modules/services/networking/ntpd.nix index cdab789cd28..3d388cb1064 100644 --- a/nixos/modules/services/networking/ntpd.nix +++ b/nixos/modules/services/networking/ntpd.nix @@ -17,6 +17,8 @@ let restrict default kod nomodify notrap nopeer noquery restrict -6 default kod nomodify notrap nopeer noquery + restrict 127.0.0.1 + restrict -6 ::1 ${toString (map (server: "server " + server + " iburst\n") config.services.ntp.servers)} '';