feat: use nhs as a script for tailscale deployment
This commit is contained in:
parent
37a7b07980
commit
b636b4ae97
1 changed files with 7 additions and 1 deletions
|
|
@ -24,8 +24,14 @@
|
||||||
|
|
||||||
devShells.x86_64-linux.default = let
|
devShells.x86_64-linux.default = let
|
||||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
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 {
|
in pkgs.mkShell {
|
||||||
packages = [ pkgs.nh ];
|
packages = [
|
||||||
|
pkgs.nh
|
||||||
|
deploy
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue