From e5026ef4c2605de89d5cf4681c0a4b194c174744 Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Tue, 19 Nov 2024 21:11:13 -0800 Subject: [PATCH] Upgrade NixOS. Use upstream libedgetpu, frigate, and gasket kernel module. Fix services broken by upgrade. --- common/network/pia-wireguard.nix | 4 +- common/pc/chromium.nix | 2 +- common/pc/default.nix | 4 - common/server/default.nix | 1 - common/server/privatebin/conf.php | 42 ----------- common/server/privatebin/privatebin.nix | 74 ------------------- common/server/samba.nix | 40 +++++----- common/server/unifi.nix | 3 +- flake.lock | 25 +------ flake.nix | 3 +- machines/storage/s0/default.nix | 2 +- machines/storage/s0/frigate.nix | 20 ++++- .../storage/s0/hardware-configuration.nix | 1 - machines/storage/s0/home-automation.nix | 3 +- machines/zoidberg/default.nix | 6 +- overlays/default.nix | 6 -- overlays/kernel-modules/default.nix | 10 +-- overlays/kernel-modules/gasket.nix | 36 --------- overlays/libedgetpu/default.nix | 72 ------------------ overlays/libedgetpu/libedgetpu-stddef.diff | 12 --- secrets/frigate-credentials.age | 12 +-- 21 files changed, 59 insertions(+), 319 deletions(-) delete mode 100644 common/server/privatebin/conf.php delete mode 100644 common/server/privatebin/privatebin.nix delete mode 100644 overlays/kernel-modules/gasket.nix delete mode 100644 overlays/libedgetpu/default.nix delete mode 100644 overlays/libedgetpu/libedgetpu-stddef.diff diff --git a/common/network/pia-wireguard.nix b/common/network/pia-wireguard.nix index 73ec59f..0305f7f 100644 --- a/common/network/pia-wireguard.nix +++ b/common/network/pia-wireguard.nix @@ -151,7 +151,7 @@ in partOf = [ containerServiceName ]; wantedBy = [ "multi-user.target" ]; - path = with pkgs; [ wireguard-tools jq curl iproute iputils ]; + path = with pkgs; [ wireguard-tools jq curl iproute2 iputils ]; serviceConfig = { Type = "oneshot"; @@ -224,7 +224,7 @@ in after = [ "network.target" "network-online.target" ]; wantedBy = [ "multi-user.target" ]; - path = with pkgs; [ wireguard-tools iproute curl jq iptables ]; + path = with pkgs; [ wireguard-tools iproute2 curl jq iptables ]; serviceConfig = { Type = "oneshot"; diff --git a/common/pc/chromium.nix b/common/pc/chromium.nix index 2af83cc..b477bc7 100644 --- a/common/pc/chromium.nix +++ b/common/pc/chromium.nix @@ -57,7 +57,7 @@ in }; # todo vulkan in chrome # todo video encoding in chrome - hardware.opengl = { + hardware.graphics = { enable = true; extraPackages = with pkgs; [ intel-media-driver # LIBVA_DRIVER_NAME=iHD diff --git a/common/pc/default.nix b/common/pc/default.nix index a4129e1..ea5de19 100644 --- a/common/pc/default.nix +++ b/common/pc/default.nix @@ -27,10 +27,6 @@ in }; config = lib.mkIf cfg.enable { - # vulkan - hardware.opengl.driSupport = true; - hardware.opengl.driSupport32Bit = true; - # Applications users.users.googlebot.packages = with pkgs; [ chromium diff --git a/common/server/default.nix b/common/server/default.nix index 6c202f4..64e7952 100644 --- a/common/server/default.nix +++ b/common/server/default.nix @@ -10,7 +10,6 @@ ./matrix.nix ./zerobin.nix ./gitea.nix - ./privatebin/privatebin.nix ./radio.nix ./samba.nix ./owncast.nix diff --git a/common/server/privatebin/conf.php b/common/server/privatebin/conf.php deleted file mode 100644 index bf43f48..0000000 --- a/common/server/privatebin/conf.php +++ /dev/null @@ -1,42 +0,0 @@ -; $out/lib/udev/rules.d/65-apex.rules - ''; -} diff --git a/overlays/libedgetpu/libedgetpu-stddef.diff b/overlays/libedgetpu/libedgetpu-stddef.diff deleted file mode 100644 index ad6fc03..0000000 --- a/overlays/libedgetpu/libedgetpu-stddef.diff +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/api/allocated_buffer.h b/api/allocated_buffer.h -index 97740f0..7bc0547 100644 ---- a/api/allocated_buffer.h -+++ b/api/allocated_buffer.h -@@ -16,6 +16,7 @@ - #define DARWINN_API_ALLOCATED_BUFFER_H_ - - #include -+#include - - namespace platforms { - namespace darwinn { \ No newline at end of file diff --git a/secrets/frigate-credentials.age b/secrets/frigate-credentials.age index e311903..358882f 100644 --- a/secrets/frigate-credentials.age +++ b/secrets/frigate-credentials.age @@ -1,7 +1,7 @@ age-encryption.org/v1 --> ssh-ed25519 hPp1nw Chke1ZtpXxN1c1+AnJ6Cd5kpM1KfQKTwymrfPW53QCA -jUcw8eitC7r0rwefjllndZjARIqpWoVqGCnefHfjQ6Y --> ssh-ed25519 w3nu8g KY/5bU1B5uvmfGHF2d6qBL1NYy64qo324rdvkgnXoDA -OBvuFtzZXQ0RmmEXelyzHMMiVqZir7zQJMA36ZH2siE ---- CSd7lYSYQ2fCTjkJLPGdaNGL8eVpE9IBEyFo0LW907M -$OI///w*D@u5o[:䚥t]J쮸@huk;?XHRE59 \ No newline at end of file +-> ssh-ed25519 hPp1nw zOXF7NsZjm+DCYrJ+Ap2mX35JUt37CLJP1RhyOjB/XE +ePprJM2cnhYZhP8aJUXOZeGHJm/DHlRYomWN+lFaU6w +-> ssh-ed25519 w3nu8g gjeFAbFWXyPdGauKHXAzuIP9fmaj2Oysq9fHO8q7u38 +KiMR0pgEPtsfZnYAIsH7UHNhnsB6rtsW/hqV03uS2dI +--- BPzPECz1g6vEv4OlRn6+FnWP9oq3tn6TN2o867icxYA +}j+l&x-T݋bķDggc*0cp }u7%9%S |šQ*9$䠎 i;)c?GhVvnls)r}ҭhE5Kbg- \ No newline at end of file