From 01932120abb9fc141995e92196083d3801cc1dfa Mon Sep 17 00:00:00 2001 From: Minijackson Date: Mon, 7 Nov 2022 13:57:13 +0100 Subject: [PATCH] nixos/netbox: set path of dynamic content By default this paths are set in the Nix store, and so no media, reports, or scripts could be added / modified --- nixos/modules/services/web-apps/netbox.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/modules/services/web-apps/netbox.nix b/nixos/modules/services/web-apps/netbox.nix index f09a8dfc5b21..7ae2d89adc47 100644 --- a/nixos/modules/services/web-apps/netbox.nix +++ b/nixos/modules/services/web-apps/netbox.nix @@ -9,6 +9,10 @@ let name = "configuration.py"; text = '' STATIC_ROOT = '${staticDir}' + MEDIA_ROOT = '${cfg.dataDir}/media' + REPORTS_ROOT = '${cfg.dataDir}/reports' + SCRIPTS_ROOT = '${cfg.dataDir}/scripts' + ALLOWED_HOSTS = ['*'] DATABASE = { 'NAME': 'netbox',