From b1975c29462f1eb2212ee64a0b569bed9777fbd7 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Wed, 26 Jul 2023 11:00:48 +0300 Subject: [PATCH] add krita and remove resolve from sakotop --- hosts/sakotop/configuration.nix | 2 -- modules/desktop/media/default.nix | 1 + modules/desktop/media/krita/default.nix | 16 ++++++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 modules/desktop/media/krita/default.nix diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 88312baa..5f86e4aa 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -38,8 +38,6 @@ }; media = { gimp.enable = true; - # fixed via local package - resolve.enable = true; blender.enable = true; kdenlive.enable = true; lmms.enable = true; diff --git a/modules/desktop/media/default.nix b/modules/desktop/media/default.nix index bcf13609..fc9b5756 100644 --- a/modules/desktop/media/default.nix +++ b/modules/desktop/media/default.nix @@ -2,6 +2,7 @@ imports = [ ./resolve ./gimp + ./krita ./blender ./kdenlive ./lmms diff --git a/modules/desktop/media/krita/default.nix b/modules/desktop/media/krita/default.nix new file mode 100644 index 00000000..ab2d5dc5 --- /dev/null +++ b/modules/desktop/media/krita/default.nix @@ -0,0 +1,16 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.media.krita; +in +{ + options.modules.desktop.media.krita = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + krita + ]; + }; +}