Commit 01932120 authored by Minijackson's avatar Minijackson Committed by Yureka
Browse files

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
parent c55d02f4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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',