!qol(restructure): heavy restructure
This commit is contained in:
21
modules/unityhub/home.nix
Normal file
21
modules/unityhub/home.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user