Add unifi-controller host

This commit is contained in:
yuri 2024-01-19 12:15:50 +01:00
parent 5a9b158608
commit d97d3a0a2a
No known key found for this signature in database
4 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,23 @@
{ ... }:
{
boot.loader.grub = {
enable = true;
device = "/dev/vda";
};
networking = {
hostName = "unifi-controller";
firewall = {
allowedTCPPorts = [ 53 8080 8443 8880 8843 6789 27117 ];
allowedUDPPorts = [ 53 3478 5514 10001 1900 123 ];
allowedUDPPortRanges = [
{
from = 5656;
to = 5699;
}
];
};
};
system.stateVersion = "23.11";
}

View file

@ -0,0 +1,7 @@
{ ... }:
{
imports = [
./configuration.nix
./unifi.nix
];
}

View file

@ -0,0 +1,12 @@
{ pkgs, lib, ... }:
{
services.unifi = {
enable = true;
unifiPackage = pkgs.unifi;
};
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"unifi-controller"
"mongodb"
];
}

View file

@ -112,6 +112,10 @@ in
site = "vs";
environment = "proxmox";
};
unifi-controller = {
site = "wg";
environment = "proxmox";
};
valkyrie = {
hostNixpkgs = nixpkgs-23-05;
site = "af";