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 + ]; + }; +}