From 24ea080b34b595c7e9044283d5a15d2ea2e98119 Mon Sep 17 00:00:00 2001 From: Ciapa Date: Sat, 4 May 2024 22:54:00 +0200 Subject: [PATCH] Install unifi controller --- hosts/phoenix.lewd.wtf/networking.nix | 2 +- hosts/phoenix.lewd.wtf/services/unifi-controller.nix | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 hosts/phoenix.lewd.wtf/services/unifi-controller.nix diff --git a/hosts/phoenix.lewd.wtf/networking.nix b/hosts/phoenix.lewd.wtf/networking.nix index a499968..5571f59 100644 --- a/hosts/phoenix.lewd.wtf/networking.nix +++ b/hosts/phoenix.lewd.wtf/networking.nix @@ -25,7 +25,7 @@ ]; networking.defaultGateway = "192.168.0.1"; - networking.nameservers = [ "192.168.0.1" ]; + networking.nameservers = [ "1.1.1.1" ]; networking.firewall.enable = false; diff --git a/hosts/phoenix.lewd.wtf/services/unifi-controller.nix b/hosts/phoenix.lewd.wtf/services/unifi-controller.nix new file mode 100644 index 0000000..4a373b3 --- /dev/null +++ b/hosts/phoenix.lewd.wtf/services/unifi-controller.nix @@ -0,0 +1,8 @@ +{ config, pkgs, ... }: +{ + services.unifi = { + enable = true; + unifiPackage = pkgs.unifi8; + openFirewall = true; + }; +}