mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2026-01-31 08:30:25 +00:00
feat: migrate command scripts to just
- Replaced bin/ shell scripts with a Justfile - Added deploy commands and 2 new commands (update, gc) - Added just to devShell
This commit is contained in:
parent
8442a022bb
commit
6d0b5f7711
7 changed files with 25 additions and 20 deletions
21
justfile
Normal file
21
justfile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#!/usr/bin/env -S just --justfile
|
||||
|
||||
default:
|
||||
@just --list
|
||||
|
||||
deploy-nixos:
|
||||
sudo nixos-rebuild switch --flake .#$(hostname)
|
||||
|
||||
deploy-vps:
|
||||
nixos-rebuild switch --flake .#vps --target-host root@vps
|
||||
|
||||
deploy-home:
|
||||
home-manager switch --flake .#$USER@$(hostname)
|
||||
|
||||
update:
|
||||
nix flake update --commit-lock-file
|
||||
|
||||
gc:
|
||||
nix-collect-garbage -d
|
||||
nix-collect-garbage --delete-older-than 7d
|
||||
nix-store --gc
|
||||
Loading…
Add table
Add a link
Reference in a new issue