mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
unity3d service: init
This commit is contained in:
parent
846893aabb
commit
281db6bbc3
2 changed files with 26 additions and 0 deletions
|
@ -79,6 +79,7 @@
|
||||||
./programs/ssh.nix
|
./programs/ssh.nix
|
||||||
./programs/ssmtp.nix
|
./programs/ssmtp.nix
|
||||||
./programs/tmux.nix
|
./programs/tmux.nix
|
||||||
|
./programs/unity3d.nix
|
||||||
./programs/venus.nix
|
./programs/venus.nix
|
||||||
./programs/wvdial.nix
|
./programs/wvdial.nix
|
||||||
./programs/xfs_quota.nix
|
./programs/xfs_quota.nix
|
||||||
|
|
25
nixos/modules/programs/unity3d.nix
Normal file
25
nixos/modules/programs/unity3d.nix
Normal file
|
@ -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 ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue