This file contains hidden or 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
# This file describes how to build custom virtualbox instances. This examples ignores things like cross compiling etc.. | |
# this defines the function signature of our expression, pkgs is defaulted to the systems packages, | |
# you could also overrides that if you need a specific release / channel. | |
{ pkgs ? import <nixpkgs> {}}: | |
# "let" expressions are just there to introduce scoped variables and functions, | |
# in this case it is declaring just a helper function | |
let | |
# this creates a helper function that abstracts a bit of the boilerplate away | |
# `mkVM` takes one argument, a list of `modules` to include in the image. |
This file contains hidden or 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> {}}: | |
let | |
lib = pkgs.lib; | |
makeImageFromDebDist = | |
{ name, fullName, size ? 4096, urlPrefix | |
, packagesList ? "", packagesLists ? [packagesList] | |
, packages, extraPackages ? [], postInstall ? "" | |
, extraDebs ? [] | |
, QEMU_OPTS ? "", memSize ? 512 | |
, createRootFS }: |
This file contains hidden or 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
{ | |
imports = [ | |
# configure the mountpoint of the root device | |
({ | |
fileSystems."/".device = "/dev/disk/by-label/nixos"; | |
}) | |
# configure the bootloader | |
({ | |
boot.loader.grub.extraConfig = '' |
This file contains hidden or 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
with import <nixpkgs> {}; # FIXME: pin the revision | |
let | |
# there is no stable or content adressable URL for this file :( | |
url = https://riotgamespatcher-a.akamaihd.net/releases/live/installer/deploy/League%20of%20Legends%20installer%20NA.exe; | |
registry = pkgs.writeText "registry.reg" '' | |
REGEDIT4 | |
[HKEY_CURRENT_USER\Software\Wine\X11 Driver] |
This file contains hidden or 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
{ attrPaths ? [ | |
"cargo-download" | |
# "cargo-vendor" | |
"carnix" | |
] }: | |
let | |
pkgs = import ../../../default.nix { }; | |
getSource = pkg: pkg.overrideAttrs (_: { |
This file contains hidden or 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 | |
master: starting vm | |
master# Formatting '/tmp/nix-build-vm-test-run-mysql-replication.drv-0/vm-state-master/master.qcow2', fmt=qcow2 size=536870912 cluster_size=65536 lazy_refcounts=off refcount_bits=16 | |
master: QEMU running (pid 6401) | |
master: waiting for unit ‘mysql’ | |
master: running command: systemctl --no-pager show "mysql" | |
master: waiting for the VM to finish booting | |
master# cSeaBIOS (version rel-1.12.0-0-ga698c8995f-prebuilt.qemu.org) | |
master# |
This file contains hidden or 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
-----BEGIN RSA PRIVATE KEY----- | |
MIIEowIBAAKCAQEAxN7nHgbc9gPAXdZg67fAJ51aP7ZhOJOq1CWgwT/Xwc4apJc8 | |
GFBfQRG7wywLnVGNP73cFSwi8UaKFMmX6lHs0R6yprUYdkK6y8z/qNXUYBblGlyq | |
tSgZI/vUmKgnt38FnW0WKym3eaBx5x06SpXQFr/Xp2CFTS5Axo3/bj/jUNTBc2WE | |
06vWhnPXn5rps4kYc+7Yxqjxp2ieQxuYdrlFlOpo2121S3u9NaTCiQjoEIv41T0J | |
O9uQo/ziQJOA/1sg2Ur6w1h3h1bifE5y9/4R/AwatQVW39CMrtgVoXbWplx6Hqtx | |
DCUuez/bNPtC+1bL85iUdv6/fGLTm7Y+BOsOXQIDAQABAoIBAEPY9hm5D8mRPWiZ | |
i0lxSD3e0s2GUzcmXQdD+IThNcBLAY+bt1BB0rIgJG987HvJMT64dfKuBVTVlJzZ | |
ZQuSNGVViQg+/TE0ih/WhH1xRAHhog9VxFcufIuULI531Ug99HdusucpN1wpWVfn | |
EMHHo7FTaET81LPmrtg+87rRNcwTC1lK0CgozNHhYgv32Gv1F5Ni+7jSJVmNjVD2 |
This file contains hidden or 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
@nix { "action": "setPhase", "phase": "unpackPhase" } | |
unpacking sources | |
unpacking source archive /nix/store/jx9xp6gq88sn8sjbgkv9xfica4vyk80s-source | |
source root is source | |
@nix { "action": "setPhase", "phase": "patchPhase" } | |
patching sources | |
applying patch /nix/store/gaw6r3fclx1icvfmyndbxcvk8dbj3hgs-no-saved-proto.patch | |
patching file tensorflow/cc/saved_model/BUILD | |
applying patch /nix/store/wjksbxyzb9lwlsm3aziqvjsvvwnaafd3-system-jsoncpp.patch | |
patching file third_party/systemlibs/jsoncpp.BUILD |
This file contains hidden or 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
@nix { "action": "setPhase", "phase": "initPhase" } | |
initPhase | |
@nix { "action": "setPhase", "phase": "unpackPhase" } | |
unpacking sources | |
unpacking source archive /nix/store/6s0q1is71vr8pn2ba5islblxm4vwr3fm-source | |
source root is source | |
fatal: not a git repository (or any parent up to mount point /) | |
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). | |
@nix { "action": "setPhase", "phase": "patchPhase" } | |
patching sources |
This file contains hidden or 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
@nix { "action": "setPhase", "phase": "initPhase" } | |
initPhase | |
@nix { "action": "setPhase", "phase": "unpackPhase" } | |
unpacking sources | |
unpacking source archive /nix/store/i0fqgkj2ypc85bvapqgg8cccvs6h4x0d-nix-tarball-2.4pre7276_04b79bb/tarballs/nix-2.4pre7276_04b79bb.tar.bz2 | |
source root is nix-2.4pre7276_04b79bb | |
setting SOURCE_DATE_EPOCH to timestamp 1583247657 of file nix-2.4pre7276_04b79bb/src/libexpr/parser-tab.hh | |
warning: file nix-2.4pre7276_04b79bb/src/libexpr/parser-tab.hh may be generated; SOURCE_DATE_EPOCH may be non-deterministic | |
@nix { "action": "setPhase", "phase": "patchPhase" } | |
patching sources |