1

formatting

This commit is contained in:
Motiejus Jakštys 2024-01-15 16:22:14 +02:00
parent 185669d69b
commit da98436a74

View File

@ -77,13 +77,12 @@
''; '';
}; };
# Run e11sync tools from the nix store
apps = { apps = {
e11sync-frontend = { e11sync-frontend = {
type = "app"; type = "app";
name = "e11sync-frontend"; name = "e11sync-frontend";
program = let program = toString (pkgs.writeShellScript "wrapper" ''
caddyFile = pkgs.writeTextFile { exec ${pkgs.caddy}/bin/caddy run --config ${pkgs.writeTextFile {
name = "Caddyfile"; name = "Caddyfile";
text = '' text = ''
{ {
@ -92,14 +91,9 @@
debug debug
} }
:8001 :8001
${builtins.readFile "${e11sync-frontend}"} ${builtins.readFile "${e11sync-frontend}"}
''; '';
}; }} --adapter caddyfile'');
in
toString (pkgs.writeShellScript "wrapper" ''
exec ${pkgs.caddy}/bin/caddy run --config ${caddyFile} --adapter caddyfile
'');
}; };
e11sync-backend = { e11sync-backend = {
type = "app"; type = "app";
@ -122,8 +116,7 @@
python3Packages.django-debug-toolbar python3Packages.django-debug-toolbar
python3Packages.flake8 python3Packages.flake8
# TODO: vim integration via EXITINT? # TODO: vim integration via EXITINT? See make check
# see 'make check'
python3Packages.autopep8 python3Packages.autopep8
]; ];
GEOIP_PATH = "${geoip-mmdb}"; GEOIP_PATH = "${geoip-mmdb}";