mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
justfile
This commit is contained in:
parent
2f2adad29d
commit
2e3e1ec3b2
1 changed files with 8 additions and 0 deletions
8
justfile
8
justfile
|
|
@ -1,9 +1,17 @@
|
||||||
|
alias b := build
|
||||||
|
alias r := rebuild
|
||||||
|
alias u := update
|
||||||
|
alias us := update-secret
|
||||||
|
|
||||||
default:
|
default:
|
||||||
just -l
|
just -l
|
||||||
|
|
||||||
# Build the system and diff
|
# Build the system and diff
|
||||||
build:
|
build:
|
||||||
nixos-rebuild build --flake . && nvd diff /run/current-system ./result
|
nixos-rebuild build --flake . && nvd diff /run/current-system ./result
|
||||||
|
[confirm('Rebuild the system?')]
|
||||||
|
rebuild:
|
||||||
|
sudo nixos-rebuild switch --flake .
|
||||||
# Update all flake inputs
|
# Update all flake inputs
|
||||||
update:
|
update:
|
||||||
nix flake update --commit-lock-file
|
nix flake update --commit-lock-file
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue