1766606163
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
|
||||||
# Import Modules
|
# Import Modules
|
||||||
./modules/boot.nix
|
./modules/boot.nix
|
||||||
./modules/networking.nix
|
./modules/networking.nix
|
||||||
|
|||||||
@@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
security.apparmor = {
|
security.apparmor = {
|
||||||
enable = true;
|
enable = true;
|
||||||
killUnconfinedConfinables = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.fail2ban = {
|
services.fail2ban = {
|
||||||
@@ -50,7 +49,6 @@
|
|||||||
"kernel.kptr_restrict" = 2;
|
"kernel.kptr_restrict" = 2;
|
||||||
"kernel.perf_event_paranoid" = 3;
|
"kernel.perf_event_paranoid" = 3;
|
||||||
"kernel.yama.ptrace_scope" = 1;
|
"kernel.yama.ptrace_scope" = 1;
|
||||||
"kernel.unprivileged_bpf_disabled" = 1;
|
|
||||||
"kernel.sysrq" = 0;
|
"kernel.sysrq" = 0;
|
||||||
"kernel.randomize_va_space" = 2;
|
"kernel.randomize_va_space" = 2;
|
||||||
"kernel.kexec_load_disabled" = 1;
|
"kernel.kexec_load_disabled" = 1;
|
||||||
|
|||||||
@@ -11,13 +11,13 @@
|
|||||||
PasswordAuthentication = false;
|
PasswordAuthentication = false;
|
||||||
KbdInteractiveAuthentication = false;
|
KbdInteractiveAuthentication = false;
|
||||||
PermitEmptyPasswords = false;
|
PermitEmptyPasswords = false;
|
||||||
|
|
||||||
# Security hardening
|
# Security hardening
|
||||||
X11Forwarding = false;
|
X11Forwarding = false;
|
||||||
AllowTcpForwarding = false;
|
AllowTcpForwarding = false;
|
||||||
AllowAgentForwarding = false;
|
AllowAgentForwarding = false;
|
||||||
AllowStreamLocalForwarding = false;
|
AllowStreamLocalForwarding = false;
|
||||||
|
|
||||||
# Session settings
|
# Session settings
|
||||||
ClientAliveInterval = 300;
|
ClientAliveInterval = 300;
|
||||||
ClientAliveCountMax = 2;
|
ClientAliveCountMax = 2;
|
||||||
@@ -57,4 +57,6 @@
|
|||||||
|
|
||||||
services.avahi.publish.enable = true;
|
services.avahi.publish.enable = true;
|
||||||
services.avahi.publish.userServices = true;
|
services.avahi.publish.userServices = true;
|
||||||
|
|
||||||
|
services.gnome.gnome-remote-desktop.enable = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user