about summary refs log tree commit diff
path: root/users/tazjin
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-10-01T11·17+0300
committerclbot <clbot@tvl.fyi>2023-10-01T14·26+0000
commitac94bf46a62d32066f47c88b965f98cb2b01fe5e (patch)
treea87fdab5e69b0c6c4b1dc5c68106f785187b6220 /users/tazjin
parentc941ccb42b99d2686b4b573c8cb7a16a17e87b49 (diff)
fix(tazjin/koptevo): minor reliability fixes for music setup r/6683
* 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 <tazjin@tvl.su>
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/tazjin')
-rw-r--r--users/tazjin/nixos/koptevo/default.nix1
-rw-r--r--users/tazjin/nixos/modules/geesefs.nix1
2 files changed, 2 insertions, 0 deletions
diff --git a/users/tazjin/nixos/koptevo/default.nix b/users/tazjin/nixos/koptevo/default.nix
index dabe334d295c..8149070a8d53 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 1d4273f7fc59..c45ee528f6a2 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 = ''