fix: made geesefs forking

This commit is contained in:
alina 🌸 2024-12-10 08:50:27 +03:00
parent ed32e2e156
commit e4b356f3ff
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI
2 changed files with 4 additions and 1 deletions

View file

@ -39,6 +39,7 @@
bucket = "desu-priv";
mountPoint = "/mnt/s3-desu-priv";
};
systemd.services.geesefs.after = [ "coredns.service" ];
services.gocryptfs = {
enable = true;

View file

@ -33,7 +33,6 @@
cfg = config.services.geesefs;
allArgs = cfg.args ++ [
"-f" # foreground
cfg.bucket
cfg.mountPoint
];
@ -46,7 +45,10 @@
serviceConfig = {
User = "root";
Group = "root";
Type = "forking";
GuessMainPID = true;
ExecStart = "${cfg.package}/bin/geesefs ${builtins.concatStringsSep " " (map lib.escapeShellArg allArgs)}";
ExecStop = "fusermount -u ${lib.escapeShellArg cfg.mountPoint}";
Restart = "on-failure";
};
};