unifi: Use package from nixpkgs

This commit is contained in:
Erwin Boskma 2023-11-30 09:00:20 +01:00
parent 6f0bc543d3
commit bbeba689c3
Signed by: erwin
SSH key fingerprint: SHA256:9LmFDe1C6jSrEyqxxvX8NtJBmcbB105XoqyUZF092bg

View file

@ -1,5 +1,5 @@
{ self, ... }: { self, ... }:
{ modulesPath, pkgs, ... }: { { modulesPath, pkgs, lib, ... }: {
imports = [ imports = [
(modulesPath + "/virtualisation/proxmox-lxc.nix") (modulesPath + "/virtualisation/proxmox-lxc.nix")
../../users/root ../../users/root
@ -19,13 +19,14 @@
services.unifi = { services.unifi = {
enable = true; enable = true;
unifiPackage = pkgs.unifi.overrideAttrs (_oldAttrs: { unifiPackage = pkgs.unifi;
version = "7.4.162"; # unifiPackage = pkgs.unifi.overrideAttrs (_oldAttrs: {
src = builtins.fetchurl { # version = "7.5.176";
url = "https://dl.ubnt.com/unifi/7.4.162/unifi_sysvinit_all.deb"; # src = builtins.fetchurl {
sha256 = "sha256-BpZS95NJgSRGjJhVN6Vp8/4djdQEvj+2nfay0YsVPEw="; # url = "https://dl.ubnt.com/unifi/7.5.176-1136930355/unifi_sysvinit_all.deb";
}; # sha256 = "prsFq09zYrB74p/MGKjwvZftw78k9wbIva5xFdk+Ztw=";
}); # };
# });
openFirewall = true; openFirewall = true;
}; };