forked from DGNum/infrastructure
feat(netbox): Add qr-codes
This commit is contained in:
parent
39d1d2999b
commit
22fb460650
2 changed files with 27 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
config,
|
||||
sources,
|
||||
lib,
|
||||
mkNixpkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
|
@ -13,12 +13,20 @@ in
|
|||
services = {
|
||||
netbox = {
|
||||
enable = true;
|
||||
package = (import sources.nixos-unstable { }).pkgs.netbox_3_7;
|
||||
package = (mkNixpkgs "nixos-unstable").netbox_3_7;
|
||||
secretKeyFile = "/dev/null";
|
||||
listenAddress = "127.0.0.1";
|
||||
plugins = p: [ p.netbox-qrcode ];
|
||||
settings = {
|
||||
ALLOWED_HOSTS = [ "netbox.dgnum.eu" ];
|
||||
REMOTE_AUTH_BACKEND = "social_core.backends.open_id_connect.OpenIdConnectAuth";
|
||||
PLUGINS = [ "netbox_qrcode" ];
|
||||
PLUGINS_CONFIG = {
|
||||
netbox_qrcode = {
|
||||
custom_text = "DGNum. contact@dgnum.eu";
|
||||
text_location = "down";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
extraConfig = lib.mkForce ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue