From 8294847284943b00e1b7fa941ed40f5c7e5e3feb Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Mon, 31 Jul 2023 22:52:30 +0300 Subject: [PATCH] add kindle-comic-converter and calibre --- hosts/sakotop/configuration.nix | 1 + modules/desktop/apps/calibre/default.nix | 16 ++++++++++++++++ modules/desktop/apps/default.nix | 2 ++ modules/desktop/apps/kcc/default.nix | 16 ++++++++++++++++ 4 files changed, 35 insertions(+) create mode 100644 modules/desktop/apps/calibre/default.nix create mode 100644 modules/desktop/apps/kcc/default.nix diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 8c6cd7c4..77ec82b3 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -29,6 +29,7 @@ keepassxc.enable = true; nicotineplus.enable = true; transmission.enable = true; + kcc.enable = true; }; chat = { discord.enable = true; diff --git a/modules/desktop/apps/calibre/default.nix b/modules/desktop/apps/calibre/default.nix new file mode 100644 index 00000000..d9bacd36 --- /dev/null +++ b/modules/desktop/apps/calibre/default.nix @@ -0,0 +1,16 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.apps.calibre; +in +{ + options.modules.desktop.apps.calibre = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + calibre + ]; + }; +} diff --git a/modules/desktop/apps/default.nix b/modules/desktop/apps/default.nix index b39f4fb5..ec3e4a60 100644 --- a/modules/desktop/apps/default.nix +++ b/modules/desktop/apps/default.nix @@ -5,5 +5,7 @@ ./kdeconnect ./nemo ./transmission + ./kcc + ./calibre ]; } diff --git a/modules/desktop/apps/kcc/default.nix b/modules/desktop/apps/kcc/default.nix new file mode 100644 index 00000000..ce22d56d --- /dev/null +++ b/modules/desktop/apps/kcc/default.nix @@ -0,0 +1,16 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.apps.kindle-comic-converter; +in +{ + options.modules.desktop.apps.kindle-comic-converter = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + kcc + ]; + }; +}