Modularize dev/unity3d.nix
This commit is contained in:
parent
d9a56ceb87
commit
09f389fc29
|
@ -14,7 +14,7 @@
|
||||||
./python.nix
|
./python.nix
|
||||||
./rust.nix
|
./rust.nix
|
||||||
./scala.nix
|
./scala.nix
|
||||||
# ./unity3d.nix
|
./unity3d.nix
|
||||||
# ./zsh.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.
|
# 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; [
|
options.modules.dev.unity3d = {
|
||||||
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