renge/netbox: Add plugins

nazuna
Simon Bruder 2023-08-12 13:59:03 +02:00
parent 6f67715a65
commit 0bdf13b3bd
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
2 changed files with 15 additions and 5 deletions

View File

@ -253,11 +253,11 @@
"poetry2nix": "poetry2nix"
},
"locked": {
"lastModified": 1686992369,
"narHash": "sha256-ElxqG+mvB3ZqNvpugZsvCcsd9Vq6JmlzF96i5Qya8OE=",
"lastModified": 1691841402,
"narHash": "sha256-9WYGqa6hAxoTuqjSGsNivkHECIWsA/ksDETbFBzfSxM=",
"ref": "refs/heads/master",
"rev": "fcd0dc1d7532403fead90e7aad4595133cc994e7",
"revCount": 52,
"rev": "3b8f90ed3a3828784f91800c32f1f83910ce966b",
"revCount": 55,
"type": "git",
"url": "https://git.sbruder.de/simon/nixpkgs-overlay"
},

View File

@ -1,4 +1,4 @@
{ config, pkgs, ... }:
{ config, lib, pkgs, ... }:
{
sops.secrets.netbox-secret-key = {
@ -10,6 +10,16 @@
enable = true;
package = pkgs.netbox;
secretKeyFile = config.sops.secrets.netbox-secret-key.path;
plugins = ps: with ps; [
netbox-inventory
netbox-topology-views
];
settings = {
PLUGINS = [
"netbox_inventory"
"netbox_topology_views"
];
};
};
services.nginx.virtualHosts."netbox.sbruder.de" = {