From efcb73f8ba2004b5dd30da92612ea5d1775c0c2c Mon Sep 17 00:00:00 2001 From: Noah Pederson Date: Tue, 4 Mar 2025 15:42:50 -0600 Subject: [PATCH] FIX: scripts, ghostty config --- flake.lock | 18 +++++++++--------- ghostty/config | 2 +- noah-home.nix | 7 +++++++ scripts/nr | 6 ++++++ scripts/update-src | 14 ++++++++++++++ ssh/extra | 2 +- 6 files changed, 38 insertions(+), 11 deletions(-) create mode 100755 scripts/nr create mode 100755 scripts/update-src diff --git a/flake.lock b/flake.lock index f2b969f..cb02626 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1734366194, - "narHash": "sha256-vykpJ1xsdkv0j8WOVXrRFHUAdp9NXHpxdnn1F4pYgSw=", + "lastModified": 1739757849, + "narHash": "sha256-Gs076ot1YuAAsYVcyidLKUMIc4ooOaRGO0PqTY7sBzA=", "owner": "nix-community", "repo": "home-manager", - "rev": "80b0fdf483c5d1cb75aaad909bd390d48673857f", + "rev": "9d3d080aec2a35e05a15cedd281c2384767c2cfe", "type": "github" }, "original": { @@ -23,11 +23,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1734991663, - "narHash": "sha256-8T660guvdaOD+2/Cj970bWlQwAyZLKrrbkhYOFcY1YE=", + "lastModified": 1739758141, + "narHash": "sha256-uq6A2L7o1/tR6VfmYhZWoVAwb3gTy7j4Jx30MIrH0rE=", "owner": "nixos", "repo": "nixpkgs", - "rev": "6c90912761c43e22b6fb000025ab96dd31c971ff", + "rev": "c618e28f70257593de75a7044438efc1c1fc0791", "type": "github" }, "original": { @@ -39,11 +39,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1734649271, - "narHash": "sha256-4EVBRhOjMDuGtMaofAIqzJbg4Ql7Ai0PSeuVZTHjyKQ=", + "lastModified": 1739736696, + "narHash": "sha256-zON2GNBkzsIyALlOCFiEBcIjI4w38GYOb+P+R4S8Jsw=", "owner": "nixos", "repo": "nixpkgs", - "rev": "d70bd19e0a38ad4790d3913bf08fcbfc9eeca507", + "rev": "d74a2335ac9c133d6bbec9fc98d91a77f1604c1f", "type": "github" }, "original": { diff --git a/ghostty/config b/ghostty/config index 9414e9f..f23e041 100644 --- a/ghostty/config +++ b/ghostty/config @@ -1,5 +1,5 @@ #font-size = 13 -font-family = TX-02 Retina +font-family = TX-02 Medium theme = catppuccin-macchiato shell-integration = fish link-url = true diff --git a/noah-home.nix b/noah-home.nix index 6d2417d..3a12dee 100644 --- a/noah-home.nix +++ b/noah-home.nix @@ -20,6 +20,7 @@ moreutils rsync tmux + sshfs rsync unzip @@ -82,6 +83,7 @@ nodejs node2nix opam + gnupatch # Scala stuff scala_3 scalafmt @@ -247,6 +249,11 @@ recursive = true; }; + home.file.".local/bin" = { + source = ./scripts; + recursive = true; + }; + home.stateVersion = "24.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! diff --git a/ssh/extra b/ssh/extra index b36e82b..409ceb4 100644 --- a/ssh/extra +++ b/ssh/extra @@ -10,7 +10,7 @@ Host *.local ForwardAgent yes Host home - Hostname packetlostandfound.us + Hostname nats.packetlost.dev User noah IdentityFile ~/.ssh/id_ed25519 IdentitiesOnly yes -- 2.51.2