add unityhub

This commit is contained in:
Sakooooo 2023-07-16 15:07:25 +03:00
parent 020ab0e16d
commit be2f33a9cf
Signed by: sako
GPG key ID: 3FD715D87D7725E0
3 changed files with 18 additions and 0 deletions

View file

@ -60,6 +60,7 @@
javascript.enable = true; javascript.enable = true;
python.enable = true; python.enable = true;
rust.enable = true; rust.enable = true;
unityhub.enable = true;
projects = { projects = {
sakoEngine.enable = true; sakoEngine.enable = true;
}; };

View file

@ -6,5 +6,6 @@
./python.nix ./python.nix
./rust.nix ./rust.nix
./projects ./projects
./unityhub.nix
]; ];
} }

16
modules/dev/unityhub.nix Normal file
View file

@ -0,0 +1,16 @@
{ outputs, options, config, lib, pkgs, ...}:
with lib;
let
cfg = config.modules.dev.unity;
in
{
options.modules.dev.unity = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
users.users.sako.packages = with pkgs; [
unityhub
];
};
}