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 | |
, lib | |
, fetchFromGitHub | |
, kernel | |
, kmod | |
}: | |
stdenv.mkDerivation { | |
pname = "qnap-ec"; | |
version = "unstable-2021-11-22"; |
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 bash | |
# This assumes a booted rescue system, copies the installation media to the destination disk | |
# it'll then add a CIDATA partition to the end of the disk, and prepare it with user-data | |
# used in a terraform ssh provisioner, but extracted to here for now. | |
destination_disk=/dev/nvme0n1 | |
talos_version=v0.14.3 | |
wipefs -af $destination_disk | |
wget https://github.com/talos-systems/talos/releases/download/${talos_version}/nocloud-amd64.raw.xz |
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
- name: This doesn't work | |
hosts: localhost | |
connection: local | |
gather_facts: no | |
become: no | |
tasks: | |
- local_action: > | |
shell | |
echo hey |
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
# stolen from https://gist.github.com/tarnacious/f9674436fff0efeb4bb6585c79a3b9ff | |
{ config, lib, pkgs, ... }: | |
with lib; | |
{ | |
imports = | |
[ | |
<nixpkgs/nixos/modules/installer/cd-dvd/channel.nix> | |
./configuration.nix |
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
Bus 004 Device 092: ID 1083:1660 Canon Electronics, Inc. CANON P-208II | |
Bus 004 Device 086: ID 0451:82ff Texas Instruments, Inc. | |
Bus 004 Device 085: ID 0451:8242 Texas Instruments, Inc. CANON P-208II | |
Bus 004 Device 082: ID 0451:8442 Texas Instruments, Inc. |
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
SUBSYSTEMS=="usb", ATTRS{idVendor}=="1083", ATTRS{idProduct}=="1660", MODE="0666" | |
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="82ff", MODE="0666" | |
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="8242", MODE="0666" | |
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="8442", MODE="0666" |
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 bash | |
# buildkite groups the builds by BUILDKITE_BRANCH. | |
# This allows us to arbitrarily group buildkite jobs, while still allowing | |
# agents to checkout, if change and revision id is passed in metadata. | |
set -euo pipefail | |
if buildkite-agent meta-data exists change_id && buildkite-agent meta-data exists revision_id; then | |
change_id="$(buildkite-agent meta-data get change_id)" | |
revision_id="$(buildkite-agent meta-data get revision_id)" | |
partial_change_id="${change_id: -2:2}" | |
# refs/changes/%s/%s/%s", changeID[len(changeID)-2:], changeID, revisionID) |
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 bash | |
nixBuild() { | |
DRV=$(nix-instantiate "$@"); | |
nix-build $DRV --builders "" --no-out-link; | |
S=$?; | |
if [ $S -ne 0 ]; then | |
# trigger a git bisect bad if the bad line was found | |
nix log $DRV | grep -i "has terminated unexpectedly during startup" && exit 42; | |
# else trigger a skip (some other random build failure) | |
exit 125; |
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 1 | |
running the VM test script | |
machine: waiting for the X11 server | |
machine: running command: journalctl -b SYSLOG_IDENTIFIER=systemd | grep 'Reached target Current graphical' | |
machine: waiting for the VM to finish booting | |
machine: starting vm | |
machine# Formatting '/build/vm-state-machine/machine.qcow2', fmt=qcow2 size=536870912 cluster_size=65536 lazy_refcounts=off refcount_bits=16 | |
machine: QEMU running (pid 597) | |
machine# c[?7l[2J[0mSeaBIOS (version rel-1.12.1-0-ga5cab58e9a3f-prebuilt.qemu.org) | |
machine# |
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 1 | |
running the VM test script | |
machine: waiting for the X11 server | |
machine: running command: journalctl -b SYSLOG_IDENTIFIER=systemd | grep 'Reached target Current graphical' | |
machine: waiting for the VM to finish booting | |
machine: starting vm | |
machine# Formatting '/build/vm-state-machine/machine.qcow2', fmt=qcow2 size=536870912 cluster_size=65536 lazy_refcounts=off refcount_bits=16 | |
machine: QEMU running (pid 597) | |
machine# c[?7l[2J[0mSeaBIOS (version rel-1.12.1-0-ga5cab58e9a3f-prebuilt.qemu.org) | |
machine# |