renge/netbox: Drop
It was disabled anyway.
This commit is contained in:
parent
9d7d7cb592
commit
bf7732bbb0
|
@ -16,7 +16,6 @@
|
||||||
./services/libreddit.nix
|
./services/libreddit.nix
|
||||||
./services/matrix
|
./services/matrix
|
||||||
./services/murmur.nix
|
./services/murmur.nix
|
||||||
#./services/netbox.nix
|
|
||||||
./services/nitter.nix
|
./services/nitter.nix
|
||||||
./services/password-hash-self-service.nix
|
./services/password-hash-self-service.nix
|
||||||
./services/prometheus.nix
|
./services/prometheus.nix
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
sops.secrets.netbox-secret-key = {
|
|
||||||
sopsFile = ../secrets.yaml;
|
|
||||||
owner = "netbox";
|
|
||||||
};
|
|
||||||
|
|
||||||
services.netbox = {
|
|
||||||
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" = {
|
|
||||||
enableACME = true;
|
|
||||||
forceSSL = true;
|
|
||||||
locations = {
|
|
||||||
"/".proxyPass = with config.services.netbox; "http://${listenAddress}:${toString port}";
|
|
||||||
"/static/".alias = "${config.services.netbox.dataDir}/static/";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# allow nginx access to static
|
|
||||||
users.groups."${config.users.users.netbox.name}".members = [ "nginx" ];
|
|
||||||
}
|
|
Loading…
Reference in a new issue