nix-configs/justfile

28 lines
1.1 KiB
Makefile
Raw Permalink Normal View History

2024-10-11 06:50:47 +00:00
upgrade: update build
2023-11-25 21:29:29 +00:00
2023-10-28 20:25:06 +00:00
test:
2024-10-11 06:50:47 +00:00
sudo nixos-rebuild test --flake . --impure --log-format multiline
2023-10-28 20:25:06 +00:00
2023-11-17 10:53:46 +00:00
build:
2024-10-11 06:50:47 +00:00
sudo nixos-rebuild switch --flake . --impure --fast --log-format multiline
2023-11-17 10:53:46 +00:00
2024-11-20 09:34:10 +00:00
tbuild:
sudo nixos-rebuild switch --flake . --impure --fast --log-format multiline-with-logs --show-trace
2025-01-03 18:04:46 +00:00
update: update-typst-configs
2024-10-11 06:50:47 +00:00
nix flake update --commit-lock-file --log-format multiline
2024-01-30 18:35:04 +00:00
build-mac:
2024-10-11 06:50:47 +00:00
sudo nixos-rebuild switch --flake . --impure --override-input mac-brcm-fw path:/home/jade/mac-brcm-fw --fast --log-format multiline
2025-01-03 16:55:34 +00:00
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;
2025-01-03 18:04:46 +00:00
git add $file
git commit -m "typst-configs: Update"