mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2026-01-31 04:20:24 +00:00
- Renamed justfile commands from deploy-* to concise names - Updated README examples
22 lines
386 B
Makefile
22 lines
386 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."
|
|
|
|
nixos: _check-nh
|
|
nh os switch .
|
|
|
|
vps: _check-nh
|
|
nh os switch . -H vps --target-host root@vps
|
|
|
|
home: _check-nh
|
|
nh home switch .
|
|
|
|
update:
|
|
nix flake update --commit-lock-file
|
|
|
|
gc: _check-nh
|
|
nh clean all --keep-since 7d
|