diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-05-28 23:40:12 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-05-29 17:38:36 +0300 |
commit | 281db6bbc34d1d150beed792a34487523dd0a125 (patch) | |
tree | e3b836593550c0055edf7b4f0b5429b1b85d390e /nixos/modules/programs/unity3d.nix | |
parent | 846893aabb414de12f301250b21859ddd3318d25 (diff) | |
download | nixlib-281db6bbc34d1d150beed792a34487523dd0a125.tar nixlib-281db6bbc34d1d150beed792a34487523dd0a125.tar.gz nixlib-281db6bbc34d1d150beed792a34487523dd0a125.tar.bz2 nixlib-281db6bbc34d1d150beed792a34487523dd0a125.tar.lz nixlib-281db6bbc34d1d150beed792a34487523dd0a125.tar.xz nixlib-281db6bbc34d1d150beed792a34487523dd0a125.tar.zst nixlib-281db6bbc34d1d150beed792a34487523dd0a125.zip |
unity3d service: init
Diffstat (limited to 'nixos/modules/programs/unity3d.nix')
-rw-r--r-- | nixos/modules/programs/unity3d.nix | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/nixos/modules/programs/unity3d.nix b/nixos/modules/programs/unity3d.nix new file mode 100644 index 000000000000..3c0ea26d9d56 --- /dev/null +++ b/nixos/modules/programs/unity3d.nix @@ -0,0 +1,25 @@ +{ 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 ]; + }; + +} |