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 glances
home-manager home-manager
htop htop
inxi
iotop iotop
lm_sensors lm_sensors
lsof lsof
@ -26,6 +27,7 @@
sshfs sshfs
tealdeer tealdeer
tree tree
manpages
zsh zsh
]; ];

View File

@ -44,8 +44,6 @@
"systemd" "systemd"
"wd" "wd"
"kubectl" "kubectl"
# "zsh-autosuggestions"
# "zsh-syntax-highlightin"
"git" "git"
]; ];
}; };
@ -68,6 +66,7 @@
samba samba
openssl openssl
hdparm hdparm
smartmontools
docker-compose docker-compose
]; ];
@ -102,6 +101,25 @@
${pkgs.hdparm}/sbin/hdparm -Y /dev/sdf ${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 # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.
# programs.mtr.enable = true; # programs.mtr.enable = true;