2020-01-12 23:11:02 -08:00
|
|
|
# modules/dev/unity3d.nix --- https://unity.com
|
|
|
|
#
|
|
|
|
# I don't use Unity often, but when I do, it's in a team or with students.
|
2020-01-12 15:27:51 -08:00
|
|
|
|
2020-04-06 20:28:26 -07:00
|
|
|
{ config, options, lib, pkgs, ... }:
|
2020-10-01 15:46:04 -07:00
|
|
|
|
2020-04-06 20:28:26 -07:00
|
|
|
with lib;
|
2020-10-01 15:46:04 -07:00
|
|
|
with lib.my;
|
|
|
|
let cfg = config.modules.desktop.apps.unity3d;
|
|
|
|
in {
|
|
|
|
options.modules.desktop.apps.unity3d = {
|
|
|
|
enable = mkBoolOpt false;
|
2020-04-06 20:28:26 -07:00
|
|
|
};
|
|
|
|
|
2020-10-01 15:46:04 -07:00
|
|
|
config = mkIf cfg.enable {
|
|
|
|
user.packages = with pkgs; [
|
2020-04-06 20:28:26 -07:00
|
|
|
unity3d
|
|
|
|
];
|
|
|
|
};
|
2020-01-12 15:27:51 -08:00
|
|
|
}
|