NetBox: Difference between revisions
m Acme to ACME link |
m Fixed inline code and added note about plugin id name difference |
||
| (One intermediate revision by the same user not shown) | |||
| Line 81: | Line 81: | ||
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 === | ||