nixos: container profile, fix a few things

This commit is contained in:
Jaka Hudoklin 2014-12-12 20:28:01 +01:00
parent 2c85888a04
commit d8ee91cb54
2 changed files with 2 additions and 4 deletions

View File

@ -41,9 +41,7 @@ in {
rm /nix-path-registration rm /nix-path-registration
fi fi
# nixos-rebuild also requires a "system" profile and an # nixos-rebuild also requires a "system" profile
# /etc/NIXOS tag.
touch /etc/NIXOS
${config.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system ${config.nix.package}/bin/nix-env -p /nix/var/nix/profiles/system --set /run/current-system
''; '';

View File

@ -214,7 +214,7 @@ in rec {
}); });
# Provide container tarball for lxc, libvirt-lxc, docker-lxc, ... # Provide container tarball for lxc, libvirt-lxc, docker-lxc, ...
container_tarball = forAllSystems (system: makeSystemTarball { containerTarball = forAllSystems (system: makeSystemTarball {
module = ./modules/virtualisation/lxc-container.nix; module = ./modules/virtualisation/lxc-container.nix;
inherit system; inherit system;
}); });