git.iko.soy/typeable/nixpkgs
on master help sign in
unity3d service: init
commit281db6bbc34d1d150beed792a34487523dd0a125 authorNikolay Amiantov <ab@fmap.me> dateSat 28 May 2016, 23:40 (11 years ago) parent846893a
2 files changed+26
nixos/modules/module-list.nix+1 nixos/modules/programs/unity3d.nix+25
nixos/modules/module-list.nix+1
@@ -79,6 +79,7 @@
7979 ./programs/ssh.nix
8080 ./programs/ssmtp.nix
8181 ./programs/tmux.nix
82+ ./programs/unity3d.nix
8283 ./programs/venus.nix
8384 ./programs/wvdial.nix
8485 ./programs/xfs_quota.nix
nixos/modules/programs/unity3d.nixnew file+25
@@ -0,0 +1,25 @@
1+{ config, lib, pkgs, ... }:
2+
3+with lib;
4+
5+let cfg = config.programs.unity3d;
6+in {
7+
8+ options = {
9+ programs.unity3d.enable = mkEnableOption "Unity3D, a game development tool";
10+ };
11+
12+ config = mkIf cfg.enable {
13+ security.setuidOwners = [{
14+ program = "unity-chrome-sandbox";
15+ source = "${pkgs.unity3d.sandbox}/bin/unity-chrome-sandbox";
16+ owner = "root";
17+ #group = "root";
18+ setuid = true;
19+ #setgid = true;
20+ }];
21+
22+ environment.systemPackages = [ pkgs.unity3d ];
23+ };
24+
25+}