nixos-config/packages/ci/default.nix
2024-07-15 17:15:24 -04:00

15 lines
396 B
Nix

{ writeShellApplication, nixci-build-remote, zellij, ... }:
writeShellApplication {
name = "ci";
runtimeInputs = [ nixci-build-remote zellij ];
meta.description = ''
Run CI locally.
Powered by nixci, zellij and your beefy machines over SSH.
'';
text = ''
PRJ=$(basename "$(pwd)")
zellij --layout ${./layout.kdl} attach --create "$PRJ"-ci --force-run-commands
'';
}