summaryrefslogtreecommitdiff
path: root/home/typst.nix
diff options
context:
space:
mode:
authorGrace Yoder <grace_yoder@outlook.com>2026-09-27 16:26:07 -0400
committerGrace Yoder <grace_yoder@outlook.com>2026-09-27 16:26:33 -0400
commitb4edc3d5997f172cf4cc3b56d6f831772e2133d2 (patch)
tree4c9128de03d6ed02480ed1a2dd79f24aa3c0ba2b /home/typst.nix
parentb9eb0edbec2786ccbc5f444eaf783644ec67941a (diff)
purdue cs fix
Diffstat (limited to 'home/typst.nix')
-rwxr-xr-xhome/typst.nix15
1 files changed, 12 insertions, 3 deletions
diff --git a/home/typst.nix b/home/typst.nix
index a5b1147..0bdf352 100755
--- a/home/typst.nix
+++ b/home/typst.nix
@@ -1,7 +1,11 @@
-{ config, pkgs, ... }:
+{ config, lib, pkgs, ... }:
let
dots = toString ./..;
+ packagePath = "typst/packages/local/grace-personal-template/0.1.0";
+ template = {
+ source = config.lib.file.mkOutOfStoreSymlink "${dots}/typst";
+ };
in
{
fonts.fontconfig.enable = true;
@@ -15,6 +19,11 @@ in
home.sessionVariables.TYPST_FONT_PATHS = "${config.home.profileDirectory}/share/fonts";
- home.file."Library/Application Support/typst/packages/local/grace-personal-template/0.1.0".source =
- config.lib.file.mkOutOfStoreSymlink "${dots}/typst";
+ home.file = lib.optionalAttrs pkgs.stdenv.isDarwin {
+ "Library/Application Support/${packagePath}" = template;
+ };
+
+ xdg.dataFile = lib.optionalAttrs pkgs.stdenv.isLinux {
+ "${packagePath}" = template;
+ };
}