diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-02-15 09:07:16 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-02-15 09:08:41 +0100 |
commit | f9cb2b56402a76b51fa9fd25a947372f5ec6ff81 (patch) | |
tree | c523e7377290b01371ed3e7f9848fadf289dd710 /nixos/modules | |
parent | a45821e7a849db511ea4aa1f19040645c3e8d0b3 (diff) | |
download | nixlib-f9cb2b56402a76b51fa9fd25a947372f5ec6ff81.tar nixlib-f9cb2b56402a76b51fa9fd25a947372f5ec6ff81.tar.gz nixlib-f9cb2b56402a76b51fa9fd25a947372f5ec6ff81.tar.bz2 nixlib-f9cb2b56402a76b51fa9fd25a947372f5ec6ff81.tar.lz nixlib-f9cb2b56402a76b51fa9fd25a947372f5ec6ff81.tar.xz nixlib-f9cb2b56402a76b51fa9fd25a947372f5ec6ff81.tar.zst nixlib-f9cb2b56402a76b51fa9fd25a947372f5ec6ff81.zip |
nixos/security.wrappers: use literalExample in documentation
It's much more readable when the example attrset is pretty printed instead of written as one line.
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/security/wrappers/default.nix | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/nixos/modules/security/wrappers/default.nix b/nixos/modules/security/wrappers/default.nix index cdf7e5a17650..98913a974fc9 100644 --- a/nixos/modules/security/wrappers/default.nix +++ b/nixos/modules/security/wrappers/default.nix @@ -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 |