Added Omada software controller to vm-oddjob

This commit is contained in:
Jan-Bulthuis committed 2025-07-23 10:52:23 +02:00
1 parent fa17ce5b03
commit f06880d6d7
3 files changed
+62 -15

No files matched your search

+36
View File
@@ -18,6 +18,42 @@
profiles.vm.enable = true;
};
# Omada Software Controller
users.users.omada = {
isSystemUser = true;
group = "omada";
};
users.groups.omada = { };
virtualisation.podman = {
enable = true;
dockerCompat = true;
defaultNetwork.settings.dns_enabled = true;
};
virtualisation.oci-containers = {
backend = "podman";
containers = {
omada-controller = {
user = "omada:omada";
podman.user = "omada";
volumes = [
"/var/lib/omada:/opt/tplink/EAPController/data"
"/var/log/omada:/opt/tplink/EAPController/logs"
];
environment = {
TZ = "Europe/Amsterdam";
};
extraOptions = [
"--network=host"
"--ulimit nofile=4096:8192"
];
image = "mbentley/omada-controller:5.15";
};
};
};
modules.impermanence.directories = [
"/var/lib/omada"
];
# Setup NAS backups
environment.systemPackages = with pkgs; [
keyutils