From 96e36bf1ba7f7f90898950b1c3f3befbbd06f879 Mon Sep 17 00:00:00 2001 From: Martin Milata Date: Sat, 29 Feb 2020 18:55:53 +0100 Subject: [PATCH] nixos/firejail: add example for wrappedBinaries --- nixos/modules/programs/firejail.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nixos/modules/programs/firejail.nix b/nixos/modules/programs/firejail.nix index 74c3e4425a7c..0abdde5ddebd 100644 --- a/nixos/modules/programs/firejail.nix +++ b/nixos/modules/programs/firejail.nix @@ -25,8 +25,14 @@ in { enable = mkEnableOption "firejail"; wrappedBinaries = mkOption { - type = types.attrs; + type = types.attrsOf types.path; default = {}; + example = literalExample '' + { + firefox = "''${lib.getBin pkgs.firefox}/bin/firefox"; + mpv = "''${lib.getBin pkgs.mpv}/bin/mpv"; + } + ''; description = '' Wrap the binaries in firejail and place them in the global path.