From be2f33a9cf18489b6a91ed9d4d80c471ccc7ea68 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 16 Jul 2023 15:07:25 +0300 Subject: [PATCH] add unityhub --- hosts/sakotop/configuration.nix | 1 + modules/dev/default.nix | 1 + modules/dev/unityhub.nix | 16 ++++++++++++++++ 3 files changed, 18 insertions(+) create mode 100644 modules/dev/unityhub.nix 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 + ]; + }; +}