fixed(unityhub@modules): actual config now
This commit is contained in:
@@ -1,8 +1,21 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
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
|
||||
home.file.".local/bin/unityhub".source = "${pkgs.unityhub}/bin/unityhub";
|
||||
file.".local/bin/unityhub".source = "${pkgs.unityhub}/bin/unityhub";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user