mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
wrapper-manager/programs/blender: refactor
This commit is contained in:
parent
4262ccfa89
commit
f6d80a44d1
@ -51,13 +51,18 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||||
basePackages = [ cfg.package ];
|
{
|
||||||
|
basePackages = [ cfg.package ];
|
||||||
|
|
||||||
# TODO: Should we replace the .desktop file for this?
|
# TODO: Should we replace the .desktop file for this?
|
||||||
wrappers.blender = {
|
wrappers.blender = {
|
||||||
arg0 = lib.getExe' cfg.package "blender";
|
arg0 = lib.getExe' cfg.package "blender";
|
||||||
env.BLENDER_SYSTEM_RESOURCES.value = lib.mkIf (builtins.length cfg.addons > 0) addons;
|
};
|
||||||
};
|
}
|
||||||
};
|
|
||||||
|
(lib.mkIf (builtins.length cfg.addons > 0) {
|
||||||
|
wrappers.blender.env.BLENDER_SYSTEM_RESOURCES.value = addons;
|
||||||
|
})
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user