nix-config/justfile
lightly-toasted 213ce6601f feat: add nh
- Updated justfile to use nh for deploy commands
- Added nh to flake devShell
- Added nh and just to shell.nix
- Enabled programs.nh in nixos
2026-01-17 12:10:57 +09:00

22 lines
407 B
Makefile

#!/usr/bin/env -S just --justfile
default:
@just --list
_check-nh:
@command -v nh > /dev/null 2>&1 || echo "nh is not in PATH. Run 'nix develop' first."
deploy-nixos: _check-nh
nh os switch .
deploy-vps: _check-nh
nh os switch . -H vps --target-host root@vps
deploy-home: _check-nh
nh home switch .
update:
nix flake update --commit-lock-file
gc: _check-nh
nh clean all --keep-since 7d