about summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2015-02-04 17:30:22 -0800
committerWilliam A. Kennington III <william@wkennington.com>2015-02-04 17:30:22 -0800
commit43d8b1ef3c515c1fea5a0693b6b4a92891f5d10e (patch)
treef5ed4b38fc5bc44bb545e57d1af00d059a6218f1 /nixos/modules
parenta9f1329d2d1f5bd9e151ddffd842c40313f4f190 (diff)
downloadnixlib-43d8b1ef3c515c1fea5a0693b6b4a92891f5d10e.tar
nixlib-43d8b1ef3c515c1fea5a0693b6b4a92891f5d10e.tar.gz
nixlib-43d8b1ef3c515c1fea5a0693b6b4a92891f5d10e.tar.bz2
nixlib-43d8b1ef3c515c1fea5a0693b6b4a92891f5d10e.tar.lz
nixlib-43d8b1ef3c515c1fea5a0693b6b4a92891f5d10e.tar.xz
nixlib-43d8b1ef3c515c1fea5a0693b6b4a92891f5d10e.tar.zst
nixlib-43d8b1ef3c515c1fea5a0693b6b4a92891f5d10e.zip
openntpd: Fixes
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/networking/openntpd.nix7
1 files changed, 2 insertions, 5 deletions
diff --git a/nixos/modules/services/networking/openntpd.nix b/nixos/modules/services/networking/openntpd.nix
index 7d01246ed769..ef5250888989 100644
--- a/nixos/modules/services/networking/openntpd.nix
+++ b/nixos/modules/services/networking/openntpd.nix
@@ -5,10 +5,7 @@ with lib;
 let
   cfg = config.services.openntpd;
 
-  package = pkgs.openntpd.override {
-    privsepUser = "ntp";
-    privsepPath = "/var/empty";
-  };
+  package = pkgs.openntpd_nixos;
 
   cfgFile = pkgs.writeText "openntpd.conf" ''
     ${concatStringsSep "\n" (map (s: "server ${s}") cfg.servers)}
@@ -55,7 +52,7 @@ in
     services.ntp.enable = mkForce false;
 
     # Add ntpctl to the environment for status checking
-    environment.systemPackages = [ openntpd ];
+    environment.systemPackages = [ package ];
 
     users.extraUsers = singleton {
       name = "ntp";