From 39ecd247a027a45f6e84c6a920674946dd323a63 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Tue, 11 Jul 2023 21:04:25 +0300 Subject: [PATCH] blender and kdenlive --- hosts/sakotop/configuration.nix | 2 ++ modules/desktop/media/blender/default.nix | 16 ++++++++++++++++ modules/desktop/media/default.nix | 2 ++ modules/desktop/media/kdenlive/default.nix | 16 ++++++++++++++++ 4 files changed, 36 insertions(+) create mode 100644 modules/desktop/media/blender/default.nix create mode 100644 modules/desktop/media/kdenlive/default.nix diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index fc065973..f037c87f 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -37,6 +37,8 @@ gimp.enable = true; # this is broken #resolve.enable = true; + blender.enable = true; + kdenlive.enable = true; }; }; hardware = { diff --git a/modules/desktop/media/blender/default.nix b/modules/desktop/media/blender/default.nix new file mode 100644 index 00000000..bc6b6773 --- /dev/null +++ b/modules/desktop/media/blender/default.nix @@ -0,0 +1,16 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.media.blender; +in +{ + options.modules.desktop.media.blender = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + blender + ]; + }; +} diff --git a/modules/desktop/media/default.nix b/modules/desktop/media/default.nix index 8fe4f24e..ac92d151 100644 --- a/modules/desktop/media/default.nix +++ b/modules/desktop/media/default.nix @@ -2,5 +2,7 @@ imports = [ ./resolve ./gimp + ./blender + ./kdenlive ]; } diff --git a/modules/desktop/media/kdenlive/default.nix b/modules/desktop/media/kdenlive/default.nix new file mode 100644 index 00000000..15dd7e9b --- /dev/null +++ b/modules/desktop/media/kdenlive/default.nix @@ -0,0 +1,16 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.media.kdenlive; +in +{ + options.modules.desktop.media.kdenlive = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + kdenlive + ]; + }; +}