nixos-config/pkgs/deploy/default.nix

10 lines
179 B
Nix
Raw Normal View History

2023-11-28 03:54:41 +00:00
{ nixos-rebuild
, python3
, writeShellScriptBin
}:
2023-03-17 04:21:32 +00:00
writeShellScriptBin "deploy" ''
2023-11-28 03:54:41 +00:00
export PATH="$PATH:${nixos-rebuild}/bin"
2023-03-17 04:21:32 +00:00
exec ${python3}/bin/python ${./deploy.py} "$@"
''