ddns-updater: disable DynamicUser to fix secret perms
This commit is contained in:
@@ -58,6 +58,8 @@
|
|||||||
ddns-updater-config = {
|
ddns-updater-config = {
|
||||||
file = ../secrets/ddns-updater-config.age;
|
file = ../secrets/ddns-updater-config.age;
|
||||||
mode = "0400";
|
mode = "0400";
|
||||||
|
owner = "ddns-updater";
|
||||||
|
group = "ddns-updater";
|
||||||
};
|
};
|
||||||
|
|
||||||
jellyfin-api-key = {
|
jellyfin-api-key = {
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
@@ -11,4 +12,16 @@
|
|||||||
CONFIG_FILEPATH = config.age.secrets.ddns-updater-config.path;
|
CONFIG_FILEPATH = config.age.secrets.ddns-updater-config.path;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
users.users.ddns-updater = {
|
||||||
|
isSystemUser = true;
|
||||||
|
group = "ddns-updater";
|
||||||
|
};
|
||||||
|
users.groups.ddns-updater = { };
|
||||||
|
|
||||||
|
systemd.service.ddns-updater.serviceConfig = {
|
||||||
|
DynamicUser = lib.mkForce false;
|
||||||
|
User = "ddns-updater";
|
||||||
|
Group = "ddns-updater";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user