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