nixos/unifi: Set up UniFi controller
Some checks failed
CI / Check, build and cache Nix flake (push) Failing after 40m53s

This commit is contained in:
2024-06-30 12:21:21 +01:00
parent b68e82ae03
commit 4e947d4b1e
3 changed files with 29 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ in
};
};
configuration = { lib, config, assignments, ... }:
configuration = { lib, config, pkgs, assignments, ... }:
let
inherit (lib) mkMerge mkIf mkForce;
inherit (lib.my) networkdAssignment;
@@ -41,13 +41,23 @@ in
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKdgcziQki/RH7E+NH2bYnzSVKaJ27905Yo5TcOjSh/U";
files = { };
};
firewall = {
tcp.allowed = [ 8443 ];
};
};
systemd = {
network.networks."80-container-host0" = networkdAssignment "host0" assignments.hi;
};
services = { };
services = {
unifi = {
enable = true;
openFirewall = true;
unifiPackage = pkgs.unifi8;
};
};
};
};
};