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
This commit is contained in:
Minijackson 2022-11-07 13:57:13 +01:00 committed by Yureka
parent c55d02f41b
commit 01932120ab

View file

@ -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',