Skip to content

Instantly share code, notes, and snippets.

View HanStolpo's full-sized avatar

Handré Stolp HanStolpo

View GitHub Profile
@HanStolpo
HanStolpo / install-nixos-on-equinix-metal-c3.medium.x86-via-ubuntu-live-disk.md
Last active October 1, 2021 14:53
Install nixos on an Equinix-metal server c3.medium.x86 via iPXE booting into an Ubuntu live disk

Install nixos on equinix-metal system over iPXE by first booting into Ubuntu live disk available over https://boot.netboot.xyz . I needed to go via the Ubuntu live disk since the NixOS network install does not work on equinix-metal at the moment. This is for the c3.medium.x86 configuration.


Derived from https://gist.github.com/chris-martin/4ead9b0acbd2e3ce084576ee06961000 with its introduction quoted below

These are instructions for booting from an Ubuntu liveCD and installing NixOS on a machine. I needed to do this because the > NixOS liveCD doesn't work on my machine (NixOS/nixpkgs#5829), so I'm just using the Ubuntu installation media as something to boot into. >

fonts = {
enableFontDir = true;
enableGhostscriptFonts = true;
fonts = with pkgs; [
corefonts # Micrsoft free fonts
inconsolata # monospaced
ubuntu_font_family # Ubuntu fonts
unifont # some international languages
powerline-fonts
];
@HanStolpo
HanStolpo / IncorrectImplicitCallStackBehaviour.hs
Created January 13, 2016 12:06
Incorrect behaviour of implicit CallStack with GHC 7.10.2
-- Example of incorrect behaviour of implicit call stack parameters
-- when let bindings are involved in GHC 7.10.2.
--
-- Probably related to following issues:
-- https://ghc.haskell.org/trac/ghc/ticket/11298
-- https://ghc.haskell.org/trac/ghc/ticket/10845
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE ImplicitParams #-}
{-# LANGUAGE RecordWildCards #-}

Keybase proof

I hereby claim:

  • I am HanStolpo on github.
  • I am hanstolpo (https://keybase.io/hanstolpo) on keybase.
  • I have a public key whose fingerprint is 3A63 7DB6 8637 D556 20BA 44FE 1F53 F467 ABB5 CAFD

To claim this, I am signing this object: