From 29fd603ed57e09db4a55315b5ada3ecc75529e7d Mon Sep 17 00:00:00 2001 From: Noah Pederson Date: Wed, 5 Feb 2025 10:40:43 -0600 Subject: [PATCH] ADD: scripts --- noah-home.nix | 5 +++++ scripts/nr | 6 ++++++ scripts/update-src | 14 ++++++++++++++ 3 files changed, 25 insertions(+) create mode 100755 scripts/nr create mode 100755 scripts/update-src diff --git a/noah-home.nix b/noah-home.nix index ace4133..e0b0e97 100644 --- a/noah-home.nix +++ b/noah-home.nix @@ -262,6 +262,11 @@ in recursive = true; }; + home.file.".local/bin" = { + source = ./scripts; + recursive = true; + }; + home.stateVersion = "23.11"; } diff --git a/scripts/nr b/scripts/nr new file mode 100755 index 0000000..52b76a5 --- /dev/null +++ b/scripts/nr @@ -0,0 +1,6 @@ +#!/usr/bin/env rc + +flag e + +flag x + + +exec nix run 'nixpkgs#'^$* diff --git a/scripts/update-src b/scripts/update-src new file mode 100755 index 0000000..5f1726b --- /dev/null +++ b/scripts/update-src @@ -0,0 +1,14 @@ +#!/usr/bin/env rc + +background=() +for(repo in `{cat downstream}) { + echo Updating $repo + git -C $repo fetch --all --tags --prune --force & + background=($apid $background) +} + +for (i in $background) { + wait $i +} + +echo Done! -- 2.51.2