From 1ecf08c4fac083985380b500cccf9e1fd14ba530 Mon Sep 17 00:00:00 2001 From: Heitor Augusto Date: Sun, 25 Aug 2024 22:46:58 +0000 Subject: [PATCH] Start ghostwriter module --- modules/apps/default.nix | 1 + modules/apps/ghostwriter.nix | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 modules/apps/ghostwriter.nix diff --git a/modules/apps/default.nix b/modules/apps/default.nix index 748a7fa4..80974fd5 100644 --- a/modules/apps/default.nix +++ b/modules/apps/default.nix @@ -2,6 +2,7 @@ { imports = [ + ./ghostwriter.nix ./konsole.nix ./kate ./okular.nix diff --git a/modules/apps/ghostwriter.nix b/modules/apps/ghostwriter.nix new file mode 100644 index 00000000..08903d56 --- /dev/null +++ b/modules/apps/ghostwriter.nix @@ -0,0 +1,23 @@ +{ config, lib, pkgs, ... }: +let + cfg = config.programs.ghostwriter; +in +{ + options.programs.ghostwriter = { + enable = lib.mkEnableOption '' + Enable configuration management for Ghostwriter. + ''; + + package = lib.mkPackageOption pkgs [ "kdePackages" "ghostwriter" ] { + example = "pkgs.kdePackages.ghostwriter"; + extraDescription = '' + Use `pkgs.libsForQt5.ghostwriter` in Plasma5 and + `pkgs.kdePackages.ghostwriter` in Plasma6. + ''; + }; + }; + + config = (lib.mkIf cfg.enable { + home.packages = [ cfg.package ]; + }); +} \ No newline at end of file