Modularize dev/unity3d.nix

This commit is contained in:
Henrik Lissner 2020-04-06 23:28:26 -04:00
parent d9a56ceb87
commit 09f389fc29
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 15 additions and 5 deletions

View file

@ -14,7 +14,7 @@
./python.nix ./python.nix
./rust.nix ./rust.nix
./scala.nix ./scala.nix
# ./unity3d.nix ./unity3d.nix
# ./zsh.nix # ./zsh.nix
]; ];

View file

@ -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
];
};
} }