Skip to content

Instantly share code, notes, and snippets.

View washort's full-sized avatar

Allen Short washort

View GitHub Profile
@ivan
ivan / instructions.md
Last active March 27, 2020 21:03
Replace Debian with NixOS on scaleway

Replace Debian install with NixOS on Scaleway

This is based on nixos-infect.

These instructions assume you have x86 scaleway machines that use UEFI and DHCP. You have may have to change /dev/vda15 if your machines are partitioned differently.

First, rsync your configuration to /root/configuration.

Run:

@kazcw
kazcw / esy.nix
Last active February 27, 2020 16:12
run esy under NixOS
{ pkgs ? import <nixpkgs> {} }:
(pkgs.buildFHSUserEnv {
name = "esy-env";
targetPkgs = pkgs: (with pkgs;
[
# this set suffices to build esy 0.3.4 with esy 0.2.11
# and also to build the hello-ocaml demo with esy 0.3.4
nodejs-10_x
stdenv.cc
{ ... }:
{
fileSystems = {
"/" = {
device = "UUID=d230cc98-8f33-457f-9fee-b65558165188";
fsType = "ext4";
iscsi = {
enable = true;
host = "192.168.2.61";
lun = "iqn.2001-04.com.c2d-nix3";
@adnelson
adnelson / default.nix
Last active April 12, 2017 04:05
Nix release builder
# Function which takes a list of packages to install and creates a
# tarball which contains the full list of dependencies of those paths,
# and a script which will install them.
#
# For example, here's how you would create a tarball packaging up
# python3 and nodejs:
#
#
# let
# pkgs = import <nixpkgs> {};