From da98436a7432c58586be256cba169839d5895b61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 15 Jan 2024 16:22:14 +0200 Subject: [PATCH] formatting --- flake.nix | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/flake.nix b/flake.nix index 5862e1a..59ce6fa 100644 --- a/flake.nix +++ b/flake.nix @@ -77,13 +77,12 @@ ''; }; - # Run e11sync tools from the nix store apps = { e11sync-frontend = { type = "app"; name = "e11sync-frontend"; - program = let - caddyFile = pkgs.writeTextFile { + program = toString (pkgs.writeShellScript "wrapper" '' + exec ${pkgs.caddy}/bin/caddy run --config ${pkgs.writeTextFile { name = "Caddyfile"; text = '' { @@ -92,14 +91,9 @@ debug } :8001 - ${builtins.readFile "${e11sync-frontend}"} ''; - }; - in - toString (pkgs.writeShellScript "wrapper" '' - exec ${pkgs.caddy}/bin/caddy run --config ${caddyFile} --adapter caddyfile - ''); + }} --adapter caddyfile''); }; e11sync-backend = { type = "app"; @@ -122,8 +116,7 @@ python3Packages.django-debug-toolbar python3Packages.flake8 - # TODO: vim integration via EXITINT? - # see 'make check' + # TODO: vim integration via EXITINT? See make check python3Packages.autopep8 ]; GEOIP_PATH = "${geoip-mmdb}";