From f7fba79b6a97e6bf43fa11adf70cb83f0b8aa460 Mon Sep 17 00:00:00 2001 From: fruchti Date: Mon, 7 Apr 2025 09:13:58 +0200 Subject: [PATCH 1/6] =?UTF-8?q?Nextcloud:=20Don=E2=80=99t=20blacklist=20an?= =?UTF-8?q?y=20files=20server-side?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Attempt to synchronise .htaccess files. Doesn’t seem to work, though. --- hosts/nextcloud.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/nextcloud.nix b/hosts/nextcloud.nix index 7734950..f916038 100644 --- a/hosts/nextcloud.nix +++ b/hosts/nextcloud.nix @@ -14,6 +14,7 @@ in ((lib.toLower config.networking.hostName) + ".lan") (lib.toLower config.networking.hostName) ]; + blacklisted_files = []; }; config = { dbtype = "pgsql"; From 84793a16c763e1327e991ce20226b2f57aacb0ab Mon Sep 17 00:00:00 2001 From: fruchti Date: Mon, 7 Apr 2025 09:14:35 +0200 Subject: [PATCH 2/6] Nextcloud: Add trash file retention policy --- hosts/nextcloud.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/nextcloud.nix b/hosts/nextcloud.nix index f916038..fe1a9cb 100644 --- a/hosts/nextcloud.nix +++ b/hosts/nextcloud.nix @@ -15,6 +15,7 @@ in (lib.toLower config.networking.hostName) ]; blacklisted_files = []; + trashbin_retention_obligation = "auto, 14"; }; config = { dbtype = "pgsql"; From 2d6a9d987682daad03eea17c86ad0c36b1ac22d3 Mon Sep 17 00:00:00 2001 From: fruchti Date: Mon, 7 Apr 2025 09:15:57 +0200 Subject: [PATCH 3/6] Rupert: Configure BluRay playback --- hosts/Rupert.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/hosts/Rupert.nix b/hosts/Rupert.nix index f2f822f..451ac50 100644 --- a/hosts/Rupert.nix +++ b/hosts/Rupert.nix @@ -17,6 +17,17 @@ in # ./open-pgsql.nix ]; + nixpkgs.overlays = [ + ( + self: super: { + libbluray = super.libbluray.override { + withAACS = true; + withBDplus = true; + }; + } + ) + ]; + boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; boot.kernelParams = [ "acpi=force" "reboot=bios" ]; From 567e13ec7101e56ae872e293bc75a82ec1e8a9ef Mon Sep 17 00:00:00 2001 From: fruchti Date: Mon, 7 Apr 2025 09:16:18 +0200 Subject: [PATCH 4/6] Rupert: Add beesd --- hosts/Rupert.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/hosts/Rupert.nix b/hosts/Rupert.nix index 451ac50..08b79b6 100644 --- a/hosts/Rupert.nix +++ b/hosts/Rupert.nix @@ -146,6 +146,22 @@ in }; }; }; + services.beesd = { + filesystems = { + "data" = { + spec = "/data"; + hashTableSizeMB = 1024; + verbosity = "alert"; + }; + "backup-disk" = { + spec = "/mnt/backup"; + hashTableSizeMB = 1024; + verbosity = "alert"; + }; + }; + }; + # Don’t start automatically + systemd.services."beesd@backup-disk".wantedBy = lib.mkForce []; security.acme = { defaults = { From 79034afe61ab3ceae4f41cb1df067aec9e9d960d Mon Sep 17 00:00:00 2001 From: fruchti Date: Mon, 7 Apr 2025 09:17:21 +0200 Subject: [PATCH 5/6] Rupert: Delete some old comments --- hosts/Rupert.nix | 8 -------- 1 file changed, 8 deletions(-) diff --git a/hosts/Rupert.nix b/hosts/Rupert.nix index 08b79b6..3823412 100644 --- a/hosts/Rupert.nix +++ b/hosts/Rupert.nix @@ -99,9 +99,6 @@ in enableSSHSupport = true; }; - # List services that you want to enable: - - # Enable the OpenSSH daemon. services.openssh = { enable = true; settings = { @@ -118,11 +115,6 @@ in 4971 # BURP ]; - # Copy the NixOS configuration file and link it from the resulting system - # (/run/current-system/configuration.nix). This is useful in case you - # accidentally delete configuration.nix. - # system.copySystemConfiguration = true; - system.autoUpgrade = { enable = true; allowReboot = true; From 36eed4c3d2310cc4a1e77d3b5018666802159a13 Mon Sep 17 00:00:00 2001 From: fruchti Date: Mon, 7 Apr 2025 09:27:50 +0200 Subject: [PATCH 6/6] Rupert: Install smartmontools --- hosts/Rupert.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/Rupert.nix b/hosts/Rupert.nix index 3823412..1c0d758 100644 --- a/hosts/Rupert.nix +++ b/hosts/Rupert.nix @@ -71,6 +71,7 @@ in environment.systemPackages = with pkgs; [ ntfsprogs + smartmontools texlive.combined.scheme-full ncmpcpp ];