1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat: get my repos via flake

This commit is contained in:
2021-12-31 16:57:45 +01:00
parent a6792399f1
commit a0fdfbef2b
9 changed files with 132 additions and 77 deletions

View File

@@ -1,13 +1,7 @@
{ pkgs, lib, ... }:
let
port = 5703;
geogen = (pkgs.fetchFromGitHub {
owner = "kmein";
repo = "scripts";
rev = "8945430f27a8c6fd632dd35382cb094abe3543ff";
sha256 = "1djyxkynypxsrmdf6idgjszqpcgqyq607rrsvl58p2bpymmwibzb";
}) + "/onomastics";
inherit (pkgs.callPackage geogen {}) dependencyEnv;
geogen = pkgs.callPackage "${<scripts>}/onomastics" {};
in
{
systemd.services.names = {
@@ -20,7 +14,7 @@ in
script = ''
cd $(mktemp -d)
ln -s "${geogen}/wsgi.py" wsgi.py
${dependencyEnv}/bin/gunicorn wsgi:app -b :${toString port}
${geogen.dependencyEnv}/bin/gunicorn wsgi:app -b :${toString port}
'';
};