lxc patch 11

This commit is contained in:
2026-04-12 16:56:13 -04:00
parent 665b5679e4
commit 52a5ad90e2
+16
View File
@@ -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