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
|
|
@ -54,6 +54,8 @@ in {
|
|||
programs.astroid = {
|
||||
enable = lib.mkEnableOption "Astroid";
|
||||
|
||||
package = lib.mkPackageOption pkgs "astroid" { nullable = true; };
|
||||
|
||||
pollScript = mkOption {
|
||||
type = types.str;
|
||||
default = "";
|
||||
|
|
@ -113,7 +115,7 @@ in {
|
|||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = [ pkgs.astroid ];
|
||||
home.packages = lib.mkIf (cfg.package != null) [ cfg.package ];
|
||||
|
||||
xdg.configFile."astroid/config".source =
|
||||
jsonFormat.generate "astroid-config" finalConfig;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue