Skip to content

Commit

Permalink
nixos/security.wrappers: use literalExample in documentation
Browse files Browse the repository at this point in the history
It's much more readable when the example attrset is pretty printed
instead of written as one line.
  • Loading branch information
bjornfor committed Feb 15, 2017
1 parent a45821e commit f9cb2b5
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions nixos/modules/security/wrappers/default.nix
Expand Up @@ -99,15 +99,17 @@ in
security.wrappers = lib.mkOption {
type = lib.types.attrs;
default = {};
example = {
sendmail.source = "/nix/store/.../bin/sendmail";
ping = {
source = "${pkgs.iputils.out}/bin/ping";
owner = "nobody";
group = "nogroup";
capabilities = "cap_net_raw+ep";
};
};
example = lib.literalExample
''
{ sendmail.source = "/nix/store/.../bin/sendmail";
ping = {
source = "${pkgs.iputils.out}/bin/ping";
owner = "nobody";
group = "nogroup";
capabilities = "cap_net_raw+ep";
};
}
'';
description = ''
This option allows the ownership and permissions on the setuid
wrappers for specific programs to be overridden from the
Expand Down

0 comments on commit f9cb2b5

Please sign in to comment.