added snapraid sync server + timer

This commit is contained in:
Alexander Szczepanski
2021-06-13 17:58:07 +02:00
parent 5b1d9d8c27
commit eec1191700
2 changed files with 22 additions and 2 deletions

View File

@ -15,6 +15,7 @@
glances
home-manager
htop
inxi
iotop
lm_sensors
lsof
@ -26,6 +27,7 @@
sshfs
tealdeer
tree
manpages
zsh
];

View File

@ -44,8 +44,6 @@
"systemd"
"wd"
"kubectl"
# "zsh-autosuggestions"
# "zsh-syntax-highlightin"
"git"
];
};
@ -68,6 +66,7 @@
samba
openssl
hdparm
smartmontools
docker-compose
];
@ -102,6 +101,25 @@
${pkgs.hdparm}/sbin/hdparm -Y /dev/sdf
'';
systemd.services.snapraid-sync = {
#enable = true;
description = "Snapraid Sync and Diff";
serviceConfig = {
Type = "oneshot";
User = "alex";
ExecStart="/home/alex/snapraid-sync";
};
};
systemd.timers.snapraid-sync = {
#enable = true;
wantedBy = ["timers.target"];
timerConfig = {
OnCalendar = "Mon-Sun, 23:00";
# Unit = "snapraid-sync.service";
};
};
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;