Files
hearth/package/deploy/default.nix
T
yukkop 6f80f672f2
runner nix smoke / nix label and flake smoke (push) Failing after 7s
rework: fix all vulnerabilities
2026-09-08 10:36:38 +00:00

28 lines
595 B
Nix

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