treewide: replace mkPackageOptionMD with mkPackageOption

This commit is contained in:
éclairevoyant 2024-06-26 23:03:01 -04:00
parent 3664857c48
commit aeee4fc133
No known key found for this signature in database
GPG Key ID: E3813AEAA02DB54B
17 changed files with 22 additions and 22 deletions

View File

@ -9,7 +9,7 @@ in
programs.screen = { programs.screen = {
enable = lib.mkEnableOption "screen, a basic terminal multiplexer"; enable = lib.mkEnableOption "screen, a basic terminal multiplexer";
package = lib.mkPackageOptionMD pkgs "screen" { }; package = lib.mkPackageOption pkgs "screen" { };
screenrc = lib.mkOption { screenrc = lib.mkOption {
type = lib.types.lines; type = lib.types.lines;

View File

@ -35,7 +35,7 @@ in
default = 5050; default = 5050;
}; };
package = mkPackageOptionMD pkgs "pgadmin4" { }; package = mkPackageOption pkgs "pgadmin4" { };
initialEmail = mkOption { initialEmail = mkOption {
description = "Initial email for the pgAdmin account"; description = "Initial email for the pgAdmin account";

View File

@ -8,7 +8,7 @@
cfg = config.services.desktopManager.plasma6; cfg = config.services.desktopManager.plasma6;
inherit (pkgs) kdePackages; inherit (pkgs) kdePackages;
inherit (lib) literalExpression mkDefault mkIf mkOption mkPackageOptionMD types; inherit (lib) literalExpression mkDefault mkIf mkOption mkPackageOption types;
activationScript = '' activationScript = ''
# will be rebuilt automatically # will be rebuilt automatically
@ -29,7 +29,7 @@ in {
description = "Enable Qt 5 integration (theming, etc). Disable for a pure Qt 6 system."; description = "Enable Qt 5 integration (theming, etc). Disable for a pure Qt 6 system.";
}; };
notoPackage = mkPackageOptionMD pkgs "Noto fonts - used for UI by default" { notoPackage = mkPackageOption pkgs "Noto fonts - used for UI by default" {
default = ["noto-fonts"]; default = ["noto-fonts"];
example = "noto-fonts-lgc-plus"; example = "noto-fonts-lgc-plus";
}; };

View File

@ -36,7 +36,7 @@ in
options = { options = {
enable = mkEnableOption "armagetronad"; enable = mkEnableOption "armagetronad";
package = lib.mkPackageOptionMD pkgs "armagetronad-dedicated" { package = lib.mkPackageOption pkgs "armagetronad-dedicated" {
example = '' example = ''
pkgs.armagetronad."0.2.9-sty+ct+ap".dedicated pkgs.armagetronad."0.2.9-sty+ct+ap".dedicated
''; '';

View File

@ -95,7 +95,7 @@ in
services.teeworlds = { services.teeworlds = {
enable = mkEnableOption "Teeworlds Server"; enable = mkEnableOption "Teeworlds Server";
package = mkPackageOptionMD pkgs "teeworlds-server" { }; package = mkPackageOption pkgs "teeworlds-server" { };
openPorts = mkOption { openPorts = mkOption {
type = types.bool; type = types.bool;

View File

@ -10,7 +10,7 @@ in {
services.auto-epp = { services.auto-epp = {
enable = lib.mkEnableOption "auto-epp for amd active pstate"; enable = lib.mkEnableOption "auto-epp for amd active pstate";
package = lib.mkPackageOptionMD pkgs "auto-epp" {}; package = lib.mkPackageOption pkgs "auto-epp" {};
settings = mkOption { settings = mkOption {
type = types.submodule { type = types.submodule {

View File

@ -11,7 +11,7 @@ in
options.services.ebusd = { options.services.ebusd = {
enable = mkEnableOption "ebusd, a daemon for communication with eBUS heating systems"; enable = mkEnableOption "ebusd, a daemon for communication with eBUS heating systems";
package = mkPackageOptionMD pkgs "ebusd" { }; package = mkPackageOption pkgs "ebusd" { };
device = mkOption { device = mkOption {
type = types.str; type = types.str;

View File

@ -19,7 +19,7 @@ in
options.services.matter-server = with types; { options.services.matter-server = with types; {
enable = mkEnableOption "Matter-server"; enable = mkEnableOption "Matter-server";
package = mkPackageOptionMD pkgs "python-matter-server" { }; package = mkPackageOption pkgs "python-matter-server" { };
port = mkOption { port = mkOption {
type = types.port; type = types.port;

View File

@ -16,7 +16,7 @@ in {
services.gns3-server = { services.gns3-server = {
enable = lib.mkEnableOption "GNS3 Server daemon"; enable = lib.mkEnableOption "GNS3 Server daemon";
package = lib.mkPackageOptionMD pkgs "gns3-server" { }; package = lib.mkPackageOption pkgs "gns3-server" { };
auth = { auth = {
enable = lib.mkEnableOption "password based HTTP authentication to access the GNS3 Server"; enable = lib.mkEnableOption "password based HTTP authentication to access the GNS3 Server";
@ -88,17 +88,17 @@ in {
dynamips = { dynamips = {
enable = lib.mkEnableOption ''Dynamips support''; enable = lib.mkEnableOption ''Dynamips support'';
package = lib.mkPackageOptionMD pkgs "dynamips" { }; package = lib.mkPackageOption pkgs "dynamips" { };
}; };
ubridge = { ubridge = {
enable = lib.mkEnableOption ''uBridge support''; enable = lib.mkEnableOption ''uBridge support'';
package = lib.mkPackageOptionMD pkgs "ubridge" { }; package = lib.mkPackageOption pkgs "ubridge" { };
}; };
vpcs = { vpcs = {
enable = lib.mkEnableOption ''VPCS support''; enable = lib.mkEnableOption ''VPCS support'';
package = lib.mkPackageOptionMD pkgs "vpcs" { }; package = lib.mkPackageOption pkgs "vpcs" { };
}; };
}; };
}; };

View File

@ -51,11 +51,11 @@ in
enable = mkEnableOption "xrdp, the Remote Desktop Protocol server"; enable = mkEnableOption "xrdp, the Remote Desktop Protocol server";
package = mkPackageOptionMD pkgs "xrdp" { }; package = mkPackageOption pkgs "xrdp" { };
audio = { audio = {
enable = mkEnableOption "audio support for xrdp sessions. So far it only works with PulseAudio sessions on the server side. No PipeWire support yet"; enable = mkEnableOption "audio support for xrdp sessions. So far it only works with PulseAudio sessions on the server side. No PipeWire support yet";
package = mkPackageOptionMD pkgs "pulseaudio-module-xrdp" {}; package = mkPackageOption pkgs "pulseaudio-module-xrdp" {};
}; };
port = mkOption { port = mkOption {

View File

@ -19,7 +19,7 @@ in {
''; '';
}; };
package = mkPackageOptionMD pkgs "hound" { }; package = mkPackageOption pkgs "hound" { };
user = mkOption { user = mkOption {
default = "hound"; default = "hound";

View File

@ -9,7 +9,7 @@ in {
services.code-server = { services.code-server = {
enable = lib.mkEnableOption "code-server"; enable = lib.mkEnableOption "code-server";
package = lib.mkPackageOptionMD pkgs "code-server" { package = lib.mkPackageOption pkgs "code-server" {
example = '' example = ''
pkgs.vscode-with-extensions.override { pkgs.vscode-with-extensions.override {
vscode = pkgs.code-server; vscode = pkgs.code-server;

View File

@ -390,7 +390,7 @@ in
''; '';
}; };
package = lib.mkPackageOptionMD pkgs "http3-ytproxy" { }; package = lib.mkPackageOption pkgs "http3-ytproxy" { };
}; };
}; };

View File

@ -35,7 +35,7 @@ in
options.services.pretalx = { options.services.pretalx = {
enable = lib.mkEnableOption "pretalx"; enable = lib.mkEnableOption "pretalx";
package = lib.mkPackageOptionMD pkgs "pretalx" {}; package = lib.mkPackageOption pkgs "pretalx" {};
group = lib.mkOption { group = lib.mkOption {
type = lib.types.str; type = lib.types.str;

View File

@ -14,7 +14,7 @@ in
services.silverbullet = { services.silverbullet = {
enable = lib.mkEnableOption "Silverbullet, an open-source, self-hosted, offline-capable Personal Knowledge Management (PKM) web application"; enable = lib.mkEnableOption "Silverbullet, an open-source, self-hosted, offline-capable Personal Knowledge Management (PKM) web application";
package = lib.mkPackageOptionMD pkgs "silverbullet" { }; package = lib.mkPackageOption pkgs "silverbullet" { };
openFirewall = lib.mkOption { openFirewall = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;

View File

@ -7,7 +7,7 @@ in {
options.services.slskd = with lib; with types; { options.services.slskd = with lib; with types; {
enable = mkEnableOption "slskd"; enable = mkEnableOption "slskd";
package = mkPackageOptionMD pkgs "slskd" { }; package = mkPackageOption pkgs "slskd" { };
user = mkOption { user = mkOption {
type = types.str; type = types.str;

View File

@ -11,7 +11,7 @@ in
services.suwayomi-server = { services.suwayomi-server = {
enable = mkEnableOption "Suwayomi, a free and open source manga reader server that runs extensions built for Tachiyomi"; enable = mkEnableOption "Suwayomi, a free and open source manga reader server that runs extensions built for Tachiyomi";
package = lib.mkPackageOptionMD pkgs "suwayomi-server" { }; package = lib.mkPackageOption pkgs "suwayomi-server" { };
dataDir = mkOption { dataDir = mkOption {
type = types.path; type = types.path;