diff --git a/justfile b/justfile index 3243fda..37f346e 100644 --- a/justfile +++ b/justfile @@ -14,3 +14,12 @@ update: build-mac: sudo nixos-rebuild switch --flake . --impure --override-input mac-brcm-fw path:/home/jade/mac-brcm-fw --fast --log-format multiline + +update-typst-configs: + #!/usr/bin/env nu + let file = './modules/desktop-environment/home/typst.nix'; + let $rev = http get https://forge.katzen.cafe/schrottkatze/typst-configs/commits/branch/main | query web -mq '.commit-list tr:first-of-type a.ui.sha.label' -a href | path basename | first; + ./build-utils/templ-edit.nu edit $file REV $rev; + let $hash = nix-prefetch-url https://forge.katzen.cafe/schrottkatze/typst-configs/archive/main.tar.gz --unpack; + let $sri = nix hash to-sri --type sha256 $hash; + ./build-utils/templ-edit.nu edit $file SHA $sri; diff --git a/modules/desktop-environment/home/typst.nix b/modules/desktop-environment/home/typst.nix index e6fc769..1b7f032 100644 --- a/modules/desktop-environment/home/typst.nix +++ b/modules/desktop-environment/home/typst.nix @@ -4,8 +4,8 @@ domain = "forge.katzen.cafe"; owner = "schrottkatze"; repo = "typst-configs"; - rev = "569cd8525a85878140baf5952597f27fd7ea51d3"; #:REV:- rev = "%REV%";-:# - sha256 = "sha256-4pAammwrFGhpSquEsh4QSd8Hw/ioHm3fMiC5oqNgbAQ="; #:SHA:- sha256 = "%SHA%";-:# + rev = "7e184eecd8c6f87c08246a0bb105867423bd4fbf"; #:REV:- rev = "%REV%";-:# + sha256 = "sha256-Lv5/DxBiG7EUgcOHPL8aqztJ97s+78TXXENB7lb1olM="; #:SHA:- sha256 = "%SHA%";-:# }; flow = pkgs.fetchFromGitHub { owner = "MultisampledNight";