diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 91743423..83d82918 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -60,6 +60,7 @@ javascript.enable = true; python.enable = true; rust.enable = true; + unityhub.enable = true; projects = { sakoEngine.enable = true; }; diff --git a/modules/dev/default.nix b/modules/dev/default.nix index c7260414..e09bd379 100644 --- a/modules/dev/default.nix +++ b/modules/dev/default.nix @@ -6,5 +6,6 @@ ./python.nix ./rust.nix ./projects + ./unityhub.nix ]; } diff --git a/modules/dev/unityhub.nix b/modules/dev/unityhub.nix new file mode 100644 index 00000000..ea370f0d --- /dev/null +++ b/modules/dev/unityhub.nix @@ -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 + ]; + }; +}