From ac94bf46a62d32066f47c88b965f98cb2b01fe5e Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 1 Oct 2023 14:17:21 +0300 Subject: fix(tazjin/koptevo): minor reliability fixes for music setup * zramSwap: during reindexing, geesefs can be pushed to the boundaries of what the new overaggressive OOM killer accepts, and I don't want to bother configuring that thing instead. * umount: geesefs dying unexpectedly leaves broken mounts around, clean these up before proceeding This bakes in the assumption that there's only ever one geesefs service, but that assumption is baked in anyways. Change-Id: Id85c2f5bc2312a7246ea20229eb36d2cc1bd82c0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9500 Reviewed-by: tazjin Autosubmit: tazjin Tested-by: BuildkiteCI --- users/tazjin/nixos/koptevo/default.nix | 1 + users/tazjin/nixos/modules/geesefs.nix | 1 + 2 files changed, 2 insertions(+) (limited to 'users/tazjin/nixos') diff --git a/users/tazjin/nixos/koptevo/default.nix b/users/tazjin/nixos/koptevo/default.nix index dabe334d29..8149070a8d 100644 --- a/users/tazjin/nixos/koptevo/default.nix +++ b/users/tazjin/nixos/koptevo/default.nix @@ -170,6 +170,7 @@ in programs.mtr.enable = true; programs.mosh.enable = true; + zramSwap.enable = true; system.stateVersion = "23.05"; } diff --git a/users/tazjin/nixos/modules/geesefs.nix b/users/tazjin/nixos/modules/geesefs.nix index 1d4273f7fc..c45ee528f6 100644 --- a/users/tazjin/nixos/modules/geesefs.nix +++ b/users/tazjin/nixos/modules/geesefs.nix @@ -19,6 +19,7 @@ Restart = "always"; LoadCredential = "geesefs-tazjins-files:/run/agenix/geesefs-tazjins-files"; StateDirectory = "geesefs"; + ExecStartPre = "/run/wrappers/bin/umount -a -t fuse.geesefs"; }; script = '' -- cgit 1.4.1