Files
util.nix/package/deploy/default.nix
2025-10-23 11:28:56 +00:00

24 lines
456 B
Nix

{ inputs, symlinkJoin, dash, hectic, ssh-to-age, system }:
let
shell = "${dash}/bin/dash";
bashOptions = [
"errexit"
"nounset"
];
deploy = hectic.writeShellApplication {
inherit shell bashOptions;
name = "deploy";
runtimeInputs = [
ssh-to-age
inputs.nixos-anywhere.packages.${system}.nixos-anywhere
];
text = builtins.readFile ./deploy.sh;
};
in
symlinkJoin {
name = "deploy";
paths = [ deploy ];
}