feat: add ssh guard

This commit is contained in:
gwg313 2024-02-04 12:52:53 -05:00
parent 1b98ea698d
commit d655186dc0
Signed by: gwg313
GPG key ID: 60FF63B4826B7400
5 changed files with 30 additions and 0 deletions

View file

@ -20,6 +20,7 @@
../../common/nixos/restic.nix
../../common/nixos/ssh.nix
../../common/nixos/ssh_client.nix
../../common/nixos/ssh_guard.nix
../../common/gui/hyprland.nix
../../common/gui/thunar.nix
../../common/style/stylix.nix
@ -30,6 +31,7 @@
./auditd.nix
./kernel.nix
./sysctl.nix
./earlyoom.nix
# Or modules from other flakes (such as nixos-hardware):

View file

@ -0,0 +1,7 @@
{lib, ...}: {
boot.kernel.sysctl = {
# disable unprivileged user namespaces to decrease attack surface
# Enabled because breaks discord/element etc
"kernel.unprivileged_userns_clone" = lib.mkForce 1;
};
}