summary refs log tree commit diff
path: root/nixos/modules/services/networking/ntp
diff options
context:
space:
mode:
authorDominik Xaver Hörl <hoe.dom@gmx.de>2020-04-20 20:05:26 +0200
committerDominik Xaver Hörl <hoe.dom@gmx.de>2020-04-21 08:55:36 +0200
commit0412bde9423cbc26d68d1d744b22ec4e45bcbac8 (patch)
treeb311635212d83efe027bf39184008959f48e12c1 /nixos/modules/services/networking/ntp
parent3bbd074217cd11b6e14abec24655091b83aacc6f (diff)
downloadnixpkgs-0412bde9423cbc26d68d1d744b22ec4e45bcbac8.tar
nixpkgs-0412bde9423cbc26d68d1d744b22ec4e45bcbac8.tar.gz
nixpkgs-0412bde9423cbc26d68d1d744b22ec4e45bcbac8.tar.bz2
nixpkgs-0412bde9423cbc26d68d1d744b22ec4e45bcbac8.tar.lz
nixpkgs-0412bde9423cbc26d68d1d744b22ec4e45bcbac8.tar.xz
nixpkgs-0412bde9423cbc26d68d1d744b22ec4e45bcbac8.tar.zst
nixpkgs-0412bde9423cbc26d68d1d744b22ec4e45bcbac8.zip
treewide: add bool type to enable options, or make use of mkEnableOption
Add missing type information to manually specified enable options or replace them by mkEnableOption where appropriate.
Diffstat (limited to 'nixos/modules/services/networking/ntp')
-rw-r--r--nixos/modules/services/networking/ntp/chrony.nix1
-rw-r--r--nixos/modules/services/networking/ntp/ntpd.nix1
2 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/ntp/chrony.nix b/nixos/modules/services/networking/ntp/chrony.nix
index f1062edaa05..b7e4c89a155 100644
--- a/nixos/modules/services/networking/ntp/chrony.nix
+++ b/nixos/modules/services/networking/ntp/chrony.nix
@@ -30,6 +30,7 @@ in
   options = {
     services.chrony = {
       enable = mkOption {
+        type = types.bool;
         default = false;
         description = ''
           Whether to synchronise your machine's time using chrony.
diff --git a/nixos/modules/services/networking/ntp/ntpd.nix b/nixos/modules/services/networking/ntp/ntpd.nix
index 54ff054d84c..51398851adc 100644
--- a/nixos/modules/services/networking/ntp/ntpd.nix
+++ b/nixos/modules/services/networking/ntp/ntpd.nix
@@ -40,6 +40,7 @@ in
     services.ntp = {
 
       enable = mkOption {
+        type = types.bool;
         default = false;
         description = ''
           Whether to synchronise your machine's time using ntpd, as a peer in