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:
h7x4 2023-11-27 01:19:27 +01:00
parent 9cc575741d
commit 0a37316d6c
No known key found for this signature in database
GPG Key ID: 9F2F7D8250F35146
377 changed files with 606 additions and 2786 deletions

View File

@ -24,14 +24,7 @@ in
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "ckb-next" { };
type = types.package;
default = pkgs.ckb-next;
defaultText = literalExpression "pkgs.ckb-next";
description = lib.mdDoc ''
The package implementing the Corsair keyboard/mouse driver.
'';
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View File

@ -16,11 +16,10 @@ in
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "digitalbitbox" {
type = types.package; extraDescription = ''
default = pkgs.digitalbitbox; This can be used to install a package with udev rules that differ from the defaults.
defaultText = literalExpression "pkgs.digitalbitbox"; '';
description = lib.mdDoc "The Digital Bitbox package to use. This can be used to install a package with udev rules that differ from the defaults.";
}; };
}; };

View File

@ -26,14 +26,7 @@ in
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "opentabletdriver" { };
type = types.package;
default = pkgs.opentabletdriver;
defaultText = literalExpression "pkgs.opentabletdriver";
description = lib.mdDoc ''
OpenTabletDriver derivation to use.
'';
};
daemon = { daemon = {
enable = mkOption { enable = mkOption {

View File

@ -26,14 +26,8 @@ in
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs [ "findutils" "locate" ] {
type = package; example = "mlocate";
default = pkgs.findutils.locate;
defaultText = literalExpression "pkgs.findutils.locate";
example = literalExpression "pkgs.mlocate";
description = lib.mdDoc ''
The locate implementation to use
'';
}; };
interval = mkOption { interval = mkOption {

View File

@ -16,14 +16,7 @@ in
enable = mkEnableOption (lib.mdDoc "Atop"); enable = mkEnableOption (lib.mdDoc "Atop");
package = mkOption { package = mkPackageOption pkgs "atop" { };
type = types.package;
default = pkgs.atop;
defaultText = literalExpression "pkgs.atop";
description = lib.mdDoc ''
Which package to use for Atop.
'';
};
netatop = { netatop = {
enable = mkOption { enable = mkOption {

View File

@ -5,7 +5,8 @@ let
inherit (lib) inherit (lib)
concatStringsSep escapeShellArgs optionalString concatStringsSep escapeShellArgs optionalString
literalExpression mkEnableOption mkIf mkOption mkOptionDefault types; literalExpression mkEnableOption mkPackageOption mkIf mkOption
mkOptionDefault types;
requiresSetcapWrapper = config.boot.kernelPackages.kernelOlder "5.7" && cfg.bindInterface; requiresSetcapWrapper = config.boot.kernelPackages.kernelOlder "5.7" && cfg.bindInterface;
@ -50,12 +51,7 @@ in
programs.captive-browser = { programs.captive-browser = {
enable = mkEnableOption (lib.mdDoc "captive browser"); enable = mkEnableOption (lib.mdDoc "captive browser");
package = mkOption { package = mkPackageOption pkgs "captive-browser" { };
type = types.package;
default = pkgs.captive-browser;
defaultText = literalExpression "pkgs.captive-browser";
description = lib.mdDoc "Which package to use for captive-browser";
};
interface = mkOption { interface = mkOption {
type = types.str; type = types.str;

View File

@ -16,11 +16,10 @@ in
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "digitalbitbox" {
type = types.package; extraDescription = ''
default = pkgs.digitalbitbox; This can be used to install a package with udev rules that differ from the defaults.
defaultText = literalExpression "pkgs.digitalbitbox"; '';
description = lib.mdDoc "The Digital Bitbox package to use. This can be used to install a package with udev rules that differ from the defaults.";
}; };
}; };

View File

@ -21,12 +21,7 @@ in {
relatedPackages = [ "dmrconfig" ]; relatedPackages = [ "dmrconfig" ];
}; };
package = mkOption { package = mkPackageOption pkgs "dmrconfig" { };
default = pkgs.dmrconfig;
type = types.package;
defaultText = literalExpression "pkgs.dmrconfig";
description = lib.mdDoc "dmrconfig derivation to use";
};
}; };
}; };

View File

@ -24,12 +24,7 @@ in {
enable = mkEnableOption enable = mkEnableOption
(lib.mdDoc "Evince, the GNOME document viewer"); (lib.mdDoc "Evince, the GNOME document viewer");
package = mkOption { package = mkPackageOption pkgs "evince" { };
type = types.package;
default = pkgs.evince;
defaultText = literalExpression "pkgs.evince";
description = lib.mdDoc "Evince derivation to use.";
};
}; };

View File

@ -12,14 +12,7 @@ in {
Your user needs to be in the `feedbackd` group to trigger effects Your user needs to be in the `feedbackd` group to trigger effects
''); '');
package = mkOption { package = mkPackageOption pkgs "feedbackd" { };
description = lib.mdDoc ''
Which feedbackd package to use.
'';
type = types.package;
default = pkgs.feedbackd;
defaultText = literalExpression "pkgs.feedbackd";
};
}; };
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View File

@ -23,12 +23,7 @@ in {
enable = mkEnableOption (lib.mdDoc "File Roller, an archive manager for GNOME"); enable = mkEnableOption (lib.mdDoc "File Roller, an archive manager for GNOME");
package = mkOption { package = mkPackageOption pkgs [ "gnome" "file-roller" ] { };
type = types.package;
default = pkgs.gnome.file-roller;
defaultText = literalExpression "pkgs.gnome.file-roller";
description = lib.mdDoc "File Roller derivation to use.";
};
}; };

View File

@ -9,12 +9,7 @@ in {
programs.flexoptix-app = { programs.flexoptix-app = {
enable = mkEnableOption (lib.mdDoc "FLEXOPTIX app + udev rules"); enable = mkEnableOption (lib.mdDoc "FLEXOPTIX app + udev rules");
package = mkOption { package = mkPackageOption pkgs "flexoptix-app" { };
description = lib.mdDoc "FLEXOPTIX app package to use";
type = types.package;
default = pkgs.flexoptix-app;
defaultText = literalExpression "pkgs.flexoptix-app";
};
}; };
}; };

View File

