non-dynamic user

This commit is contained in:
Robin Appelman 2024-06-24 17:39:24 +02:00
commit 0c76586f9e

View file

@ -68,6 +68,12 @@ in {
};
config = mkIf cfg.enable {
users.groups.tasmota-backup = {};
users.users.tasmota-backup = {
group = config.users.groups.tasmota-backup.name;
isSystemUser = true;
};
systemd.services."tasmota-backup" = {
description = "Backup tasmota configurations";
@ -79,7 +85,6 @@ in {
];
ReadWritePaths = [cfg.outputPath];
Restart = "on-failure";
DynamicUser = true;
PrivateTmp = true;
ProtectSystem = "strict";
ProtectHome = true;