Files
util.nix/package/deploy/default.nix
2026-02-20 12:04:15 +00:00

27 lines
532 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 hectic.helpers.posix-shell.log}
${builtins.readFile ./deploy.sh}
'';
};
in
symlinkJoin {
name = "deploy";
paths = [ deploy ];
}