Fix copying of LXC system contents

This commit is contained in:
Dylan Frankland 2021-04-11 21:40:25 -07:00
parent b0d666696f
commit 1900ec1845
No known key found for this signature in database
GPG Key ID: ACE0967A79C08B45

View File

@ -1,17 +1,22 @@
{ config, pkgs, lib, modulesPath, ... }: let
pkgs2storeContents = l : map (x: { object = x; symlink = "none"; }) l;
in {
{ config, pkgs, lib, modulesPath, ... }:
{
imports = [
"${toString modulesPath}/virtualisation/lxc-container.nix"
];
system.build.tarball = lib.mkForce (pkgs.callPackage <nixpkgs/nixos/lib/make-system-tarball.nix> {
contents = [];
extraArgs = "--owner=0";
storeContents = [
{
object = config.system.build.toplevel + "/init";
symlink = "/sbin/init";
object = config.system.build.toplevel;
symlink = "none";
}
];
contents = [
{
source = config.system.build.toplevel + "/init";
target = "/sbin/init";
}
];