Modularize dev/unity3d.nix
This commit is contained in:
parent
d9a56ceb87
commit
09f389fc29
|
@ -14,7 +14,7 @@
|
|||
./python.nix
|
||||
./rust.nix
|
||||
./scala.nix
|
||||
# ./unity3d.nix
|
||||
./unity3d.nix
|
||||
# ./zsh.nix
|
||||
];
|
||||
|
||||
|
|
|
@ -2,9 +2,19 @@
|
|||
#
|
||||
# I don't use Unity often, but when I do, it's in a team or with students.
|
||||
|
||||
{ pkgs, ... }:
|
||||
{ config, options, lib, pkgs, ... }:
|
||||
with lib;
|
||||
{
|
||||
my.packages = with pkgs; [
|
||||
unity3d
|
||||
];
|
||||
options.modules.dev.unity3d = {
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
};
|
||||
|
||||
config = mkIf config.modules.dev.unity3d.enable {
|
||||
my.packages = with pkgs; [
|
||||
unity3d
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue