Skip to content

Commit 4a6ce49

Browse files
nixos/apparmor: use security.lsm option
1 parent 7794962 commit 4a6ce49

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

nixos/modules/security/apparmor.nix

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,7 @@ in
200200
sed '1,/\[qualifiers\]/d' $footer >> $out
201201
'';
202202

203-
boot.kernelParams = [
204-
"apparmor=1"
205-
"security=apparmor"
206-
];
203+
security.lsm = [ "apparmor" ];
207204

208205
systemd.services.apparmor = {
209206
after = [

0 commit comments

Comments
 (0)