From 020c4bc4b8346bec7e2317617b69bd253593659f Mon Sep 17 00:00:00 2001 From: Toast Date: Wed, 28 Feb 2024 11:51:18 +0100 Subject: [PATCH 1/2] Justfile: add update-input recipe --- .justfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.justfile b/.justfile index 74ba154..4927b8a 100644 --- a/.justfile +++ b/.justfile @@ -10,6 +10,10 @@ print-recipes: update: nix flake update +# Update a single input +update-input input: + nix flake lock --update-input {{input}} + alias build := build-nixos # Build a NixOS configuration build-nixos host=`hostname`: From 6b53ede822ab937bc03f7299db8691358952e8d1 Mon Sep 17 00:00:00 2001 From: Toast Date: Wed, 28 Feb 2024 13:04:56 +0100 Subject: [PATCH 2/2] Justfile: Add edit-secrets recipe --- .justfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.justfile b/.justfile index 4927b8a..252a267 100644 --- a/.justfile +++ b/.justfile @@ -1,6 +1,10 @@ # Hide the default option from the recipes list _default: print-recipes +# Escape codes for text formatting +bold := `tput bold` +normal := `tput sgr0` + find-results: find . -name '*result*' @@ -14,6 +18,15 @@ update: 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 # Build a NixOS configuration build-nixos host=`hostname`: