From 5fb318c03d87fca8d653f718f2c8007290c97a4c Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Thu, 3 Aug 2023 00:07:48 +0200 Subject: [PATCH] Thor: better S3 mount path --- instances/thor/hm.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/instances/thor/hm.nix b/instances/thor/hm.nix index 6861718..95a5e94 100644 --- a/instances/thor/hm.nix +++ b/instances/thor/hm.nix @@ -31,18 +31,18 @@ }; }; - systemd.user.services.garage-home-s3 = { + systemd.user.services.garage-home-s3-bertof = { Unit = { After = [ "network.target" "network-online.target" "local-fs.target" ]; - AssertPathIsDirectory = "/home/bertof/s3"; - AssertPathIsReadWrite = "/home/bertof/s3"; + AssertPathIsDirectory = "/home/bertof/s3/bertof"; + AssertPathIsReadWrite = "/home/bertof/s3/bertof"; Description = "Mount S3 bucket in bertof's home"; StartLimitBurst = 5; StartLimitInterval = 200; Wants = [ "network.target" "network-online.target" ]; }; Service = { - ExecStart = "${pkgs.s3fs}/bin/s3fs -f -d bertof /home/bertof/s3 -o passwd_file=${nixosConfig.age.secrets.garage_bertof_thor_key.path},use_path_request_style,url=http://localhost:3900"; + ExecStart = "${pkgs.s3fs}/bin/s3fs -f -d bertof /home/bertof/s3/bertof -o passwd_file=${nixosConfig.age.secrets.garage_bertof_thor_key.path},use_path_request_style,url=http://localhost:3900"; Restart = "always"; RestartSec = 30; Type = "exec";