2024-10-16 15:37:45 +02:00
|
|
|
{lib, config, modulesPath, ...}:
|
2024-10-16 14:33:27 +02:00
|
|
|
let
|
2024-11-28 09:47:45 +01:00
|
|
|
cfg = config.services.lxc;
|
2024-10-16 14:33:27 +02:00
|
|
|
in
|
|
|
|
{
|
2024-11-28 09:47:45 +01:00
|
|
|
options.services.lxc = {
|
2024-10-16 14:33:27 +02:00
|
|
|
enable = lib.mkEnableOption "Enable LXC container config";
|
|
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
2024-12-12 11:14:01 +01:00
|
|
|
boot.isContainer = true;
|
|
|
|
proxmoxLXC = {
|
|
|
|
enable = true;
|
|
|
|
privileged = false;
|
2024-12-12 11:32:58 +01:00
|
|
|
manageNetwork = false;
|
|
|
|
manageHostName = false;
|
2024-12-12 11:14:01 +01:00
|
|
|
};
|
2024-10-16 14:33:27 +02:00
|
|
|
systemd.suppressedSystemUnits = [
|
|
|
|
"dev-mqueue.mount"
|
|
|
|
"sys-kernel-debug.mount"
|
|
|
|
"sys-fs-fuse-connections.mount"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|