python 3.9 -> python 3.10

(nixos 22.11 changed the default version, so some of our stuff broke)
This commit is contained in:
stuebinm 2022-12-17 15:54:31 +01:00
parent 1720b7bf81
commit 34a147afe6
2 changed files with 3 additions and 3 deletions

View file

@ -35,7 +35,7 @@ let
# since overrides don't accumulate, this does both the override we want
# and the one the netbox package would otherwise do, then disables overrides
netbox = pkgs.netbox.override rec {
python3 = (pkgs.python39.override {
python3 = (pkgs.python3.override {
packageOverrides = self: super: {
django = super.django_4;
social-auth-core = super.social-auth-core.overrideAttrs ( old: {

View file

@ -49,7 +49,7 @@ in {
env = [
"CONFIG_PATH=/persist/uffd/uffd.conf"
];
hook-pre-app = "exec:FLASK_APP=${uffd}/lib/python3.9/site-packages/uffd flask db upgrade";
hook-pre-app = "exec:FLASK_APP=${uffd}/lib/python3.10/site-packages/uffd flask db upgrade";
};
};
})).config.system.build.toplevel;
@ -59,7 +59,7 @@ in {
forceSSL = true;
locations = {
"/".proxyPass = "http://${config.containers.uffd.localAddress}:8080";
"/static".root = "${uffd}/lib/python3.9/site-packages/uffd";
"/static".root = "${uffd}/lib/python3.10/site-packages/uffd";
"/static/hacc.png".return = "302 https://infra4future.de/assets/img/logo_vernetzung.png";
"/static/infra4future.svg".return = "302 https://infra4future.de/assets/img/infra4future.svg";
"/static/hedgedoc.svg".return = "302 https://infra4future.de/assets/img/icons/hedgedoc.svg";