diff options
author | Dominik Xaver Hörl <hoe.dom@gmx.de> | 2020-04-27 09:04:07 +0200 |
---|---|---|
committer | Dominik Xaver Hörl <hoe.dom@gmx.de> | 2020-04-27 09:32:01 +0200 |
commit | c10d82358f875bb3c2104b7958777eb0033e024f (patch) | |
tree | 658bb8710791870ade4bf915dc450c6efda4e623 /nixos/modules/services/misc | |
parent | 5e4abf76c7e74660369bcb5e2648746db03142c8 (diff) | |
download | nixlib-c10d82358f875bb3c2104b7958777eb0033e024f.tar nixlib-c10d82358f875bb3c2104b7958777eb0033e024f.tar.gz nixlib-c10d82358f875bb3c2104b7958777eb0033e024f.tar.bz2 nixlib-c10d82358f875bb3c2104b7958777eb0033e024f.tar.lz nixlib-c10d82358f875bb3c2104b7958777eb0033e024f.tar.xz nixlib-c10d82358f875bb3c2104b7958777eb0033e024f.tar.zst nixlib-c10d82358f875bb3c2104b7958777eb0033e024f.zip |
treewide: add types to boolean / enable options or make use of mkEnableOption
Diffstat (limited to 'nixos/modules/services/misc')
-rw-r--r-- | nixos/modules/services/misc/autofs.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/misc/disnix.nix | 5 |
2 files changed, 2 insertions, 4 deletions
diff --git a/nixos/modules/services/misc/autofs.nix b/nixos/modules/services/misc/autofs.nix index 84f49f964b12..5e7c1e668288 100644 --- a/nixos/modules/services/misc/autofs.nix +++ b/nixos/modules/services/misc/autofs.nix @@ -57,6 +57,7 @@ in }; debug = mkOption { + type = types.bool; default = false; description = '' Pass -d and -7 to automount and write log to the system journal. diff --git a/nixos/modules/services/misc/disnix.nix b/nixos/modules/services/misc/disnix.nix index 0776ac679088..69386cdbb381 100644 --- a/nixos/modules/services/misc/disnix.nix +++ b/nixos/modules/services/misc/disnix.nix @@ -25,10 +25,7 @@ in description = "Whether to support multi-user mode by enabling the Disnix D-Bus service"; }; - useWebServiceInterface = mkOption { - default = false; - description = "Whether to enable the DisnixWebService interface running on Apache Tomcat"; - }; + useWebServiceInterface = mkEnableOption "the DisnixWebService interface running on Apache Tomcat"; package = mkOption { type = types.path; |