S3 Garage: cluster setup

This commit is contained in:
Filippo Berto 2023-04-10 22:19:55 +02:00
parent 95911b5e64
commit 9de02ed2a5
No known key found for this signature in database
GPG key ID: FE98AE5EC52B1056
3 changed files with 27 additions and 22 deletions

View file

@ -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;