Skip to content

Commit

Permalink
treewide: mkPackageOption -> mkPackageOptionMD
Browse files Browse the repository at this point in the history
  • Loading branch information
emilazy committed Jul 17, 2023
1 parent 71df507 commit e04de5b
Show file tree
Hide file tree
Showing 53 changed files with 60 additions and 59 deletions.
2 changes: 1 addition & 1 deletion modules/programs/aerc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ in {

enable = mkEnableOption "aerc";

package = mkPackageOption pkgs "aerc" { };
package = mkPackageOptionMD pkgs "aerc" { };

extraAccounts = mkOption {
type = sectionsOrLines;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/antidote.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ in {

useFriendlyNames = mkEnableOption "friendly names";

package = mkPackageOption pkgs "antidote" { };
package = mkPackageOptionMD pkgs "antidote" { };
};

config = mkIf cfg.enable {
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/borgmatic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ in {
programs.borgmatic = {
enable = mkEnableOption "Borgmatic";

package = mkPackageOption pkgs "borgmatic" { };
package = mkPackageOptionMD pkgs "borgmatic" { };

backups = mkOption {
type = types.attrsOf configModule;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/boxxy.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/btop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]);
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/comodoro.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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; };
Expand Down
4 changes: 2 additions & 2 deletions modules/programs/discocss.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/exa.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ with lib;
'';
};

package = mkPackageOption pkgs "exa" { };
package = mkPackageOptionMD pkgs "exa" { };
};

config = let
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/feh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = { };
Expand Down
5 changes: 3 additions & 2 deletions modules/programs/fuzzel.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

let

inherit (lib) literalExpression mkEnableOption mkPackageOption mkOption mkIf;
inherit (lib)
literalExpression mkEnableOption mkPackageOptionMD mkOption mkIf;

cfg = config.programs.fuzzel;

Expand All @@ -14,7 +15,7 @@ in {
options.programs.fuzzel = {
enable = mkEnableOption "fuzzel";

package = mkPackageOption pkgs "fuzzel" { };
package = mkPackageOptionMD pkgs "fuzzel" { };

settings = mkOption {
type = iniFormat.type;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/git-cliff.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/git-credential-oauth.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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" { };
};
};

Expand Down
2 changes: 1 addition & 1 deletion modules/programs/git.nix
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ in {
'';
};

package = mkPackageOption pkgs "delta" { };
package = mkPackageOptionMD pkgs "delta" { };

options = mkOption {
type = with types;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/havoc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/himalaya.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = { };
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/hstr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/i3status.nix
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ in {
'';
};

package = mkPackageOption pkgs "i3status" { };
package = mkPackageOptionMD pkgs "i3status" { };
};

config = mkIf cfg.enable {
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/imv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = { };
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/jujutsu.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/k9s.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/kakoune.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/lazygit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/ledger.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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) ]);
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/looking-glass-client.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/mr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/nheko.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/offlineimap.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/oh-my-posh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/pls.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/rbenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/ripgrep.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/rtx.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/ssh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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.";
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/swaylock.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]);
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/taskwarrior.nix
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ in {
'';
};

package = mkPackageOption pkgs "taskwarrior" { };
package = mkPackageOptionMD pkgs "taskwarrior" { };
};
};

Expand Down
2 changes: 1 addition & 1 deletion modules/programs/vim-vint.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions modules/programs/wlogout.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion modules/programs/wofi.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = { };
Expand Down
6 changes: 3 additions & 3 deletions modules/programs/zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down Expand Up @@ -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;
Expand All @@ -236,7 +236,7 @@ in
programs.zsh = {
enable = mkEnableOption "Z shell (Zsh)";

package = mkPackageOption pkgs "zsh" { };
package = mkPackageOptionMD pkgs "zsh" { };

autocd = mkOption {
default = null;
Expand Down
2 changes: 1 addition & 1 deletion modules/services/batsignal.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading

0 comments on commit e04de5b

Please sign in to comment.