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
# NixOS manual | |
nixos.org/nixos/manual/ | |
# GET ETHERNET / WIRED INTERNET FIRST | |
# Prepare USB stick - dependent on machines - this worked for an iMac | |
http://superuser.com/questions/795879/how-to-configure-dual-boot-nixos-with-mac-os-x-on-an-uefi-macbook | |
# Prepare hard disk via Disk Utility on OSX beforehand (for multiple oses) |
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
module RedBlackTree | |
( | |
Tree, | |
empty, | |
member, | |
insert) | |
where | |
data Color = R | B deriving Show |
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
{-# LANGUAGE | |
DeriveGeneric, | |
FlexibleInstances, | |
FlexibleContexts, | |
AllowAmbiguousTypes, | |
ScopedTypeVariables, | |
TypeApplications, | |
TypeFamilies, | |
TypeOperators, | |
PartialTypeSignatures, |
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
[ 165.023] | |
X.Org X Server 1.16.4 | |
Release Date: 2014-12-20 | |
[ 165.023] X Protocol Version 11, Revision 0 | |
[ 165.023] Build Operating System: Linux 3.12.27 x86_64 | |
[ 165.023] Current Operating System: Linux nixoslappy 3.14.34 #1-NixOS SMP Thu Jan 1 00:00:01 UTC 1970 x86_64 | |
[ 165.023] Kernel command line: initrd=\efi\nixos\pnhjgx3v9pkxyhqhjcxh62l2axwnwd3g-initrd-initrd.efi systemConfig=/nix/store/siybfc2y9prrwk6bab8bz8yh0460axwb-nixos-14.12.496.5f7d374 init=/nix/store/siybfc2y9prrwk6bab8bz8yh0460axwb-nixos-14.12.496.5f7d374/init loglevel=4 | |
[ 165.023] Build Date: 01 March 2015 04:27:12AM | |
[ 165.023] | |
[ 165.023] Current version of pixman: 0.32.6 |
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
# 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> {}; |
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, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix | |
]; | |
time.timeZone = "America/Chicago"; |
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
{ pkgs ? import <nixpkgs> {}}: | |
let | |
texpkgs = pkgs.texlive.combine { | |
inherit (pkgs.texlive) scheme-small latexmk; | |
}; | |
in | |
pkgs.stdenv.mkDerivation { | |
name = "mbd"; |
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
{ pkgs ? import <nixpkgs> {}}: | |
let | |
texpkgs = pkgs.texlive.combine { | |
inherit (pkgs.texlive) scheme-small latexmk; | |
}; | |
in | |
pkgs.stdenv.mkDerivation { | |
name = "mbd"; |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
{ runCommand, fetchzip, cabal2nix }: | |
let | |
package-src = runCommand "package-src" { | |
src = fetchzip { | |
url = "...zip"; | |
sha256 = "..."; | |
}; | |
buildInputs = [ cabal2nix ]; | |
} | |
'' |
NewerOlder