Something went wrong. Try again.
Something went wrong. Try again.
symfony-docker devenv.nix
1.0 kB · 31 lines
Nix
at main
1234567891011121314151617181920212223242526272829303132{ pkgs, config, ... }:
let # Mirrors root_domain and extra_domains in castor.php. domain = "app.test"; certs = "${config.devenv.root}/infrastructure/docker/services/router/certs";in{ # Host-side tools only. The application, its QA tools and the whole # infrastructure keep running in Docker through Castor. packages = [ (import ./nix/castor.nix { inherit pkgs; }) (import ./nix/ripwire.nix { inherit pkgs; system = pkgs.stdenv.system; }) pkgs.mkcert pkgs.symfony-cli ];
# Name resolution and TLS for the Traefik router. Both ask for sudo the first # time - hostctl edits /etc/hosts, mkcert installs its CA - so "castor start" # runs them itself rather than relying on the enterShell hook, which # devenv's own TUI can swallow silently. hosts = { "${domain}" = "127.0.0.1"; "www.${domain}" = "127.0.0.1"; "grafana.${domain}" = "127.0.0.1"; };
certificates = [ domain "*.${domain}" ]; certFile = "${certs}/cert.pem"; keyFile = "${certs}/key.pem";}