2024-01-11 12:45:01 +01:00
|
|
|
{ lib, ... }:
|
|
|
|
|
|
|
|
lib.extra.mkConfig {
|
|
|
|
enabledModules = [
|
|
|
|
# List of modules to enable
|
|
|
|
"dgn-fail2ban"
|
|
|
|
];
|
|
|
|
|
|
|
|
enabledServices = [
|
|
|
|
# List of services to enable
|
|
|
|
];
|
|
|
|
|
|
|
|
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-01-11 12:45:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
root = ./.;
|
|
|
|
}
|