summaryrefslogtreecommitdiff
path: root/modules/system/datetime/openntpd.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/system/datetime/openntpd.nix')
-rw-r--r--modules/system/datetime/openntpd.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/system/datetime/openntpd.nix b/modules/system/datetime/openntpd.nix
new file mode 100644
index 0000000..ec59d5b
--- /dev/null
+++ b/modules/system/datetime/openntpd.nix
@@ -0,0 +1,13 @@
+{ pkgs, ... }:
+{
+ services.openntpd = {
+ enable = true;
+
+ extraConfig = ''
+ listen on 127.0.0.1
+ listen on ::1
+ '';
+ };
+
+ environment.systemPackages = [ pkgs.openntpd ];
+}