lxc patch 11
This commit is contained in:
@@ -15,6 +15,22 @@
|
||||
|
||||
networking.networkmanager.unmanaged = [ "br0" ];
|
||||
|
||||
virtualisation.lxc.systemConfig = ''
|
||||
lxc.start.auto = 1
|
||||
'';
|
||||
|
||||
systemd.services.lxc-autostart = {
|
||||
description = "LXC autostart containers";
|
||||
after = [ "network.target" "lxc.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
ExecStart = "${pkgs.lxc}/bin/lxc-autostart";
|
||||
ExecStop = "${pkgs.lxc}/bin/lxc-autostart -s";
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.lxc.defaultConfig = ''
|
||||
lxc.net.0.type = veth
|
||||
lxc.net.0.link = br0
|
||||
|
||||
Reference in New Issue
Block a user