nix-configs/modules/desktop-environment/home/typst.nix
2025-01-01 03:22:46 +01:00

32 lines
909 B
Nix

{pkgs, ...}: let
packages = {
typst-configs = pkgs.fetchFromGitea {
domain = "forge.katzen.cafe";
owner = "schrottkatze";
repo = "typst-configs";
rev = "569cd8525a85878140baf5952597f27fd7ea51d3";
sha256 = "sha256-4pAammwrFGhpSquEsh4QSd8Hw/ioHm3fMiC5oqNgbAQ=";
};
flow = pkgs.fetchFromGitHub {
owner = "MultisampledNight";
repo = "flow";
rev = "f5c653c706d80145165ec684b217b803a0246e8c";
sha256 = "sha256-tXfogxo1DGmsrwjOhF2h+60825P6NVcgQGN6Q1tspZA=";
};
};
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;
};
};
home.packages = [pkgs.typst];
}