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