feat(nix-pkgs): use overlay
All checks were successful
Check meta / check_dns (pull_request) Successful in 15s
Check workflows / check_workflows (pull_request) Successful in 16s
Build all the nodes / netcore02 (pull_request) Successful in 21s
Check meta / check_meta (pull_request) Successful in 34s
Run pre-commit on all files / pre-commit (pull_request) Successful in 26s
Build the shell / build-shell (pull_request) Successful in 27s
Run pre-commit on all files / pre-commit (push) Successful in 26s
Build all the nodes / ap01 (pull_request) Successful in 1m23s
Build all the nodes / geo01 (pull_request) Successful in 1m43s
Build all the nodes / tower01 (pull_request) Successful in 1m52s
Build all the nodes / web03 (pull_request) Successful in 1m48s
Build all the nodes / hypervisor03 (pull_request) Successful in 2m0s
Build all the nodes / bridge01 (pull_request) Successful in 2m3s
Build all the nodes / web01 (pull_request) Successful in 1m59s
Build all the nodes / hypervisor02 (pull_request) Successful in 2m10s
Build all the nodes / hypervisor01 (pull_request) Successful in 2m13s
Build all the nodes / rescue01 (pull_request) Successful in 2m16s
Build all the nodes / geo02 (pull_request) Successful in 2m19s
Build all the nodes / web02 (pull_request) Successful in 2m11s
Build all the nodes / vault01 (pull_request) Successful in 2m24s
Build all the nodes / storage01 (pull_request) Successful in 2m38s
Build all the nodes / compute01 (pull_request) Successful in 2m59s
All checks were successful
Check meta / check_dns (pull_request) Successful in 15s
Check workflows / check_workflows (pull_request) Successful in 16s
Build all the nodes / netcore02 (pull_request) Successful in 21s
Check meta / check_meta (pull_request) Successful in 34s
Run pre-commit on all files / pre-commit (pull_request) Successful in 26s
Build the shell / build-shell (pull_request) Successful in 27s
Run pre-commit on all files / pre-commit (push) Successful in 26s
Build all the nodes / ap01 (pull_request) Successful in 1m23s
Build all the nodes / geo01 (pull_request) Successful in 1m43s
Build all the nodes / tower01 (pull_request) Successful in 1m52s
Build all the nodes / web03 (pull_request) Successful in 1m48s
Build all the nodes / hypervisor03 (pull_request) Successful in 2m0s
Build all the nodes / bridge01 (pull_request) Successful in 2m3s
Build all the nodes / web01 (pull_request) Successful in 1m59s
Build all the nodes / hypervisor02 (pull_request) Successful in 2m10s
Build all the nodes / hypervisor01 (pull_request) Successful in 2m13s
Build all the nodes / rescue01 (pull_request) Successful in 2m16s
Build all the nodes / geo02 (pull_request) Successful in 2m19s
Build all the nodes / web02 (pull_request) Successful in 2m11s
Build all the nodes / vault01 (pull_request) Successful in 2m24s
Build all the nodes / storage01 (pull_request) Successful in 2m38s
Build all the nodes / compute01 (pull_request) Successful in 2m59s
This commit is contained in:
parent
30c5f016c6
commit
07a014047f
11 changed files with 10 additions and 145 deletions
4
hive.nix
4
hive.nix
|
@ -11,8 +11,6 @@ let
|
||||||
|
|
||||||
sources = import ./sources.nix;
|
sources = import ./sources.nix;
|
||||||
|
|
||||||
inherit (sources) bootstrapNixpkgs;
|
|
||||||
|
|
||||||
lib = sources.fullLib;
|
lib = sources.fullLib;
|
||||||
|
|
||||||
inherit (lib.extra) mapSingleFuse;
|
inherit (lib.extra) mapSingleFuse;
|
||||||
|
@ -44,7 +42,7 @@ let
|
||||||
mkNixpkgsConfig =
|
mkNixpkgsConfig =
|
||||||
system:
|
system:
|
||||||
{
|
{
|
||||||
nixos = _: { }; # TODO: add nix-pkgs overlay here
|
nixos = _: { overlays = [ (import "${sources.nix-pkgs}/overlay.nix").default ]; };
|
||||||
zyxel-nwa50ax = mkLiminixConfig system;
|
zyxel-nwa50ax = mkLiminixConfig system;
|
||||||
netconf = _: { };
|
netconf = _: { };
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,30 +14,7 @@
|
||||||
let
|
let
|
||||||
inherit (lib) toLower;
|
inherit (lib) toLower;
|
||||||
|
|
||||||
python =
|
pythonEnv = pkgs.python312.withPackages (
|
||||||
let
|
|
||||||
python3 = pkgs.python312;
|
|
||||||
nix-pkgs = import sources.nix-pkgs { inherit pkgs python3; };
|
|
||||||
in
|
|
||||||
python3.override {
|
|
||||||
packageOverrides = _: _: {
|
|
||||||
inherit (nix-pkgs)
|
|
||||||
django-allauth
|
|
||||||
django-allauth-cas
|
|
||||||
django-browser-reload
|
|
||||||
django-bulma-forms
|
|
||||||
django-sass-processor
|
|
||||||
django-sass-processor-dart-sass
|
|
||||||
django-unfold
|
|
||||||
pykanidm
|
|
||||||
python-cas
|
|
||||||
loadcredential
|
|
||||||
xlwt
|
|
||||||
;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pythonEnv = python.withPackages (
|
|
||||||
ps:
|
ps:
|
||||||
[
|
[
|
||||||
ps.django
|
ps.django
|
||||||
|
|
|
@ -19,22 +19,13 @@ let
|
||||||
|
|
||||||
port = 9889;
|
port = 9889;
|
||||||
|
|
||||||
python3 =
|
python3 = pkgs.python312.override {
|
||||||
let
|
packageOverrides = _: prev: {
|
||||||
nix-pkgs = import sources.nix-pkgs {
|
django-cas-server = prev.django-cas-server.overridePythonAttrs (_: {
|
||||||
inherit pkgs;
|
patches = [ ./01-pytest-cas.patch ];
|
||||||
python3 = pkgs.python312;
|
});
|
||||||
};
|
|
||||||
in
|
|
||||||
pkgs.python312.override {
|
|
||||||
packageOverrides = _: _: {
|
|
||||||
inherit (nix-pkgs) django-browser-reload django-bulma-forms loadcredential;
|
|
||||||
|
|
||||||
django-cas-server = nix-pkgs.django-cas-server.overridePythonAttrs (_: {
|
|
||||||
patches = [ ./01-pytest-cas.patch ];
|
|
||||||
});
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
pythonEnv = python3.withPackages (ps: [
|
pythonEnv = python3.withPackages (ps: [
|
||||||
ps.django
|
ps.django
|
||||||
|
|
|
@ -16,28 +16,11 @@ let
|
||||||
host = "vote.dgnum.eu";
|
host = "vote.dgnum.eu";
|
||||||
port = 9888;
|
port = 9888;
|
||||||
|
|
||||||
python3 =
|
|
||||||
let
|
|
||||||
nix-pkgs = import sources.nix-pkgs { inherit pkgs; };
|
|
||||||
in
|
|
||||||
pkgs.python3.override {
|
|
||||||
packageOverrides = _: _: {
|
|
||||||
inherit (nix-pkgs)
|
|
||||||
authens
|
|
||||||
django-background-tasks
|
|
||||||
django-browser-reload
|
|
||||||
django-bulma-forms
|
|
||||||
django-translated-fields
|
|
||||||
loadcredential
|
|
||||||
;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
pythonEnv =
|
pythonEnv =
|
||||||
{
|
{
|
||||||
debug ? false,
|
debug ? false,
|
||||||
}:
|
}:
|
||||||
python3.withPackages (
|
pkgs.python3.withPackages (
|
||||||
ps:
|
ps:
|
||||||
[
|
[
|
||||||
ps.django
|
ps.django
|
||||||
|
|
|
@ -3,16 +3,10 @@
|
||||||
# SPDX-License-Identifier: EUPL-1.2
|
# SPDX-License-Identifier: EUPL-1.2
|
||||||
|
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
sources,
|
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
nix-pkgs = import sources.nix-pkgs { inherit pkgs; };
|
|
||||||
in
|
|
||||||
|
|
||||||
{
|
{
|
||||||
services.django-apps.sites.annuaire = {
|
services.django-apps.sites.annuaire = {
|
||||||
source = "https://git.dgnum.eu/DGNum/annuaire-eleves";
|
source = "https://git.dgnum.eu/DGNum/annuaire-eleves";
|
||||||
|
@ -26,10 +20,6 @@ in
|
||||||
|
|
||||||
webHookSecret = config.age.secrets."webhook-annuaire_token".path;
|
webHookSecret = config.age.secrets."webhook-annuaire_token".path;
|
||||||
|
|
||||||
python = pkgs.python3.override {
|
|
||||||
packageOverrides = _: _: { inherit (nix-pkgs) authens loadcredential; };
|
|
||||||
};
|
|
||||||
|
|
||||||
dependencies = ps: [
|
dependencies = ps: [
|
||||||
ps.django
|
ps.django
|
||||||
ps.pillow
|
ps.pillow
|
||||||
|
|
|
@ -3,16 +3,10 @@
|
||||||
# SPDX-License-Identifier: EUPL-1.2
|
# SPDX-License-Identifier: EUPL-1.2
|
||||||
|
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
sources,
|
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
nix-pkgs = import sources.nix-pkgs { inherit pkgs; };
|
|
||||||
in
|
|
||||||
|
|
||||||
{
|
{
|
||||||
services.django-apps.sites.bocal = {
|
services.django-apps.sites.bocal = {
|
||||||
source = "https://git.dgnum.eu/DGNum/www-bocal";
|
source = "https://git.dgnum.eu/DGNum/www-bocal";
|
||||||
|
@ -26,10 +20,6 @@ in
|
||||||
|
|
||||||
webHookSecret = config.age.secrets."webhook-bocal_token".path;
|
webHookSecret = config.age.secrets."webhook-bocal_token".path;
|
||||||
|
|
||||||
python = pkgs.python3.override {
|
|
||||||
packageOverrides = _: _: { inherit (nix-pkgs) django-cas-ng django-solo loadcredential; };
|
|
||||||
};
|
|
||||||
|
|
||||||
dependencies = ps: [
|
dependencies = ps: [
|
||||||
ps.django
|
ps.django
|
||||||
ps.django-cas-ng
|
ps.django-cas-ng
|
||||||
|
|
|
@ -3,16 +3,10 @@
|
||||||
# SPDX-License-Identifier: EUPL-1.2
|
# SPDX-License-Identifier: EUPL-1.2
|
||||||
|
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
sources,
|
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
nix-pkgs = import sources.nix-pkgs { inherit pkgs; };
|
|
||||||
in
|
|
||||||
|
|
||||||
{
|
{
|
||||||
services.django-apps.sites.ernestophone = {
|
services.django-apps.sites.ernestophone = {
|
||||||
source = "https://git.dgnum.eu/DGNum/ernestophone.ens.fr";
|
source = "https://git.dgnum.eu/DGNum/ernestophone.ens.fr";
|
||||||
|
@ -31,17 +25,6 @@ in
|
||||||
|
|
||||||
webHookSecret = config.age.secrets."webhook-ernestophone_token".path;
|
webHookSecret = config.age.secrets."webhook-ernestophone_token".path;
|
||||||
|
|
||||||
python = pkgs.python3.override {
|
|
||||||
packageOverrides = _: _: {
|
|
||||||
inherit (nix-pkgs)
|
|
||||||
django-avatar
|
|
||||||
django-cas-ng
|
|
||||||
django-solo
|
|
||||||
loadcredential
|
|
||||||
;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
dependencies = ps: [
|
dependencies = ps: [
|
||||||
ps.django
|
ps.django
|
||||||
ps.django-avatar
|
ps.django-avatar
|
||||||
|
|
|
@ -3,16 +3,10 @@
|
||||||
# SPDX-License-Identifier: EUPL-1.2
|
# SPDX-License-Identifier: EUPL-1.2
|
||||||
|
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
sources,
|
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
nix-pkgs = import sources.nix-pkgs { inherit pkgs; };
|
|
||||||
in
|
|
||||||
|
|
||||||
{
|
{
|
||||||
services.django-apps.sites.gestiojeux = {
|
services.django-apps.sites.gestiojeux = {
|
||||||
source = "https://git.dgnum.eu/DGNum/gestiojeux";
|
source = "https://git.dgnum.eu/DGNum/gestiojeux";
|
||||||
|
@ -31,18 +25,8 @@ in
|
||||||
module = "gestiojeux";
|
module = "gestiojeux";
|
||||||
};
|
};
|
||||||
|
|
||||||
python = pkgs.python3.override {
|
|
||||||
packageOverrides = _: _: {
|
|
||||||
inherit (nix-pkgs)
|
|
||||||
django-autoslug
|
|
||||||
django-cas-ng
|
|
||||||
loadcredential
|
|
||||||
markdown-icons
|
|
||||||
;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
django = ps: ps.django_4;
|
django = ps: ps.django_4;
|
||||||
|
|
||||||
dependencies = ps: [
|
dependencies = ps: [
|
||||||
ps.django-autoslug
|
ps.django-autoslug
|
||||||
ps.loadcredential
|
ps.loadcredential
|
||||||
|
|
|
@ -4,15 +4,9 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pkgs,
|
|
||||||
sources,
|
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
nix-pkgs = import sources.nix-pkgs { inherit pkgs; };
|
|
||||||
in
|
|
||||||
|
|
||||||
{
|
{
|
||||||
services.webhook.extraArgs = [ "-debug" ];
|
services.webhook.extraArgs = [ "-debug" ];
|
||||||
services.django-apps.sites.interludes = {
|
services.django-apps.sites.interludes = {
|
||||||
|
@ -36,10 +30,6 @@ in
|
||||||
|
|
||||||
dbType = "sqlite";
|
dbType = "sqlite";
|
||||||
|
|
||||||
python = pkgs.python3.override {
|
|
||||||
packageOverrides = _: _: { inherit (nix-pkgs) python-cas loadcredential; };
|
|
||||||
};
|
|
||||||
|
|
||||||
django = ps: ps.django_4;
|
django = ps: ps.django_4;
|
||||||
dependencies = ps: [
|
dependencies = ps: [
|
||||||
ps.loadcredential
|
ps.loadcredential
|
||||||
|
|
|
@ -3,16 +3,10 @@
|
||||||
# SPDX-License-Identifier: EUPL-1.2
|
# SPDX-License-Identifier: EUPL-1.2
|
||||||
|
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
sources,
|
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
nix-pkgs = import sources.nix-pkgs { inherit pkgs; };
|
|
||||||
in
|
|
||||||
|
|
||||||
{
|
{
|
||||||
services.django-apps.sites.wikiens = {
|
services.django-apps.sites.wikiens = {
|
||||||
source = "https://git.dgnum.eu/DGNum/wiki-eleves";
|
source = "https://git.dgnum.eu/DGNum/wiki-eleves";
|
||||||
|
@ -26,17 +20,6 @@ in
|
||||||
|
|
||||||
webHookSecret = config.age.secrets."webhook-wikiens_token".path;
|
webHookSecret = config.age.secrets."webhook-wikiens_token".path;
|
||||||
|
|
||||||
python = pkgs.python3.override {
|
|
||||||
packageOverrides = _: _: {
|
|
||||||
inherit (nix-pkgs)
|
|
||||||
django-allauth
|
|
||||||
django-allauth-ens
|
|
||||||
django-wiki
|
|
||||||
loadcredential
|
|
||||||
;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
dependencies =
|
dependencies =
|
||||||
ps:
|
ps:
|
||||||
[
|
[
|
||||||
|
|
|
@ -392,10 +392,6 @@ in
|
||||||
webhook = {
|
webhook = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
package = pkgs.webhook.overrideAttrs (old: {
|
|
||||||
patches = (old.patches or [ ]) ++ [ ./01-webhook.patch ];
|
|
||||||
});
|
|
||||||
|
|
||||||
# extraArgs = [ "-debug" ];
|
# extraArgs = [ "-debug" ];
|
||||||
|
|
||||||
# Only listen on localhost
|
# Only listen on localhost
|
||||||
|
|
Loading…
Reference in a new issue