mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2025-04-03 06:14:32 +05:00
Merge branch 'fix-borg-home' into 'master'
Set HOME to private /tmp for borgbackup See merge request simple-nixos-mailserver/nixos-mailserver!359
This commit is contained in:
commit
27c08decf7
@ -65,12 +65,16 @@ in {
|
||||
description = "borgbackup";
|
||||
unitConfig.Documentation = "man:borgbackup";
|
||||
script = borgScript;
|
||||
# borg writes to $HOME/.config but in our case it also works on $HOME (/var/vmail)
|
||||
# Setting $HOME to /tmp to avoid it
|
||||
environment.HOME = "/tmp";
|
||||
serviceConfig = {
|
||||
User = cfg.user;
|
||||
Group = cfg.group;
|
||||
CPUSchedulingPolicy = "idle";
|
||||
IOSchedulingClass = "idle";
|
||||
ProtectSystem = "full";
|
||||
PrivateTmp = true;
|
||||
};
|
||||
startAt = cfg.startAt;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user