Compare commits
2 commits
6d7408bc5b
...
6b53ede822
| Author | SHA1 | Date | |
|---|---|---|---|
| 6b53ede822 | |||
| 020c4bc4b8 |
1 changed files with 17 additions and 0 deletions
17
.justfile
17
.justfile
|
|
@ -1,6 +1,10 @@
|
||||||
# Hide the default option from the recipes list
|
# Hide the default option from the recipes list
|
||||||
_default: print-recipes
|
_default: print-recipes
|
||||||
|
|
||||||
|
# Escape codes for text formatting
|
||||||
|
bold := `tput bold`
|
||||||
|
normal := `tput sgr0`
|
||||||
|
|
||||||
find-results:
|
find-results:
|
||||||
find . -name '*result*'
|
find . -name '*result*'
|
||||||
|
|
||||||
|
|
@ -10,6 +14,19 @@ print-recipes:
|
||||||
update:
|
update:
|
||||||
nix flake update
|
nix flake update
|
||||||
|
|
||||||
|
# Update a single input
|
||||||
|
update-input input:
|
||||||
|
nix flake lock --update-input {{input}}
|
||||||
|
|
||||||
|
@edit-secrets:
|
||||||
|
git clone http://git.everest.sable-pancake.ts.net/Toast/nix-secrets.git /tmp/secrets
|
||||||
|
sed -i 's\git+http://git.everest.sable-pancake.ts.net/Toast/nix-secrets\/tmp/secrets\g' flake.nix
|
||||||
|
just -q update-input secrets
|
||||||
|
echo "{{bold}}All done!"
|
||||||
|
echo "{{normal}}Remember to restore flake.nix"
|
||||||
|
echo ""
|
||||||
|
echo ""
|
||||||
|
|
||||||
alias build := build-nixos
|
alias build := build-nixos
|
||||||
# Build a NixOS configuration
|
# Build a NixOS configuration
|
||||||
build-nixos host=`hostname`:
|
build-nixos host=`hostname`:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue