NetBox: Difference between revisions
m →With Transport encryption: forget to add 443 at with TLS encryption |
m Fixed inline code and added note about plugin id name difference |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 78: | Line 78: | ||
} | } | ||
</syntaxhighlight>For more acme settings and further instruction, please look here [[ | </syntaxhighlight>For more acme settings and further instruction, please look here [[ACME]]. | ||
For more nginx settings and further instruction, please look here [[Nginx|Nginx.]] | For more nginx settings and further instruction, please look here [[Nginx|Nginx.]] | ||
=== Plugins === | |||
The NixOS module supports plugins from nixpkgs. However, at the moment only a small set of plugins is packaged in nixpkgs and is available as part of [https://search.nixos.org/packages?type=packages&query=python3Packages+netbox python3Packages]. The documentation for plugins is being worked on and discussed in [https://github.com/NixOS/nixpkgs/issues/261522 #261522]. | |||
To include a plugin:<syntaxhighlight lang="nix"> | |||
{ pkgs, ... }: { | |||
services.netbox = { | |||
plugins = ps: with ps; [ ps.netbox-reorder-rack ]; | |||
settings.PLUGINS = ["netbox_reorder_rack"]; | |||
}; | |||
} | |||
</syntaxhighlight>The plugin identifier for <source lang="nix" enclose="none">services.netbox.settings.PLUGINS</source> is usually contained in the official documentation for the plugin. It usually is slightly different from the package name. | |||
=== Setup Superuser === | === Setup Superuser === | ||