treewide: add missing package option
Provide more customization to the binary to be installed.
This commit is contained in:
parent
fcdd04e0f9
commit
107352dde4
27 changed files with 111 additions and 48 deletions
|
|
@ -222,6 +222,8 @@ in {
|
|||
options.programs.hexchat = {
|
||||
enable = lib.mkEnableOption "HexChat, a graphical IRC client";
|
||||
|
||||
package = lib.mkPackageOption pkgs "hexchat" { nullable = true; };
|
||||
|
||||
channels = mkOption {
|
||||
type = types.attrsOf modChannelOption;
|
||||
default = { };
|
||||
|
|
@ -322,7 +324,7 @@ in {
|
|||
lib.platforms.linux)
|
||||
];
|
||||
|
||||
home.packages = [ pkgs.hexchat ];
|
||||
home.packages = lib.mkIf (cfg.package != null) [ cfg.package ];
|
||||
|
||||
xdg.configFile."hexchat" = mkIf (cfg.theme != null) {
|
||||
source = cfg.theme;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue