From a5b62cd6cecf2bb3224f128f3e77eb64304b387c Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 29 Feb 2024 18:59:41 +0100 Subject: [PATCH] fix: immich upload limit --- hosts/desktopnix/fs.nix | 2 +- hosts/elisabeth/guests.nix | 4 ++-- modules/services/adguardhome.nix | 1 + pkgs/deploy.nix | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hosts/desktopnix/fs.nix b/hosts/desktopnix/fs.nix index 2e521cd..c60c48f 100644 --- a/hosts/desktopnix/fs.nix +++ b/hosts/desktopnix/fs.nix @@ -13,7 +13,7 @@ format = "gpt"; partitions = [ (partEfi "boot" "0%" "2GiB") - (partSwap "swap" "2GiB" "18GiB") + #(partSwap "swap" "2GiB" "18GiB") (partLuksZfs "m2-ssd" "rpool" "18GiB" "100%") ]; }; diff --git a/hosts/elisabeth/guests.nix b/hosts/elisabeth/guests.nix index ef6ba9a..e67b6ee 100644 --- a/hosts/elisabeth/guests.nix +++ b/hosts/elisabeth/guests.nix @@ -65,7 +65,7 @@ in { servers."${ipOf "immich"}:2283" = {}; extraConfig = '' - zone gitea 64k ; + zone immich 64k ; keepalive 5 ; ''; }; @@ -77,7 +77,7 @@ in { proxyWebsockets = true; }; extraConfig = '' - client_max_body_size 1G ; + client_max_body_size 5G ; ''; }; diff --git a/modules/services/adguardhome.nix b/modules/services/adguardhome.nix index 9d8540c..e8a0416 100644 --- a/modules/services/adguardhome.nix +++ b/modules/services/adguardhome.nix @@ -32,6 +32,7 @@ user_rules = [ "||adguardhome.${config.secrets.secrets.global.domains.web}^$dnsrewrite=${lib.net.cidr.host config.secrets.secrets.global.net.ips.elisabeth config.secrets.secrets.global.net.privateSubnetv4}" "||nc.${config.secrets.secrets.global.domains.web}^$dnsrewrite=${lib.net.cidr.host config.secrets.secrets.global.net.ips.elisabeth config.secrets.secrets.global.net.privateSubnetv4}" + "||immich.${config.secrets.secrets.global.domains.web}^$dnsrewrite=${lib.net.cidr.host config.secrets.secrets.global.net.ips.elisabeth config.secrets.secrets.global.net.privateSubnetv4}" "||fritz.box^$dnsrewrite=${lib.net.cidr.host 1 config.secrets.secrets.global.net.privateSubnetv4}" ]; dhcp.enabled = false; diff --git a/pkgs/deploy.nix b/pkgs/deploy.nix index e89e797..6c287ea 100644 --- a/pkgs/deploy.nix +++ b/pkgs/deploy.nix @@ -1,6 +1,7 @@ { symlinkJoin, writeShellApplication, + nvd, nix-output-monitor, }: let deploy = writeShellApplication { @@ -92,7 +93,7 @@ ssh "$host" -- "$top_level/bin/switch-to-configuration" "$ACTION" \ || die "Error activating toplevel for $system" if [[ -n "$prev_system" ]]; then - ssh "$host" -- nvd --color always diff "$prev_system" "$top_level" + ssh "$host" -- ${nvd}/bin/nvd --color always diff "$prev_system" "$top_level" fi ) }