lxc patch 10

This commit is contained in:
2026-04-11 10:50:16 -04:00
parent 6cd706b33d
commit 665b5679e4
2 changed files with 10 additions and 2 deletions
+8
View File
@@ -5,6 +5,14 @@
lxcfs.enable = true;
};
security.sudo.extraRules = [{
groups = [ "labmates" ];
commands = [
{ command = "/run/current-system/sw/bin/lxc-attach"; options = [ "NOPASSWD" ]; }
{ command = "/run/current-system/sw/bin/lxc-start"; options = [ "NOPASSWD" ]; }
];
}];
networking.networkmanager.unmanaged = [ "br0" ];
virtualisation.lxc.defaultConfig = ''