nix/justfile
Hari e634a3e233
Some checks are pending
quality / changes (push) Waiting to run
quality / Flake Check (push) Blocked by required conditions
quality / Nix Format Check (push) Blocked by required conditions
quality / Deploy netty (push) Blocked by required conditions
add agent-browser + BW browser auth sync for netty (#35)
- Add chromium to netty system packages
- Add home/agent-browser.nix: configures agent-browser to use nix
  chromium headless, installs via npm on first activation (Linux only)
- Add scripts/sync-bw-browser-auth.sh: imports all BW login items
  into agent-browser encrypted auth vault via --password-stdin
- Add just sync-browser-auth target
2026-04-02 03:45:23 +00:00

35 lines
1.2 KiB
Makefile

default:
just --list
check:
nix --extra-experimental-features 'nix-command flakes' flake check
build config='darwin':
#!/usr/bin/env bash
if [[ "{{config}}" == "darwin" ]]; then
nix --extra-experimental-features 'nix-command flakes' build path:.#darwinConfigurations.{{config}}.system
else
nix --extra-experimental-features 'nix-command flakes' run github:nix-community/home-manager -- build --flake path:.#{{config}}
fi
switch config='darwin':
#!/usr/bin/env bash
if [[ "{{config}}" == "darwin" ]]; then
sudo env PATH="$PATH" nix --extra-experimental-features 'nix-command flakes' run github:nix-darwin/nix-darwin/master#darwin-rebuild -- switch --flake path:.#{{config}}
else
backup_ext="hm-bak-$(date +%Y%m%d-%H%M%S)"
nix --extra-experimental-features 'nix-command flakes' run github:nix-community/home-manager -- switch --flake path:.#{{config}} -b "$backup_ext"
fi
fmt:
nix --extra-experimental-features 'nix-command flakes' fmt
secrets-sync:
./scripts/render-bw-shell-secrets.sh
./scripts/restore-bw-files.sh
sync-browser-auth:
./scripts/sync-bw-browser-auth.sh
switch-netty:
ssh root@netty "nixos-rebuild switch --flake github:harivansh-afk/nix#netty --refresh"