2024-12-12 14:41:43 +01:00
|
|
|
# SPDX-FileCopyrightText: 2024 Tom Hubrecht <tom.hubrecht@dgnum.eu>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: EUPL-1.2
|
|
|
|
|
2024-07-02 20:54:45 +02:00
|
|
|
{ lib, pkgs, ... }:
|
2024-01-11 12:45:01 +01:00
|
|
|
|
|
|
|
lib.extra.mkConfig {
|
|
|
|
enabledModules = [
|
|
|
|
# List of modules to enable
|
2024-07-02 20:54:45 +02:00
|
|
|
"dgn-web"
|
2024-01-11 12:45:01 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
enabledServices = [
|
|
|
|
# List of services to enable
|
2024-07-02 20:54:45 +02:00
|
|
|
"cas-eleves"
|
2024-07-09 10:47:30 +02:00
|
|
|
"kadenios"
|
2024-01-11 12:45:01 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
extraConfig = {
|
2024-06-26 22:25:40 +02:00
|
|
|
# Restrict access to this node
|
|
|
|
dgn-access-control.users.root = [ "thubrecht" ];
|
|
|
|
|
|
|
|
# Disable monitoring
|
|
|
|
dgn-node-monitoring.enable = false;
|
2024-07-02 20:54:45 +02:00
|
|
|
|
|
|
|
# Enable Postgres databases
|
|
|
|
services.postgresql = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
package = pkgs.postgresql_16;
|
|
|
|
};
|
2024-01-11 12:45:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
root = ./.;
|
|
|
|
}
|