From f8f2dab5cd94fea38b6ea6c60cc9586f47a3bf37 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 9 Jul 2023 20:52:40 +0300 Subject: [PATCH] add da vin ci resolve and gimp --- hosts/sakotop/configuration.nix | 4 ++++ modules/desktop/default.nix | 1 + modules/desktop/media/default.nix | 6 ++++++ modules/desktop/media/gimp/default.nix | 16 ++++++++++++++++ modules/desktop/media/resolve/default.nix | 16 ++++++++++++++++ 5 files changed, 43 insertions(+) create mode 100644 modules/desktop/media/default.nix create mode 100644 modules/desktop/media/gimp/default.nix create mode 100644 modules/desktop/media/resolve/default.nix diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index f51fefff..1a6c436d 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -33,6 +33,10 @@ lutris.enable = true; steam.enable = true; }; + media = { + gimp.enable = true; + resolve.enable = true; + }; }; hardware = { nvidia.enable = true; diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix index df47ceab..6105ae8c 100644 --- a/modules/desktop/default.nix +++ b/modules/desktop/default.nix @@ -6,5 +6,6 @@ ./apps ./game ./chat + ./media ]; } diff --git a/modules/desktop/media/default.nix b/modules/desktop/media/default.nix new file mode 100644 index 00000000..8fe4f24e --- /dev/null +++ b/modules/desktop/media/default.nix @@ -0,0 +1,6 @@ +{ + imports = [ + ./resolve + ./gimp + ]; +} diff --git a/modules/desktop/media/gimp/default.nix b/modules/desktop/media/gimp/default.nix new file mode 100644 index 00000000..46e9b757 --- /dev/null +++ b/modules/desktop/media/gimp/default.nix @@ -0,0 +1,16 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.media.gimp; +in +{ + options.modules.desktop.media.gimp = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + gimp + ]; + }; +} diff --git a/modules/desktop/media/resolve/default.nix b/modules/desktop/media/resolve/default.nix new file mode 100644 index 00000000..1660480c --- /dev/null +++ b/modules/desktop/media/resolve/default.nix @@ -0,0 +1,16 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.media.resolve; +in +{ + options.modules.desktop.media.resolve = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + davinci-resolve + ]; + }; +}