[<<][nixos][>>][..]
Fri Nov 10 17:41:52 EST 2017

nixos in lxc container

scroll down:
https://github.com/NixOS/nixpkgs/issues/9735

On a nixos machine:

nix-build -E '(import <nixpkgs/nixos/release.nix> {}).containerTarball.x86_64-linux'

Seems to work after some minor edits:

root@zoo:/lxc/nixos# cat config
lxc.network.type = veth
lxc.network.link = br0
lxc.network.flags = up
lxc.network.hwaddr = 00:16:3e:f6:ff:de
lxc.rootfs = /var/lib/lxc/nixos/rootfs
lxc.rootfs.backend = dir

# Added for NixOS.
lxc.include = /usr/share/lxc/config/common.conf
lxc.init_cmd = /init





[Reply][About]
[<<][nixos][>>][..]