S3 Garage: cluster setup
This commit is contained in:
parent
95911b5e64
commit
9de02ed2a5
3 changed files with 27 additions and 22 deletions
|
|
@ -1,14 +1,17 @@
|
|||
{ config, pkgs, ... }: {
|
||||
{ pkgs, config, lib, ... }: {
|
||||
users.groups.garage = { };
|
||||
users.users.garage = {
|
||||
isSystemUser = true;
|
||||
group = "garage";
|
||||
};
|
||||
users.users.garage = { isSystemUser = true; group = "garage"; };
|
||||
|
||||
networking.firewall.interfaces."ztmjfdwjkp".allowedTCPPorts = [
|
||||
3901
|
||||
];
|
||||
|
||||
# Not correctly passing mount bindings
|
||||
systemd.services.garage.serviceConfig = {
|
||||
ProtectHome = lib.mkForce false;
|
||||
DynamicUser = false;
|
||||
};
|
||||
|
||||
services.garage = {
|
||||
package = pkgs.unstable_pkgs.garage;
|
||||
enable = true;
|
||||
|
|
|
|||
19
nixos_modules/nextcloud.nix
Normal file
19
nixos_modules/nextcloud.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ config, ... }: {
|
||||
services.nextcloud = {
|
||||
enable = true;
|
||||
hostName = "freya.local";
|
||||
config.adminpassFile = config.age.secrets.nextcloud_admin_secret.path;
|
||||
config.objectstore.s3 = {
|
||||
enable = true;
|
||||
bucket = "nextcloud-bucket";
|
||||
autocreate = false;
|
||||
key = "GK42a6b774429bfc254f4a5d36";
|
||||
secretFile = config.age.secrets.nextcloud_bucket_secret.path;
|
||||
hostname = "localhost";
|
||||
port = 3900;
|
||||
useSsl = false;
|
||||
region = "garage";
|
||||
usePathStyle = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue