unity3d: use chromium-suid-sandbox

This commit is contained in:
Nikolay Amiantov
2016-08-08 10:49:00 +03:00
parent b2413e48ae
commit 1e8894f085
4 changed files with 6 additions and 31 deletions
-25
View File
@@ -1,25 +0,0 @@
{ config, lib, pkgs, ... }:
with lib;
let cfg = config.programs.unity3d;
in {
options = {
programs.unity3d.enable = mkEnableOption "Unity3D, a game development tool";
};
config = mkIf cfg.enable {
security.setuidOwners = [{
program = "unity-chrome-sandbox";
source = "${pkgs.unity3d.sandbox}/bin/unity-chrome-sandbox";
owner = "root";
#group = "root";
setuid = true;
#setgid = true;
}];
environment.systemPackages = [ pkgs.unity3d ];
};
}