27 lines
482 B
Nix
27 lines
482 B
Nix
{ lib, ... }:
|
|
|
|
lib.extra.mkConfig {
|
|
enabledModules = [
|
|
# List of modules to enable
|
|
"dgn-fail2ban"
|
|
];
|
|
|
|
enabledServices = [
|
|
# List of services to enable
|
|
];
|
|
|
|
extraConfig = {
|
|
dgn-fail2ban.jails = lib.extra.enableAttrs' "enabled" [
|
|
"sshd-bruteforce"
|
|
"sshd-timeout"
|
|
];
|
|
|
|
# Restrict access to this node
|
|
dgn-access-control.users.root = [ "thubrecht" ];
|
|
|
|
# Disable monitoring
|
|
dgn-node-monitoring.enable = false;
|
|
};
|
|
|
|
root = ./.;
|
|
}
|