raven/unifi-controller: init
This also adds a module that explicitly allows certain unfree packages to be installed. Co-Authored-By: Jakob Lechner <mail@jalr.de>
This commit is contained in:
parent
1b6330bfdf
commit
53629c10db
6 changed files with 34 additions and 1 deletions
15
machines/raven/README.md
Normal file
15
machines/raven/README.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# raven
|
||||
|
||||
## Services
|
||||
|
||||
### unifi-controller
|
||||
|
||||
The unifi controller is used for managing the wireless network. It provides a [Web UI](https://raven.fablab-nea.de:8443).
|
||||
|
||||
The following ports are opened in the firewall:
|
||||
|
||||
- `3478/udp` used for STUN
|
||||
- `6789/tcp` used for UniFi mobile speed test
|
||||
- `8080/tcp` used for application GUI/API as seen in a web browser
|
||||
- `8880/tcp` used for HTTP portal redirection
|
||||
- `10001/udp` used for device discovery
|
||||
|
|
@ -3,5 +3,6 @@
|
|||
./dnsmasq.nix
|
||||
./dyndns.nix
|
||||
./labsync.nix
|
||||
./unifi-controller.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
no-hosts
|
||||
addn-hosts=${pkgs.writeText "hosts.dnsmasq" ''
|
||||
192.168.94.1 raven labsync
|
||||
192.168.94.1 raven labsync unifi
|
||||
192.168.94.2 switch
|
||||
''}
|
||||
'';
|
||||
|
|
|
|||
9
machines/raven/services/unifi-controller.nix
Normal file
9
machines/raven/services/unifi-controller.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
services.unifi = {
|
||||
enable = true;
|
||||
openPorts = true;
|
||||
unifiPackage = pkgs.unifi;
|
||||
};
|
||||
networking.firewall.allowedTCPPorts = [ 8443 ];
|
||||
}
|
||||
|
|
@ -5,5 +5,6 @@
|
|||
./pubkeys.nix
|
||||
./sops.nix
|
||||
./tools.nix
|
||||
./unfree.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
7
modules/unfree.nix
Normal file
7
modules/unfree.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ lib, ... }:
|
||||
|
||||
{
|
||||
nixpkgs.config.allowUnfreePredicate = (pkg: lib.elem (lib.getName pkg) [
|
||||
"unifi-controller"
|
||||
]);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue