Skip to content

Instantly share code, notes, and snippets.

View Ericson2314's full-sized avatar

John Ericson Ericson2314

View GitHub Profile
@Ericson2314
Ericson2314 / playground.rs
Last active December 19, 2015 03:33 — forked from anonymous/playground.rs
More associated types
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
{ me ? "5acef014fd9ca6119226d7c5373b1b8cc4df1376"
, base ? "b09435ea51caaae1865e667aaa32f7cba4cc4ff2"
}:
rec {
inherit me base;
myNixpkgsFunc = import (builtins.fetchTarball "https://github.com/Ericson2314/nixpkgs/archive/${me}.tar.gz");
myNixpkgs = myNixpkgsFunc {};

Multi user nix installation

Each section should be run as the user or as root, pay attention to which one!

Install nix single user

As $USER

curl https://nixos.org/nix/install | sh