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

@ -93,5 +93,18 @@
};
};
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";
}

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";
}

View file

@ -93,6 +93,19 @@ with lib; {
keyMap = "it";
};
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";
};
};
# X11 windowing system.
services.xserver = {
enable = true;
@ -105,7 +118,8 @@ with lib; {
windowManager.bspwm.enable = true;
# Configure keymap in X11
layout = "it,us";
layout = "
it,us";
xkbOptions = "eurosign:e,terminate:ctrl_alt_bksp,compose:rctrl,grp:menu_toggle";
libinput.enable = true;
@ -182,7 +196,7 @@ with lib; {
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages =
builtins.attrValues { inherit (pkgs) tmux helix vim git ntfs3g; };
builtins.attrValues { inherit (pkgs) tmux helix vim git ntfs3g s3fs; };
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
@ -331,3 +345,4 @@ with lib; {
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "22.11"; # Did you read the comment?
}