Skip to content

Commit

Permalink
feat: fs hardening
Browse files Browse the repository at this point in the history
thanks poz :3
  • Loading branch information
sioodmy committed Jan 11, 2025
1 parent 0a5a6e5 commit a9b1da6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions system/security/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
packages = [pkgs.apparmor-profiles];
};
};
# credits: poz
fileSystems = let
defaults = ["nodev" "nosuid" "noexec"];
in {
"/boot".options = defaults;
"/var/log".options = defaults;
};
boot = {
blacklistedKernelModules = [
# Obscure network protocols
Expand Down

0 comments on commit a9b1da6

Please sign in to comment.