remove duplication

This commit is contained in:
Cyryl Płotnicki 2022-07-17 15:53:44 +01:00
parent f647479952
commit f8be9fab25

View file

@ -7,6 +7,10 @@ let
"--exclude='.config/Element/Cache'"
"--exclude='.config/discord/Cache'"
];
niceness = {
Nice = 19;
IOSchedulingClass = "idle";
};
in {
services = {
@ -28,12 +32,6 @@ in {
};
};
systemd.services.restic-backups-home-to-bolty.serviceConfig = {
Nice = 19;
IOSchedulingClass = "idle";
};
systemd.services.restic-backups-home-to-b2.serviceConfig = {
Nice = 19;
IOSchedulingClass = "idle";
};
systemd.services.restic-backups-home-to-bolty.serviceConfig = niceness;
systemd.services.restic-backups-home-to-b2.serviceConfig = niceness;
}