@ -23,14 +23,7 @@ in
options.programs.gamescope = { options.programs.gamescope = {
enable = mkEnableOption (mdDoc "gamescope"); enable = mkEnableOption (mdDoc "gamescope");
package = mkOption { package = mkPackageOption pkgs "gamescope" { };
type = types.package;
default = pkgs.gamescope;
defaultText = literalExpression "pkgs.gamescope";
description = mdDoc ''
The GameScope package to use.
'';
};
capSysNice = mkOption { capSysNice = mkOption {
type = types.bool; type = types.bool;

View File

@ -11,12 +11,8 @@ in
programs.git = { programs.git = {
enable = mkEnableOption (lib.mdDoc "git"); enable = mkEnableOption (lib.mdDoc "git");
package = mkOption { package = mkPackageOption pkgs "git" {
type = types.package; example = "gitFull";
default = pkgs.git;
defaultText = literalExpression "pkgs.git";
example = literalExpression "pkgs.gitFull";
description = lib.mdDoc "The git package to use";
}; };
config = mkOption { config = mkOption {
@ -65,12 +61,7 @@ in
lfs = { lfs = {
enable = mkEnableOption (lib.mdDoc "git-lfs"); enable = mkEnableOption (lib.mdDoc "git-lfs");
package = mkOption { package = mkPackageOption pkgs "git-lfs" { };
type = types.package;
default = pkgs.git-lfs;
defaultText = literalExpression "pkgs.git-lfs";
description = lib.mdDoc "The git-lfs package to use";
};
}; };
}; };
}; };

View File

@ -29,14 +29,7 @@ in
{ {
options.programs.gnupg = { options.programs.gnupg = {
package = mkOption { package = mkPackageOption pkgs "gnupg" { };
type = types.package;
default = pkgs.gnupg;
defaultText = literalExpression "pkgs.gnupg";
description = lib.mdDoc ''
The gpg package that should be used.
'';
};
agent.enable = mkOption { agent.enable = mkOption {
type = types.bool; type = types.bool;

View File

@ -18,14 +18,7 @@ in
{ {
options.programs.htop = { options.programs.htop = {
package = mkOption { package = mkPackageOption pkgs "htop" { };
type = types.package;
default = pkgs.htop;
defaultText = lib.literalExpression "pkgs.htop";
description = lib.mdDoc ''
The htop package that should be used.
'';
};
enable = mkEnableOption (lib.mdDoc "htop process monitor"); enable = mkEnableOption (lib.mdDoc "htop process monitor");

View File

@ -13,16 +13,12 @@ in {
options = { options = {
programs.i3lock = { programs.i3lock = {
enable = mkEnableOption (mdDoc "i3lock"); enable = mkEnableOption (mdDoc "i3lock");
package = mkOption { package = mkPackageOption pkgs "i3lock" {
type = types.package; example = "i3lock-color";
default = pkgs.i3lock; extraDescription = ''
defaultText = literalExpression "pkgs.i3lock"; ::: {.note}
example = literalExpression ''
pkgs.i3lock-color
'';
description = mdDoc ''
Specify which package to use for the i3lock program,
The i3lock package must include a i3lock file or link in its out directory in order for the u2fSupport option to work correctly. The i3lock package must include a i3lock file or link in its out directory in order for the u2fSupport option to work correctly.
:::
''; '';
}; };
u2fSupport = mkOption { u2fSupport = mkOption {

View File

@ -30,13 +30,8 @@ in
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "jdk" {
default = pkgs.jdk; example = "jre";
defaultText = literalExpression "pkgs.jdk";
description = lib.mdDoc ''
Java package to install. Typical values are pkgs.jdk or pkgs.jre.
'';
type = types.package;
}; };
binfmt = mkEnableOption (lib.mdDoc "binfmt to execute java jar's and classes"); binfmt = mkEnableOption (lib.mdDoc "binfmt to execute java jar's and classes");

View File

@ -20,15 +20,7 @@ in
default = "k40"; default = "k40";
}; };
package = mkOption { package = mkPackageOption pkgs "k40-whisperer" { };
type = types.package;
default = pkgs.k40-whisperer;
defaultText = literalExpression "pkgs.k40-whisperer";
example = literalExpression "pkgs.k40-whisperer";
description = lib.mdDoc ''
K40 Whisperer package to use.
'';
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View File

@ -11,14 +11,8 @@ with lib;
`gnomeExtensions.gsconnect` as an alternative `gnomeExtensions.gsconnect` as an alternative
implementation if you use Gnome implementation if you use Gnome
''); '');
package = mkOption { package = mkPackageOption pkgs [ "plasma5Packages" "kdeconnect-kde" ] {
default = pkgs.plasma5Packages.kdeconnect-kde; example = "gnomeExtensions.gsconnect";
defaultText = literalExpression "pkgs.plasma5Packages.kdeconnect-kde";
type = types.package;
example = literalExpression "pkgs.gnomeExtensions.gsconnect";
description = lib.mdDoc ''
The package providing the implementation for kdeconnect.
'';
}; };
}; };
config = config =

View File

@ -17,14 +17,7 @@ in {
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "mtr" { };
type = types.package;
default = pkgs.mtr;
defaultText = literalExpression "pkgs.mtr";
description = lib.mdDoc ''
The package to use.
'';
};
}; };
}; };

View File

@ -86,12 +86,7 @@ in
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "neovim-unwrapped" { };
type = types.package;
default = pkgs.neovim-unwrapped;
defaultText = literalExpression "pkgs.neovim-unwrapped";
description = lib.mdDoc "The package to use for the neovim binary.";
};
finalPackage = mkOption { finalPackage = mkOption {
type = types.package; type = types.package;

View File

@ -5,12 +5,7 @@ in {
options.programs.nix-index = with lib; { options.programs.nix-index = with lib; {
enable = mkEnableOption (lib.mdDoc "nix-index, a file database for nixpkgs"); enable = mkEnableOption (lib.mdDoc "nix-index, a file database for nixpkgs");
package = mkOption { package = mkPackageOption pkgs "nix-index" { };
type = types.package;
default = pkgs.nix-index;
defaultText = literalExpression "pkgs.nix-index";
description = lib.mdDoc "Package providing the `nix-index` tool.";
};
enableBashIntegration = mkEnableOption (lib.mdDoc "Bash integration") // { enableBashIntegration = mkEnableOption (lib.mdDoc "Bash integration") // {
default = true; default = true;

View File

@ -23,12 +23,7 @@ in {
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "nncp" { };
type = types.package;
default = pkgs.nncp;
defaultText = literalExpression "pkgs.nncp";
description = lib.mdDoc "The NNCP package to use system-wide.";
};
secrets = mkOption { secrets = mkOption {
type = with types; listOf str; type = with types; listOf str;

View File

@ -8,14 +8,7 @@ in
options.programs.noisetorch = { options.programs.noisetorch = {
enable = mkEnableOption (lib.mdDoc "noisetorch + setcap wrapper"); enable = mkEnableOption (lib.mdDoc "noisetorch + setcap wrapper");
package = mkOption { package = mkPackageOption pkgs "noisetorch" { };
type = types.package;
default = pkgs.noisetorch;
defaultText = literalExpression "pkgs.noisetorch";
description = lib.mdDoc ''
The noisetorch package to use.
'';
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View File

@ -13,12 +13,8 @@ in
programs.npm = { programs.npm = {
enable = mkEnableOption (lib.mdDoc "{command}`npm` global config"); enable = mkEnableOption (lib.mdDoc "{command}`npm` global config");
package = mkOption { package = mkPackageOption pkgs [ "nodePackages" "npm" ] {
type = types.package; example = "nodePackages_13_x.npm";
description = lib.mdDoc "The npm package version / flavor to use";
default = pkgs.nodePackages.npm;
defaultText = literalExpression "pkgs.nodePackages.npm";
example = literalExpression "pkgs.nodePackages_13_x.npm";
}; };
npmrc = mkOption { npmrc = mkOption {

View File

@ -51,8 +51,8 @@ in {
enable = mkEnableOption (lib.mdDoc "installing proxychains configuration"); enable = mkEnableOption (lib.mdDoc "installing proxychains configuration");
package = mkPackageOptionMD pkgs "proxychains" { package = mkPackageOption pkgs "proxychains" {
example = "pkgs.proxychains-ng"; example = "proxychains-ng";
}; };
chain = { chain = {

View File

@ -12,14 +12,8 @@ in
Whether to install Singularity/Apptainer with system-level overriding such as SUID support. Whether to install Singularity/Apptainer with system-level overriding such as SUID support.
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "singularity" {
type = types.package; example = "apptainer";
default = pkgs.singularity;
defaultText = literalExpression "pkgs.singularity";
example = literalExpression "pkgs.apptainer";
description = mdDoc ''
Singularity/Apptainer package to override and install.
'';
}; };
packageOverriden = mkOption { packageOverriden = mkOption {
type = types.nullOr types.package; type = types.nullOr types.package;

View File

@ -132,14 +132,7 @@ in
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "openssh" { };
type = types.package;
default = pkgs.openssh;
defaultText = literalExpression "pkgs.openssh";
description = lib.mdDoc ''
The package used for the openssh client and daemon.
'';
};
knownHosts = mkOption { knownHosts = mkOption {
default = {}; default = {};

View File

@ -5,7 +5,7 @@ let
inherit (builtins) length map; inherit (builtins) length map;
inherit (lib.attrsets) attrNames filterAttrs hasAttr mapAttrs mapAttrsToList optionalAttrs; inherit (lib.attrsets) attrNames filterAttrs hasAttr mapAttrs mapAttrsToList optionalAttrs;
inherit (lib.modules) mkDefault mkIf; inherit (lib.modules) mkDefault mkIf;
inherit (lib.options) literalExpression mkEnableOption mkOption; inherit (lib.options) literalExpression mkEnableOption mkOption mkPackageOption;
inherit (lib.strings) concatLines optionalString toLower; inherit (lib.strings) concatLines optionalString toLower;
inherit (lib.types) addCheck attrsOf lines nonEmptyStr nullOr package path port str strMatching submodule; inherit (lib.types) addCheck attrsOf lines nonEmptyStr nullOr package path port str strMatching submodule;
@ -215,14 +215,9 @@ let
TSM-depending packages used on the system. TSM-depending packages used on the system.
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "tsm-client" {
type = package; example = "tsm-client-withGui";
default = pkgs.tsm-client; extraDescription = ''
defaultText = literalExpression "pkgs.tsm-client";
example = literalExpression "pkgs.tsm-client-withGui";
description = lib.mdDoc ''
The TSM client derivation to be
added to the system environment.
It will be used with `.override` It will be used with `.override`
to add paths to the client system-options file. to add paths to the client system-options file.
''; '';

View File

@ -15,14 +15,8 @@ in {
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "vim" {
type = types.package; example = "vim-full";
default = pkgs.vim;
defaultText = literalExpression "pkgs.vim";
example = literalExpression "pkgs.vim-full";
description = lib.mdDoc ''
vim package to use.
'';
}; };
}; };

View File

@ -10,12 +10,9 @@ in {
options.programs.river = { options.programs.river = {
enable = mkEnableOption (lib.mdDoc "river, a dynamic tiling Wayland compositor"); enable = mkEnableOption (lib.mdDoc "river, a dynamic tiling Wayland compositor");
package = mkOption { package = mkPackageOption pkgs "river" {
type = with types; nullOr package; nullable = true;
default = pkgs.river; extraDescription = ''
defaultText = literalExpression "pkgs.river";
description = lib.mdDoc ''
River package to use.
Set to `null` to not add any River package to your path. Set to `null` to not add any River package to your path.
This should be done if you want to use the Home Manager River module to install River. This should be done if you want to use the Home Manager River module to install River.
''; '';

View File

@ -26,12 +26,7 @@ in
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "weylus" { };
type = package;
default = pkgs.weylus;
defaultText = lib.literalExpression "pkgs.weylus";
description = lib.mdDoc "Weylus package to install.";
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
networking.firewall = mkIf cfg.openFirewall { networking.firewall = mkIf cfg.openFirewall {

View File

@ -16,13 +16,8 @@ in {
setcap wrapper for 'dumpcap' for users in the 'wireshark' group. setcap wrapper for 'dumpcap' for users in the 'wireshark' group.
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "wireshark-cli" {
type = types.package; example = "wireshark";
default = pkgs.wireshark-cli;
defaultText = literalExpression "pkgs.wireshark-cli";
description = lib.mdDoc ''
Which Wireshark package to install in the global environment.
'';
}; };
}; };
}; };

View File

@ -24,14 +24,8 @@ in
type = types.bool; type = types.bool;
}; };
package = mkOption { package = mkPackageOption pkgs "xonsh" {
type = types.package; example = "xonsh.override { extraPackages = ps: [ ps.requests ]; }";
default = pkgs.xonsh;
defaultText = literalExpression "pkgs.xonsh";
example = literalExpression "pkgs.xonsh.override { extraPackages = ps: [ ps.requests ]; }";
description = lib.mdDoc ''
xonsh package to use.
'';
}; };
config = mkOption { config = mkOption {

View File

@ -46,15 +46,7 @@ in
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "oh-my-zsh" { };
default = pkgs.oh-my-zsh;
defaultText = literalExpression "pkgs.oh-my-zsh";
description = lib.mdDoc ''
Package to install for `oh-my-zsh` usage.
'';
type = types.package;
};
plugins = mkOption { plugins = mkOption {
default = []; default = [];

View File

@ -8,15 +8,7 @@ in {
options = { options = {
programs.zsh.zsh-autoenv = { programs.zsh.zsh-autoenv = {
enable = mkEnableOption (lib.mdDoc "zsh-autoenv"); enable = mkEnableOption (lib.mdDoc "zsh-autoenv");
package = mkOption { package = mkPackageOption pkgs "zsh-autoenv" { };
default = pkgs.zsh-autoenv;
defaultText = literalExpression "pkgs.zsh-autoenv";
description = lib.mdDoc ''
Package to install for `zsh-autoenv` usage.
'';
type = types.package;
};
}; };
}; };

View File

@ -13,14 +13,7 @@ in
file as another user file as another user
''); '');
package = mkOption { package = mkPackageOption pkgs "please" { };
type = types.package;
default = pkgs.please;
defaultText = literalExpression "pkgs.please";
description = mdDoc ''
Which package to use for {command}`please`.
'';
};
wheelNeedsPassword = mkOption { wheelNeedsPassword = mkOption {
type = types.bool; type = types.bool;

View File

@ -60,14 +60,7 @@ in
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "sudo-rs" { };
type = types.package;
default = pkgs.sudo-rs;
defaultText = literalExpression "pkgs.sudo-rs";
description = mdDoc ''
Which package to use for `sudo`.
'';
};
wheelNeedsPassword = mkOption { wheelNeedsPassword = mkOption {
type = types.bool; type = types.bool;

View File

@ -6,12 +6,7 @@ let
in with lib; { in with lib; {
options.services.meshcentral = with types; { options.services.meshcentral = with types; {
enable = mkEnableOption (lib.mdDoc "MeshCentral computer management server"); enable = mkEnableOption (lib.mdDoc "MeshCentral computer management server");
package = mkOption { package = mkPackageOption pkgs "meshcentral" { };
description = lib.mdDoc "MeshCentral package to use. Replacing this may be necessary to add dependencies for extra functionality.";
type = types.package;
default = pkgs.meshcentral;
defaultText = literalExpression "pkgs.meshcentral";
};
settings = mkOption { settings = mkOption {
description = lib.mdDoc '' description = lib.mdDoc ''
Settings for MeshCentral. Refer to upstream documentation for details: Settings for MeshCentral. Refer to upstream documentation for details:

View File

@ -26,14 +26,7 @@ in
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "rabbitmq-server" { };
default = pkgs.rabbitmq-server;
type = types.package;
defaultText = literalExpression "pkgs.rabbitmq-server";
description = lib.mdDoc ''
Which rabbitmq package to use.
'';
};
listenAddress = mkOption { listenAddress = mkOption {
default = "127.0.0.1"; default = "127.0.0.1";

View File

@ -14,12 +14,7 @@ in
options.services.botamusique = { options.services.botamusique = {
enable = mkEnableOption (lib.mdDoc "botamusique, a bot to play audio streams on mumble"); enable = mkEnableOption (lib.mdDoc "botamusique, a bot to play audio streams on mumble");
package = mkOption { package = mkPackageOption pkgs "botamusique" { };
type = types.package;
default = pkgs.botamusique;
defaultText = literalExpression "pkgs.botamusique";
description = lib.mdDoc "The botamusique package to use.";
};
settings = mkOption { settings = mkOption {
type = with types; submodule { type = with types; submodule {

View File

@ -20,16 +20,11 @@ in {
JACK Audio Connection Kit. You need to add yourself to the "jackaudio" group JACK Audio Connection Kit. You need to add yourself to the "jackaudio" group
''); '');
package = mkOption { package = mkPackageOption pkgs "jack2" {
example = "jack1";
} // {
# until jack1 promiscuous mode is fixed # until jack1 promiscuous mode is fixed
internal = true; internal = true;
type = types.package;
default = pkgs.jack2;
defaultText = literalExpression "pkgs.jack2";
example = literalExpression "pkgs.jack1";
description = lib.mdDoc ''
The JACK package to use.
'';
}; };
extraOptions = mkOption { extraOptions = mkOption {

View File

@ -9,12 +9,7 @@ in
services.jmusicbot = { services.jmusicbot = {
enable = mkEnableOption (lib.mdDoc "jmusicbot, a Discord music bot that's easy to set up and run yourself"); enable = mkEnableOption (lib.mdDoc "jmusicbot, a Discord music bot that's easy to set up and run yourself");
package = mkOption { package = mkPackageOption pkgs "jmusicbot" { };
type = types.package;
default = pkgs.jmusicbot;
defaultText = literalExpression "pkgs.jmusicbot";
description = lib.mdDoc "JMusicBot package to use";
};
stateDir = mkOption { stateDir = mkOption {
type = types.path; type = types.path;

View File

@ -19,12 +19,7 @@ in {
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "slimserver" { };
type = types.package;
default = pkgs.slimserver;
defaultText = literalExpression "pkgs.slimserver";
description = lib.mdDoc "Slimserver package to use.";
};
dataDir = mkOption { dataDir = mkOption {
type = types.path; type = types.path;

View File

@ -5,12 +5,8 @@ with lib;
let let
receiverSubmodule = { receiverSubmodule = {
options = { options = {
postgresqlPackage = mkOption { postgresqlPackage = mkPackageOption pkgs "postgresql" {
type = types.package; example = "postgresql_15";
example = literalExpression "pkgs.postgresql_15";
description = lib.mdDoc ''
PostgreSQL package to use.
'';
}; };
directory = mkOption { directory = mkOption {

View File

@ -57,12 +57,7 @@ in
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "restic-rest-server" { };
default = pkgs.restic-rest-server;
defaultText = literalExpression "pkgs.restic-rest-server";
type = types.package;
description = lib.mdDoc "Restic REST server package to use.";
};
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {

View File

@ -245,14 +245,7 @@ in
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "restic" { };
type = types.package;
default = pkgs.restic;
defaultText = literalExpression "pkgs.restic";
description = lib.mdDoc ''
Restic package to use.
'';
};
createWrapper = lib.mkOption { createWrapper = lib.mkOption {
type = lib.types.bool; type = lib.types.bool;

View File

@ -13,12 +13,7 @@ in
services.zrepl = { services.zrepl = {
enable = mkEnableOption (lib.mdDoc "zrepl"); enable = mkEnableOption (lib.mdDoc "zrepl");
package = mkOption { package = mkPackageOption pkgs "zrepl" { };
type = types.package;
default = pkgs.zrepl;
defaultText = literalExpression "pkgs.zrepl";
description = lib.mdDoc "Which package to use for zrepl";
};
settings = mkOption { settings = mkOption {
default = { }; default = { };

View File

@ -135,12 +135,7 @@ let
default = []; default = [];
}; };
package = mkOption { package = mkPackageOption pkgs [ "go-ethereum" "geth" ] { };
default = pkgs.go-ethereum.geth;
defaultText = literalExpression "pkgs.go-ethereum.geth";
type = types.package;
description = lib.mdDoc "Package to use as Go Ethereum node.";
};
}; };
}; };
in in

View File

@ -9,12 +9,7 @@ in
options.services.corosync = { options.services.corosync = {
enable = mkEnableOption (lib.mdDoc "corosync"); enable = mkEnableOption (lib.mdDoc "corosync");
package = mkOption { package = mkPackageOption pkgs "corosync" { };
type = types.package;
default = pkgs.corosync;
defaultText = literalExpression "pkgs.corosync";
description = lib.mdDoc "Package that should be used for corosync.";
};
clusterName = mkOption { clusterName = mkOption {
type = types.str; type = types.str;

View File

@ -199,12 +199,7 @@ with lib;
gatewayRole.enable = mkEnableOption (lib.mdDoc "gateway role for deploying hadoop configs"); gatewayRole.enable = mkEnableOption (lib.mdDoc "gateway role for deploying hadoop configs");
package = mkOption { package = mkPackageOption pkgs "hadoop" { };
type = types.package;
default = pkgs.hadoop;
defaultText = literalExpression "pkgs.hadoop";
description = lib.mdDoc "";
};
}; };

View File

@ -134,12 +134,7 @@ in
hbase = { hbase = {
package = mkOption { package = mkPackageOption pkgs "hbase" { };
type = types.package;
default = pkgs.hbase;
defaultText = literalExpression "pkgs.hbase";
description = mdDoc "HBase package";
};
rootdir = mkOption { rootdir = mkOption {
description = mdDoc '' description = mdDoc ''

View File

@ -15,12 +15,7 @@ in
options.services.k3s = { options.services.k3s = {
enable = mkEnableOption (lib.mdDoc "k3s"); enable = mkEnableOption (lib.mdDoc "k3s");
package = mkOption { package = mkPackageOption pkgs "k3s" { };
type = types.package;
default = pkgs.k3s;
defaultText = literalExpression "pkgs.k3s";
description = lib.mdDoc "Package that should be used for k3s";
};
role = mkOption { role = mkOption {
description = lib.mdDoc '' description = lib.mdDoc ''

View File

@ -122,12 +122,7 @@ in {
type = types.listOf (types.enum ["master" "node"]); type = types.listOf (types.enum ["master" "node"]);
}; };
package = mkOption { package = mkPackageOption pkgs "kubernetes" { };
description = lib.mdDoc "Kubernetes package to use.";
type = types.package;
default = pkgs.kubernetes;
defaultText = literalExpression "pkgs.kubernetes";
};
kubeconfig = mkKubeConfigOptions "Default kubeconfig"; kubeconfig = mkKubeConfigOptions "Default kubeconfig";

View File

@ -9,12 +9,7 @@ in
options.services.pacemaker = { options.services.pacemaker = {
enable = mkEnableOption (lib.mdDoc "pacemaker"); enable = mkEnableOption (lib.mdDoc "pacemaker");
package = mkOption { package = mkPackageOption pkgs "pacemaker" { };
type = types.package;
default = pkgs.pacemaker;
defaultText = literalExpression "pkgs.pacemaker";
description = lib.mdDoc "Package that should be used for pacemaker.";
};
}; };
# implementation # implementation

View File

@ -77,20 +77,18 @@ with lib;
description = lib.mdDoc "Spark log directory."; description = lib.mdDoc "Spark log directory.";
default = "/var/log/spark"; default = "/var/log/spark";
}; };
package = mkOption { package = mkPackageOption pkgs "spark" {
type = types.package; example = ''
description = lib.mdDoc "Spark package."; spark.overrideAttrs (super: rec {
default = pkgs.spark; pname = "spark";
defaultText = literalExpression "pkgs.spark"; version = "2.4.4";
example = literalExpression ''pkgs.spark.overrideAttrs (super: rec {
pname = "spark";
version = "2.4.4";
src = pkgs.fetchzip { src = pkgs.fetchzip {
url = "mirror://apache/spark/"''${pname}-''${version}/''${pname}-''${version}-bin-without-hadoop.tgz"; url = "mirror://apache/spark/"''${pname}-''${version}/''${pname}-''${version}-bin-without-hadoop.tgz";
sha256 = "1a9w5k0207fysgpxx6db3a00fs5hdc2ncx99x4ccy2s0v5ndc66g"; sha256 = "1a9w5k0207fysgpxx6db3a00fs5hdc2ncx99x4ccy2s0v5ndc66g";
}; };
})''; })
'';
}; };
}; };
}; };

View File

@ -27,14 +27,8 @@ in
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "boinc" {
type = types.package; example = "boinc-headless";
default = pkgs.boinc;
defaultText = literalExpression "pkgs.boinc";
example = literalExpression "pkgs.boinc-headless";
description = lib.mdDoc ''
Which BOINC package to use.
'';
}; };
dataDir = mkOption { dataDir = mkOption {

View File

@ -20,14 +20,7 @@ in
options.services.foldingathome = { options.services.foldingathome = {
enable = mkEnableOption (lib.mdDoc "Folding@home client"); enable = mkEnableOption (lib.mdDoc "Folding@home client");
package = mkOption { package = mkPackageOption pkgs "fahclient" { };
type = types.package;
default = pkgs.fahclient;
defaultText = literalExpression "pkgs.fahclient";
description = lib.mdDoc ''
Which Folding@home client to use.
'';
};
user = mkOption { user = mkOption {
type = types.nullOr types.str; type = types.nullOr types.str;

View File

@ -131,14 +131,10 @@ in
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "slurm" {
type = types.package; example = "slurm-full";
} // {
default = pkgs.slurm.override { enableX11 = ! cfg.enableSrunX11; }; default = pkgs.slurm.override { enableX11 = ! cfg.enableSrunX11; };
defaultText = literalExpression "pkgs.slurm";
example = literalExpression "pkgs.slurm-full";
description = lib.mdDoc ''
The package to use for slurm binaries.
'';
}; };
controlMachine = mkOption { controlMachine = mkOption {

View File

@ -229,12 +229,8 @@ in {
description = lib.mdDoc "Specifies port number on which the buildbot HTTP interface listens."; description = lib.mdDoc "Specifies port number on which the buildbot HTTP interface listens.";
}; };
package = mkOption { package = mkPackageOption pkgs "buildbot-full" {
type = types.package; example = "buildbot";
default = pkgs.buildbot-full;
defaultText = literalExpression "pkgs.buildbot-full";
description = lib.mdDoc "Package to use for buildbot.";
example = literalExpression "pkgs.buildbot";
}; };
packages = mkOption { packages = mkOption {

View File

@ -128,12 +128,8 @@ in {
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "python3Packages.buildbot-worker" {
type = types.package; example = "python2Packages.buildbot-worker";
default = pkgs.buildbot-worker;
defaultText = literalExpression "pkgs.python3Packages.buildbot-worker";
description = lib.mdDoc "Package to use for buildbot worker.";
example = literalExpression "pkgs.python2Packages.buildbot-worker";
}; };
packages = mkOption { packages = mkOption {

View File

@ -161,14 +161,7 @@ with lib;
default = {}; default = {};
}; };
package = mkOption { package = mkPackageOption pkgs "github-runner" { };
type = types.package;
description = lib.mdDoc ''
Which github-runner derivation to use.
'';
default = pkgs.github-runner;
defaultText = literalExpression "pkgs.github-runner";
};
ephemeral = mkOption { ephemeral = mkOption {
type = types.bool; type = types.bool;

View File

@ -195,12 +195,8 @@ in {
Time to wait until a graceful shutdown is turned into a forceful one. Time to wait until a graceful shutdown is turned into a forceful one.
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "gitlab-runner" {
type = types.package; example = "gitlab-runner_1_11";
default = pkgs.gitlab-runner;
defaultText = literalExpression "pkgs.gitlab-runner";
example = literalExpression "pkgs.gitlab-runner_1_11";
description = lib.mdDoc "Gitlab Runner package to use.";
}; };
extraPackages = mkOption { extraPackages = mkOption {
type = types.listOf types.package; type = types.listOf types.package;

View File

@ -16,7 +16,7 @@ let
mkRemovedOptionModule mkRemovedOptionModule
mkRenamedOptionModule mkRenamedOptionModule
types types
mkPackageOption
; ;
cfg = config.services.hercules-ci-agent; cfg = config.services.hercules-ci-agent;
@ -45,14 +45,7 @@ in
Support is available at [help@hercules-ci.com](mailto:help@hercules-ci.com). Support is available at [help@hercules-ci.com](mailto:help@hercules-ci.com).
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "hercules-ci-agent" { };
description = lib.mdDoc ''
Package containing the bin/hercules-ci-agent executable.
'';
type = types.package;
default = pkgs.hercules-ci-agent;
defaultText = literalExpression "pkgs.hercules-ci-agent";
};
settings = mkOption { settings = mkOption {
description = lib.mdDoc '' description = lib.mdDoc ''
These settings are written to the `agent.toml` file. These settings are written to the `agent.toml` file.

View File

@ -97,12 +97,7 @@ in
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "hydra_unstable" { };
type = types.package;
default = pkgs.hydra_unstable;
defaultText = literalExpression "pkgs.hydra_unstable";
description = lib.mdDoc "The Hydra package.";
};
hydraURL = mkOption { hydraURL = mkOption {
type = types.str; type = types.str;

View File

@ -79,12 +79,7 @@ in {
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "jenkins" { };
default = pkgs.jenkins;
defaultText = literalExpression "pkgs.jenkins";
type = types.package;
description = lib.mdDoc "Jenkins package to use.";
};
packages = mkOption { packages = mkOption {
default = [ pkgs.stdenv pkgs.git pkgs.jdk17 config.programs.ssh.package pkgs.nix ]; default = [ pkgs.stdenv pkgs.git pkgs.jdk17 config.programs.ssh.package pkgs.nix ];

View File

@ -47,14 +47,7 @@ in {
''; '';
}; };
javaPackage = mkOption { javaPackage = mkPackageOption pkgs "jdk" { };
default = pkgs.jdk;
defaultText = literalExpression "pkgs.jdk";
description = lib.mdDoc ''
Java package to install.
'';
type = types.package;
};
}; };
}; };

View File

@ -41,12 +41,7 @@ in
services.aerospike = { services.aerospike = {
enable = mkEnableOption (lib.mdDoc "Aerospike server"); enable = mkEnableOption (lib.mdDoc "Aerospike server");
package = mkOption { package = mkPackageOption pkgs "aerospike" { };
default = pkgs.aerospike;
defaultText = literalExpression "pkgs.aerospike";
type = types.package;
description = lib.mdDoc "Which Aerospike derivation to use";
};
workDir = mkOption { workDir = mkOption {
type = types.str; type = types.str;

View File

@ -11,6 +11,7 @@ let
recursiveUpdate recursiveUpdate
mdDoc mdDoc
mkEnableOption mkEnableOption
mkPackageOption
mkIf mkIf
mkOption mkOption
types types
@ -155,14 +156,8 @@ in
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "cassandra" {
type = types.package; example = "cassandra_3_11";
default = pkgs.cassandra;
defaultText = literalExpression "pkgs.cassandra";
example = literalExpression "pkgs.cassandra_3_11";
description = mdDoc ''
The Apache Cassandra package to use.
'';
}; };
jvmOpts = mkOption { jvmOpts = mkOption {

View File

@ -13,14 +13,7 @@ with lib;
enable = mkEnableOption (lib.mdDoc "ClickHouse database server"); enable = mkEnableOption (lib.mdDoc "ClickHouse database server");
package = mkOption { package = mkPackageOption pkgs "clickhouse" { };
type = types.package;
default = pkgs.clickhouse;
defaultText = lib.literalExpression "pkgs.clickhouse";
description = lib.mdDoc ''
ClickHouse package to use.
'';
};
}; };

View File

@ -145,13 +145,8 @@ in
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "cockroachdb" {
type = types.package; extraDescription = ''
default = pkgs.cockroachdb;
defaultText = literalExpression "pkgs.cockroachdb";
description = lib.mdDoc ''
The CockroachDB derivation to use for running the service.
This would primarily be useful to enable Enterprise Edition features This would primarily be useful to enable Enterprise Edition features
in your own custom CockroachDB build (Nixpkgs CockroachDB binaries in your own custom CockroachDB build (Nixpkgs CockroachDB binaries
only contain open source features and open source code). only contain open source features and open source code).

View File

@ -36,14 +36,7 @@ in {
enable = mkEnableOption (lib.mdDoc "CouchDB Server"); enable = mkEnableOption (lib.mdDoc "CouchDB Server");
package = mkOption { package = mkPackageOption pkgs "couchdb3" { };
type = types.package;
default = pkgs.couchdb3;
defaultText = literalExpression "pkgs.couchdb3";
description = lib.mdDoc ''
CouchDB package to use.
'';
};
adminUser = mkOption { adminUser = mkOption {
type = types.str; type = types.str;

View File

@ -42,13 +42,9 @@ in
enable = mkEnableOption (lib.mdDoc "the Firebird super server"); enable = mkEnableOption (lib.mdDoc "the Firebird super server");
package = mkOption { package = mkPackageOption pkgs "firebird" {
default = pkgs.firebird; example = "firebird_3";
defaultText = literalExpression "pkgs.firebird"; extraDescription = ''
type = types.package;
example = literalExpression "pkgs.firebird_3";
description = lib.mdDoc ''
Which Firebird package to be installed: `pkgs.firebird_3`
For SuperServer use override: `pkgs.firebird_3.override { superServer = true; };` For SuperServer use override: `pkgs.firebird_3.override { superServer = true; };`
''; '';
}; };

View File

@ -46,15 +46,7 @@ in {
Do not use this configuration for production nor for evaluating HBase performance. Do not use this configuration for production nor for evaluating HBase performance.
''); '');
package = mkOption { package = mkPackageOption pkgs "hbase" { };
type = types.package;
default = pkgs.hbase;
defaultText = literalExpression "pkgs.hbase";
description = lib.mdDoc ''
HBase package to use.
'';
};
user = mkOption { user = mkOption {
type = types.str; type = types.str;

View File

@ -116,12 +116,7 @@ in
type = types.bool; type = types.bool;
}; };
package = mkOption { package = mkPackageOption pkgs "influxdb" { };
default = pkgs.influxdb;
defaultText = literalExpression "pkgs.influxdb";
description = lib.mdDoc "Which influxdb derivation to use";
type = types.package;
};
user = mkOption { user = mkOption {
default = "influxdb"; default = "influxdb";

View File

@ -19,6 +19,7 @@ let
mapAttrsToList mapAttrsToList
mdDoc mdDoc
mkEnableOption mkEnableOption
mkPackageOption
mkIf mkIf
mkOption mkOption
nameValuePair nameValuePair
@ -278,12 +279,7 @@ in
services.influxdb2 = { services.influxdb2 = {
enable = mkEnableOption (mdDoc "the influxdb2 server"); enable = mkEnableOption (mdDoc "the influxdb2 server");
package = mkOption { package = mkPackageOption pkgs "influxdb2" { };
default = pkgs.influxdb2-server;
defaultText = literalExpression "pkgs.influxdb2";
description = mdDoc "influxdb2 derivation to use.";
type = types.package;
};
settings = mkOption { settings = mkOption {
default = { }; default = { };

View File

@ -14,12 +14,7 @@ in {
enable = mkEnableOption (lib.mdDoc "the MonetDB database server"); enable = mkEnableOption (lib.mdDoc "the MonetDB database server");
package = mkOption { package = mkPackageOption pkgs "monetdb" { };
type = types.package;
default = pkgs.monetdb;
defaultText = literalExpression "pkgs.monetdb";
description = lib.mdDoc "MonetDB package to use.";
};
user = mkOption { user = mkOption {
type = types.str; type = types.str;

View File

@ -31,14 +31,7 @@ in
enable = mkEnableOption (lib.mdDoc "the MongoDB server"); enable = mkEnableOption (lib.mdDoc "the MongoDB server");
package = mkOption { package = mkPackageOption pkgs "mongodb" { };
default = pkgs.mongodb;
defaultText = literalExpression "pkgs.mongodb";
type = types.package;
description = lib.mdDoc ''
Which MongoDB derivation to use.
'';
};
user = mkOption { user = mkOption {
type = types.str; type = types.str;

View File

@ -174,14 +174,7 @@ in {
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "neo4j" { };
type = types.package;
default = pkgs.neo4j;
defaultText = literalExpression "pkgs.neo4j";
description = lib.mdDoc ''
Neo4j package to use.
'';
};
readOnly = mkOption { readOnly = mkOption {
type = types.bool; type = types.bool;

View File

@ -91,13 +91,8 @@ in {
description = lib.mdDoc "Whether to enable the ldap server."; description = lib.mdDoc "Whether to enable the ldap server.";
}; };
package = mkOption { package = mkPackageOption pkgs "openldap" {
type = types.package; extraDescription = ''
default = pkgs.openldap;
defaultText = literalExpression "pkgs.openldap";
description = lib.mdDoc ''
OpenLDAP package to use.
This can be used to, for example, set an OpenLDAP package This can be used to, for example, set an OpenLDAP package
with custom overrides to enable modules or other with custom overrides to enable modules or other
functionality. functionality.

View File

@ -17,14 +17,7 @@ in {
enable = mkEnableOption (lib.mdDoc "OpenTSDB"); enable = mkEnableOption (lib.mdDoc "OpenTSDB");
package = mkOption { package = mkPackageOption pkgs "opentsdb" { };
type = types.package;
default = pkgs.opentsdb;
defaultText = literalExpression "pkgs.opentsdb";
description = lib.mdDoc ''
OpenTSDB package to use.
'';
};
user = mkOption { user = mkOption {
type = types.str; type = types.str;

View File

@ -82,14 +82,7 @@ in {
enable = mkEnableOption (lib.mdDoc "PostgreSQL connection pooler"); enable = mkEnableOption (lib.mdDoc "PostgreSQL connection pooler");
package = mkOption { package = mkPackageOption pkgs "pgbouncer" { };
type = types.package;
default = pkgs.pgbouncer;
defaultText = literalExpression "pkgs.pgbouncer";
description = lib.mdDoc ''
The pgbouncer package to use.
'';
};
openFirewall = mkOption { openFirewall = mkOption {
type = types.bool; type = types.bool;

View File

@ -46,14 +46,7 @@ in {
options.services.pgmanage = { options.services.pgmanage = {
enable = mkEnableOption (lib.mdDoc "PostgreSQL Administration for the web"); enable = mkEnableOption (lib.mdDoc "PostgreSQL Administration for the web");
package = mkOption { package = mkPackageOption pkgs "pgmanage" { };
type = types.package;
default = pkgs.pgmanage;
defaultText = literalExpression "pkgs.pgmanage";
description = lib.mdDoc ''
The pgmanage package to use.
'';
};
connections = mkOption { connections = mkOption {
type = types.attrsOf types.str; type = types.attrsOf types.str;

View File

@ -53,12 +53,8 @@ in
enableJIT = mkEnableOption (lib.mdDoc "JIT support"); enableJIT = mkEnableOption (lib.mdDoc "JIT support");
package = mkOption { package = mkPackageOption pkgs "postgresql" {
type = types.package; example = "postgresql_15";
example = literalExpression "pkgs.postgresql_15";
description = lib.mdDoc ''
PostgreSQL package to use.
'';
}; };
port = mkOption { port = mkOption {

View File

@ -54,12 +54,7 @@ in {
options = { options = {
services.redis = { services.redis = {
package = mkOption { package = mkPackageOption pkgs "redis" { };
type = types.package;
default = pkgs.redis;
defaultText = literalExpression "pkgs.redis";
description = lib.mdDoc "Which Redis derivation to use.";
};
vmOverCommit = mkEnableOption (lib.mdDoc '' vmOverCommit = mkEnableOption (lib.mdDoc ''
setting of vm.overcommit_memory to 1 setting of vm.overcommit_memory to 1

View File

@ -10,14 +10,7 @@ in {
services.surrealdb = { services.surrealdb = {
enable = mkEnableOption (lib.mdDoc "SurrealDB, a scalable, distributed, collaborative, document-graph database, for the realtime web"); enable = mkEnableOption (lib.mdDoc "SurrealDB, a scalable, distributed, collaborative, document-graph database, for the realtime web");
package = mkOption { package = mkPackageOption pkgs "surrealdb" { };
default = pkgs.surrealdb;
defaultText = literalExpression "pkgs.surrealdb";
type = types.package;
description = lib.mdDoc ''
Which surrealdb derivation to use.
'';
};
dbPath = mkOption { dbPath = mkOption {
type = types.str; type = types.str;

View File

@ -3,14 +3,7 @@ let cfg = config.services.victoriametrics; in
{ {
options.services.victoriametrics = with lib; { options.services.victoriametrics = with lib; {
enable = mkEnableOption (lib.mdDoc "victoriametrics"); enable = mkEnableOption (lib.mdDoc "victoriametrics");
package = mkOption { package = mkPackageOption pkgs "victoriametrics" { };
type = types.package;
default = pkgs.victoriametrics;
defaultText = literalExpression "pkgs.victoriametrics";
description = lib.mdDoc ''
The VictoriaMetrics distribution to use.
'';
};
listenAddress = mkOption { listenAddress = mkOption {
default = ":8428"; default = ":8428";
type = types.str; type = types.str;

View File

@ -32,12 +32,7 @@ in
enable = mkEnableOption (lib.mdDoc "GVfs, a userspace virtual filesystem"); enable = mkEnableOption (lib.mdDoc "GVfs, a userspace virtual filesystem");
# gvfs can be built with multiple configurations # gvfs can be built with multiple configurations
package = mkOption { package = mkPackageOption pkgs [ "gnome" "gvfs" ] { };
type = types.package;
default = pkgs.gnome.gvfs;
defaultText = literalExpression "pkgs.gnome.gvfs";
description = lib.mdDoc "Which GVfs package to use.";
};
}; };

View File

@ -25,14 +25,7 @@ in {
services.pipewire = { services.pipewire = {
enable = mkEnableOption (lib.mdDoc "pipewire service"); enable = mkEnableOption (lib.mdDoc "pipewire service");
package = mkOption { package = mkPackageOption pkgs "pipewire" { };
type = types.package;
default = pkgs.pipewire;
defaultText = literalExpression "pkgs.pipewire";
description = lib.mdDoc ''
The pipewire derivation to use.
'';
};
socketActivation = mkOption { socketActivation = mkOption {
default = true; default = true;

View File

@ -66,14 +66,7 @@ in
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "distcc" { };
type = types.package;
default = pkgs.distcc;
defaultText = literalExpression "pkgs.distcc";
description = lib.mdDoc ''
The distcc package to use.
'';
};
port = mkOption { port = mkOption {
type = types.port; type = types.port;

View File

@ -34,17 +34,10 @@ in {
''; '';
}; };
package = mkOption { # NOTE: We don't use top-level jupyter because we don't
type = types.package; # want to pass in JUPYTER_PATH but use .environment instead,
# NOTE: We don't use top-level jupyter because we don't # saving a rebuild.
# want to pass in JUPYTER_PATH but use .environment instead, package = mkPackageOption pkgs [ "python3" "pkgs" "notebook" ] { };
# saving a rebuild.
default = pkgs.python3.pkgs.notebook;
defaultText = literalExpression "pkgs.python3.pkgs.notebook";
description = lib.mdDoc ''
Jupyter package to use.
'';
};
command = mkOption { command = mkOption {
type = types.str; type = types.str;

View File

@ -39,14 +39,8 @@ in
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "rstudio-server" {
type = types.package; example = "rstudioServerWrapper.override { packages = [ pkgs.rPackages.ggplot2 ]; }";
default = pkgs.rstudio-server;
defaultText = literalExpression "pkgs.rstudio-server";
example = literalExpression "pkgs.rstudioServerWrapper.override { packages = [ pkgs.rPackages.ggplot2 ]; }";
description = lib.mdDoc ''
Rstudio server package to use. Can be set to rstudioServerWrapper to provide packages.
'';
}; };
rserverExtraConfig = mkOption { rserverExtraConfig = mkOption {

View File

@ -30,12 +30,7 @@ in
services.zammad = { services.zammad = {
enable = mkEnableOption (lib.mdDoc "Zammad, a web-based, open source user support/ticketing solution"); enable = mkEnableOption (lib.mdDoc "Zammad, a web-based, open source user support/ticketing solution");
package = mkOption { package = mkPackageOption pkgs "zammad" { };
type = types.package;
default = pkgs.zammad;
defaultText = literalExpression "pkgs.zammad";
description = lib.mdDoc "Zammad package to use.";
};
dataDir = mkOption { dataDir = mkOption {
type = types.path; type = types.path;

View File

@ -10,12 +10,7 @@ in
options.services.greetd = { options.services.greetd = {
enable = mkEnableOption (lib.mdDoc "greetd"); enable = mkEnableOption (lib.mdDoc "greetd");
package = mkOption { package = mkPackageOption pkgs [ "greetd" "greetd" ] { };
type = types.package;
default = pkgs.greetd.greetd;
defaultText = literalExpression "pkgs.greetd.greetd";
description = lib.mdDoc "The greetd package that should be used.";
};
settings = mkOption { settings = mkOption {
type = settingsFormat.type; type = settingsFormat.type;

View File

@ -63,14 +63,7 @@ in
}; };
package = mkOption { package = mkPackageOption pkgs "emacs" { };
type = types.package;
default = pkgs.emacs;
defaultText = literalExpression "pkgs.emacs";
description = lib.mdDoc ''
emacs derivation to use.
'';
};
defaultEditor = mkOption { defaultEditor = mkOption {
type = types.bool; type = types.bool;

View File

@ -8,14 +8,7 @@ in {
options.services.infinoted = { options.services.infinoted = {
enable = mkEnableOption (lib.mdDoc "infinoted"); enable = mkEnableOption (lib.mdDoc "infinoted");
package = mkOption { package = mkPackageOption pkgs "libinfinity" { };
type = types.package;
default = pkgs.libinfinity;
defaultText = literalExpression "pkgs.libinfinity";
description = lib.mdDoc ''
Package providing infinoted
'';
};
keyFile = mkOption { keyFile = mkOption {
type = types.nullOr types.path; type = types.nullOr types.path;

View File

@ -11,12 +11,7 @@ in
services.odoo = { services.odoo = {
enable = mkEnableOption (lib.mdDoc "odoo"); enable = mkEnableOption (lib.mdDoc "odoo");
package = mkOption { package = mkPackageOption pkgs "odoo" { };
type = types.package;
default = pkgs.odoo;
defaultText = literalExpression "pkgs.odoo";
description = lib.mdDoc "Odoo package to use.";
};
addons = mkOption { addons = mkOption {
type = with types; listOf package; type = with types; listOf package;

View File

@ -47,12 +47,12 @@ in
description = lib.mdDoc "Whether to start the web-ui. This is the preferred way of configuring things such as the steam guard token."; description = lib.mdDoc "Whether to start the web-ui. This is the preferred way of configuring things such as the steam guard token.";
}; };
package = mkOption { package = mkPackageOption pkgs [ "ArchiSteamFarm" "ui" ] {
type = types.package; extraDescription = ''
default = pkgs.ArchiSteamFarm.ui; ::: {.note}
defaultText = lib.literalExpression "pkgs.ArchiSteamFarm.ui"; Contents must be in lib/dist
description = :::
lib.mdDoc "Web-UI package to use. Contents must be in lib/dist."; '';
}; };
}; };
}; };
@ -65,12 +65,13 @@ in
description = lib.mdDoc "The Web-UI hosted on 127.0.0.1:1242."; description = lib.mdDoc "The Web-UI hosted on 127.0.0.1:1242.";
}; };
package = mkOption { package = mkPackageOption pkgs "ArchiSteamFarm" {
type = types.package; extraDescription = ''
default = pkgs.ArchiSteamFarm; ::: {.warning}
defaultText = lib.literalExpression "pkgs.ArchiSteamFarm"; Should always be the latest version, for security reasons,
description = since this module uses very new features and to not get out of sync with the Steam API.
lib.mdDoc "Package to use. Should always be the latest version, for security reasons, since this module uses very new features and to not get out of sync with the Steam API."; :::
'';
}; };
dataDir = mkOption { dataDir = mkOption {

View File

@ -15,13 +15,11 @@ in {
''; '';
}; };
package = mkOption { package = mkPackageOption pkgs "crossfire-server" {
type = types.package; extraDescription = ''
default = pkgs.crossfire-server; ::: {.note}
defaultText = literalExpression "pkgs.crossfire-server"; This will also be used for map/arch data, if you don't change {option}`dataDir`
description = lib.mdDoc '' :::
The package to use for the Crossfire server (and map/arch data, if you
don't change dataDir).
''; '';
}; };

Some files were not shown because too many files have changed in this diff Show More