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!