add omada
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
./modules/avahi.nix
|
./modules/avahi.nix
|
||||||
./modules/openconnect.nix
|
./modules/openconnect.nix
|
||||||
./modules/wireguard.nix
|
./modules/wireguard.nix
|
||||||
|
./modules/omada.nix
|
||||||
|
|
||||||
# git
|
# git
|
||||||
./modules/gitea.nix
|
./modules/gitea.nix
|
||||||
|
|||||||
39
hosts/fw.cloonar.com/modules/omada.nix
Normal file
39
hosts/fw.cloonar.com/modules/omada.nix
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
users.users.omada = {
|
||||||
|
isSystemUser = true;
|
||||||
|
group = "omada";
|
||||||
|
home = "/var/lib/omada";
|
||||||
|
createHome = true;
|
||||||
|
};
|
||||||
|
users.groups.omada = { };
|
||||||
|
users.groups.docker.members = [ "omada" ];
|
||||||
|
|
||||||
|
virtualisation.podman.defaultNetwork.settings = {
|
||||||
|
cniVersion = "0.4.0";
|
||||||
|
name = "newnet";
|
||||||
|
plugins = [
|
||||||
|
{
|
||||||
|
type = "macvlan";
|
||||||
|
master = "server";
|
||||||
|
pam = {
|
||||||
|
type = "dhcp";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
# TODO: check if we can run docker service as other user than root
|
||||||
|
virtualisation = {
|
||||||
|
oci-containers.containers = {
|
||||||
|
omada = {
|
||||||
|
image = "mbentley/omada-controller:5.9";
|
||||||
|
volumes = [
|
||||||
|
"/var/lib/omada/data:/opt/tplink/EAPController/data"
|
||||||
|
"/var/lib/omada/logs:/opt/tplink/EAPController/logs"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user