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.
This commit is contained in:
@@ -19,6 +19,7 @@ in
|
||||
services.autofs = {
|
||||
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = ''
|
||||
Mount filesystems on demand. Unmount them automatically.
|
||||
|
||||
@@ -31,13 +31,7 @@ in
|
||||
|
||||
services.cgminer = {
|
||||
|
||||
enable = mkOption {
|
||||
default = false;
|
||||
description = ''
|
||||
Whether to enable cgminer, an ASIC/FPGA/GPU miner for bitcoin and
|
||||
litecoin.
|
||||
'';
|
||||
};
|
||||
enable = mkEnableOption "cgminer, an ASIC/FPGA/GPU miner for bitcoin and litecoin";
|
||||
|
||||
package = mkOption {
|
||||
default = pkgs.cgminer;
|
||||
|
||||
@@ -8,12 +8,7 @@ let
|
||||
in {
|
||||
options = {
|
||||
services.devmon = {
|
||||
enable = mkOption {
|
||||
default = false;
|
||||
description = ''
|
||||
Whether to enable devmon, an automatic device mounting daemon.
|
||||
'';
|
||||
};
|
||||
enable = mkEnableOption "devmon, an automatic device mounting daemon";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -17,10 +17,7 @@ in
|
||||
|
||||
services.disnix = {
|
||||
|
||||
enable = mkOption {
|
||||
default = false;
|
||||
description = "Whether to enable Disnix";
|
||||
};
|
||||
enable = mkEnableOption "Disnix";
|
||||
|
||||
enableMultiUser = mkOption {
|
||||
type = types.bool;
|
||||
|
||||
@@ -17,10 +17,7 @@ in
|
||||
|
||||
services.felix = {
|
||||
|
||||
enable = mkOption {
|
||||
default = false;
|
||||
description = "Whether to enable the Apache Felix OSGi service";
|
||||
};
|
||||
enable = mkEnableOption "the Apache Felix OSGi service";
|
||||
|
||||
bundles = mkOption {
|
||||
type = types.listOf types.package;
|
||||
|
||||
@@ -15,6 +15,7 @@ in
|
||||
options = {
|
||||
services.ihaskell = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "Autostart an IHaskell notebook service.";
|
||||
};
|
||||
|
||||
@@ -16,10 +16,7 @@ in
|
||||
|
||||
services.safeeyes = {
|
||||
|
||||
enable = mkOption {
|
||||
default = false;
|
||||
description = "Whether to enable the safeeyes OSGi service";
|
||||
};
|
||||
enable = mkEnableOption "the safeeyes OSGi service";
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ in
|
||||
services.svnserve = {
|
||||
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "Whether to enable svnserve to serve Subversion repositories through the SVN protocol.";
|
||||
};
|
||||
|
||||
@@ -19,12 +19,8 @@ in
|
||||
# !!! All these option descriptions needs to be cleaned up.
|
||||
|
||||
client = {
|
||||
enable = mkOption {
|
||||
default = false;
|
||||
description = "
|
||||
Whether to enable the Synergy client (receive keyboard and mouse events from a Synergy server).
|
||||
";
|
||||
};
|
||||
enable = mkEnableOption "the Synergy client (receive keyboard and mouse events from a Synergy server)";
|
||||
|
||||
screenName = mkOption {
|
||||
default = "";
|
||||
description = ''
|
||||
@@ -47,12 +43,8 @@ in
|
||||
};
|
||||
|
||||
server = {
|
||||
enable = mkOption {
|
||||
default = false;
|
||||
description = ''
|
||||
Whether to enable the Synergy server (send keyboard and mouse events).
|
||||
'';
|
||||
};
|
||||
enable = mkEnableOption "the Synergy server (send keyboard and mouse events)";
|
||||
|
||||
configFile = mkOption {
|
||||
default = "/etc/synergy-server.conf";
|
||||
description = "The Synergy server configuration file.";
|
||||
|
||||
Reference in New Issue
Block a user