fix: NetBox-4.7-Plugin-Kompat (qrcode 1.0.0, floorplan 0.10.0) + flake update

netbox-qrcode und netbox-floorplan-plugin deklarieren max. NetBox 4.6.x und
laden unter NetBox 4.7 nicht - beide auf die ersten 4.7-kompatiblen Releases
gehoben (s. COMPATIBILITY.md der jeweiligen Repos). Flake-Inputs aktualisiert.
This commit is contained in:
m3tam3re
2026-10-03 15:22:28 +02:00
parent 03db8d91cb
commit 56d0262065
2 changed files with 116 additions and 161 deletions
+41 -3
View File
@@ -10,17 +10,46 @@
staticRoot = "${config.services.netbox.dataDir}/static";
# nixpkgs >= 25.11: Plugin-Pakete liegen im passthru-Set netbox.plugins
# (python3Packages.netbox-* sind Throw-Stubs); pluginName = NetBox-Modulname
#
# nixpkgs-unstable liefert netbox-qrcode 0.0.21 und netbox-floorplan-plugin
# 0.9.2 — beide deklarieren max. NetBox 4.6.x und laden unter NetBox 4.7
# nicht ("requires NetBox maximum version 4.6.99"). Bis die Versionen im
# Modul-Set nachziehen, werden sie hier auf die ersten 4.7-kompatiblen
# Releases gehoben (qrcode 1.0.0 / floorplan 0.10.0, s. COMPATIBILITY.md
# der jeweiligen Repos).
netboxPlugins = with pkgs.unstable.netbox.plugins; [
netbox-dns
netbox-qrcode
(netbox-qrcode.overridePythonAttrs (old: rec {
version = "1.0.0";
src = pkgs.fetchFromGitHub {
owner = "netbox-community";
repo = "netbox-qrcode";
tag = "v${version}";
hash = "sha256-4BtK1//TfcNiFgw2U+S6SH58Nb/kAmFk+a/GAhQ/+SU=";
};
# setup.py deklariert ab 1.0.0 zusaetzlich 'packaging'
dependencies =
(old.dependencies or [])
++ [
pkgs.unstable.netbox.python.pkgs.packaging
];
}))
netbox-routing
netbox-topology-views
netbox-floorplan-plugin
(netbox-floorplan-plugin.overridePythonAttrs (old: rec {
version = "0.10.0";
src = pkgs.fetchFromGitHub {
owner = "netbox-community";
repo = "netbox-floorplan-plugin";
tag = "v${version}";
hash = "sha256-YVQ3sBh9FYiYiikReYruzSGdKMYrqx0tMWKcCAIrrOk=";
};
}))
];
in {
services.netbox = {
enable = true;
package = pkgs.unstable.netbox;
package = pkgs.unstable.netbox_4_7;
listenAddress = "127.0.0.1";
port = servicePort;
secretKeyFile = config.age.secrets.netbox-secret-key.path;
@@ -70,6 +99,15 @@ in {
'';
};
# NetBox >= 4.7 hat den 'housekeeping'-Management-Befehl entfernt
# (netbox-community/netbox#21565): Housekeeping laeuft seit NetBox 4.4
# automatisch als interner System-Job im RQ-Worker. Der Timer aus dem
# stabilen NixOS-Modul ruft den Befehl trotzdem taeglich auf und die Unit
# failed mit "Unknown command: 'housekeeping'" → beide Units maskieren.
# Kann entfallen, sobald der Modul das selbst korrekt behandelt.
systemd.services.netbox-housekeeping.enable = false;
systemd.timers.netbox-housekeeping.enable = false;
services.nginx = {
enable = true;
virtualHosts.netbox-static = {