phase 2: promote services/, tests/, patches/, lib/, scripts/
This commit is contained in:
27
services/ddns-updater.nix
Normal file
27
services/ddns-updater.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
services.ddns-updater = {
|
||||
enable = true;
|
||||
environment = {
|
||||
PERIOD = "5m";
|
||||
# ddns-updater reads config from this path at runtime
|
||||
CONFIG_FILEPATH = config.age.secrets.ddns-updater-config.path;
|
||||
};
|
||||
};
|
||||
|
||||
users.users.ddns-updater = {
|
||||
isSystemUser = true;
|
||||
group = "ddns-updater";
|
||||
};
|
||||
users.groups.ddns-updater = { };
|
||||
|
||||
systemd.services.ddns-updater.serviceConfig = {
|
||||
DynamicUser = lib.mkForce false;
|
||||
User = "ddns-updater";
|
||||
Group = "ddns-updater";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user