Files
hearth/package/deploy/default.nix
T
yukkop 906e56a78a
runner nix smoke / nix label and flake smoke (push) Failing after 9s
fix: include nixos-rebuild in deploy
2026-09-09 12:24:00 +00:00

29 lines
619 B
Nix

{ inputs, symlinkJoin, dash, hectic, ssh-to-age, nixos-rebuild, stdenv }:
let
shell = "${dash}/bin/dash";
bashOptions = [
"errexit"
"nounset"
];
deploy = hectic.writeShellApplication {
inherit shell bashOptions;
excludeShellChecks = [ "SC1091" "SC2034" ];
name = "deploy";
runtimeInputs = [
ssh-to-age
nixos-rebuild
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 ];
}