Skip to content

Instantly share code, notes, and snippets.

View lucperkins's full-sized avatar
🎯
Focusing

Luc Perkins lucperkins

🎯
Focusing
View GitHub Profile
nix copy \
--derivation \
--to ssh-ng://"${CLOUD_VM_IP}" \
".#packages.x86_64-linux.service-pkg"
nix copy \
--from ssh-ng://"${CI_MACHINE_IP}" \
".#packages.x86_64-linux.service-pkg"
# On the beefy CI machine
nix copy \
--to ssh-ng://"${CLOUD_VM_IP}" \
".#packages.x86_64-linux.service-pkg"
nix copy \
--to ssh-ng://my-remote-host \
"nixpkgs#apachakafka_3_3"
nix copy \
--to "s3://my-nix-stuff-bucket?region=ap-southeast-1" \
".#my-package"
@lucperkins
lucperkins / input.md
Last active December 26, 2022 19:16
Rust TOC example

Here's a level 2 header

Some text.

Here's a level 3 header

Some more text.

Back to level 2

pub fn get_or_none<T>(items: Vec<T>) -> Option<Vec<T>> {
if items.is_empty() {
None
} else {
Some(items)
}
}
git checkout https://github.com/DeterminateSystems/nix-github-action
cd nix-github-action
# Run the CI suite locally
nix develop --command ci-local
- name: Prettify JS and TS files
run: nix develop --command ci-prettify
{
prettify = pkgs.writeScriptBin "ci-prettify" ''
prettier --write **/*.{js,ts}
'';
}