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, ... }:
{ 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;
};