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
|
|
|
|
"dgn-fail2ban"
|
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-02-02 10:51:31 +01:00
|
|
|
dgn-fail2ban.jails = lib.extra.enableAttrs' "enabled" [
|
|
|
|
"sshd-bruteforce"
|
|
|
|
"sshd-timeout"
|
|
|
|
];
|
2024-01-11 12:45:01 +01:00
|
|
|
|
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 = ./.;
|
|
|
|
}
|