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 | |
parent | 846893aabb414de12f301250b21859ddd3318d25 (diff) |
unity3d service: init
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 be41b5ebcdd7..6003b4b2dd6e 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 ]; + }; + +} |