From bbeba689c3d34ec8a2253f118674dd8382094625 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Thu, 30 Nov 2023 09:00:20 +0100 Subject: [PATCH] unifi: Use package from nixpkgs --- machines/unifi/configuration.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/machines/unifi/configuration.nix b/machines/unifi/configuration.nix index 22576a8..08cc410 100644 --- a/machines/unifi/configuration.nix +++ b/machines/unifi/configuration.nix @@ -1,5 +1,5 @@ { self, ... }: -{ modulesPath, pkgs, ... }: { +{ modulesPath, pkgs, lib, ... }: { imports = [ (modulesPath + "/virtualisation/proxmox-lxc.nix") ../../users/root @@ -19,13 +19,14 @@ services.unifi = { enable = true; - unifiPackage = pkgs.unifi.overrideAttrs (_oldAttrs: { - version = "7.4.162"; - src = builtins.fetchurl { - url = "https://dl.ubnt.com/unifi/7.4.162/unifi_sysvinit_all.deb"; - sha256 = "sha256-BpZS95NJgSRGjJhVN6Vp8/4djdQEvj+2nfay0YsVPEw="; - }; - }); + unifiPackage = pkgs.unifi; + # unifiPackage = pkgs.unifi.overrideAttrs (_oldAttrs: { + # version = "7.5.176"; + # src = builtins.fetchurl { + # url = "https://dl.ubnt.com/unifi/7.5.176-1136930355/unifi_sysvinit_all.deb"; + # sha256 = "prsFq09zYrB74p/MGKjwvZftw78k9wbIva5xFdk+Ztw="; + # }; + # }); openFirewall = true; };