From 6ec565a7d7c2f2a53fc4f704bdc99cacdb6cebc4 Mon Sep 17 00:00:00 2001 From: Doloro1978 Date: Fri, 17 Oct 2025 13:21:59 +0100 Subject: [PATCH] fixed(unityhub@modules): actual config now --- nix/modules/unityhub/home.nix | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/nix/modules/unityhub/home.nix b/nix/modules/unityhub/home.nix index 26ca7bc..a7addcc 100644 --- a/nix/modules/unityhub/home.nix +++ b/nix/modules/unityhub/home.nix @@ -1,8 +1,21 @@ -{ pkgs, ... }: { - home.packages = with pkgs; [ - unityhub - ]; - # so alcom can use it - home.file.".local/bin/unityhub".source = "${pkgs.unityhub}/bin/unityhub"; + pkgs, + lib, + config, + ... +}: +let + cfg = config.modules.unityhub; +in +{ + options.modules.unityhub = { + enable = lib.mkEnableOption "unity"; + }; + config.home = lib.mkIf cfg.enable { + packages = with pkgs; [ + unityhub + ]; + # so alcom can use it + file.".local/bin/unityhub".source = "${pkgs.unityhub}/bin/unityhub"; + }; }