nix-configs/justfile

28 lines
1.1 KiB
Makefile
Raw Normal View History

2024-10-11 08:50:47 +02:00
upgrade: update build
2023-11-25 22:29:29 +01:00
2023-10-28 22:25:06 +02:00
test:
2024-10-11 08:50:47 +02:00
sudo nixos-rebuild test --flake . --impure --log-format multiline
2023-10-28 22:25:06 +02:00
2023-11-17 11:53:46 +01:00
build:
2024-10-11 08:50:47 +02:00
sudo nixos-rebuild switch --flake . --impure --fast --log-format multiline
2023-11-17 11:53:46 +01:00
2024-11-20 10:34:10 +01:00
tbuild:
sudo nixos-rebuild switch --flake . --impure --fast --log-format multiline-with-logs --show-trace
2025-01-03 19:04:46 +01:00
update: update-typst-configs
2024-10-11 08:50:47 +02:00
nix flake update --commit-lock-file --log-format multiline
2024-01-30 19:35:04 +01:00
build-mac:
2024-10-11 08:50:47 +02: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 17:55:34 +01: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 19:04:46 +01:00
git add $file
git commit -m "typst-configs: Update"