dev.fron.io nixrc / d4cddf5
modules(weechat): use python rather than packageset alias Tony Olagbaiye 14 days ago
1 changed file(s) with 11 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
3030 inherit (cfg) init;
3131 };
3232 pythonOverride = {
33 python3Packages = cfg.pythonPackages;
33 python3Packages = cfg.python.pkgs;
3434 };
3535 defaultHomeDirectory = "${config.users.users.weechat.home or "~weechat"}/.weechat";
3636 weechatrc = "${config.users.users.weechat.home}/${config.environment.etc."weechat/weechatrc".target}";
4242 type = types.package;
4343 defaultText = "pkgs.weechat";
4444 default = cfg.packageWrapper cfg.packageUnwrapped { inherit configure; };
45 description = "Weechat package to use";
4546 };
4647
4748 packageUnwrapped = mkOption {
4849 type = types.package;
4950 defaultText = "pkgs.weechat-unwrapped";
5051 default = pkgs.weechat-unwrapped.override pythonOverride;
52 description = "Weechat-unwrapped package to use";
5153 };
5254
5355 packageWrapper = mkOption {
5456 type = types.unspecified;
5557 defaultText = "pkgs.wrapWeechat";
5658 default = pkgs.wrapWeechat.override pythonOverride;
59 description = "Weechat wrapper package to use";
5760 };
5861
59 pythonPackages = mkOption {
62 python = mkOption {
6063 type = types.unspecified;
61 defaultText = "pkgs.python3Packages";
62 example = literalExample "pkgs.pythonPackages";
63 default = pkgs.python3Packages;
64 defaultText = "pkgs.python3";
65 example = literalExample "pkgs.python";
66 default = pkgs.python3;
67 description = "Python package to use";
6468 };
6569
6670 plugins = {
6771 python = {
68 enable = mkOption {
69 type = types.bool;
72 enable = mkEnableOption "the python plugin" // {
7073 default = true;
7174 };
7275
7376 packages = mkOption {
7477 type = types.listOf drvAttr;
7578 default = [ ];
76 description = "Attributes or derivations from pythonPackages that scripts might depend on";
79 description = "Attributes or derivations from python packages that scripts might depend on";
7780 example = [ "weechat-matrix" ];
7881 };
7982 };