Force normal user in order to mount disk

This commit is contained in:
Filippo Berto 2025-07-14 18:28:11 +02:00
parent 80a229ecf0
commit 24ddffac3c
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED

View file

@ -1,9 +1,6 @@
{ pkgs, config, ... }: { { pkgs, lib, config, ... }: {
# users.groups.garage = { }; users.groups.garage = { };
# users.users.garage = { users.users.garage = { isSystemUser = true; group = "garage"; };
# isSystemUser = true;
# group = "garage";
# };
age.secrets.garage_rpc_secret = { age.secrets.garage_rpc_secret = {
file = ../../secrets/garage_rpc_secret.age; file = ../../secrets/garage_rpc_secret.age;
owner = "garage"; owner = "garage";
@ -14,11 +11,11 @@
# 3901 # 3901
# ]; # ];
# # Not correctly passing mount bindings # Not correctly passing mount bindings
# systemd.services.garage.serviceConfig = { systemd.services.garage.serviceConfig = {
# ProtectHome = lib.mkForce false; ProtectHome = lib.mkForce false;
# DynamicUser = false; DynamicUser = false;
# }; };
services.garage = { services.garage = {
enable = true; enable = true;