This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ruby:3.2 | |
COPY group-by-test.rb / | |
CMD "ruby" "/group-by-test.rb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, lib, pkgs, ... }: | |
# Puppet style imperative config for setting sshd settings | |
let | |
cfg = config.services.openssh; | |
boolToStr = x: if x then "yes" else "no"; | |
# User config imported from nixpkgs | |
userOptions = with lib; { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> {} | |
, old ? "postgresql_9_6" | |
, new ? "postgresql_12" | |
}: | |
let | |
oldPkg = pkgs."${old}"; | |
newPkg = pkgs."${new}"; | |
in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# "Comprehensive" set of tests that nothing is critically broken by the m1 | |
# branch. | |
# | |
# The claim is that: | |
# x86_64-darwin bootstrap tools can be recreated natively | |
# aarch64-darwin bootstrap tools can be cross compiled by x86_64-darwin | |
# | |
# This test suite is probably best run on an aarch64-darwin computer with | |
# x86_64-darwin remote builders. If run with rosetta, there's a chance that | |
# platform mismatches will be unnoticed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
source "https://rubygems.org" | |
gem "thor" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Making armv7l in the cloud | |
Boot dezgeg’s image with qemu on something fancy: | |
truncate -s 200g sd-image-armv7l-linux.img | |
qemu-system-aarch64 -m 120g -smp 32 -enable-kvm -M virt -cpu host,aarch64=off -kernel kernel -initrd initrd -drive if=none,file=sd-image-armv7l-linux.img,format=raw,id=hd0,index=0 -device virtio-blk-device,drive=hd0 -netdev user,id=mynet,hostfwd=tcp::5555-:22 -device virtio-net-device,netdev=mynet -nographic -no-reboot -machine gic-version=3 -append 'systemConfig=/nix/store/s8zghld9hj07vh4w2dvgi9v3q8p6h7ka-nixos-system-nixos-19.03.git.ca2ba44cab4 init=/nix/store/s8zghld9hj07vh4w2dvgi9v3q8p6h7ka-nixos-system-nixos-19.03.git.ca2ba44cab4/init loglevel=7 console=ttyS0,115200n8 console=ttymxc0,115200n8 console=ttyAMA0,115200n8 console=ttyO0,115200n8 console=ttySAC2,115200n8 console=tty0' | |
Use kpartx to bring up the kernel/initrd and read the extlinux options |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
starting VDE switch for network 2 | |
starting VDE switch for network 1 | |
running the VM test script | |
starting all VMs | |
tracker: starting vm | |
tracker# Formatting '/build/vm-state-tracker/tracker.qcow2', fmt=qcow2 size=536870912 cluster_size=65536 lazy_refcounts=off refcount_bits=16 | |
tracker: QEMU running (pid 598) | |
router: starting vm | |
router# Formatting '/build/vm-state-router/router.qcow2', fmt=qcow2 size=536870912 cluster_size=65536 lazy_refcounts=off refcount_bits=16 | |
router: QEMU running (pid 610) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env nix-shell | |
#!nix-shell --pure -p dropbear -p cpio -p gzip -i bash | |
set -e | |
set -o pipefail | |
key_location=/etc/nixos/dropbear_ecda_host_key | |
target_path=/etc/dropbear/dropbear_ecdsa_host_key | |
initrd_dest=/boot/secrets_initramfs.gz # must match nix config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
boot.kernelPatches = | |
let | |
alarmRev = "2026bde"; | |
alarmPatch = { name, sha256 }: { | |
inherit name; | |
patch = pkgs.fetchpatch { | |
url = "https://raw.githubusercontent.com/archlinuxarm/PKGBUILDs/${alarmRev}/core/linux-aarch64/${name}"; | |
inherit sha256; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv, fetchurl, makeWrapper, perl, coreutils, rsync, bzip2, gzip, findutils, | |
perlPackages | |
}: | |
stdenv.mkDerivation { | |
name = "dirvish"; | |
src = fetchurl { | |
url = "http://dirvish.org/dirvish-1.2.1.tgz"; | |
sha256 = "1kbxa1irszp2zw8hd5qzqnrrzb4vxfivs1vn64yxnj0lak1jjzvb"; |
NewerOlder