mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +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 {
|
||||
basePackages = [ cfg.package ];
|
||||
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||
{
|
||||
basePackages = [ cfg.package ];
|
||||
|
||||
# TODO: Should we replace the .desktop file for this?
|
||||
wrappers.blender = {
|
||||
arg0 = lib.getExe' cfg.package "blender";
|
||||
env.BLENDER_SYSTEM_RESOURCES.value = lib.mkIf (builtins.length cfg.addons > 0) addons;
|
||||
};
|
||||
};
|
||||
# TODO: Should we replace the .desktop file for this?
|
||||
wrappers.blender = {
|
||||
arg0 = lib.getExe' cfg.package "blender";
|
||||
};
|
||||
}
|
||||
|
||||
(lib.mkIf (builtins.length cfg.addons > 0) {
|
||||
wrappers.blender.env.BLENDER_SYSTEM_RESOURCES.value = addons;
|
||||
})
|
||||
]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user