From b636b4ae97ea865fd3f3c702ecfdb363738e02a6 Mon Sep 17 00:00:00 2001 From: Jet Pham Date: Sat, 28 Feb 2026 16:05:06 -0800 Subject: [PATCH] feat: use nhs as a script for tailscale deployment --- flake.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index fd6d838..2941802 100644 --- a/flake.nix +++ b/flake.nix @@ -24,8 +24,14 @@ devShells.x86_64-linux.default = let pkgs = nixpkgs.legacyPackages.x86_64-linux; + deploy = pkgs.writeShellScriptBin "nhs" '' + nh os switch --hostname extremist-software --target-host root@extremist-software --impure path:. "$@" + ''; in pkgs.mkShell { - packages = [ pkgs.nh ]; + packages = [ + pkgs.nh + deploy + ]; }; }; }