48 lines
994 B
Nix
48 lines
994 B
Nix
# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
|
|
#
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
|
|
{ config, ... }:
|
|
|
|
{
|
|
services.django-apps.sites.wikiens = {
|
|
source = "https://git.dgnum.eu/DGNum/wiki-eleves";
|
|
branch = "main";
|
|
domain = "wiki.eleves.ens.fr";
|
|
|
|
nginx = {
|
|
enableACME = true;
|
|
forceSSL = true;
|
|
};
|
|
|
|
webHookSecret = config.age.secrets."webhook-wikiens_token".path;
|
|
|
|
overlays.nix-pkgs = [
|
|
# Required packages
|
|
"django-allauth"
|
|
"django-allauth-ens"
|
|
"django-wiki"
|
|
"loadcredential"
|
|
|
|
# Dependencies
|
|
"django-allauth-cas"
|
|
"django-nyt"
|
|
"python-cas"
|
|
];
|
|
|
|
dependencies =
|
|
ps:
|
|
[
|
|
ps.django
|
|
ps.django-allauth-ens
|
|
ps.django-wiki
|
|
ps.loadcredential
|
|
ps.tinycss2
|
|
]
|
|
++ ps.django-allauth.optional-dependencies.socialaccount;
|
|
|
|
credentials = {
|
|
SECRET_KEY = config.age.secrets."dj_wikiens-secret_key_file".path;
|
|
};
|
|
};
|
|
}
|