mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 17:41:12 +00:00
26 lines
505 B
Nix
26 lines
505 B
Nix
{ 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 ];
|
|
};
|
|
|
|
}
|