mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-25 12:19:12 +00:00
profiles/desktop: make Blender optional
Only when the Blender Nix module is not configured.
This commit is contained in:
parent
e1abb88f83
commit
e4d23b596c
@ -1,5 +1,5 @@
|
|||||||
# Enables all of my usual setup for desktop-oriented stuff.
|
# Enables all of my usual setup for desktop-oriented stuff.
|
||||||
{ config, options, lib, pkgs, ... }:
|
{ config, options, lib, pkgs, osConfig ? { }, ... }:
|
||||||
|
|
||||||
let cfg = config.profiles.desktop;
|
let cfg = config.profiles.desktop;
|
||||||
in {
|
in {
|
||||||
@ -17,7 +17,6 @@ in {
|
|||||||
(lib.mkIf cfg.graphics.enable {
|
(lib.mkIf cfg.graphics.enable {
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
aseprite # Pixel art wannabe tool.
|
aseprite # Pixel art wannabe tool.
|
||||||
blender # 3D modelling wannabe tool.
|
|
||||||
emulsion-palette # Manage your color palettes.
|
emulsion-palette # Manage your color palettes.
|
||||||
eyedropper # Gotta keep your monitor moist.
|
eyedropper # Gotta keep your monitor moist.
|
||||||
inkscape-with-extensions # Illustration wannabe tool.
|
inkscape-with-extensions # Illustration wannabe tool.
|
||||||
@ -27,7 +26,7 @@ in {
|
|||||||
ffmpeg-full # Ah yes, everyman's multimedia swiss army knife.
|
ffmpeg-full # Ah yes, everyman's multimedia swiss army knife.
|
||||||
imagemagick # Ah yes, everyman's image manipulation tool.
|
imagemagick # Ah yes, everyman's image manipulation tool.
|
||||||
gmic # Don't let the gimmicks fool you, it's a magical image framework.
|
gmic # Don't let the gimmicks fool you, it's a magical image framework.
|
||||||
];
|
] ++ (lib.optional (osConfig ? programs.blender.enable && !osConfig.programs.blender.enable) blender);
|
||||||
})
|
})
|
||||||
|
|
||||||
(lib.mkIf cfg.audio.enable {
|
(lib.mkIf cfg.audio.enable {
|
||||||
|
Loading…
Reference in New Issue
Block a user