41 lines
710 B
Makefile
Raw Normal View History

default:
@just --list
fmt:
treefmt --on-unmatched info
test *FLAGS:
git add .
2025-04-14 23:30:50 +02:00
just fmt
nh os test . {{FLAGS}}
switch *FLAGS:
git add .
2025-04-14 23:30:50 +02:00
just fmt
nh os switch . {{FLAGS}}
switch-now *FLAGS:
nh os switch . {{FLAGS}}
update-all:
nix-channel --update
nix flake update
just switch
update PKG:
nix flake update {{PKG}}
just switch
# Encrypt all files in the repo using git-crypt
lock:
git-crypt lock
# Decrypt all files in the repo using git-crypt and the user's GPG key
unlock:
git-crypt unlock ~/.config/git/crypt-key
# Connect to tailnet or sign-in if not registered
start-tailscale:
tailscale up --login-server https://vpn.martials.no