Skip to content

Commit

Permalink
Start ghostwriter module
Browse files Browse the repository at this point in the history
  • Loading branch information
HeitorAugustoLN authored Aug 25, 2024
1 parent 5c97fe8 commit 1ecf08c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/apps/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

{
imports = [
./ghostwriter.nix
./konsole.nix
./kate
./okular.nix
Expand Down
23 changes: 23 additions & 0 deletions modules/apps/ghostwriter.nix
Original file line number Diff line number Diff line change
@@ -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 ];
});
}

0 comments on commit 1ecf08c

Please sign in to comment.