aboutsummaryrefslogtreecommitdiff
path: root/modules/users/productivity/typst/default.nix
blob: f3e198192b1d21833c626bf600ba8a5bbe00f243 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  config,
  pkgs,
  lib,
  ...
}:
let
  cfg = config.nx.productivity.typst;
  inherit (lib) mkOption types mkIf;
in
{
  options.nx.productivity.typst = {
    enable = mkOption {
      description = "Typst markup-based typesetting system";
      type = types.bool;
      default = false;
    };
  };
  config = mkIf cfg.enable {
    home.packages = with pkgs; [
      typst
      typst-fmt
    ];
  };
}