2010-02-16 00:27:51 +01:00
|
|
|
# This module contains the basic configuration for building a NixOS
|
|
|
|
# installation CD.
|
|
|
|
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
with pkgs.lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
pkgs2storeContents = l : map (x: { object = x; symlink = "none"; }) l;
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
2010-09-25 11:33:03 +02:00
|
|
|
require = [
|
|
|
|
./system-tarball.nix
|
|
|
|
|
|
|
|
# Profiles of this basic installation.
|
|
|
|
../../profiles/base.nix
|
|
|
|
../../profiles/installation-device.nix
|
|
|
|
];
|
2010-02-16 00:27:51 +01:00
|
|
|
|
|
|
|
# To speed up further installation of packages, include the complete stdenv
|
|
|
|
# in the Nix store of the tarball.
|
|
|
|
tarball.storeContents = pkgs2storeContents [ pkgs.stdenv pkgs.klibc pkgs.klibcShrunk ];
|
|
|
|
|
2010-09-08 18:53:36 +02:00
|
|
|
tarball.contents =
|
2010-09-17 19:25:46 +02:00
|
|
|
[ { source = config.boot.kernelPackages.kernel + "/" + config.system.boot.loader.kernelFile;
|
2010-09-16 21:24:52 +02:00
|
|
|
target = "/boot/" + config.system.boot.loader.kernelFile;
|
2010-09-08 18:53:36 +02:00
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2010-02-16 00:27:51 +01:00
|
|
|
# Allow sshd to be started manually through "start sshd". It should
|
|
|
|
# not be started by default on the installation CD because the
|
|
|
|
# default root password is empty.
|
2010-03-11 18:02:53 +01:00
|
|
|
services.openssh.enable = true;
|
2010-10-31 20:34:39 +01:00
|
|
|
jobs.openssh.startOn = pkgs.lib.mkOverrideTemplate 50 {} "";
|
2010-02-16 00:27:51 +01:00
|
|
|
}
|