1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-23 11:39:46 +01:00

treewide: mkPackageOption -> mkPackageOptionMD

This commit is contained in:
Emily 2023-07-01 10:41:32 +01:00
parent 71df507159
commit e04de5b308
53 changed files with 60 additions and 59 deletions

View file

@ -33,7 +33,7 @@ in {
enable = mkEnableOption "aerc";
package = mkPackageOption pkgs "aerc" { };
package = mkPackageOptionMD pkgs "aerc" { };
extraAccounts = mkOption {
type = sectionsOrLines;

View file

@ -30,7 +30,7 @@ in {
useFriendlyNames = mkEnableOption "friendly names";
package = mkPackageOption pkgs "antidote" { };
package = mkPackageOptionMD pkgs "antidote" { };
};
config = mkIf cfg.enable {

View file

@ -182,7 +182,7 @@ in {
programs.borgmatic = {
enable = mkEnableOption "Borgmatic";
package = mkPackageOption pkgs "borgmatic" { };
package = mkPackageOptionMD pkgs "borgmatic" { };
backups = mkOption {
type = types.attrsOf configModule;

View file

@ -84,7 +84,7 @@ in {
options.programs.boxxy = {
enable = mkEnableOption "boxxy: Boxes in badly behaving applications";
package = mkPackageOption pkgs "boxxy" { };
package = mkPackageOptionMD pkgs "boxxy" { };
rules = mkOption {
type = types.listOf boxxyRulesOpts;

View file

@ -30,7 +30,7 @@ in {
options.programs.btop = {
enable = mkEnableOption "btop";
package = mkPackageOption pkgs "btop" { };
package = mkPackageOptionMD pkgs "btop" { };
settings = mkOption {
type = with types; attrsOf (oneOf [ bool float int str ]);

View file

@ -10,7 +10,7 @@ in {
options.programs.comodoro = {
enable = lib.mkEnableOption "Comodoro, a CLI to manage your time";
package = lib.mkPackageOption pkgs "comodoro" { };
package = lib.mkPackageOptionMD pkgs "comodoro" { };
settings = lib.mkOption {
type = lib.types.submodule { freeformType = tomlFormat.type; };

View file

@ -11,9 +11,9 @@ in {
enable = mkEnableOption
"discocss, a tiny Discord CSS injector for Linux and MacOS";
package = mkPackageOption pkgs "discocss" { };
package = mkPackageOptionMD pkgs "discocss" { };
discordPackage = mkPackageOption pkgs "discord" { };
discordPackage = mkPackageOptionMD pkgs "discord" { };
discordAlias = mkOption {
type = types.bool;

View file

@ -36,7 +36,7 @@ with lib;
'';
};
package = mkPackageOption pkgs "exa" { };
package = mkPackageOptionMD pkgs "exa" { };
};
config = let

View file

@ -27,7 +27,7 @@ in {
options.programs.feh = {
enable = mkEnableOption "feh - a fast and light image viewer";
package = mkPackageOption pkgs "feh" { };
package = mkPackageOptionMD pkgs "feh" { };
buttons = mkOption {
default = { };

View file

@ -2,7 +2,8 @@
let
inherit (lib) literalExpression mkEnableOption mkPackageOption mkOption mkIf;
inherit (lib)
literalExpression mkEnableOption mkPackageOptionMD mkOption mkIf;
cfg = config.programs.fuzzel;
@ -14,7 +15,7 @@ in {
options.programs.fuzzel = {
enable = mkEnableOption "fuzzel";
package = mkPackageOption pkgs "fuzzel" { };
package = mkPackageOptionMD pkgs "fuzzel" { };
settings = mkOption {
type = iniFormat.type;

View file

@ -13,7 +13,7 @@ in {
options.programs.git-cliff = {
enable = mkEnableOption "git-cliff changelog generator";
package = mkPackageOption pkgs "git-cliff" { };
package = mkPackageOptionMD pkgs "git-cliff" { };
settings = mkOption {
type = tomlFormat.type;

View file

@ -11,7 +11,7 @@ in {
programs.git-credential-oauth = {
enable = lib.mkEnableOption "Git authentication handler for OAuth";
package = lib.mkPackageOption pkgs "git-credential-oauth" { };
package = lib.mkPackageOptionMD pkgs "git-credential-oauth" { };
};
};

View file

@ -310,7 +310,7 @@ in {
'';
};
package = mkPackageOption pkgs "delta" { };
package = mkPackageOptionMD pkgs "delta" { };
options = mkOption {
type = with types;

View file

@ -13,7 +13,7 @@ in {
options.programs.havoc = {
enable = mkEnableOption "Havoc terminal";
package = mkPackageOption pkgs "havoc" { };
package = mkPackageOptionMD pkgs "havoc" { };
settings = mkOption {
type = iniFormat.type;

View file

@ -119,7 +119,7 @@ in {
options = {
programs.himalaya = {
enable = lib.mkEnableOption "the Himalaya email client";
package = lib.mkPackageOption pkgs "himalaya" { };
package = lib.mkPackageOptionMD pkgs "himalaya" { };
settings = lib.mkOption {
type = lib.types.submodule { freeformType = tomlFormat.type; };
default = { };

View file

@ -14,7 +14,7 @@ in {
Bash And Zsh shell history suggest box - easily view, navigate, search and
manage your command history'';
package = mkPackageOption pkgs "hstr" { };
package = mkPackageOptionMD pkgs "hstr" { };
enableBashIntegration = mkEnableOption "Bash integration" // {
default = true;

View file

@ -139,7 +139,7 @@ in {
'';
};
package = mkPackageOption pkgs "i3status" { };
package = mkPackageOptionMD pkgs "i3status" { };
};
config = mkIf cfg.enable {

View file

@ -16,7 +16,7 @@ in {
enable = mkEnableOption
"imv: a command line image viewer intended for use with tiling window managers";
package = mkPackageOption pkgs "imv" { };
package = mkPackageOptionMD pkgs "imv" { };
settings = mkOption {
default = { };

View file

@ -14,7 +14,7 @@ in {
enable =
mkEnableOption "a Git-compatible DVCS that is both simple and powerful";
package = mkPackageOption pkgs "jujutsu" { };
package = mkPackageOptionMD pkgs "jujutsu" { };
settings = mkOption {
type = tomlFormat.type;

View file

@ -14,7 +14,7 @@ in {
enable =
mkEnableOption "k9s - Kubernetes CLI To Manage Your Clusters In Style";
package = mkPackageOption pkgs "k9s" { };
package = mkPackageOptionMD pkgs "k9s" { };
settings = mkOption {
type = yamlFormat.type;

View file

@ -622,7 +622,7 @@ in {
programs.kakoune = {
enable = mkEnableOption "the kakoune text editor";
package = mkPackageOption pkgs "kakoune-unwrapped" { };
package = mkPackageOptionMD pkgs "kakoune-unwrapped" { };
config = mkOption {
type = types.nullOr configModule;

View file

@ -16,7 +16,7 @@ in {
options.programs.lazygit = {
enable = mkEnableOption "lazygit, a simple terminal UI for git commands";
package = mkPackageOption pkgs "lazygit" { };
package = mkPackageOptionMD pkgs "lazygit" { };
settings = mkOption {
type = yamlFormat.type;

View file

@ -21,7 +21,7 @@ in {
options.programs.ledger = {
enable = mkEnableOption "ledger, a double-entry accounting system";
package = mkPackageOption pkgs "ledger" { };
package = mkPackageOptionMD pkgs "ledger" { };
settings = mkOption {
type = with types; attrsOf (oneOf [ bool int str (listOf str) ]);

View file

@ -11,7 +11,7 @@ in {
options.programs.looking-glass-client = {
enable = mkEnableOption "looking-glass-client";
package = mkPackageOption pkgs "looking-glass-client" { };
package = mkPackageOptionMD pkgs "looking-glass-client" { };
settings = mkOption {
type = settingsFormat.type;

View file

@ -17,7 +17,7 @@ in {
enable = mkEnableOption
"mr, a tool to manage all your version control repositories";
package = mkPackageOption pkgs "mr" { };
package = mkPackageOptionMD pkgs "mr" { };
settings = mkOption {
type = iniFormat.type;

View file

@ -24,7 +24,7 @@ in {
options.programs.nheko = {
enable = mkEnableOption "Qt desktop client for Matrix";
package = mkPackageOption pkgs "nheko" { };
package = mkPackageOptionMD pkgs "nheko" { };
settings = mkOption {
type = iniFmt.type;

View file

@ -90,7 +90,7 @@ in {
programs.offlineimap = {
enable = mkEnableOption "OfflineIMAP";
package = mkPackageOption pkgs "offlineimap" {
package = mkPackageOptionMD pkgs "offlineimap" {
example = ''
pkgs.offlineimap.overridePythonAttrs ( old: {
propagatedBuildInputs = old.propagatedBuildInputs

View file

@ -20,7 +20,7 @@ in {
options.programs.oh-my-posh = {
enable = mkEnableOption "oh-my-posh, a prompt theme engine for any shell";
package = mkPackageOption pkgs "oh-my-posh" { };
package = mkPackageOptionMD pkgs "oh-my-posh" { };
settings = mkOption {
type = jsonFormat.type;

View file

@ -19,7 +19,7 @@ in {
enable =
mkEnableOption "pls, a modern replacement for <command>ls</command>";
package = mkPackageOption pkgs "pls" { };
package = mkPackageOptionMD pkgs "pls" { };
enableAliases = mkEnableOption "recommended pls aliases";
};

View file

@ -29,7 +29,7 @@ in {
options.programs.rbenv = {
enable = mkEnableOption "rbenv";
package = mkPackageOption pkgs "rbenv" { };
package = mkPackageOptionMD pkgs "rbenv" { };
plugins = mkOption {
type = types.listOf pluginModule;

View file

@ -12,7 +12,7 @@ in {
programs.ripgrep = {
enable = mkEnableOption "Ripgrep";
package = mkPackageOption pkgs "ripgrep" { };
package = mkPackageOptionMD pkgs "ripgrep" { };
arguments = mkOption {
type = with types; listOf str;

View file

@ -12,7 +12,7 @@ in {
programs.rtx = {
enable = mkEnableOption "RTX. Runtime Executor (asdf Rust clone)";
package = mkPackageOption pkgs "rtx" { };
package = mkPackageOptionMD pkgs "rtx" { };
enableBashIntegration = mkEnableOption "Bash Integration" // {
default = true;

View file

@ -361,7 +361,7 @@ in
options.programs.ssh = {
enable = mkEnableOption "SSH client configuration";
package = mkPackageOption pkgs "openssh" {
package = mkPackageOptionMD pkgs "openssh" {
nullable = true;
default = null;
extraDescription = "By default, the client provided by your system is used.";

View file

@ -19,7 +19,7 @@ in {
description = "Whether to enable swaylock.";
};
package = mkPackageOption pkgs "swaylock" { };
package = mkPackageOptionMD pkgs "swaylock" { };
settings = mkOption {
type = with types; attrsOf (oneOf [ bool float int str ]);

View file

@ -85,7 +85,7 @@ in {
'';
};
package = mkPackageOption pkgs "taskwarrior" { };
package = mkPackageOptionMD pkgs "taskwarrior" { };
};
};

View file

@ -14,7 +14,7 @@ in {
options = {
programs.vim-vint = {
enable = mkEnableOption "the Vint linter for Vimscript";
package = mkPackageOption pkgs "vim-vint" { };
package = mkPackageOptionMD pkgs "vim-vint" { };
settings = mkOption {
type = yamlFormat.type;

View file

@ -2,7 +2,7 @@
let
inherit (lib) all filterAttrs isStorePath literalExpression types;
inherit (lib.options) mkEnableOption mkPackageOption mkOption;
inherit (lib.options) mkEnableOption mkPackageOptionMD mkOption;
inherit (lib.modules) mkIf;
inherit (lib.strings) concatMapStrings;
inherit (builtins) toJSON;
@ -72,7 +72,7 @@ in {
options.programs.wlogout = with lib.types; {
enable = mkEnableOption "wlogout";
package = mkPackageOption pkgs "wlogout" { };
package = mkPackageOptionMD pkgs "wlogout" { };
layout = mkOption {
type = listOf wlogoutLayoutConfig;

View file

@ -17,7 +17,7 @@ in {
enable = mkEnableOption
"wofi: a launcher/menu program for wlroots based wayland compositors such as sway";
package = mkPackageOption pkgs "wofi" { };
package = mkPackageOptionMD pkgs "wofi" { };
settings = mkOption {
default = { };

View file

@ -142,7 +142,7 @@ let
options = {
enable = mkEnableOption "oh-my-zsh";
package = mkPackageOption pkgs "oh-my-zsh" { };
package = mkPackageOptionMD pkgs "oh-my-zsh" { };
plugins = mkOption {
default = [];
@ -212,7 +212,7 @@ let
options = {
enable = mkEnableOption "zsh syntax highlighting";
package = mkPackageOption pkgs "zsh-syntax-highlighting" { };
package = mkPackageOptionMD pkgs "zsh-syntax-highlighting" { };
styles = mkOption {
type = types.attrsOf types.str;
@ -236,7 +236,7 @@ in
programs.zsh = {
enable = mkEnableOption "Z shell (Zsh)";
package = mkPackageOption pkgs "zsh" { };
package = mkPackageOptionMD pkgs "zsh" { };
autocd = mkOption {
default = null;

View file

@ -11,7 +11,7 @@ in {
services.batsignal = {
enable = lib.mkEnableOption "Batsignal Battery Daemon";
package = lib.mkPackageOption pkgs "batsignal" { };
package = lib.mkPackageOptionMD pkgs "batsignal" { };
extraArgs = lib.mkOption {
type = with lib.types; listOf str;

View file

@ -34,7 +34,7 @@ in {
description = "Cachix URI to use.";
};
package = mkPackageOption pkgs "cachix" { };
package = mkPackageOptionMD pkgs "cachix" { };
credentialsFile = mkOption {
type = types.path;

View file

@ -7,7 +7,7 @@ in {
options.services.clipman = {
enable = mkEnableOption "clipman, a simple clipboard manager for Wayland";
package = mkPackageOption pkgs "clipman" { };
package = mkPackageOptionMD pkgs "clipman" { };
systemdTarget = mkOption {
type = types.str;

View file

@ -17,7 +17,7 @@ in {
options.services.comodoro = {
enable = lib.mkEnableOption "Comodoro server";
package = lib.mkPackageOption pkgs "comodoro" { };
package = lib.mkPackageOptionMD pkgs "comodoro" { };
environment = lib.mkOption {
type = with lib.types; attrsOf str;

View file

@ -11,7 +11,7 @@ in {
enable =
lib.mkEnableOption "CopyQ, a clipboard manager with advanced features";
package = lib.mkPackageOption pkgs "copyq" { };
package = lib.mkPackageOptionMD pkgs "copyq" { };
systemdTarget = lib.mkOption {
type = lib.types.str;

View file

@ -2,7 +2,7 @@
let
inherit (lib.options) mkEnableOption mkPackageOption mkOption;
inherit (lib.options) mkEnableOption mkPackageOptionMD mkOption;
inherit (lib.modules) mkIf;
cfg = config.services.listenbrainz-mpd;
@ -15,7 +15,7 @@ in {
options.services.listenbrainz-mpd = {
enable = mkEnableOption "listenbrainz-mpd";
package = mkPackageOption pkgs "listenbrainz-mpd" { };
package = mkPackageOptionMD pkgs "listenbrainz-mpd" { };
settings = mkOption {
type = tomlFormat.type;

View file

@ -13,7 +13,7 @@ in {
services.megasync = {
enable = mkEnableOption "Megasync client";
package = mkPackageOption pkgs "megasync" { };
package = mkPackageOptionMD pkgs "megasync" { };
};
};

View file

@ -27,7 +27,7 @@ in {
enable = lib.mkEnableOption
"mpd-mpris: An implementation of the MPRIS protocol for MPD";
package = lib.mkPackageOption pkgs "mpd-mpris" { };
package = lib.mkPackageOptionMD pkgs "mpd-mpris" { };
mpd = {
useLocal = lib.mkOption {

View file

@ -11,7 +11,7 @@ in {
services.owncloud-client = {
enable = mkEnableOption "Owncloud Client";
package = mkPackageOption pkgs "owncloud-client" { };
package = mkPackageOptionMD pkgs "owncloud-client" { };
};
};

View file

@ -12,7 +12,7 @@ in {
options.services.pass-secret-service = {
enable = mkEnableOption "Pass libsecret service";
package = mkPackageOption pkgs "pass-secret-service" { };
package = mkPackageOptionMD pkgs "pass-secret-service" { };
storePath = mkOption {
type = with types; nullOr str;

View file

@ -14,7 +14,7 @@ in {
options.services.pueue = {
enable = mkEnableOption "Pueue, CLI process scheduler and manager";
package = mkPackageOption pkgs "pueue" { };
package = mkPackageOptionMD pkgs "pueue" { };
settings = mkOption {
type = yamlFormat.type;

View file

@ -13,7 +13,7 @@ in {
services.safeeyes = {
enable = mkEnableOption "The Safe Eyes OSGI service";
package = mkPackageOption pkgs "safeeyes" { };
package = mkPackageOptionMD pkgs "safeeyes" { };
};
};

View file

@ -13,7 +13,7 @@ in {
xsession.windowManager.fluxbox = {
enable = mkEnableOption "Fluxbox window manager";
package = mkPackageOption pkgs "fluxbox" { };
package = mkPackageOptionMD pkgs "fluxbox" { };
init = mkOption {
type = types.lines;

View file

@ -208,7 +208,7 @@ in {
xsession.windowManager.i3 = {
enable = mkEnableOption "i3 window manager";
package = mkPackageOption pkgs "i3" { };
package = mkPackageOptionMD pkgs "i3" { };
config = mkOption {
type = types.nullOr configModule;