From 483680dd5eeb3eaaf1cf9b964fc38a58d13a324d Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Wed, 2 Aug 2023 21:41:26 +0300 Subject: [PATCH] add mangal --- hosts/sakotop/configuration.nix | 2 ++ modules/desktop/apps/default.nix | 1 + modules/desktop/apps/mangal/default.nix | 16 ++++++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 modules/desktop/apps/mangal/default.nix diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 5b64e118..385e0682 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -31,6 +31,8 @@ nicotineplus.enable = true; transmission.enable = true; calibre.enable = true; + kindle-comic-converter.enable = true; + mangal.enable = true; }; chat = { discord.enable = true; diff --git a/modules/desktop/apps/default.nix b/modules/desktop/apps/default.nix index ec3e4a60..f53d3a41 100644 --- a/modules/desktop/apps/default.nix +++ b/modules/desktop/apps/default.nix @@ -7,5 +7,6 @@ ./transmission ./kcc ./calibre + ./mangal ]; } diff --git a/modules/desktop/apps/mangal/default.nix b/modules/desktop/apps/mangal/default.nix new file mode 100644 index 00000000..fb8d70bd --- /dev/null +++ b/modules/desktop/apps/mangal/default.nix @@ -0,0 +1,16 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.apps.mangal; +in +{ + options.modules.desktop.apps.mangal = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + mangal + ]; + }; +}