From 0493339ac17d7712a13731f3b1507d5a6505b1ff Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 22 Feb 2024 17:26:09 +0100 Subject: [PATCH] dacbert: disable smartd, fix cachefilesd /tmp access --- hosts/dacbert/default.nix | 4 ++++ modules/rpi-netboot.nix | 1 + 2 files changed, 5 insertions(+) diff --git a/hosts/dacbert/default.nix b/hosts/dacbert/default.nix index 32a35783..800ded93 100644 --- a/hosts/dacbert/default.nix +++ b/hosts/dacbert/default.nix @@ -210,6 +210,10 @@ in }; }; + # /modules/baremetal.nix assumptions that don't make sense for netboot + services.smartd.enable = lib.mkForce false; + services.fstrim.enable = lib.mkForce true; + systemd = { services.nix-daemon.serviceConfig = { LimitNOFILE = lib.mkForce 8192; diff --git a/modules/rpi-netboot.nix b/modules/rpi-netboot.nix index 713fa848..37c1a798 100644 --- a/modules/rpi-netboot.nix +++ b/modules/rpi-netboot.nix @@ -82,4 +82,5 @@ enable = true; cacheDir = "/tmp/fscache"; }; + systemd.services.cachefilesd.serviceConfig.PrivateTmp = lib.mkForce false; }