apparmor: fix typo in comment; improve formatting

(#158630)
* apparmor: Fix typo in comment

* apparmor: Formatting

- Normal line length
- Idiomatic Nix
- More clearly separate “code”
This commit is contained in:
Andrew Marshall 2022-02-18 08:53:17 -05:00 committed by GitHub
parent 722fb55f3e
commit 8027aebf37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -304,10 +304,10 @@ let
meta = apparmor-meta "kernel patches";
};
# Generate generic AppArmor rules in a file,
# from the closure of given rootPaths.
# To be included in an AppArmor profile like so:
# include "$(apparmorRulesFromClosure {} [pkgs.hello]}"
# Generate generic AppArmor rules in a file, from the closure of given
# rootPaths. To be included in an AppArmor profile like so:
#
# include "${apparmorRulesFromClosure { } [ pkgs.hello ]}"
apparmorRulesFromClosure =
{ # The store path of the derivation is given in $path
additionalRules ? []