From a78668714550be31663509fbf2373f28e01c48fc Mon Sep 17 00:00:00 2001 From: William Date: Wed, 22 Apr 2026 19:53:19 -0300 Subject: [PATCH] pocket-id: add impermanence persistence and fix environmentFile format --- aspects/hosts/_trantor/pocket-id.nix | 13 +++++++++++++ secrets/pocket-id.key.age | Bin 477 -> 602 bytes 2 files changed, 13 insertions(+) diff --git a/aspects/hosts/_trantor/pocket-id.nix b/aspects/hosts/_trantor/pocket-id.nix index 297424f..78f2d75 100644 --- a/aspects/hosts/_trantor/pocket-id.nix +++ b/aspects/hosts/_trantor/pocket-id.nix @@ -27,4 +27,17 @@ in age.secrets.pocket-id-key = { file = "${inputs.self}/secrets/pocket-id.key.age"; }; + + environment.persistence.main.directories = [ + { + directory = config.services.pocket-id.dataDir; + inherit (config.services.pocket-id) user group; + mode = "0700"; + } + ]; + + systemd.services.pocket-id.serviceConfig = { + PrivateMounts = lib.mkForce false; + ProtectSystem = lib.mkForce false; + }; } diff --git a/secrets/pocket-id.key.age b/secrets/pocket-id.key.age index 5d7fabe0f1c22f05b1a08a67c8c9481935bdfd9c..5e17454bcb6a6e62812b67d71128152b68d02948 100644 GIT binary patch delta 549 zcmcc1e2Zm*PJLlgetwQiZbn3+dwOzEg-(R%()glVM0oQg~Qc zMQ)^tv5|8&S9!j9US3E^h-XD)NqTTpc7eBHpnkSlc#vgqQBtsBq*rEIdPr74R%uQo zx^)(j!H${b3eE`erSfaNkK(gRB>fcu1i^(W28l1k$F^#pTDbNRjN;A=){lW;faaq zA(i3!Df-18iJqllNseWSDTPK==Ds;80ooO2NycGjnIY*OK?a7&TtyyU7T%^_u0_Q@ zDN(s)Miyli<>3}yVXp3F=3y>rE;%LTZU$+t6`sM4lj9l1>$5xqjP(Pw6N5a>9Q}N~ z!V*IwoWe@n{euh*{VdZ{z4LNQ{1Q_P%9GuTxtuK1l0B2d4J%SD+>>v@lif{=15)+1bBfFY5>vd5v(k+NbF)m6 zy(|rlTzwtW!kp4A&4W{Ni@Chg*dE_lsC)0x^Ih?chRnx$KX7M!eSAJsu_;(GQH=e= z{`Q6I^qm}Yf9Kskx5?v%#MZYb8MuwAHt=ywE4MQ3a{cq?-oLD4(+W(^ywb@60EoAf A8~^|S