some updates

This commit is contained in:
gwg313 2025-03-17 18:25:13 -04:00
parent e09709c638
commit e9adb6d552
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
6 changed files with 46 additions and 5 deletions

View file

@ -5,9 +5,14 @@
services.logrotate = {
settings = {
header = {
dateext = true;
};
"var/log/audit/audit.log" = {
frequency = "daily";
rotate = 3;
size = "100k";
};
};
};

View file

@ -1,5 +1,10 @@
{lib, ...}: {
imports = [./ssh.nix ./ssh_client.nix ./ssh_guard.nix];
{ lib, ... }:
{
imports = [
./ssh.nix
./ssh_client.nix
./ssh_guard.nix
];
ssh_client.enable = lib.mkDefault true;
ssh.enable = lib.mkDefault false;

View file

@ -31,7 +31,8 @@
# - 2: only admins can use ptrace (CAP_SYS_PTRACE capability required)
# - 3: disables ptrace completely, reboot is required to re-enable ptrace
# If you need ptrace to work, then avoid non-ancestor ptrace access to running processes and their credentials, and use value "1".
"kernel.yama.ptrace_scope" = 3;
# # breaks debuggers
# "kernel.yama.ptrace_scope" = 3;
# restrict kernel logs to root only
"kernel.dmesg_restrict" = 1;