64b2588dd2
This is not ideal, since devenv is more for creating development environments, but it works
42 lines
774 B
Nix
42 lines
774 B
Nix
{pkgs, ...}: {
|
|
packages = with pkgs; [
|
|
coreutils
|
|
curl
|
|
fdroidserver
|
|
sops
|
|
git
|
|
cacert
|
|
jq
|
|
];
|
|
|
|
scripts = {
|
|
deploy-docker.exec = ''
|
|
devenv container copy processes
|
|
'';
|
|
};
|
|
|
|
services.nginx = {
|
|
enable = true;
|
|
httpConfig = builtins.readFile ./hosting/nginx-http.conf;
|
|
};
|
|
|
|
processes.updater.exec = ''
|
|
while true; do
|
|
${pkgs.writeShellScript "run-updater" (builtins.readFile ./hosting/update.sh)}
|
|
|
|
echo "Sleeping for 30 minutes..."
|
|
sleep 1800
|
|
done
|
|
'';
|
|
|
|
# environment variables for sops
|
|
# SOPS_PGP_FP
|
|
containers."processes" = {
|
|
name = "gitlab.julian-mutter.de/julian/fdroid-frajul";
|
|
registry = "docker://";
|
|
|
|
copyToRoot = []; # avoid copying this repo
|
|
maxLayers = 10;
|
|
};
|
|
}
|