mirror of
https://codeberg.org/icewind/tasmota-backup.git
synced 2026-06-03 14:24:08 +02:00
non-dynamic user
This commit is contained in:
parent
a402059af3
commit
0c76586f9e
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue