S3: removed unnecessary gateways
This commit is contained in:
parent
a02853e64f
commit
f4b2644bd1
9 changed files with 60 additions and 62 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, nixosConfig, ... }: {
|
||||
{ pkgs, ... }: {
|
||||
home = {
|
||||
language.base = "it_IT.UTF-8";
|
||||
keyboard = {
|
||||
|
|
@ -42,35 +42,6 @@
|
|||
'';
|
||||
};
|
||||
|
||||
systemd.user.services.garage-home-s3-bertof =
|
||||
let
|
||||
path = "/home/bertof/s3/bertof";
|
||||
in
|
||||
{
|
||||
Unit = {
|
||||
After = [ "network.target" "network-online.target" "local-fs.target" ];
|
||||
# AssertPathIsDirectory = path;
|
||||
# AssertPathIsReadWrite = path;
|
||||
Description = "Mount S3 bucket in bertof's home";
|
||||
StartLimitBurst = 5;
|
||||
StartLimitInterval = 200;
|
||||
Wants = [ "network.target" "network-online.target" ];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = pkgs.writeShellScript "garage-home-s3-bertof" ''
|
||||
set -e
|
||||
${pkgs.coreutils}/bin/mkdir -p '${path}'
|
||||
${pkgs.s3fs}/bin/s3fs -f -d bertof ${path} -o passwd_file=${nixosConfig.age.secrets.garage_bertof_odin_key.path},use_path_request_style,url=http://localhost:3900
|
||||
'';
|
||||
Restart = "always";
|
||||
RestartSec = 30;
|
||||
Type = "exec";
|
||||
};
|
||||
Install = {
|
||||
# WantedBy = [ "default.target" ];
|
||||
};
|
||||
};
|
||||
|
||||
imports = [
|
||||
../../modules/hm/__basic.nix
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue