treewide: use mkPackageOption
This commit replaces a lot of usages of `mkOption` with the package type, to be `mkPackageOption`, in order to reduce the amount of code.
This commit is contained in:
@@ -26,12 +26,7 @@ in
|
||||
options.services.esphome = {
|
||||
enable = mkEnableOption (mdDoc "esphome");
|
||||
|
||||
package = mkOption {
|
||||
type = types.package;
|
||||
default = pkgs.esphome;
|
||||
defaultText = literalExpression "pkgs.esphome";
|
||||
description = mdDoc "The package to use for the esphome command.";
|
||||
};
|
||||
package = lib.mkPackageOption pkgs "esphome" { };
|
||||
|
||||
enableUnixSocket = mkOption {
|
||||
type = types.bool;
|
||||
|
||||
Reference in New Issue
Block a user