diff options
author | Nikolay Amiantov <ab@fmap.me> | 2016-06-01 12:59:12 +0300 |
---|---|---|
committer | Nikolay Amiantov <ab@fmap.me> | 2016-06-01 12:59:12 +0300 |
commit | 164ead312e6c1c7eb455cbcd251cb7b603eef298 (patch) | |
tree | f930d6363ac964eb857f0074063d529dbc322a50 /nixos/modules | |
parent | b835f3e26202c0670103a1d622edbb438bae5fe1 (diff) | |
parent | 281db6bbc34d1d150beed792a34487523dd0a125 (diff) |
Merge pull request #15793 from abbradar/unity3d-pkg
Unity3D package
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/module-list.nix | 1 | ||||
-rw-r--r-- | nixos/modules/programs/unity3d.nix | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 487dc8a6d392..3944d7114c0b 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -79,6 +79,7 @@ ./programs/ssh.nix ./programs/ssmtp.nix ./programs/tmux.nix + ./programs/unity3d.nix ./programs/venus.nix ./programs/wvdial.nix ./programs/xfs_quota.nix 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 ]; + }; + +} |