Giter Site home page Giter Site logo

nix-packer's Introduction

About

This is a Packer definition for NixOS. It builds a Vagrant box for NixOS 14.12 x86_64.

Usage

(to be updated by cstrahan)

Pre-built boxes are hosted on VagrantCloud. To use a pre-built box, you just need to set the config.vm.box setting in your Vagrantfile to "cstrahan/nixos-14.04-x86_64". Here's a complete example:

Vagrant.configure("2") do |config|
  config.vm.box         = "cstrahan/nixos-14.04-x86_64"
  config.vm.box_version = "~> 0.1.0"

  config.ssh.forward_agent = true

  config.vm.provider "virtualbox" do |v|
    v.memory = 4000
    v.gui = false
  end
end

Building

If you want to customize the box, there are a couple variables you can pass to Packer:

  • swap_size - The size of the swap partition in megabytes. If this is empty (the default), no swap partition is created.
  • disk_size - The total size of the hard disk in megabytes (defaults to 2000).
  • graphical - Set this to true to get a graphical desktop

There are also a couple variables that only affect the build:

  • memmory_size - The amount of RAM in megabytes (defaults to 1024).
  • cpus - The number of CPUs (defaults to 1).

Example:

$ sh ./build-stable.sh    \
    -var 'cpus=2'         \
    -var 'swap_size=2000'

nix-packer's People

Contributors

cstrahan avatar wmertens avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.