Skip to content

Instantly share code, notes, and snippets.

View dhess's full-sized avatar

Drew Hess dhess

View GitHub Profile

Keybase proof

I hereby claim:

  • I am dhess on github.
  • I am dhess (https://keybase.io/dhess) on keybase.
  • I have a public key ASAHn9pQSRYbgoo_2p-x7aMR-d_Ev2M_mIM-HrJgPjY2RAo

To claim this, I am signing this object:

{ config, pkgs, lib, ... }:
{
imports = (import ./modules-list.nix);
...
}
starting VDE switch for network 1
running the VM test script
starting all VMs
badserver: starting vm
badserver# Formatting '/build/vm-state-badserver/badserver.qcow2', fmt=qcow2 size=536870912 cluster_size=65536 lazy_refcounts=off refcount_bits=16
badserver: QEMU running (pid 600)
server: starting vm
server# Formatting '/build/vm-state-server/server.qcow2', fmt=qcow2 size=536870912 cluster_size=65536 lazy_refcounts=off refcount_bits=16
server: QEMU running (pid 612)
client: starting vm
{ pkgs, ... }:
let
# This is a neat trick that clever taught me on #nixos. Here we
# re-import nixpkgs (using our fixed nixpkgs via pkgs.path) and
# force the system to be x86_64-linux, which in turn causes this
# derivation always to be built on x86_64-linux, regardless of the
# system it was intended to be built for (as long as we use
# nixpkgs.x instead of pkgs.x in the derivation!).
setupCompilerEnvironmentPhase
Build with /nix/store/bz080s1vgziz7l2nd7a4smlikm6b46ki-ghc-8.4.3.
ignoring (possibly broken) abi-depends field for packages
ignoring (possibly broken) abi-depends field for packages
unpacking sources
unpacking source archive /nix/store/2a5jy7c0ca48a2sxrq12s0wxvhx5jd79-tls-1.4.1.tar.gz
source root is tls-1.4.1
setting SOURCE_DATE_EPOCH to timestamp 1519939091 of file tls-1.4.1/tls.cabal
patching sources
compileBuildDriverPhase
(use-package company
:config
(setq company-global-modes '(not erc-mode))
(add-hook 'after-init-hook 'global-company-mode))
(use-package nix-sandbox
:config
(setq nix-nixpkgs-path (expand-file-name "~/.nix-defexpr/nixpkgs")))
(use-package nix-mode
< RSA2048 : {} | RSA4096 : {} | ECDSA256 : {} | ECDSA384 : {} | ECDSA521 : {} >
{
hetzner = { config, pkgs, ... }: {
config = {
deployment.targetHost = "host.example.com";
# Hetzner network config is static.
boot.kernelParams = [ "net.ifnames=0" ]; # Don't rename interfaces
networking = {
defaultGateway = "192.168.1.1";
defaultGateway6 = {
[ 8.005624] Intel(R) Wireless WiFi driver for Linux
[ 8.005629] Copyright(c) 2003- 2015 Intel Corporation
[ 8.009708] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-9260-th-b0-jf-b0-34.ucode failed with error -2
[ 8.009817] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-9260-th-b0-jf-b0-33.ucode failed with error -2
[ 8.009859] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-9260-th-b0-jf-b0-32.ucode failed with error -2
[ 8.009928] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-9260-th-b0-jf-b0-31.ucode failed with error -2
[ 8.010076] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-9260-th-b0-jf-b0-30.ucode failed with error -2
[ 8.010085] iwlwifi 0000:04:00.0: no suitable firmware found!
[ 8.016491] iwlwifi 0000:04:00.0: minimum version required: iwlwifi-9260-th-b0-jf-b0-30
[ 8.025376] iwlwifi 0000:04:00.0: maximum version supported: iwlwifi-9260-th-b0-jf-b0-34
added deployment ‘447e09e8-f002-11e6-9e77-002590adc06c’
Using nixpkgs=/nix/store/42k9pk93lbbpdcqy4vdv7wya3crgni9b-source
resource ‘tycho’ is obsolete
resource ‘charon’ is obsolete
resource ‘kepler’ is obsolete
resource ‘c1’ is obsolete
test-container> building initial configuration...
error: while evaluating the attribute 'config.system.build.toplevel' at /nix/store/42k9pk93lbbpdcqy4vdv7wya3crgni9b-source/nixos/modules/system/activation/top-level.nix:264:5:
while evaluating 'foldr' at /nix/store/42k9pk93lbbpdcqy4vdv7wya3crgni9b-source/lib/lists.nix:36:20, called from /nix/store/42k9pk93lbbpdcqy4vdv7wya3crgni9b-source/nixos/modules/system/activation/top-level.nix:135:12:
while evaluating 'fold'' at /nix/store/42k9pk93lbbpdcqy4vdv7wya3crgni9b-source/lib/lists.nix:39:15, called from /nix/store/42k9pk93lbbpdcqy4vdv7wya3crgni9b-source/lib/lists.nix:43:8: