mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2026-01-31 08:30:25 +00:00
refactor(just): rename deploy commands to shorter aliases
- Renamed justfile commands from deploy-* to concise names - Updated README examples
This commit is contained in:
parent
213ce6601f
commit
3c314ad5bd
2 changed files with 6 additions and 6 deletions
|
|
@ -11,8 +11,8 @@ My personal NixOS and home-manager configurations.
|
||||||
```sh
|
```sh
|
||||||
nix develop
|
nix develop
|
||||||
|
|
||||||
just deploy-nixos # Rebuild and switch the current NixOS system on this host
|
just nixos # Rebuild and switch the current NixOS system on this host
|
||||||
just deploy-home # Apply Home Manager configuration for the current user
|
just home # Apply Home Manager configuration for the current user
|
||||||
just deploy-vps # Rebuild and switch NixOS on the remote VPS
|
just vps # Rebuild and switch NixOS on the remote VPS
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
6
justfile
6
justfile
|
|
@ -6,13 +6,13 @@ default:
|
||||||
_check-nh:
|
_check-nh:
|
||||||
@command -v nh > /dev/null 2>&1 || echo "nh is not in PATH. Run 'nix develop' first."
|
@command -v nh > /dev/null 2>&1 || echo "nh is not in PATH. Run 'nix develop' first."
|
||||||
|
|
||||||
deploy-nixos: _check-nh
|
nixos: _check-nh
|
||||||
nh os switch .
|
nh os switch .
|
||||||
|
|
||||||
deploy-vps: _check-nh
|
vps: _check-nh
|
||||||
nh os switch . -H vps --target-host root@vps
|
nh os switch . -H vps --target-host root@vps
|
||||||
|
|
||||||
deploy-home: _check-nh
|
home: _check-nh
|
||||||
nh home switch .
|
nh home switch .
|
||||||
|
|
||||||
update:
|
update:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue