S3 shared mount
This commit is contained in:
parent
b294eda7a0
commit
3b56da5cbd
3 changed files with 43 additions and 2 deletions
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue