summary refs log tree commit diff
path: root/nixos/modules/services/networking/ntpd.nix
diff options
context:
space:
mode:
authorGergely Risko <gergely@risko.hu>2014-03-06 11:54:02 +0100
committerGergely Risko <gergely@risko.hu>2014-03-06 11:54:02 +0100
commit322b7124a8768979dce9cb78245c39561746e389 (patch)
tree0a2216ccd6c1c30af4c285ba3d0c0ac7b964abc6 /nixos/modules/services/networking/ntpd.nix
parentbd76470d9b7df8a46d2c2a3820c4c4d3a4a4385e (diff)
downloadnixlib-322b7124a8768979dce9cb78245c39561746e389.tar
nixlib-322b7124a8768979dce9cb78245c39561746e389.tar.gz
nixlib-322b7124a8768979dce9cb78245c39561746e389.tar.bz2
nixlib-322b7124a8768979dce9cb78245c39561746e389.tar.lz
nixlib-322b7124a8768979dce9cb78245c39561746e389.tar.xz
nixlib-322b7124a8768979dce9cb78245c39561746e389.tar.zst
nixlib-322b7124a8768979dce9cb78245c39561746e389.zip
Allow ntpq locally
Diffstat (limited to 'nixos/modules/services/networking/ntpd.nix')
-rw-r--r--nixos/modules/services/networking/ntpd.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/ntpd.nix b/nixos/modules/services/networking/ntpd.nix
index cdab789cd289..3d388cb10648 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)}
   '';