security: enable AppArmor (complain) on all Linux hosts

This commit is contained in:
Ryan Yin
2026-08-26 18:14:43 +08:00
parent b46bb471d8
commit 36c29a8371
7 changed files with 55 additions and 33 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{ mylib, ... }:
{
imports = mylib.scanPaths ./.;
imports = mylib.scanPaths ./. ++ [ (mylib.relativeToRoot "hardening/apparmor") ];
}
+4
View File
@@ -1,6 +1,7 @@
{
lib,
pkgs,
mylib,
...
}:
{
@@ -15,6 +16,9 @@
../base/user-group.nix
../../base
# AppArmor is wired via modules/nixos/base/default.nix for other hosts; this
# aarch64 server imports base files individually, so add it explicitly.
(mylib.relativeToRoot "hardening/apparmor")
];
# Servers run on the trusted internal LAN (NAT'd; WAN protected at the router).