{ pkgs, sources, ... }: let nix-pkgs = import sources.nix-pkgs { inherit pkgs; }; in { services.django-apps.sites.bocal = { source = "https://git.dgnum.eu/DGNum/www-bocal"; branch = "main"; domain = "bocal.webapps.dgnum.eu"; nginx = { enableACME = true; forceSSL = true; }; webHookSecret = builtins.toFile "insecure-secret" "T5hNeDraMivRZLUkrekv&QeM"; python = pkgs.python3.override { packageOverrides = _: _: { inherit (nix-pkgs) django-cas-ng django-solo loadcredential; }; }; dependencies = ps: [ ps.django ps.django-cas-ng ps.django-markdownx ps.django-solo ps.markdown ps.pillow ps.loadcredential ]; credentials = { SECRET_KEY = builtins.toFile "insecure-key" "insecure-key"; }; environment = { DJANGO_SETTINGS_MODULE = "app.settings"; BOCAL_ALLOWED_HOSTS = [ "bocal.webapps.dgnum.eu" ]; BOCAL_RHOSTS_PATH = "/var/lib/django-apps/bocal/.rhosts"; }; }; }