nixos-hypervisor/systems/lxc.nix

20 lines
424 B
Nix
Raw Normal View History

2024-10-16 14:33:27 +02:00
{ inputs, lib, config, modulesPath, ... }:
let
cfg = config.services.vm;
in
{
options.services.ct = {
enable = lib.mkEnableOption "Enable LXC container config";
};
config = lib.mkIf cfg.enable {
imports = [ (modulesPath + "/virtualisation/proxmox-lxc.nix") ];
systemd.suppressedSystemUnits = [
"dev-mqueue.mount"
"sys-kernel-debug.mount"
"sys-fs-fuse-connections.mount"
];
};
}