1 { config, lib, pkgs, ... }:
6 cfg = config.security.chromiumSuidSandbox;
7 sandbox = pkgs.chromium.sandbox;
11 (mkRenamedOptionModule [ "programs" "unity3d" "enable" ] [ "security" "chromiumSuidSandbox" "enable" ])
14 options.security.chromiumSuidSandbox.enable = mkOption {
18 Whether to install the Chromium SUID sandbox which is an executable that
19 Chromium may use in order to achieve sandboxing.
21 If you get the error "The SUID sandbox helper binary was found, but is not
22 configured correctly.", turning this on might help.
24 Also, if the URL chrome://sandbox tells you that "You are not adequately
25 sandboxed!", turning this on might resolve the issue.
29 config = mkIf cfg.enable {
30 environment.systemPackages = [ sandbox ];
31 security.wrappers.${sandbox.passthru.sandboxExecutableName} =
35 source = "${sandbox}/bin/${sandbox.passthru.sandboxExecutableName}";