- Create a new disk image (I use VDI for compatibility with VirtualBox)
- Allocate some RAM (>6 GiB to start)
- Add some video memory and enable 3D acceleration, if needed
- Optional: Enable EFI (instead of BIOS)
- Attach
nixos-minimal
ISO for installation - Boot into the ISO
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
<!DOCTYPE html> | |
<html lang="en"> | |
<meta charset="UTF-8"> | |
<title>Page Title</title> | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | |
<link rel="stylesheet" href=""> | |
<style> | |
</style> | |
<script src=""></script> | |
<body> |
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, pkgs, ... }: | |
let | |
grubOptions = { | |
boot.loader.grub.enable = true; | |
boot.loader.grub.version = 2; | |
boot.loader.grub.device = "/dev/vda"; | |
}; | |
uefiOptions = { | |
boot.loader.systemd-boot.enable = true; | |
boot.loader.efi.canTouchEfiVariables = true; |
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 | |
# You can fetch to disk with | |
# curl -o install.sh <raw_gist_url> | |
# | |
# Run with `sudo` | |
# Environment variables: | |
# NIXOS_INSTALL_SWAP_SIZE (default: "8GiB") | |
# NIXOS_INSTALL_ROOT_DRIVE (default: "/dev/sda") | |
# NIXOS_INSTALL_EDIT_CONFIGURATION_FILE (default: "yes", accepted value: "no") |
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 | |
# Run with `sudo` | |
# Environment variables: | |
# NIXOS_INSTALL_SWAP_SIZE (default: "8GiB") | |
# NIXOS_INSTALL_ROOT_DRIVE (default: "/dev/sda") | |
# NIXOS_INSTALL_EDIT_CONFIGURATION_FILE (default: "yes", accepted value: "no") | |
# https://stackoverflow.com/a/2013589 | |
NIXOS_INSTALL_SWAP_SIZE="${NIXOS_INSTALL_SWAP_SIZE:=8GiB}" |
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 | |
fifo="tmp.fifo" | |
mkfifo "${fifo}" | |
# write the below go code to the fifo | |
function write_pointer_deref { | |
cat <<EOF > ${fifo} | |
package foo |
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
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"sync" | |
"time" | |
"github.com/chromedp/cdproto/network" |
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
# build an ISO image that will auto install NixOS and reboot | |
# $ nix-build make-iso.nix | |
let | |
config = (import <nixpkgs/nixos/lib/eval-config.nix> { | |
system = "x86_64-linux"; | |
modules = [ | |
<nixpkgs/nixos/modules/installer/cd-dvd/installation-cd-minimal.nix> | |
({ pkgs, lib, ... }: | |
let |
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
/home/john/Downloads/repos/project/app/.yarn/cache/schema-utils-npm-3.0.0-e97702da81-a084f593f2.zip/node_modules/schema-utils/dist/validate.js:104 | |
throw new _ValidationError.default(errors, schema, configuration); | |
^ | |
ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema. | |
- configuration has an unknown property 'contentBase'. These properties are valid: | |
object { bonjour?, client?, compress?, dev?, firewall?, headers?, historyApiFallback?, host?, hot?, http2?, https?, injectClient?, injectHot?, liveReload?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, openPage?, overlay?, port?, proxy?, public?, setupExitSignals?, static?, stdin?, transportMode?, useLocalIp? } | |
at validate (/home/john/Downloads/repos/project/app/.yarn/cache/schema-utils-npm-3.0.0-e97702da81-a084f593f2.zip/node_modules/schema-utils/dist/validate.js:104:11) | |
at new Server (/home/john/Downloads/repos/project/app/. |
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
digraph G { | |
// edges | |
subgraph cluster_degradedgcc { | |
style=filled; | |
color=lightgrey; | |
cc1 -> lapih -> glibc -> libstdcpp1; | |
label=< <b> cc1: Degraded bootstrap cross-compiler </b> >; | |
} | |
subgraph cluster_supgcc { |
NewerOlder