Files
hearth/package/deploy/default.nix
T
yukkop 728814c04d
runner nix smoke / nix label and flake smoke (push) Failing after 8s
fix: pg init
2026-09-08 20:03:57 +00:00

28 lines
584 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}
${builtins.readFile ./deploy.sh}
'';
};
in
symlinkJoin {
name = "deploy";
paths = [ deploy ];
}