S3 shared mount

This commit is contained in:
Filippo Berto 2023-07-29 01:56:02 +02:00
parent b294eda7a0
commit 3b56da5cbd
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
3 changed files with 43 additions and 2 deletions

View file

@ -519,5 +519,18 @@ with lib; {
Defaults pwfeedback
'';
systemd.services.bertof-garage = {
description = "Mount S3 bucket in bertof's home";
wantedBy = [ "default.target" ];
wants = [ "network.target" "network-online.target" ];
after = [ "network.target" "network-online.target" "local-fs.target" ];
serviceConfig = {
AssertPathIsDirectory = "/home/bertof/s3";
ExecStart = "${pkgs.s3fs}/bin/s3fs -f -d bertof /home/bertof/s3 -o passwd_file=/home/bertof/s3_secret,use_path_request_style,url=http://localhost:3900";
Type = "exec";
User = "bertof";
};
};
system.stateVersion = "22.11";
}