Force normal user in order to mount disk
This commit is contained in:
parent
80a229ecf0
commit
24ddffac3c
1 changed files with 8 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue