nixos-hypervisor/services/minimalConfig/lxc.nix
2024-12-12 11:32:58 +01:00

23 lines
506 B
Nix

{lib, config, modulesPath, ...}:
let
cfg = config.services.lxc;
in
{
options.services.lxc = {
enable = lib.mkEnableOption "Enable LXC container config";
};
config = lib.mkIf cfg.enable {
boot.isContainer = true;
proxmoxLXC = {
enable = true;
privileged = false;
manageNetwork = false;
manageHostName = false;
};
systemd.suppressedSystemUnits = [
"dev-mqueue.mount"
"sys-kernel-debug.mount"
"sys-fs-fuse-connections.mount"
];
};
}