nixos/tests/incus: add AppArmor test

Changed files
+10
nixos
+6
nixos/tests/incus/default.nix
···
inherit lts pkgs system;
storageZfs = true;
};
+
+
appArmor = incusTest {
+
inherit lts pkgs system;
+
appArmor = true;
+
allTests = true;
+
};
}
+4
nixos/tests/incus/incus-tests.nix
···
allTests ? false,
+
appArmor ? false,
featureUser ? allTests,
initLegacy ? true,
initSystemd ? true,
···
networking.hostId = "01234567";
networking.firewall.trustedInterfaces = [ "incusbr0" ];
+
+
security.apparmor.enable = appArmor;
+
services.dbus.apparmor = (if appArmor then "enabled" else "disabled");
services.lvm = {
boot.thin.enable = storageLvm;