formatting
This commit is contained in:
parent
185669d69b
commit
da98436a74
15
flake.nix
15
flake.nix
|
@ -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}";
|
||||||
|
|
Loading…
Reference in New Issue