From ffdf893e15eb3dd18584b4a25706092394ea4987 Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Fri, 29 Nov 2024 15:46:11 +0100 Subject: [PATCH] add typst configs --- modules/desktop-environment/home/default.nix | 1 + modules/desktop-environment/home/typst.nix | 33 ++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 modules/desktop-environment/home/typst.nix diff --git a/modules/desktop-environment/home/default.nix b/modules/desktop-environment/home/default.nix index e348ec6..558291e 100644 --- a/modules/desktop-environment/home/default.nix +++ b/modules/desktop-environment/home/default.nix @@ -4,6 +4,7 @@ ./notifications.nix ./terminal.nix ./compositing.nix + ./typst.nix ./panels ./xmonad ./sway diff --git a/modules/desktop-environment/home/typst.nix b/modules/desktop-environment/home/typst.nix new file mode 100644 index 0000000..f60ed7c --- /dev/null +++ b/modules/desktop-environment/home/typst.nix @@ -0,0 +1,33 @@ +{ + pkgs, + lib, + ... +}: let + packages = { + typst-configs = pkgs.fetchFromGitea { + domain = "forge.katzen.cafe"; + owner = "schrottkatze"; + repo = "typst-configs"; + rev = "3a09cd374f0508c8e0c5d95f5ad7358adc50bafa"; + }; + flow = pkgs.fetchFromGithub { + owner = "MultisampledNight"; + repo = "flow"; + rev = "f5c653c706d80145165ec684b217b803a0246e8c"; + }; + }; + mkTypstPath = name: ".local/share/typst/packages/local/${name}/0.1.0"; +in { + home.file = { + typst-configs = { + target = mkTypstPath "typst-configs"; + source = packages.typst-configs; + recursive = true; + }; + flow = { + target = mkTypstPath "flow"; + source = packages.flow; + recursive = true; + }; + }; +}